You are here

function apachesolr_update_6006 in Apache Solr Search 6.2

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

Move excluded comment types into a new variable.

File

./apachesolr.install, line 270
Install, update and uninstall functions for the apachesolr module.

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();
}