You are here

function video_support_autoresolution in Video 6

Same name and namespace in other branches
  1. 5 video.module \video_support_autoresolution()
  2. 6.2 video.module \video_support_autoresolution()

Return true if the video support auto resolution

3 calls to video_support_autoresolution()
video_form in ./video.module
Hook, displays the contents of the node form page for creating and editing nodes.
video_presave in ./video.module
Implementation of hook submit
video_validate in ./video.module
Implementation of hook_validate

File

./video.module, line 1338
video.module

Code

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