Manual:Hooks/InitPreferencesForm

From MediaWiki.org
Jump to: navigation, search
InitPreferencesForm
Available from version 1.11.0
Removed in version 1.16.0
Called at the end of PreferencesForm's constructor

*Define function:
function fnMyHook( $prefs, $request ) { ... }

*Attach hook:
$wgHooks['InitPreferencesForm'][] = 'MyExtensionHooks::someExample';
Called from: SpecialPreferences.php

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


Warning Warning: This hook has been completely removed in 1.16; use GetPreferences instead.

[edit] Details

  • $prefs - The PreferencesForm object
  • $request - The WebRequest object
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox