MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onUserResetAllOptions ( $user, &$newOptions, $options, $resetKinds) | |
This hook is called when user preferences have been requested to be reset. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "UserResetAllOptions" to register handlers implementing this interface.
Definition at line 14 of file UserResetAllOptionsHook.php.
MediaWiki\User\Hook\UserResetAllOptionsHook::onUserResetAllOptions | ( | $user, | |
& | $newOptions, | ||
$options, | |||
$resetKinds | |||
) |
This hook is called when user preferences have been requested to be reset.
This hook can be used to exclude certain options from being reset even when the user has requested that all preferences to be reset, because certain options might be stored in the user_properties database table despite not being visible and editable via Special:Preferences.
User | $user | The user whose preferences are being reset |
array | &$newOptions | Array of new (site default) preferences |
array | $options | Array of the user's old preferences |
string[] | $resetKinds | Array containing the kinds of preferences to reset |
Implemented in MediaWiki\HookContainer\HookRunner.