MediaWiki REL1_35
MediaWiki\Search\Hook\SpecialSearchPowerBoxHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Search\Hook\SpecialSearchPowerBoxHook:

Public Member Functions

 onSpecialSearchPowerBox (&$showSections, $term, &$opts)
 Use this hook to modify advanced search profile forms.
 

Detailed Description

Stable to implement.

Definition at line 9 of file SpecialSearchPowerBoxHook.php.

Member Function Documentation

◆ onSpecialSearchPowerBox()

MediaWiki\Search\Hook\SpecialSearchPowerBoxHook::onSpecialSearchPowerBox ( $showSections,
  $term,
$opts 
)

Use this hook to modify advanced search profile forms.

This hook is equivalent to SpecialSearchProfileForm for the advanced form, also know as power search box.

Since
1.35
Parameters
string[]&$showSectionsArray to add values with more options to
string$termSearch term (not a title object)
string[]&$optsArray of hidden options (containing 'redirs' and 'profile')
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: