You are here

function apachesolr_attachments_field_attach_insert in Apache Solr Attachments 7

Same name and namespace in other branches
  1. 6.3 apachesolr_attachments.module \apachesolr_attachments_field_attach_insert()

Hook into the field operations

  • we want to save the same data in a shadow copy table for easier indexing.
  • We do not delete the file / media entity when its usage count goes to 0 but instead we set status to 0.
  • This is meant to make the backport to drupal 6 easier

File

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

Code

function apachesolr_attachments_field_attach_insert($parent_entity_type, $parent_entity) {
  apachesolr_attachments_field_attach_update($parent_entity_type, $parent_entity);
}