function theme_video_formatter_video_nonodelink in Video 6.5
Same name and namespace in other branches
- 6.4 video_formatter.inc \theme_video_formatter_video_nonodelink()
Renders the video thumbnail with no inbuilt node link.
File
- ./
video_formatter.inc, line 59 - 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;
}