Manual:Hooks/EditFormInitialText

From MediaWiki.org
Jump to: navigation, search
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:
$wgHooks['EditFormInitialText'][] = 'MyExtensionHooks::onEditFormInitialText';
Called from: EditPage.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:EditFormInitialText extensions.


[edit] Details

  • $editPage: The EditPage object
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox