You are here

function apachesolr_attachments_nodeapi in Apache Solr Attachments 5

Same name and namespace in other branches
  1. 6 apachesolr_attachments.module \apachesolr_attachments_nodeapi()
  2. 6.2 apachesolr_attachments.module \apachesolr_attachments_nodeapi()

Implementation of hook_nodeapi().

For a search result: Parse the nid and fid for a search result for potential use later. For a delete: Remove all associated attachments from the Solr store.

File

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

Code

function apachesolr_attachments_nodeapi($node, $op) {
  switch ($op) {
    case 'delete':
      _asa_remove_attachments_from_index($node->nid);
      break;
  }
}