You are here

function theme_video_cck_video_video in Embedded Media Field 5

2 theme calls to theme_video_cck_video_video()
theme_video_cck_default in contrib/video_cck/video_cck.module
video_cck_thickbox in contrib/video_cck/video_cck.module
Page callback for video-cck/thickbox/%node.

File

contrib/video_cck/video_cck.module, line 436

Code

function theme_video_cck_video_video($field, $item, $formatter, $node, $options = array()) {
  if ($item['value'] && $item['provider']) {
    $embed = $item['value'];
    $width = isset($options['width']) ? $options['width'] : (isset($field['widget']['video_width']) ? $field['widget']['video_width'] : variable_get('video_cck_default_video_width', VIDEO_CCK_DEFAULT_VIDEO_WIDTH));
    $height = isset($options['height']) ? $options['height'] : (isset($field['widget']['video_height']) ? $field['widget']['video_height'] : variable_get('video_cck_default_video_height', VIDEO_CCK_DEFAULT_VIDEO_HEIGHT));
    $autoplay = isset($options['autoplay']) ? $options['autoplay'] : $field['widget']['video_autoplay'];
    $options['node'] = $node;
    $output = module_invoke('emfield', 'include_invoke', 'video_cck', $item['provider'], 'video', $embed, $width, $height, $field, $item, $autoplay, $options);
  }
  return $output;
}