Manual:Hooks/EmailUserForm

From MediaWiki.org
Jump to: navigation, search
EmailUserForm
Available from version 1.17.0 (r64903)
Occurs after building the email user form object
Define function:
public static function onEmailUserForm( $form ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"EmailUserForm": [
			"MyExtensionHooks::onEmailUserForm"
		]
	}
}

For MediaWiki ≤1.25:

$wgHooks['EmailUserForm'][] = 'MyExtensionHooks::onEmailUserForm';
Called from: File(s): SpecialEmailuser.php

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

Details[edit]

  • $form: HTMLForm object