Manual:Hooks/ResetPreferences
This feature was removed from MediaWiki core in version 1.16.0. Please see GetPreferences for an alternative way to use this feature. |
ResetPreferences | |
---|---|
Available from version 1.11.0 Removed in version 1.16.0 called at the end of PreferencesForm::resetPrefs() | |
Define function: | public static function onResetPreferences( $form, $user ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ResetPreferences": "MediaWiki\\Extension\\MyExtension\\Hooks::onResetPreferences"
}
}
|
Called from: | File(s): SpecialPreferences.php |
Interface: | ResetPreferencesHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ResetPreferences extensions.
Details
edit- $form: the PreferencesForm
- $user: the User object to load preferences from