You are here

function emvideo_vimeo_preview in Media: Vimeo 6

hook emvideo_PROVIDER_video this actually displays the preview-sized video we want, commonly for the teaser

Parameters

$video_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

includes/providers/emvideo/vimeo.inc, line 118
media_vimeo/includes/providers/vimeo.inc Provide support for the Vimeo provider to the emfield.module.

Code

function emvideo_vimeo_preview($video_code, $width, $height, $field, $item, $node, $autoplay, $options = array()) {
  $options['width'] = isset($options['width']) ? $options['width'] : $width;
  $options['height'] = isset($options['height']) ? $options['height'] : $height;
  $options['autoplay'] = isset($options['autoplay']) ? $options['autoplay'] : $autoplay;
  return theme('media_vimeo', $video_code, $options);
}