You are here

function apachesolr_commentsearch_comment in Apache Solr Search 6.2

Removes the comment from the index if the comment is deleted or unpublished.

apachesolr_comment() is responsible for updating the comment's node.

See also

apachesolr_comment()

File

contrib/apachesolr_commentsearch/apachesolr_commentsearch.module, line 120

Code

function apachesolr_commentsearch_comment($edit, $op) {
  switch ($op) {
    case 'delete':
    case 'unpublish':
      apachesolr_commentsearch_delete_comment_from_index($edit);
      break;
  }
}