You are here

function _exif_get_valid_ifd_tags in Exif 5

1 call to _exif_get_valid_ifd_tags()
exif_get_valid_tags in ./exif.module
Helper function to return all the valid tags (well, at least those this module cares about).

File

./exif.module, line 283

Code

function _exif_get_valid_ifd_tags($ifd_id, $ifd) {
  $tags = array();
  $pel_tags = $ifd
    ->getValidTags();
  foreach ($pel_tags as $pel_tag) {
    $tag = new StdClass();
    $tag->ifd = $ifd_id;
    $tag->tag = $pel_tag;
    $tags["{$tag->ifd}_{$tag->tag}"] = $tag;
  }
  return $tags;
}