Rename 'SpecialContribSubEnd' hook to more appropriate 'ContributionsToolLinks',...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 16 Jul 2007 11:21:21 +0000 (11:21 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 16 Jul 2007 11:21:21 +0000 (11:21 +0000)
RELEASE-NOTES
docs/hooks.txt
includes/SpecialContributions.php

index cf22f4f..6ef808c 100644 (file)
@@ -140,8 +140,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   $wgAjaxLicencePreview)
 * New Parser::setTransparentTagHook for parser extension and template
   compatibility
-* Hook point 'SpecialContribsSubEnd' added to allow extensions to add to
-  the links displayed above Special:Contributions.
+* Introduced 'ContributionsToolLinks' hook; see docs/hooks.txt for more
+  information
 
 == Bugfixes since 1.10 ==
 
index 63d6aaf..82fda74 100644 (file)
@@ -355,6 +355,11 @@ $user: the user who did the block (not the one being blocked)
 $isbn: ISBN to show information for
 $output: OutputPage object in use
 
+'ContributionsToolLinks': Change tool links above Special:Contributions
+$id: User identifier
+$title: User page title
+&$tools: Array of tool links
+
 'CustomEditor': When invoking the page editor
 $article: Article being edited
 $user: User performing the edit
@@ -556,12 +561,6 @@ Alter the contents of $siteNotice to add to/alter the sitenotice/anonnotice.
 &$sktemplate: SkinTemplate object
 &$tpl: Template engine object
 
-'SpecialContribsSubEnd': Right before the contribsub (the talk, log, etc.
-links) are added above Special:Contributions. Return not evaluated, audit only.
-$nt: The user whose contributions are being accessed.
-&$tools: An array of links that will be added above Special:Contributions,
-delimited by '|'.
-
 'SpecialContributionsBeforeMainOutput': Before the contributions form. Return
 not evaluated, audit only.
 $id: The id of the user whose contributions are being accessed.
index 2e7890f..d245144 100644 (file)
@@ -362,8 +362,8 @@ function contributionsSub( $nt, $id ) {
                # Other logs link
                $tools[] = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'Log' ), wfMsgHtml( 'log' ), 'user=' . $nt->getPartialUrl() );
 
-               # Let extensions add to this list as they need.
-               wfRunHooks( 'SpecialContribsSubEnd', array( $nt, &$tools ) );
+               wfRunHooks( 'ContributionsToolLinks', array( $id, $nt, &$tools ) );
+
                $links = implode( ' | ', $tools );
        }