function theme_sld_group_image_and_text in Service links 6.2
Same name and namespace in other branches
- 7.2 plugins/service_links_displays.module \theme_sld_group_image_and_text()
Apply the Image and Text format to the field Service Links Group.
File
- plugins/
service_links_displays.module, line 173 - Custom Service Links field for Displays.
Code
function theme_sld_group_image_and_text($fields) {
if (service_links_show($fields['object']) && user_access('access service links')) {
$services = array_filter(variable_get('service_links_displays', array()));
$options = array(
'style' => SERVICE_LINKS_STYLE_IMAGE_AND_TEXT,
'link_show' => $services,
);
return theme('service_links_block_format', service_links_render($fields['object'], FALSE, $options), SERVICE_LINKS_STYLE_IMAGE);
}
}