Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -355,6 +355,11 @@ |
356 | 356 | $isbn: ISBN to show information for |
357 | 357 | $output: OutputPage object in use |
358 | 358 | |
| 359 | +'ContributionsToolLinks': Change tool links above Special:Contributions |
| 360 | +$id: User identifier |
| 361 | +$title: User page title |
| 362 | +&$tools: Array of tool links |
| 363 | + |
359 | 364 | 'CustomEditor': When invoking the page editor |
360 | 365 | $article: Article being edited |
361 | 366 | $user: User performing the edit |
— | — | @@ -556,12 +561,6 @@ |
557 | 562 | &$sktemplate: SkinTemplate object |
558 | 563 | &$tpl: Template engine object |
559 | 564 | |
560 | | -'SpecialContribsSubEnd': Right before the contribsub (the talk, log, etc. |
561 | | -links) are added above Special:Contributions. Return not evaluated, audit only. |
562 | | -$nt: The user whose contributions are being accessed. |
563 | | -&$tools: An array of links that will be added above Special:Contributions, |
564 | | -delimited by '|'. |
565 | | - |
566 | 565 | 'SpecialContributionsBeforeMainOutput': Before the contributions form. Return |
567 | 566 | not evaluated, audit only. |
568 | 567 | $id: The id of the user whose contributions are being accessed. |
Index: trunk/phase3/includes/SpecialContributions.php |
— | — | @@ -362,8 +362,8 @@ |
363 | 363 | # Other logs link |
364 | 364 | $tools[] = $sk->makeKnownLinkObj( SpecialPage::getTitleFor( 'Log' ), wfMsgHtml( 'log' ), 'user=' . $nt->getPartialUrl() ); |
365 | 365 | |
366 | | - # Let extensions add to this list as they need. |
367 | | - wfRunHooks( 'SpecialContribsSubEnd', array( $nt, &$tools ) ); |
| 366 | + wfRunHooks( 'ContributionsToolLinks', array( $id, $nt, &$tools ) ); |
| 367 | + |
368 | 368 | $links = implode( ' | ', $tools ); |
369 | 369 | } |
370 | 370 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -140,8 +140,8 @@ |
141 | 141 | $wgAjaxLicencePreview) |
142 | 142 | * New Parser::setTransparentTagHook for parser extension and template |
143 | 143 | compatibility |
144 | | -* Hook point 'SpecialContribsSubEnd' added to allow extensions to add to |
145 | | - the links displayed above Special:Contributions. |
| 144 | +* Introduced 'ContributionsToolLinks' hook; see docs/hooks.txt for more |
| 145 | + information |
146 | 146 | |
147 | 147 | == Bugfixes since 1.10 == |
148 | 148 | |