Added feature #12008: User setup misses a function for inserting fields at a position
authorSteffen Kamper <info@sk-typo3.de>
Sat, 19 Sep 2009 22:34:03 +0000 (22:34 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sat, 19 Sep 2009 22:34:03 +0000 (22:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6002 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_extmgm.php

index e3bdad1..4d27ba4 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2009-09-19  Steffen Kamper  <info@sk-typo3.de>
 
+       * Added feature #12008: User setup misses a function for inserting fields at a position
        * Fixed bug #12003: EncryptionKey generation in install tool (1-2-3-mode) still uses old encryption
        * Fixed bug #11884: User setup: buttons for create/delete ENABLE_INSTALL_TOOL-file are not integrated in user setup
        * Fixed bug #11896: User Setup miss save of be_users fields and miss handling of default value
index ec14179..c415517 100644 (file)
@@ -372,6 +372,22 @@ final class t3lib_extMgm {
        }
 
        /**
+        * 
+        * @param       string  $addFields: List of fields to be added to the user settings
+        * @param       string  $insertionPosition: Insert fields before (default) or after one
+        *                                      of this fields (commalist with "before:" or "after:" commands).
+        *                                      Example: "before:password,after:email".
+        * @return void
+        */
+       public function addFieldsToUserSettings($addFields, $insertionPosition = '') {
+               $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] = self::executePositionedStringInsertion(
+                       $GLOBALS['TYPO3_USER_SETTINGS']['showitem'],
+                       $addFields,
+                       $insertionPosition
+               );
+       }
+
+       /**
         * Inserts as list of data into an existing list.
         * The insertion position can be defined accordant before of after existing list items.
         *