< Manual:Hooks
AlternateEdit | |
---|---|
Available from version 1.6.0 Occurs whenever action=edit is called | |
Define function: | public static function onAlternateEdit( EditPage $editpage ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"AlternateEdit": "MyExtensionHooks::onAlternateEdit"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | AlternateEditHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:AlternateEdit extensions.
Details
- $editpage: the editpage (object) being called
Notes
This hook gets called at the beginning of &action=edit, before any user permissions are checked or any edit checking is performed.
Can be used to override the standard MediaWiki edit screen with a customized edit screen.
Return "true" to proceed with EditPage::edit method, or "false" to exit the EditPage::edit method.
See also
- Manual:Hooks/CustomEditor
- EditPage::showEditForm:initial
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.