function emaudio_zzz_custom_url_rss in Embedded Media Field 5
hook emfield_PROVIDER_rss
File
- contrib/
emaudio/ providers/ zzz_custom_url.inc, line 78
Code
function emaudio_zzz_custom_url_rss($item, $teaser = NULL) {
if ($item['value']) {
if ($item['data']['emaudio_zzz_custom_url_data_version'] >= 1) {
$data = $item['data'];
}
else {
$data = emaudio_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;
}
}