function theme_video_formatter_imagecache in Video 6.4
Same name and namespace in other branches
- 6.5 video_formatter.inc \theme_video_formatter_imagecache()
1 string reference to 'theme_video_formatter_imagecache'
- video_theme in ./
video.module - Implementation of hook_theme().
File
- ./
video_formatter.inc, line 264 - Video formatter hooks and callbacks.
Code
function theme_video_formatter_imagecache($element) {
// Inside a view $element may contain NULL data. In that case, just return.
if (empty($element['#item']['fid'])) {
return '';
}
// Extract the preset name from the formatter name.
list($namespace, $theme_function) = explode('__', $element['#formatter'], 2);
if ($preset = imagecache_preset_by_name($namespace)) {
$element['imagecache_preset'] = $namespace;
}
//return $theme_function;
return theme('video_formatter_' . $theme_function, $element, TRUE);
}