Manual:Hooks/EditPageBeforeEditButtons
From MediaWiki.org
| EditPageBeforeEditButtons | |
|---|---|
| Available from version 1.12.0 Used to modify the edit buttons on the edit form |
|
*Define function: |
function fnMyHook( &$editpage, &$buttons ) { ... }
|
*Attach hook: |
$wgHooks['EditPageBeforeEditButtons'][] = 'fnMyHook'; |
| Called from: | EditPage.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EditPageBeforeEditButtons extensions.
[edit] Details
- $editpage: the current EditPage object
- $buttons: the edit buttons found below the editing box ("Save", "Preview", "Live", and "Diff")