< Manual:Hooks 
 
      | SpecialSearchNogomatch | |
|---|---|
| Available from version 1.6.0 Called when the 'Go' feature is triggered (generally from autocomplete search other than the main bar on Special:Search) and the target doesn't exist. Full text search results are generated after this hook is called. | |
| Define function: | public static function onSpecialSearchNogomatch( &$title ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"SpecialSearchNogomatch": "MyExtensionHooks::onSpecialSearchNogomatch"
	}
}
 | 
| Called from: | File(s): specials/SpecialSearch.php | 
| Interface: | SpecialSearchNogomatchHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialSearchNogomatch extensions.
Details
- $title will be the Title object of the page searched for if it doesn't exist. This hook only runs if the page being searched for doesn't exist.
See also
- SpecialSearchGo
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.