function theme_link_image_formatter_imagecache_linked in Link Image Formatter 6
Theme function for 'image' link imagecache field formatter linked to node.
1 string reference to 'theme_link_image_formatter_imagecache_linked'
- link_image_theme in ./
link_image.module - Implements hook_theme().
File
- ./
link_image.theme.inc, line 109
Code
function theme_link_image_formatter_imagecache_linked($element) {
$item = $element['#item'];
if (empty($item['url'])) {
return;
}
$style = 'linked';
$class = "link-image link-image-{$style} link-image-{$element['#formatter']}";
$node = $element['#node'];
$path = empty($node->nid) ? '' : 'node/' . $node->nid;
return l(theme('link_image_formatter_imagecache_default', $element, FALSE), $path, array(
'attributes' => array(
'class' => $class,
),
'html' => TRUE,
));
}