Manual:Hooks/SpecialWatchlistFilters
Appearance
This feature was removed from MediaWiki core in version 1.32.0 (after being deprecated in 1.23.0). Please see ChangesListSpecialPageStructuredFilters for an alternative way to use this feature. |
SpecialWatchlistFilters | |
---|---|
Available from version 1.18.0 (r88633, CodeReview archive) Removed in version 1.32.0 (Gerrit change 460085) Called after building form options for Special:Watchlist. | |
Define function: | public static function onSpecialWatchlistFilters( $special, &$filters ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SpecialWatchlistFilters": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialWatchlistFilters"
}
}
|
Called from: | File(s): specials/SpecialWatchlist.php |
Interface: | SpecialWatchlistFiltersHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialWatchlistFilters extensions.
Details
[edit]$special
: the special page object&$filters
: associative array of filter definitions. The keys are the HTML name/URL parameters. Each key maps to an associative array with a 'msg' (message key) and a 'default' value.