Manual:Hooks/ResetPreferences
From MediaWiki.org
|
|
This feature has been deprecated and should not be used with current versions of MediaWiki. This feature was deprecated (or possibly removed completely) in version 1.16.0. |
| 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: |
$wgHooks['ResetPreferences'][] = 'MyExtensionHooks::onResetPreferences'; |
| Called from: | SpecialPreferences.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ResetPreferences extensions.
Warning: This hook has been completely removed in 1.16; use GetPreferences instead.
[edit] Details
- $form: the PreferencesForm
- $user: the User object to load preferences from
