You are here

function video_cck_zzz_custom_url_rss in Embedded Media Field 5

hook emfield_PROVIDER_rss

File

contrib/video_cck/providers/zzz_custom_url.inc, line 81

Code

function video_cck_zzz_custom_url_rss($item, $teaser = NULL) {
  if ($item['value']) {
    if ($item['data']['video_cck_zzz_custom_url_data_version'] >= 1) {
      $data = $item['data'];
    }
    else {
      $data = video_cck_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;
  }
}