Manual:Hooks/SpecialRecentChangesFilters

From MediaWiki.org
Jump to: navigation, search
SpecialRecentChangesFilters
Available from version 1.18.0 (r88633)
Called after building form options at RecentChanges.
Define function:
public static function onSpecialRecentChangesFilters( $special, &$filters ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialRecentChangesFilters": [
			"MyExtensionHooks::onSpecialRecentChangesFilters"
		]
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialRecentChangesFilters'][] = 'MyExtensionHooks::onSpecialRecentChangesFilters';
Called from: File(s): SpecialRecentchanges.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialRecentChangesFilters 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.