You are here

function apachesolr_entity_delete in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.module \apachesolr_entity_delete()
  2. 7 apachesolr.module \apachesolr_entity_delete()

Implements hook_entity_delete().

1 call to apachesolr_entity_delete()
apachesolr_entity_update in ./apachesolr.module
Implements hook_entity_update().

File

./apachesolr.module, line 2024
Integration with the Apache Solr search application.

Code

function apachesolr_entity_delete($entity, $entity_type) {
  $env_id = apachesolr_default_environment();

  // Delete the entity's entry from a fictional table of all entities.
  list($entity_id) = entity_extract_ids($entity_type, $entity);
  apachesolr_remove_entity($env_id, $entity_type, $entity_id);
}