You are here

function field_defaults_entity_presave in Field Defaults 7.2

Same name and namespace in other branches
  1. 8 field_defaults.module \field_defaults_entity_presave()

Implements hook_entity_presave().

File

./field_defaults.module, line 43
field_defaults.module

Code

function field_defaults_entity_presave($entity, $type) {
  if (variable_get('field_defaults_retain_updated', 1) && isset($entity->original->changed)) {
    $entity->changed = $entity->original->changed;
  }
}