aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hooks.txt
diff options
context:
space:
mode:
authorDannyS712 <DannyS712.enwiki@gmail.com>2020-03-28 03:54:35 +0000
committerDannyS712 <DannyS712.enwiki@gmail.com>2020-04-08 12:26:36 +0000
commitc2ff5c0355cb2443e0408c64c56897f4c1cc1c97 (patch)
tree43c59a52ccf68f7918df8734d7fb8fd7aa59adee /docs/hooks.txt
parent35eea56a957d84f6f7dc9c106af85ac0ccd7f194 (diff)
downloadmediawikicore-c2ff5c0355cb2443e0408c64c56897f4c1cc1c97.tar.gz
mediawikicore-c2ff5c0355cb2443e0408c64c56897f4c1cc1c97.zip
Add RevisionUndeleted hook to replace ArticleRevisionUndeleted
Bug: T248727 Change-Id: Ic4f771fcb3f1468a78b7eef3ff11686083144154
Diffstat (limited to 'docs/hooks.txt')
-rw-r--r--docs/hooks.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 0ad5ceb011ac..e66f5d9dc2ea 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -685,7 +685,8 @@ $reason: Reason for protect
'ArticlePurge': Before executing "&action=purge".
[&]$wikiPage: WikiPage (object) to purge
-'ArticleRevisionUndeleted': After an article revision is restored.
+'ArticleRevisionUndeleted': DEPRECATED since 1.35! Use RevisionUndeleted instead.
+After an article revision is restored.
[&]$title: the article title
$revision: the revision
$oldPageID: the page ID of the revision when archived (may be null)
@@ -2896,6 +2897,9 @@ instead. Called after a revision is inserted into the database.
$data: DEPRECATED! Always null!
$flags: DEPRECATED! Always null!
+'RevisionUndeleted': After an article revision is restored.
+$revisionRecord: the RevisionRecord that was restored
+
'SearchableNamespaces': An option to modify which namespaces are searchable.
&$arr: Array of namespaces ($nsId => $name) which will be used.