You are here

function video_views_handler_field_video_image in Video 6

Same name and namespace in other branches
  1. 5 views_video.inc \video_views_handler_field_video_image()

Handler to render the preview image associated with a video

1 string reference to 'video_views_handler_field_video_image'
video_views_tables in ./views_video.inc
Implementation of hook_views_tables

File

./views_video.inc, line 226

Code

function video_views_handler_field_video_image($fieldinfo, $fielddata, $value, $data) {
  $node = node_load($data->nid);
  if ($node->iid && ($image = node_load($node->iid))) {
    $output = theme('video_image_teaser', $image, $node);
  }
  return $output;
}