You are here

function _exif_compare_tags in Exif 5

2 string references to '_exif_compare_tags'
exif_get_enabled_tags in ./exif.module
Return an array containing only the tags that were enabled.
exif_load_settings in ./exif.module
Return an array with all the valid tags and their settings.

File

./exif.module, line 295

Code

function _exif_compare_tags($a, $b) {
  $status = $b->status - $a->status;

  // Separate enabled from disabled.
  if ($status) {
    return $status;
  }

  // Enabled tags
  if ($a->status) {
    $weight = $a->weight - $b->weight;
    if ($weight) {
      return $weight;
    }
    return $a->ifd - $b->ifd;
  }
  else {
    return $a->ifd - $b->ifd;
  }
}