Jump to content

Manual:Hooks/EditPageBeforeEditToolbar

From mediawiki.org
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