You are here

function entity_translation_field_attach_presave in Entity Translation 7

Implements hook_field_attach_presave().

File

./entity_translation.module, line 1031

Code

function entity_translation_field_attach_presave($entity_type, $entity) {
  if (entity_translation_enabled($entity_type, $entity)) {
    entity_translation_sync($entity_type, $entity);
  }
}