You are here

function apachesolr_search_update_7000 in Apache Solr Search 8

Same name and namespace in other branches
  1. 7 apachesolr_search.install \apachesolr_search_update_7000()

Various updates for Drupal 7.

File

./apachesolr_search.install, line 181
Install and related hooks for apachesolr_search.

Code

function apachesolr_search_update_7000() {
  $taxo_links = variable_get('apachesolr_search_taxonomy_links', 0);

  // TODO - enable the new contrib module?
  variable_del('apachesolr_search_taxonomy_links');

  // TODO - possibly rename block deltas, etc.
  $active = variable_get('search_active_modules', array(
    'node',
    'user',
  ));
  $active[] = 'apachesolr_search';
  variable_set('search_active_modules', array_unique($active));
  if (variable_get('apachesolr_search_make_default', 0)) {
    variable_set('search_default_module', 'apachesolr_search');
  }
  variable_del('apachesolr_search_make_default');
}