Manual:Hooks/OpenSearchUrls
From MediaWiki.org
| OpenSearchUrls | |
|---|---|
| Available from version 1.13.0 Called when constructing the OpenSearch description XML. Hooks can alter or append to the array of URLs for search & suggestion formats. |
|
*Define function: |
function fnMyHook( &$urls ) { ... }
|
*Attach hook: |
$wgHooks['OpenSearchUrls'][] = 'MyExtensionHooks::someExample'; |
| Called from: | opensearch_desc.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:OpenSearchUrls extensions.
[edit] Details
- &$urls: array of associative arrays with Url element attributes
