Manual:Hooks/SpecialSearchGo
From MediaWiki.org
| SpecialSearchGo | |
|---|---|
| Available from version 1.17.0 |
|
Define function: |
public static function onSpecialSearchGo( &$title ) { ... }
|
Attach hook: |
$wgHooks['SpecialSearchGo'][] = 'MyExtensionHooks::onSpecialSearchGo'; |
| Called from: | SpecialSearch.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialSearchGo extensions.
[edit] Details
$title will be the Title object of the page searched for if it exists. This hook only runs if the page being searched for exists.