Manual:Hooks/SpecialSearchProfiles

From MediaWiki.org
Jump to: navigation, search
SpecialSearchProfiles
Available from version 1.16.0
Allows modification of search profiles.
Define function:
public static function onSpecialSearchProfiles( &$profiles ) { ... }
Attach hook:
$wgHooks['SpecialSearchProfiles'][] = 'MyExtensionHooks::onSpecialSearchProfiles';
Called from: File(s): SpecialSearch.php

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

Details[edit]

  • &$profiles: profiles, which can be modified.