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