Manual:Hooks/EditPageBeforeEditChecks

From MediaWiki.org
Jump to: navigation, search
EditPageBeforeEditChecks
Available from version 1.14.0
Allows modifying the edit checks below the textarea in the edit form
Define function:
public static function onEditPageBeforeEditChecks( &$editpage, &$checks, &$tabindex ) { ... }
Attach hook:
$wgHooks['EditPageBeforeEditChecks'][] = 'MyExtensionHooks::onEditPageBeforeEditChecks';
Called from: File(s): EditPage.php

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

Details[edit]

  • &$editpage: The current EditPage object
  • &$checks: Array of edit checks like "watch this page"/"minor edit"
  • &$tabindex: HTML tabindex of the last edit check/button