Added hook point to allow extensions to add to contentSub on Special:Contributions.
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Mon, 16 Jul 2007 01:10:38 +0000 (01:10 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Mon, 16 Jul 2007 01:10:38 +0000 (01:10 +0000)
RELEASE-NOTES
includes/SpecialContributions.php

index 6904322..cf22f4f 100644 (file)
@@ -140,6 +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.
 
 == Bugfixes since 1.10 ==
 
index ae51cde..2e7890f 100644 (file)
@@ -361,6 +361,9 @@ 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 ) );
                $links = implode( ' | ', $tools );
        }
 
@@ -440,4 +443,4 @@ function contributionsForm( $options ) {
        $f .= '</fieldset>' .
                Xml::closeElement( 'form' );
        return $f;
-}
\ No newline at end of file
+}