You are here

function search_files_attachments_node_delete in Search Files 7.2

File

./search_files_attachments.module, line 279
Used to index files in attachments

Code

function search_files_attachments_node_delete($node) {
  $attach_file_list = _search_files_attachments_create_field_id_list($node->nid);
  db_delete('search_dataset')
    ->condition('sid', $attach_file_list, 'IN')
    ->execute();
}