function theme_sld_group_image_and_text in Service links 7.2
Same name and namespace in other branches
- 6.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 192 - Custom Service Links field for Displays.
Code
function theme_sld_group_image_and_text($variables) {
$node = $variables['entity'];
if (service_links_show($node) && 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', array(
'items' => service_links_render($node, FALSE, $options),
'style' => SERVICE_LINKS_STYLE_IMAGE,
));
}
}