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