You are here

function apachesolr_update_6006 in Apache Solr Search 6

Same name and namespace in other branches
  1. 6.2 apachesolr.install \apachesolr_update_6006()

Move excluded comment types into a new variable.

File

./apachesolr.install, line 272
Install and related hooks for apachesolr_search.

Code

function apachesolr_update_6006() {
  $exclude_comment_types = variable_get('apachesolr_exclude_comments_types', NULL);
  if (is_array($exclude_comment_types)) {
    $exclude = array();
    foreach ($exclude_comment_types as $type) {
      $exclude[$type]['comment'] = TRUE;
    }
    variable_set('apachesolr_exclude_nodeapi_types', $exclude);
  }
  variable_del('apachesolr_exclude_comments_types');
  return array();
}