From 0df33031fae193861f5d8dc89e79ba54df3d1ea0 Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Tue, 26 Feb 2019 14:09:51 +0100 Subject: [PATCH] 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 --- docs/hooks.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.20.1