Bug #20123
closedHook for Usersettings (sysext:setup)
0%
Description
If you want to use the usersettings to save own data, you need a hook to
a) extend the form with own fields (or manipulate existing ones)
b) catch posted data to verify and put it to BE_USER->uc
Attached patch implements a hook in sysext setup to allow this.
for usage here is an example how to set the hook in ext_localconf.php:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['processUserSettingPost'][] = 'EXT:myextension/class.usersetupsettingshook.php:tx_userSetupSettingsHook';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['manipulateUserSettingFields'][] = 'EXT:myextension/class.usersetupsettingshook.php:tx_userSetupSettingsHook';
Example of the hook class is attached too.
(issue imported from #M10596)
Files
Updated by Steffen Kamper over 15 years ago
2nd version simplifies the array of form fields for manipulation