Jump to content

Manual:Hooks/EmailUserForm

From mediawiki.org
EmailUserForm
Available from version 1.17.0 (r64903, codereview)
Occurs after building the email user form object
Define function:
public static function onEmailUserForm( $form ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"EmailUserForm": "MediaWiki\\Extension\\MyExtension\\Hooks::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