function theme_video_formatter_video_nonodelink in Video 6.4
Same name and namespace in other branches
- 6.5 video_formatter.inc \theme_video_formatter_video_nonodelink()
File
- ./
video_formatter.inc, line 56 - Video formatter hooks and callbacks.
Code
function theme_video_formatter_video_nonodelink($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);
// return the themed image
$output = '<div class="popups video video-nonodelink video-' . $element['#field_name'] . '">';
$output .= theme('video_image', $thumbnail, $thumbnail->alt, $thumbnail->title, null, TRUE, $imagecache);
$output .= '</div>';
return $output;
}