< Manual:Hooks
| EditPageNoSuchSection | |
|---|---|
| Available from version 1.16.0 When a section edit request is given for an non-existent section. | |
| Define function: | public static function onEditPageNoSuchSection( $editpage, &$res ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"EditPageNoSuchSection": "MyExtensionHooks::onEditPageNoSuchSection"
}
}
|
| Called from: | File(s): EditPage.php |
| Interface: | EditPageNoSuchSectionHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:EditPageNoSuchSection extensions.
Details
- $editpage: The current EditPage object
- &$res: the HTML of the error text
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.