You are here

function apachesolr_commentsearch_apachesolr_process_results in Apache Solr Search 6.2

File

contrib/apachesolr_commentsearch/apachesolr_commentsearch.module, line 83

Code

function apachesolr_commentsearch_apachesolr_process_results(&$results) {
  foreach ($results as $pos => $result) {
    if (isset($results[$pos]['extra']['comments'])) {
      unset($results[$pos]['extra']['comments']);
      unset($results[$pos]['extra']['cid']);
    }
  }
}