MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onUserResetAllOptions ( $user, &$newOptions, $options, $resetKinds) | |
This hook is called when user preferences have been requested to be reset. | |
Stable to implement.
Definition at line 11 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.