function theme_sld_single_text in Service links 7.2
Same name and namespace in other branches
- 6.2 plugins/service_links_displays.module \theme_sld_single_text()
Apply the Text format to a single Service.
File
- plugins/
service_links_displays.module, line 88 - Custom Service Links field for Displays.
Code
function theme_sld_single_text($variables) {
$node = $variables['entity'];
$service_id = $variables['properties']['key'];
if (service_links_show($node) && user_access('access service links')) {
$items = service_links_render_some($service_id, $node, FALSE, SERVICE_LINKS_STYLE_TEXT);
if (!empty($items)) {
return implode($items);
}
}
}