< Manual:Hooks
EditFormInitialText | |
---|---|
Available from version 1.16.0 Allows modifying the edit form when editing existing pages | |
Define function: | public static function onEditFormInitialText( $editPage ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EditFormInitialText": "MyExtensionHooks::onEditFormInitialText"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | EditFormInitialTextHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:EditFormInitialText extensions.
Details
- $editPage: The EditPage object
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.