You are here

function emaudio_custom_url_rss in Embedded Media Field 6

Same name and namespace in other branches
  1. 6.3 contrib/emaudio/providers/custom_url.inc \emaudio_custom_url_rss()

hook emfield_PROVIDER_rss

File

contrib/emaudio/providers/custom_url.inc, line 91
This is an include file used by emfield.module.

Code

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