function theme_video_formatter_video_thumbnail in Video 6.5
Same name and namespace in other branches
- 6.4 video_formatter.inc \theme_video_formatter_video_thumbnail()
Renders the video thumbnail.
File
- ./
video_formatter.inc, line 77 - 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);
}