Manual:Hooks/EditPageBeforeEditChecks
This feature was removed from MediaWiki core in version 1.32.0 (after being deprecated in 1.29.0). Please see EditPageGetCheckboxesDefinition for an alternative way to use this feature. |
EditPageBeforeEditChecks | |
---|---|
Available from version 1.14.0 Removed in version 1.32.0 (Gerrit change 374870) Allows modifying the edit checks below the textarea in the edit form | |
Define function: | public static function onEditPageBeforeEditChecks( EditPage &$editpage, array &$checks, &$tabindex ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EditPageBeforeEditChecks": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageBeforeEditChecks"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | EditPageBeforeEditChecksHook.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