Manual:Hooks/EmailUserForm

From mediawiki.org
Jump to navigation Jump to 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"
	}
}
Called from:File(s): specials/SpecialEmailUser.php
Interface:EmailUserFormHook.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