< Manual:Hooks 
 
      | 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 $editpage ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"EditPage::attemptSave": "MyExtensionHooks::onEditPageattemptSave"
	}
}
 | 
| Called from: | File(s): EditPage.php | 
| Interface: | EditPage__attemptSaveHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:EditPage::attemptSave extensions.
Details
$editpage - The current 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.