Manual:Hooks/EditPage::attemptSave

From MediaWiki.org
Jump to: navigation, search
EditPage::attemptSave
Available from version 1.8.3
Called before an article is saved, that is at the beginning of internalAttemptSave() is called
Define function:
public static function onEditPage_attemptSave( $editpage ) { ... }
Attach hook:
$wgHooks['EditPage::attemptSave'][] = 'MyExtensionHooks::onEditPage_attemptSave';
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::attemptSave extensions.

Details[edit]

$editpage - The current EditPage object.