* (bug 23429) Added new hook WatchlistEditorBuildRemoveLine
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 8 May 2010 13:23:11 +0000 (13:23 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 8 May 2010 13:23:11 +0000 (13:23 +0000)
* one indentation fix in WatchlistEditor.php

RELEASE-NOTES
docs/hooks.txt
includes/WatchlistEditor.php

index b52a74d..675e81d 100644 (file)
@@ -69,6 +69,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   is no title match in search and the user has no rights to create pages.
 * Added $wgJQueryVersion, $wgJQueryMinified and $wgJQueryOnEveryPage (true by
   default) to configure loading of jQuery by MediaWiki
+* (bug 23429) Added new hook WatchlistEditorBuildRemoveLine
 
 === Bug fixes in 1.17 ===
 * (bug 17560) Half-broken deletion moved image files to deletion archive
index b1d9f2f..2e080f7 100644 (file)
@@ -1796,6 +1796,13 @@ $article: article object to be watched
 $user: user that watched
 $article: article object watched
 
+'WatchlistEditorBuildRemoveLine': when building remove lines in
+       Special:Watchlist/edit
+&$tools: array of extra links
+$title: Title object
+$redirect: whether the page is a redirect
+$skin: Skin object
+
 'WikiExporter::dumpStableQuery': Get the SELECT query for "stable" revisions
 dumps
 One, and only one hook should set this, and return false.
index e9e79ee..72b12c2 100644 (file)
@@ -431,10 +431,13 @@ class WatchlistEditor {
                                array( 'known', 'noclasses' )
                        );
                }
+
+               wfRunHooks( 'WatchlistEditorBuildRemoveLine', array( &$tools, $title, $redirect, $skin ) );
+
                return "<li>"
                        . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) )
                        . $link . " (" . $wgLang->pipeList( $tools ) . ")" . "</li>\n";
-               }
+       }
 
        /**
         * Show a form for editing the watchlist in "raw" mode