You are here

function _exif_get_exif in Exif 5

Fetch exif data.

1 call to _exif_get_exif()
exif_nodeapi in ./exif.module
Implementation of hook_nodeapi().

File

./exif.module, line 126

Code

function _exif_get_exif($fid) {
  $data = array();
  if ($result = db_query('SELECT * FROM {exif} WHERE fid = %d', $fid)) {
    while ($row = db_fetch_object($result)) {
      $data[$row->ifd][$row->tag] = $row->value;
    }
  }
  return $data;
}