You are here

function exif_field_attach_presave in Exif 7

implementation of hook_field_attach_presave.

Calculate the value for each metadata field so they can be stored correctly.

File

./exif.module, line 383

Code

function exif_field_attach_presave($obj_type, $object) {
  if ($obj_type == 'node' || $obj_type == 'file') {
    $shouldUpdateMetadata = variable_get('exif_update', TRUE);
    _exif_node_insert_update($obj_type, $object, $shouldUpdateMetadata);
  }
}