function theme_service_links_block_format in Service links 6.2
Same name and namespace in other branches
- 5 service_links.module \theme_service_links_block_format()
- 6 service_links.module \theme_service_links_block_format()
- 7.2 service_links.theme.inc \theme_service_links_block_format()
Format the items shown in one of the provided block.
5 theme calls to theme_service_links_block_format()
- service_links_block in ./
service_links.module - Implementation of hook_block().
- service_links_nodeapi in ./
service_links.module - Implementation of hook_nodeapi().
- 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 109 - Theme functions used by Service Links.
Code
function theme_service_links_block_format($items, $style = SERVICE_LINKS_STYLE_IMAGE_AND_TEXT) {
if (empty($items)) {
return;
}
switch ($style) {
case SERVICE_LINKS_STYLE_IMAGE:
$output = implode(' ', $items);
break;
default:
$output = theme('item_list', array_values($items));
break;
}
return '<div class="service-links">' . $output . '</div>';
}