You are here

function exif_get_default_settings in Exif 5

Return an array with all the valid tags, with some useful default settings.

2 calls to exif_get_default_settings()
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 252

Code

function exif_get_default_settings() {
  $tags = exif_get_valid_tags();
  $tags[PelIfd::EXIF . '_' . PelTag::DATE_TIME_ORIGINAL]->status = 1;
  $tags[PelIfd::EXIF . '_' . PelTag::DATE_TIME_ORIGINAL]->weight = -10;
  $tags[PelIfd::IFD0 . '_' . PelTag::MODEL]->status = 1;
  $tags[PelIfd::IFD0 . '_' . PelTag::MODEL]->weight = -8;
  $tags[PelIfd::EXIF . '_' . PelTag::FOCAL_LENGTH]->status = 1;
  $tags[PelIfd::EXIF . '_' . PelTag::FOCAL_LENGTH]->weight = -6;
  $tags[PelIfd::EXIF . '_' . PelTag::APERTURE_VALUE]->status = 1;
  $tags[PelIfd::EXIF . '_' . PelTag::APERTURE_VALUE]->weight = -4;
  $tags[PelIfd::EXIF . '_' . PelTag::EXPOSURE_TIME]->status = 1;
  $tags[PelIfd::EXIF . '_' . PelTag::EXPOSURE_TIME]->weight = -2;
  $tags[PelIfd::EXIF . '_' . PelTag::ISO_SPEED_RATINGS]->status = 1;
  $tags[PelIfd::EXIF . '_' . PelTag::ISO_SPEED_RATINGS]->weight = 0;
  return $tags;
}