Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/EditPage::attemptSave

From mediawiki.org
<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:
publicstaticfunctiononEditPage_attemptSave(EditPage$editpage){...}
Attach hook:Inextension.json:
{"Hooks":{"EditPage::attemptSave":"MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageattemptSave"}}
Called from:File(s):EditPage.php
Interface:EditPage__attemptSaveHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:EditPage::attemptSave extensions.

Details

[edit]

$editpage - The current EditPage object.

Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/EditPage::attemptSave&oldid=6391590"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp