From: Marius Hoch Date: Thu, 17 Mar 2016 19:11:30 +0000 (+0100) Subject: Mention that 'APIEditBeforeSave' is also being run on undo X-Git-Tag: 1.31.0-rc.0~7586 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=d4a171b1ceede50f5e966b85a9f10d2652b819d4;p=lhc%2Fweb%2Fwiklou.git Mention that 'APIEditBeforeSave' is also being run on undo This came up in T126861 where we identified this as desired behavior. Change-Id: I37e8f59b4b88cc289709da9802df3a0f123939b1 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index a431f1b3fb..9478f485f6 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -376,6 +376,7 @@ $user: Current user 'APIEditBeforeSave': Before saving a page with api.php?action=edit, after processing request parameters. Return false to let the request fail, returning an error message or an tag if $resultArr was filled. +Unlike for example 'EditFilterMergedContent' this also being run on undo. $editPage: the EditPage object $text: the new text of the article (has yet to be saved) &$resultArr: data in this array will be added to the API result