Manual:Hooks/SpecialWatchlistFilters

From MediaWiki.org
Jump to: navigation, search
SpecialWatchlistFilters
Available from version 1.18.0 (r88633)
Called after building form options at Watchlist.
Define function:
public static function onSpecialWatchlistFilters( $special, &$filters ) { ... }
Attach hook:
$wgHooks['SpecialWatchlistFilters'][] = 'MyExtensionHooks::onSpecialWatchlistFilters';
Called from: File(s): SpecialWatchlist.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.