You are here

function apachesolr_entity_delete in Apache Solr Search 6.3

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

Helper function for the hook_nodeapi().

See also

apachesolr_node_delete().

2 calls to apachesolr_entity_delete()
apachesolr_entity_update in ./apachesolr.module
Helper function for the hook_nodeapi().
apachesolr_nodeapi in ./apachesolr.module
Implements hook_nodeapi().

File

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

Code

function apachesolr_entity_delete($entity, $entity_type) {
  $env_id = apachesolr_default_environment();
  module_load_include('inc', 'apachesolr', 'apachesolr.index');
  apachesolr_remove_entity($env_id, $entity_type, $entity->nid);
}