You are here

function theme_sld_single_image_and_text in Service links 6.2

Same name and namespace in other branches
  1. 7.2 plugins/service_links_displays.module \theme_sld_single_image_and_text()

Apply the Image and Text format to a single Service.

File

plugins/service_links_displays.module, line 115
Custom Service Links field for Displays.

Code

function theme_sld_single_image_and_text($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_AND_TEXT);
    if (!empty($items)) {
      return implode($items);
    }
  }
}