function emvideo_zzz_custom_url_rss in Embedded Media Field 6.3
Same name and namespace in other branches
- 6 contrib/emvideo/providers/zzz_custom_url.inc \emvideo_zzz_custom_url_rss()
hook emfield_PROVIDER_rss
File
- contrib/
emvideo/ providers/ zzz_custom_url.inc, line 92 - This is an include file used by emfield.module.
Code
function emvideo_zzz_custom_url_rss($item, $teaser = NULL) {
if ($item['value']) {
if ($item['data']['emvideo_zzz_custom_url_data_version'] >= 1) {
$data = $item['data'];
}
else {
$data = emvideo_zzz_custom_url_data(NULL, $item);
}
$file = array();
if ($data['size'] > 0) {
$file['filepath'] = $data['url'];
$file['filesize'] = $data['size'];
$file['filemime'] = $data['mime'];
}
return $file;
}
}