function video_cck_youtube_rss in Embedded Media Field 5
File
- contrib/
video_cck/ providers/ youtube.inc, line 181
Code
function video_cck_youtube_rss($item, $teaser = NULL) {
if ($item['value']) {
if ($item['data']['video_cck_youtube_data_version'] >= 1) {
$data = $item['data'];
}
else {
$data = video_cck_youtube_data(NULL, $item);
}
$file = array();
if (is_array($data['flash'])) {
$file['filepath'] = $data['flash']['url'];
$file['filesize'] = $data['flash']['size'];
$file['filemime'] = $data['flash']['mime'];
}
$file['thumbnail']['filepath'] = $data['thumbnail']['url'];
return $file;
}
}