function hook_service_links_alter in Service links 7.2
Same name and namespace in other branches
- 6.2 service_links.api.php \hook_service_links_alter()
Allows alteration of the Service Links.
Parameters
$links: The constructed array of service links.
1 invocation of hook_service_links_alter()
- service_links_get_links in ./
service_links.module - Discover all available service links by invoking hook_service_links().
File
- ./
service_links.api.php, line 79 - Provides documentation for the Service Links API.
Code
function hook_service_links_alter(&$links) {
if (isset($links['myservice'])) {
// Change the icon of MyService.
$links['myservice']['icon'] = 'http://drupal.org/misc/favicon.ico';
}
}