Manual:Hooks/EditPage::importFormData

From MediaWiki.org
Jump to: navigation, search
EditPage::importFormData
Available from version 1.16.0
Called when reading the data from the editform, after post
Define function:
public static function onEditPage_importFormData( EditPage &$editpage, WebRequest $request ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"EditPage::importFormData": "MyExtensionHooks::onEditPageimportFormData"
	}
}

For MediaWiki ≤1.25:

$wgHooks['EditPage::importFormData'][] = 'MyExtensionHooks::onEditPageimportFormData';
Called from: File(s): EditPage.php

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

Details[edit]