< Manual:Hooks
![]() | This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.36.0. |
EditPageBeforeEditToolbar | |
---|---|
Available from version 1.16.0 Allows modifying the edit toolbar above the textarea | |
Define function: | public static function onEditPageBeforeEditToolbar( &$toolbar ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EditPageBeforeEditToolbar": "MyExtensionHooks::onEditPageBeforeEditToolbar"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | EditPageBeforeEditToolbarHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:EditPageBeforeEditToolbar extensions.
Details
- &$toolbar: String: mix of HTML and JavaScript
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.