< Manual:Hooks
SpecialNewPagesFilters | |
---|---|
Available from version 1.18.0 (r88633, codereview) Called after building form options at NewPages. | |
Define function: | public static function onSpecialNewPagesFilters( $special, &$filters ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SpecialNewPagesFilters": "MyExtensionHooks::onSpecialNewPagesFilters"
}
}
|
Called from: | File(s): SpecialNewpages.php |
Interface: | SpecialNewPagesFiltersHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:SpecialNewPagesFilters extensions.
Details
- $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.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.