Open main menu


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": "MyExtensionHooks::onRenderPreferencesForm"

For MediaWiki ≤1.25:

$wgHooks['RenderPreferencesForm'][] = 'MyExtensionHooks::onRenderPreferencesForm';
Called from:File(s): SpecialPreferences.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:RenderPreferencesForm extensions.


  • $form: the PreferencesForm
  • $out: output page to render to, probably $wgOut