From: Thiemo Mättig Date: Tue, 9 Jan 2018 12:15:04 +0000 (+0100) Subject: Update outdated WikiPageDeletionUpdates documentation X-Git-Tag: 1.31.0-rc.0~962^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20%20%20%24self2%20.%20%20%20%22&var_mode_affiche=boucle?a=commitdiff_plain;h=9e0a7940ff12659b586fcb8f037cb667f9a1617c;p=lhc%2Fweb%2Fwiklou.git Update outdated WikiPageDeletionUpdates documentation This was already updated on https://www.mediawiki.org/wiki/Manual:Hooks/WikiPageDeletionUpdates more than a year ago, just missed here. This patch is a direct follow up for a request in I3a42ec1. Change-Id: I595b78da214c736d8e73d6d8c7af34a1613dd076 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 45387a386f..2c6fc02aa9 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -3917,14 +3917,15 @@ dumps. One, and only one hook should set this, and return false. &$opts: Options to use for the query &$join: Join conditions -'WikiPageDeletionUpdates': manipulate the list of DataUpdates to be applied when +'WikiPageDeletionUpdates': manipulate the list of DeferrableUpdates to be applied when a page is deleted. Called in WikiPage::getDeletionUpdates(). Note that updates specific to a content model should be provided by the respective Content's getDeletionUpdates() method. $page: the WikiPage -$content: the Content to generate updates for (or null, if the Content could not be loaded -due to an error) -&$updates: the array of DataUpdate objects. Hook function may want to add to it. +$content: the Content to generate updates for, or null in case the page revision could not be + loaded. The delete will succeed despite this. +&$updates: the array of objects that implement DeferrableUpdate. Hook function may want to add to + it. 'WikiPageFactory': Override WikiPage class used for a title $title: Title of the page