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