< Manual:Hooks
SpecialPageBeforeFormDisplay | |
---|---|
Available from version 1.24.0 (Gerrit change 141633) Before executing the HTMLForm object | |
Define function: | public static function onSpecialPageBeforeFormDisplay( $name, \HTMLForm &$form ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SpecialPageBeforeFormDisplay": "MyExtensionHooks::onSpecialPageBeforeFormDisplay"
}
}
|
Called from: | File(s): FormSpecialPage.php |
Interface: | SpecialPageBeforeFormDisplayHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:SpecialPageBeforeFormDisplay extensions.
Details
- string $name: name of the special page (without the 'Special:' namespace prefix)
- \HTMLForm &$form: HTMLForm object
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.