Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1796,6 +1796,13 @@ |
1797 | 1797 | $user: user that watched |
1798 | 1798 | $article: article object watched |
1799 | 1799 | |
| 1800 | +'WatchlistEditorBuildRemoveLine': when building remove lines in |
| 1801 | + Special:Watchlist/edit |
| 1802 | +&$tools: array of extra links |
| 1803 | +$title: Title object |
| 1804 | +$redirect: whether the page is a redirect |
| 1805 | +$skin: Skin object |
| 1806 | + |
1800 | 1807 | 'WikiExporter::dumpStableQuery': Get the SELECT query for "stable" revisions |
1801 | 1808 | dumps |
1802 | 1809 | One, and only one hook should set this, and return false. |
Index: trunk/phase3/includes/WatchlistEditor.php |
— | — | @@ -431,10 +431,13 @@ |
432 | 432 | array( 'known', 'noclasses' ) |
433 | 433 | ); |
434 | 434 | } |
| 435 | + |
| 436 | + wfRunHooks( 'WatchlistEditorBuildRemoveLine', array( &$tools, $title, $redirect, $skin ) ); |
| 437 | + |
435 | 438 | return "<li>" |
436 | 439 | . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) ) |
437 | 440 | . $link . " (" . $wgLang->pipeList( $tools ) . ")" . "</li>\n"; |
438 | | - } |
| 441 | + } |
439 | 442 | |
440 | 443 | /** |
441 | 444 | * Show a form for editing the watchlist in "raw" mode |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -69,6 +69,7 @@ |
70 | 70 | is no title match in search and the user has no rights to create pages. |
71 | 71 | * Added $wgJQueryVersion, $wgJQueryMinified and $wgJQueryOnEveryPage (true by |
72 | 72 | default) to configure loading of jQuery by MediaWiki |
| 73 | +* (bug 23429) Added new hook WatchlistEditorBuildRemoveLine |
73 | 74 | |
74 | 75 | === Bug fixes in 1.17 === |
75 | 76 | * (bug 17560) Half-broken deletion moved image files to deletion archive |