Actions
Bug #20123
closedHook for Usersettings (sysext:setup)
Start date:
2009-03-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
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
Actions