You are here

function _video_image_view in Video 6.2

Same name and namespace in other branches
  1. 5 plugins/video_image/video_image.module \_video_image_view()
  2. 6 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 409
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),
    );
  }
}