From: Thiemo Kreuz Date: Tue, 26 Feb 2019 13:09:51 +0000 (+0100) Subject: docs: Update outdated PageContentSave hook documentation X-Git-Tag: 1.34.0-rc.0~2383^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=0df33031fae193861f5d8dc89e79ba54df3d1ea0;p=lhc%2Fweb%2Fwiklou.git docs: Update outdated PageContentSave hook documentation I updated https://www.mediawiki.org/wiki/Manual:Hooks/PageContentSave already. Inspired by Id8f2ac2. Bug: T216893 Change-Id: I41a310c04be37693c1ba3f8ce15d1405674c1eae --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 8b5e4d7a70..282fdbc134 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2450,10 +2450,14 @@ $wgLang: the user language $wikiPage: the WikiPage (object) being saved $user: the user (object) saving the article $content: the new article content, as a Content object -$summary: the article summary (comment) -$isminor: minor flag -$iswatch: watch flag -$section: section # +&$summary: CommentStoreComment object containing the edit comment. Can be replaced with a new one. +$isminor: Boolean flag specifying if the edit was marked as minor. +$iswatch: Previously a watch flag. Currently unused, always null. +$section: Previously the section number being edited. Currently unused, always null. +$flags: All EDIT_… flags (including EDIT_MINOR) as an integer number. See WikiPage::doEditContent + documentation for flags' definition. +$status: StatusValue object for the hook handlers resulting status. Either set $status->fatal() or + return false to abort the save action. 'PageContentSaveComplete': After an article has been updated. $wikiPage: WikiPage modified