Project

General

Profile

Actions

Bug #20123

closed

Hook for Usersettings (sysext:setup)

Added by Steffen Kamper over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

10596_setuphook.diff (3.84 KB) 10596_setuphook.diff Administrator Admin, 2009-03-03 12:06
class.usersetupsettingshook.php (1.78 KB) class.usersetupsettingshook.php Administrator Admin, 2009-03-03 12:06
10596_setuphook_v2.diff (20.7 KB) 10596_setuphook_v2.diff Administrator Admin, 2009-03-03 17:04
Actions

Also available in: Atom PDF