You are here

function apachesolr_entity_insert in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.module \apachesolr_entity_insert()

Implements hook_entity_insert().

File

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

Code

function apachesolr_entity_insert($entity, $type) {

  // For our purposes there's really no difference between insert and update,
  // unless $entity->status == 0, then don't bother
  if (isset($entity->status) && $entity->status) {
    return apachesolr_entity_update($entity, $type);
  }
}