A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Hooks/PrefixSearchExtractNamespace below:

Manual:Hooks/PrefixSearchExtractNamespace - MediaWiki

PrefixSearchExtractNamespace Available from version 1.25.0 (Gerrit change 168167)
Called if core was not able to extract a namespace from the search string so that extensions can attempt it.
Define function:
public static function onPrefixSearchExtractNamespace( &$namespaces, &$search ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"PrefixSearchExtractNamespace": "MediaWiki\\Extension\\MyExtension\\Hooks::onPrefixSearchExtractNamespace"
	}
}
Called from: File(s): search/PrefixSearch.php, search/SearchEngine.php Interface: PrefixSearchExtractNamespaceHook.php

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4