You are here

function emvideo_youtube_video in Embedded Media Field 6

hook emvideo_PROVIDER_video this actually displays the full/normal-sized video we want, usually on the default page view

Parameters

$code: the video code for the video to embed @param $width the width to display the video @param $height the height to display the video @param $field the field info from the requesting node @param $item the actual content from the field @return the html of the embedded video

File

contrib/emvideo/providers/youtube.inc, line 616
This include processes youtube.com media files for use by emfield.module.

Code

function emvideo_youtube_video($code, $width, $height, $field, $item, $node, $autoplay, $options = array()) {
  $options['item'] = $item;
  $options['node'] = $node;
  $output = theme('emvideo_youtube_flash', $code, $width, $height, $autoplay, $options);
  return $output;
}