aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@gmail.com>2013-12-20 23:50:57 -0800
committerKunal Mehta <legoktm@gmail.com>2013-12-20 23:50:57 -0800
commit55869c8871c9a7e27d662ce6941a57bdac7b2334 (patch)
tree670dd25030b7f75d30078ee86f4ddaa743114257 /docs
parent24967ab27e40fd032f679aca301879aafeb01d8b (diff)
downloadmediawikicore-55869c8871c9a7e27d662ce6941a57bdac7b2334.tar.gz
mediawikicore-55869c8871c9a7e27d662ce6941a57bdac7b2334.zip
Make SpecialContributionsBeforeMainOutput hook more useful
The current id number is useless for IP addresses, so it now passes a proper User object. For context, the SpecialPage instance is also provided. Change-Id: Ie196611d504b3969bcdfb5c589716af2f3c54e14
Diffstat (limited to 'docs')
-rw-r--r--docs/hooks.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/hooks.txt b/docs/hooks.txt
index 53382f4d673e..ebc412b65591 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -2208,7 +2208,9 @@ $sp: SpecialPage object, for context
&$fields: Current HTMLForm fields
'SpecialContributionsBeforeMainOutput': Before the form on Special:Contributions
-$id: User identifier
+$id: User id number, only provided for backwards-compatability
+$user: User object representing user contributions are being fetched for
+$sp: SpecialPage instance, providing context
'SpecialListusersDefaultQuery': Called right before the end of
UsersPager::getDefaultQuery().