function theme_emthumb_imagecache_formatter_imagelink in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emthumb/emthumb.theme.inc \theme_emthumb_imagecache_formatter_imagelink()
- 6.2 contrib/emthumb/emthumb.theme.inc \theme_emthumb_imagecache_formatter_imagelink()
Returns the imagecache image linked to the original image.
1 string reference to 'theme_emthumb_imagecache_formatter_imagelink'
- emthumb_theme in contrib/
emthumb/ emthumb.module - Implementation of hook_theme().
File
- contrib/
emthumb/ emthumb.theme.inc, line 27 - Theme functions for the Embedded Media Thumbnail module.
Code
function theme_emthumb_imagecache_formatter_imagelink($element) {
$options = _emthumb_formatter_theme_helper($element);
$thumbnail = _emthumb_imagecache_formatter_default($element);
$options['return_url'] = $options['raw'] = TRUE;
$original = '';
switch ($options['module']) {
case 'emvideo':
$original = theme('emvideo_video_thumbnail', $options['field'], $options['item'], $options['formatter'], $options['node'], TRUE, $options);
break;
}
return l($thumbnail, $original, array(
'html' => TRUE,
));
}