MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onPreferencesFormPreSave ( $formData, $form, $user, &$result, $oldUserOptions) | |
Use this hook to override preferences being saved. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PreferencesFormPreSave" to register handlers implementing this interface.
Definition at line 15 of file PreferencesFormPreSaveHook.php.
MediaWiki\Preferences\Hook\PreferencesFormPreSaveHook::onPreferencesFormPreSave | ( | $formData, | |
$form, | |||
$user, | |||
& | $result, | ||
$oldUserOptions ) |
Use this hook to override preferences being saved.
array | $formData | Array of user submitted data |
HTMLForm | $form | HTMLForm object, also a ContextSource |
User | $user | User with preferences to be saved |
bool | &$result | Boolean indicating success |
array | $oldUserOptions | Array with user's old options (before save) |
Implemented in MediaWiki\HookContainer\HookRunner.