(bug 5819) Add 'PersonalUrls' hook
authorRob Church <robchurch@users.mediawiki.org>
Mon, 8 May 2006 22:20:55 +0000 (22:20 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 8 May 2006 22:20:55 +0000 (22:20 +0000)
RELEASE-NOTES
docs/hooks.txt
includes/SkinTemplate.php

index cdf2186..58c6a6a 100644 (file)
@@ -228,6 +228,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 1120) Update for Czech language (Cs)
 * Added many missing formatNum calls
 * Added grammar function to Belarusian (be)
+* (bug 5819) Add 'PersonalUrls' hook
 
 == Compatibility ==
 
index 2f3d8c8..6146644 100644 (file)
@@ -372,6 +372,12 @@ $text: the text that will be displayed, in HTML (string)
   this hook and append its values to the key.
 $hash: reference to a hash key string which can be modified
 
+'PersonalUrls': Alter the user-specific navigation links (e.g. "my page,
+my talk page, my contributions" etc).
+
+&$personal_urls: Array of link specifiers (see SkinTemplate.php)
+$title: Title object representing the current page
+
 'TitleMoveComplete': after moving an article (title)
 $old: old title
 $nt: new title
index e87987f..771004d 100644 (file)
@@ -525,6 +525,8 @@ class SkinTemplate extends Skin {
                                );
                        }
                }
+               
+               wfRunHooks( 'PersonalUrls', array( $personal_urls, $wgTitle ) );                
                wfProfileOut( $fname );
                return $personal_urls;
        }