You are here

function video_image_is_autothumbable in Video 6.2

Same name and namespace in other branches
  1. 5 plugins/video_image/video_image.module \video_image_is_autothumbable()
  2. 6 plugins/video_image/video_image.module \video_image_is_autothumbable()

Return true if the video support authothumbnailing

3 calls to video_image_is_autothumbable()
video_image_form_alter in plugins/video_image/video_image.module
Implementation of hook_form_alter()
_video_image_prepare in plugins/video_image/video_image.module
_video_image_presave in plugins/video_image/video_image.module

File

plugins/video_image/video_image.module, line 130
Enable image support for video module.

Code

function video_image_is_autothumbable($node) {
  $info = video_get_type_info($node->vtype);
  $has_hook = module_hook('video_' . $node->vtype, 'v_auto_thumbnail');
  return $has_hook && isset($info[$node->vtype]['#autothumbable']) && $info[$node->vtype]['#autothumbable'];
}