function video_cck_livestream_thumbnail in Embedded Media Field 5
hook video_cck_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
- contrib/
video_cck/ providers/ livestream.inc, line 294 - This include processes livestream.com media files for use by emfield.module.
Code
function video_cck_livestream_thumbnail($field, $item, $formatter, $node, $width, $height) {
global $base_url;
global $base_path;
global $theme;
if ($item['data']['thumbnail']['url']) {
return $item['data']['thumbnail']['url'];
}
else {
return $base_url . $base_path . drupal_get_path('theme', $theme) . '/no-pre.png';
}
// Always return the larger image, since we're storing images locally.
// $tn = larger image
// return $tn;
}