You are here

function apachesolr_attachments_entity_update in Apache Solr Attachments 7

Same name and namespace in other branches
  1. 6.3 apachesolr_attachments.module \apachesolr_attachments_entity_update()
1 call to apachesolr_attachments_entity_update()
apachesolr_attachments_entity_insert in ./apachesolr_attachments.module

File

./apachesolr_attachments.module, line 534
Provides a file attachment search implementation for use with the Apache Solr module

Code

function apachesolr_attachments_entity_update($entity, $type) {
  module_load_include('inc', 'apachesolr_attachments', 'apachesolr_attachments.index');
  apachesolr_attachments_clean_index_table();
  if ($type == 'file') {
    _apachesolr_attachments_update_parent_entity($entity, $type);
  }
}