Index: trunk/phase3/skins/Vector.php |
— | — | @@ -305,6 +305,8 @@ |
306 | 306 | 'text' => wfMsg( 'nstab-special' ), |
307 | 307 | 'href' => $wgRequest->getRequestURL() |
308 | 308 | ); |
| 309 | + // Equiv to SkinTemplateBuildContentActionUrlsAfterSpecialPage |
| 310 | + wfRunHooks( 'SkinTemplateNavigation::SpecialPage', array( &$this, &$links ) ); |
309 | 311 | } |
310 | 312 | |
311 | 313 | // Gets list of language variants |
— | — | @@ -331,6 +333,9 @@ |
332 | 334 | } |
333 | 335 | } |
334 | 336 | |
| 337 | + // Equiv to SkinTemplateContentActions |
| 338 | + wfRunHooks( 'SkinTemplateNavigation::Universal', array( &$this, &$links ) ); |
| 339 | + |
335 | 340 | wfProfileOut( __METHOD__ ); |
336 | 341 | |
337 | 342 | return $links; |
Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1499,7 +1499,10 @@ |
1500 | 1500 | [See http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/examples/Content_action.php |
1501 | 1501 | for an example] |
1502 | 1502 | |
1503 | | -'SkinTemplateNavigation': Alter the structured navigation links in SkinTemplates |
| 1503 | +Alter the structured navigation links in SkinTemplates, there are three of these hooks called in different spots. |
| 1504 | +'SkinTemplateNavigation': Called on content pages before variants have been added |
| 1505 | +'SkinTemplateNavigation::SpecialPage': Called on special pages before variands have been added |
| 1506 | +'SkinTemplateNavigation::Universal': Called on both content and special pages after variants have been added |
1504 | 1507 | &$sktemplate: SkinTemplate object |
1505 | 1508 | &$links: Structured navigation links |
1506 | 1509 | This is used to alter the navigation for skins which use buildNavigationUrls such as Vector. |