< Manual:Hooks 
 
      | SpecialSearchResultsPrepend | |
|---|---|
| Available from version 1.21.0 'SpecialSearchResultsPrepend': Called immediately before returning HTML on the search results page. Useful for including an external search provider. To disable the output of MediaWiki search output, return false. | |
| Define function: | public static function onSpecialSearchResultsPrepend( $specialSearch, $output, $term ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"SpecialSearchResultsPrepend": "MyExtensionHooks::onSpecialSearchResultsPrepend"
	}
}
 | 
| Called from: | File(s): specials/SpecialSearch.php | 
| Interface: | SpecialSearchResultsPrependHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialSearchResultsPrepend extensions.
Details
- $specialSearch: SpecialSearch object ($this)
- $output: OutputPage object
- $term: Search term specified by the user
See also
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.