function _video_image_view in Video 5
Same name and namespace in other branches
- 6 plugins/video_image/video_image.module \_video_image_view()
- 6.2 plugins/video_image/video_image.module \_video_image_view()
1 call to _video_image_view()
- video_image_nodeapi in plugins/
video_image/ video_image.module - Implementation of hook_nodeapi()
File
- plugins/
video_image/ video_image.module, line 300 - Enable image support for video module.
Code
function _video_image_view(&$node, $teaser) {
if (is_array($node->tempimage['fids']) && $node->tempimage['fids']['_original']) {
$image = _video_image_temp_image_load(array_values($node->tempimage['fids']));
}
else {
if ($node->iid) {
$image = node_load($node->iid);
}
else {
$image = NULL;
// this is for backward compatibility
}
}
if ($teaser) {
$node->content['video_image_thumbnail'] = array(
'#value' => theme('video_image_teaser', $image, $node),
);
}
}