function entity_translation_field_attach_delete in Entity Translation 7
Implements hook_field_attach_delete().
File
- ./
entity_translation.module, line 1180
Code
function entity_translation_field_attach_delete($entity_type, $entity) {
if (entity_translation_enabled($entity_type, $entity)) {
$handler = entity_translation_get_handler($entity_type, $entity);
$handler
->removeTranslations();
$handler
->saveTranslations();
}
}