You are here

function entity_translation_field_attach_delete_revision in Entity Translation 7

Implements hook_field_attach_delete_revision().

File

./entity_translation.module, line 1191

Code

function entity_translation_field_attach_delete_revision($entity_type, $entity) {
  if (entity_translation_enabled($entity_type, $entity)) {
    $handler = entity_translation_get_handler($entity_type, $entity);
    $handler
      ->removeRevisionTranslations();
    $handler
      ->saveTranslations();
  }
}