Manual:Hooks/RenderPreferencesForm

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