Manual:Hooks/EditPageBeforeEditToolbar
Appearance
Deprecated: This feature is deprecated and should no longer be used, however it is still available for reasons of backwards compatibility . |
EditPageBeforeEditToolbar | |
---|---|
Available from version 1.16.0 (r51168, CodeReview archive) Allows modifying the edit toolbar above the textarea | |
Define function: | public static function onEditPageBeforeEditToolbar( string &$toolbar ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EditPageBeforeEditToolbar": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageBeforeEditToolbar"
}
}
|
Called from: | File(s): includes/editpage/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
[edit]- &$toolbar: String: mix of HTML and JavaScript