You are here

function _exif_get_image_fid in Exif 7

1 call to _exif_get_image_fid()
_exif_get_file_uri_and_language in ./exif.module

File

./exif.module, line 468

Code

function _exif_get_image_fid($field, $language) {
  $fids = array();
  if (is_array($field[$language]) && !empty($field[$language])) {
    foreach ($field[$language] as $index => $value) {
      if (is_array($value)) {
        $fids[] = $value['fid'];
      }
    }
  }
  else {
    return FALSE;
  }
  return $fids;
}