You are here

function video_support_autoresolution in Video 5

Same name and namespace in other branches
  1. 6 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_submit in ./video.module
Implementation of hook submit
video_validate in ./video.module
Implementation of hook_validate

File

./video.module, line 1320
Display video in Quicktime MOV, Realmedia RM, Flash FLV & SWF, or Windows Media WMV formats.

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'];
}