You are here

function taxonomy_entity_index_field_attach_delete_revision in Taxonomy Entity Index 7

Implements hook_field_attach_delete_revision().

File

./taxonomy_entity_index.module, line 44

Code

function taxonomy_entity_index_field_attach_delete_revision($entity_type, $entity) {
  list($entity_id, $revision_id) = entity_extract_ids($entity_type, $entity);
  db_delete('taxonomy_entity_index')
    ->condition('entity_type', $entity_type)
    ->condition('entity_id', $entity_id)
    ->condition('revision_id', $revision_id)
    ->execute();
}