Manual:Hooks/ChangePasswordForm

From MediaWiki.org
Jump to: navigation, search
ChangePasswordForm
Available from version 1.20.0
For extensions that need to add a field to the ChangePassword form via the Preferences form.

Define function:
public static function onChangePasswordForm( &$extraFields ) { ... }

Attach hook:
$wgHooks['ChangePasswordForm'][] = 'MyExtensionHooks::onChangePasswordForm';
Called from: SpecialChangePassword.php

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


Details[edit | edit source]

  • &$extraFields: An array of arrays that hold fields like would be passed to the pretty function.