Manual:Hooks/EditPageNoSuchSection

From MediaWiki.org
Jump to: navigation, search
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:
$wgHooks['EditPageNoSuchSection'][] = 'MyExtensionHooks::onEditPageNoSuchSection';
Called from: EditPage.php

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


[edit] Details

  • $editpage: The current EditPage object
  • &$res: the HTML of the error tex
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox