You are here

function video_support_autoplaytime in Video 6

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

Return true if the video support auto playtime

2 calls to video_support_autoplaytime()
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

File

./video.module, line 1348
video.module

Code

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