function theme_sld_single_image in Service links 6.2
Same name and namespace in other branches
- 7.2 plugins/service_links_displays.module \theme_sld_single_image()
Apply the Image format to a single Service.
File
- plugins/
service_links_displays.module, line 102 - Custom Service Links field for Displays.
Code
function theme_sld_single_image($fields) {
if (service_links_show($fields['object']) && user_access('access service links')) {
$service_id = str_replace('service_links_displays_', '', $fields['key']);
$items = service_links_render_some($service_id, $fields['object'], FALSE, SERVICE_LINKS_STYLE_IMAGE);
if (!empty($items)) {
return implode($items);
}
}
}