aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hooks.txt
diff options
context:
space:
mode:
authorDannyS712 <DannyS712.enwiki@gmail.com>2020-04-12 01:15:08 +0000
committerDannyS712 <DannyS712.enwiki@gmail.com>2020-06-10 20:03:31 +0000
commit1594282ad01b529ee08daf1a0e9e02a7a77a6818 (patch)
treec4a4966749f65de98bdf7f70ed67d860340b8158 /docs/hooks.txt
parent4e2897575ad6c57b26b8d4615999c7b1ebabec38 (diff)
downloadmediawikicore-1594282ad01b529ee08daf1a0e9e02a7a77a6818.tar.gz
mediawikicore-1594282ad01b529ee08daf1a0e9e02a7a77a6818.zip
Replace TitleMoveCompleting and TitleMoveComplete hooks
Bug: T250023 Change-Id: Iceb0aebb51769c413bf560d1c5b70a7213cb8b91
Diffstat (limited to 'docs/hooks.txt')
-rw-r--r--docs/hooks.txt15
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 861bcf7a0849..f107841cee6c 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -2540,6 +2540,15 @@ the key.
$user: User (object) requesting the page
&$forOptions: array of options the hash is for
+'PageMoveComplete': After moving an article (title), post-commit.
+$old: LinkTarget for the old title
+$nt: LinkTarget for the new title
+$user: UserIdentity for the user who did the move
+$pageid: database ID of the page that's been moved
+$redirid: database ID of the created redirect
+$reason: reason for the move
+$revisionRecord: the RevisionRecord created by the move
+
'PageViewUpdates': Allow database (or other) changes to be made after a
page view is seen by MediaWiki. Note this does not capture views made
via external caches such as Squid.
@@ -3505,7 +3514,8 @@ $old: old title
$nt: new title
$user: user who does the move
-'TitleMoveComplete': After moving an article (title), post-commit.
+'TitleMoveComplete': DEPRECATED since 1.35! Use PageMoveComplete
+After moving an article (title), post-commit.
[&]$old: old title
[&]$nt: new title
[&]$user: user who did the move
@@ -3514,7 +3524,8 @@ $redirid: database ID of the created redirect
$reason: reason for the move
$revision: the Revision created by the move
-'TitleMoveCompleting': After moving an article (title), pre-commit.
+'TitleMoveCompleting': DEPRECATED since 1.35! Use PageMoveComplete
+After moving an article (title), pre-commit.
$old: old title
$nt: new title
$user: user who did the move