function emvideo_flickr_sets_thumbnail in Media: Flickr 6
hook emvideo_PROVIDER_thumbnail returns the external url for a thumbnail of a specific video TODO: make the args: ($embed, $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
- providers/
emvideo/ flickr_sets.inc, line 378 - This include processes flickr.com photosets for use by emfield/emvideo.module.
Code
function emvideo_flickr_sets_thumbnail($field, $item, $formatter, $node, $width, $height, $options = array()) {
if ($item['value']) {
return media_flickr_photo_url($item['data']['first_photo'], $width, $height);
}
}