Manual:Hooks/RenderPreferencesForm
![]() | 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.0Category:Removed hooks#RenderPreferencesForm 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.phpCategory:MediaWiki hooks included in SpecialPreferences.php#RenderPreferencesForm |
Interface: | RenderPreferencesFormHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:RenderPreferencesForm extensions.
Details
- $form: the PreferencesForm
- $out: output page to render to, probably $wgOut