Manual:Hooks/SearchEngineReplacePrefixesComplete
From MediaWiki.org
| SearchEngineReplacePrefixesComplete | |
|---|---|
| Available from version 1.16.0 Run after SearchEngine::replacePrefixes(). |
|
Define function: |
public static function onSearchEngineReplacePrefixesComplete( $searchEngine, $query, &$parsed ) { ... }
|
Attach hook: |
$wgHooks['SearchEngineReplacePrefixesComplete'][] = 'MyExtensionHooks::onSearchEngineReplacePrefixesComplete'; |
| Called from: | SearchEngine.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SearchEngineReplacePrefixesComplete extensions.
[edit] Details
- $searchEngine : The SearchEngine object. Users of this hooks will be interested in the $searchEngine->namespaces array.
- $query : Original query.
- &$parsed : Resultant query with the prefixes stripped.