Manual:Hooks/InitPreferencesForm
Appearance
This feature was removed from MediaWiki core in version 1.16.0. Please see GetPreferences for an alternative way to use this feature. |
InitPreferencesForm | |
---|---|
Available from version 1.11.0 Removed in version 1.16.0 Called at the end of PreferencesForm's constructor | |
Define function: | public static function onInitPreferencesForm( $prefs, $request ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"InitPreferencesForm": "MediaWiki\\Extension\\MyExtension\\Hooks::onInitPreferencesForm"
}
}
|
Called from: | File(s): SpecialPreferences.php |
Interface: | InitPreferencesFormHook.php |
For more information about attaching hooks, see Manual:Hooks .
Details
[edit]- $prefs - The PreferencesForm object
- $request - The WebRequest object