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
}
/**
+ *
+ * @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.
*