function theme_video_formatter_video_thumbnail in Video 6.4
Same name and namespace in other branches
- 6.5 video_formatter.inc \theme_video_formatter_video_thumbnail()
File
- ./
video_formatter.inc, line 75 - Video formatter hooks and callbacks.
Code
function theme_video_formatter_video_thumbnail($element, $imagecache = FALSE) {
// Inside a view $element may contain null data. In that case, just return.
if (empty($element['#item']['fid'])) {
return '';
}
//setup our thumbnail object
module_load_include('inc', 'video', '/includes/video_helper');
$video_helper = new video_helper();
$thumbnail = $video_helper
->thumbnail_object($element);
//get our themed image
return theme('video_image', $thumbnail, $thumbnail->alt, $thumbnail->title, '', TRUE, $imagecache);
}