Manual:Hooks/SearchableNamespaces

From MediaWiki.org
Jump to: navigation, search
SearchableNamespaces
Available from version 1.16.0
An option to modify which namespaces are searchable.

Define function:
public static function onSearchableNamespaces( $arr ) { ... }

Attach hook:
$wgHooks['SearchableNamespaces'][] = 'MyExtensionHooks::onSearchableNamespaces';
Called from: SearchEngine.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SearchableNamespaces extensions.


[edit] Details

  • &$arr : Array of namespaces ($nsId => $name) which will be used.
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox