Manual:Hooks/SpecialSearchNogomatch

From MediaWiki.org
Jump to: navigation, search
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.

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox