MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onPreferencesFormPreSave ( $formData, $form, $user, &$result, $oldUserOptions) | |
Use this hook to override preferences being saved. | |
Stable to implement.
Definition at line 12 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.