Manual:Hooks/SpecialSearchPowerBox

From MediaWiki.org
Jump to: navigation, search
SpecialSearchPowerBox
Available from version 1.18.0 (r97175)
The equivalent of SpecialSearchProfileForm for the advanced form, a.k.a. power search box

Define function:
public static function onSpecialSearchPowerBox( &$showSections, $term, $opts ) { ... }

Attach hook:
$wgHooks['SpecialSearchPowerBox'][] = 'MyExtensionHooks::onSpecialSearchPowerBox';
Called from: SpecialSearch.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialSearchPowerBox extensions.


[edit] Details

The equivalent of SpecialSearchProfileForm for the advanced form, a.k.a. power search box.

  • The first parameter, $showSections, is an array of the following keys containing input forms:
    • 'namespaceTables'
    • 'redirects' (if supported by the search engine)
  • $term is the search term
  • $opts is an array of hidden options with keys 'redirs' and 'profile', of which only 'profile' is added as hidden input

[edit] See also

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox