function theme_service_links_block_format in Service links 7.2
Same name and namespace in other branches
- 5 service_links.module \theme_service_links_block_format()
- 6.2 service_links.theme.inc \theme_service_links_block_format()
- 6 service_links.module \theme_service_links_block_format()
Format the items shown in one of the provided blocks.
5 theme calls to theme_service_links_block_format()
- service_links_block_view in ./
service_links.module - Implements hook_block_view().
- service_links_service_links_content_type_render in plugins/
content_types/ service_links.inc - Output function for the 'service_links' content type.
- theme_sld_group_image in plugins/
service_links_displays.module - Apply the Image format to the field Service Links Group.
- theme_sld_group_image_and_text in plugins/
service_links_displays.module - Apply the Image and Text format to the field Service Links Group.
- theme_sld_group_text in plugins/
service_links_displays.module - Apply the Text format to the field Service Links Group.
File
- ./
service_links.theme.inc, line 130 - Theme function used by Service Links.
Code
function theme_service_links_block_format($variables) {
$items = $variables['items'];
$style = $variables['style'];
if (empty($items)) {
return;
}
switch ($style) {
case SERVICE_LINKS_STYLE_IMAGE:
$output = implode(' ', $items);
break;
default:
$output = theme('item_list', array(
'items' => array_values($items),
));
break;
}
return '<div class="service-links">' . $output . '</div>';
}