< Manual:Hooks
EditPageGetCheckboxesDefinition | |
---|---|
Available from version 1.29.0 Allows modifying the edit checkboxes in the edit form | |
Define function: | public static function onEditPageGetCheckboxesDefinition( EditPage $editPage, array &$checkboxes ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EditPageGetCheckboxesDefinition": "MyExtensionHooks::onEditPageGetCheckboxesDefinition"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | EditPageGetCheckboxesDefinitionHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:EditPageGetCheckboxesDefinition extensions.
Details
$editPage
: The current EditPage object&$checkboxes
: Array of checkbox definitions. SeeEditPage::getCheckboxesDefinition()
for the format.
MW 1.35+ This hook allows non-checkbox widgets to be added to the edit form.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.