< Manual:Hooks
| SpecialSearchProfiles | |
|---|---|
| Available from version 1.16.0 Allows modification of search profiles. | |
| Define function: | public static function onSpecialSearchProfiles( &$profiles ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"SpecialSearchProfiles": "MyExtensionHooks::onSpecialSearchProfiles"
}
}
|
| Called from: | File(s): specials/SpecialSearch.php |
| Interface: | SpecialSearchProfilesHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialSearchProfiles extensions.
Details
- &$profiles: profiles, which can be modified.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.