Manual:Hooks/EditPageBeforeEditChecks
From MediaWiki.org
| EditPageBeforeEditChecks | |
|---|---|
| Available from version 1.14.0 Allows modifying the edit checks below the textarea in the edit form |
|
*Define function: |
function fnMyHook( &$editpage, &$checks, &$tabindex ) { ... }
|
*Attach hook: |
$wgHooks['EditPageBeforeEditChecks'][] = 'MyExtensionHooks::someExample'; |
| Called from: | EditPage.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EditPageBeforeEditChecks extensions.
[edit] Details
- &$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
