Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -372,6 +372,12 @@ |
373 | 373 | this hook and append its values to the key. |
374 | 374 | $hash: reference to a hash key string which can be modified |
375 | 375 | |
| 376 | +'PersonalUrls': Alter the user-specific navigation links (e.g. "my page, |
| 377 | +my talk page, my contributions" etc). |
| 378 | + |
| 379 | +&$personal_urls: Array of link specifiers (see SkinTemplate.php) |
| 380 | +$title: Title object representing the current page |
| 381 | + |
376 | 382 | 'TitleMoveComplete': after moving an article (title) |
377 | 383 | $old: old title |
378 | 384 | $nt: new title |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -525,6 +525,8 @@ |
526 | 526 | ); |
527 | 527 | } |
528 | 528 | } |
| 529 | + |
| 530 | + wfRunHooks( 'PersonalUrls', array( $personal_urls, $wgTitle ) ); |
529 | 531 | wfProfileOut( $fname ); |
530 | 532 | return $personal_urls; |
531 | 533 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -228,6 +228,7 @@ |
229 | 229 | * (bug 1120) Update for Czech language (Cs) |
230 | 230 | * Added many missing formatNum calls |
231 | 231 | * Added grammar function to Belarusian (be) |
| 232 | +* (bug 5819) Add 'PersonalUrls' hook |
232 | 233 | |
233 | 234 | == Compatibility == |
234 | 235 | |