You are here

function emvideo_vimeo_thumbnail in Media: Vimeo 6

hook emvideo_PROVIDER_thumbnail returns the external url for a thumbnail of a specific video TODO: make the args: ($video_code, $field, $item), with $field/$item provided if we need it, but otherwise simplifying things

Parameters

$field: the field of the requesting node @param $item the actual content of the field from the requesting node @return a URL pointing to the thumbnail

File

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

Code

function emvideo_vimeo_thumbnail($field, $item, $formatter, $node, $width, $height) {
  return media_vimeo_thumbnail_url($item['value']);
}