Manual:Hooks/EditPageBeforeEditToolbar

From MediaWiki.org
Jump to: navigation, search
EditPageBeforeEditToolbar
Available from version 1.16.0
Allows modifying the edit toolbar above the textarea

Define function:
public static function onEditPageBeforeEditToolbar( &$toolbar ) { ... }

Attach hook:
$wgHooks['EditPageBeforeEditToolbar'][] = 'MyExtensionHooks::onEditPageBeforeEditToolbar';
Called from: EditPage.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