Manual:Hooks/EditPage::showEditForm:fields
From MediaWiki.org
| EditPage::showEditForm:fields | |
|---|---|
| Available from version 1.6.0 Allows injection of form field into edit form. |
|
*Define function: |
function fnMyHook( &$editpage, &$output ) { ... }
|
*Attach hook: |
$wgHooks['EditPage::showEditForm:fields'][] = 'fnMyHook'; |
| Called from: | EditPage.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EditPage::showEditForm:fields extensions.
[edit] Details
This hook is called before edit box and the toolbar are published.
- $editpage - The EditPage object.
- $output - the OutputPage object (added in version 1.12.0)
return value is ignored (should always return true)