Manual:Hooks/RenderPreferencesForm
Appearance
This feature was removed from MediaWiki core in version 1.16.0. Please see GetPreferences for an alternative way to use this feature. |
RenderPreferencesForm | |
---|---|
Available from version 1.11.0 Removed in version 1.16.0 called at the end of PreferencesForm::mainPrefsForm() | |
Define function: | public static function onRenderPreferencesForm( $form, $out ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"RenderPreferencesForm": "MediaWiki\\Extension\\MyExtension\\Hooks::onRenderPreferencesForm"
}
}
|
Called from: | File(s): SpecialPreferences.php |
Interface: | RenderPreferencesFormHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:RenderPreferencesForm extensions.
Details
[edit]- $form: the PreferencesForm
- $out: output page to render to, probably $wgOut