Implements hook_field_attach_presave().

File

./exif.module, line 449

Code

function exif_field_attach_presave($obj_type, $object) {
    // Calculate the value for each metadata field so they can be stored
    // correctly.
    if ($obj_type == 'node' || $obj_type == 'file') {
        $shouldUpdateMetadata = variable_get('exif_update', TRUE);
        _exif_node_insert_update($obj_type, $object, $shouldUpdateMetadata);
    }
}