You are here

function apachesolr_uninstall in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 8 apachesolr.install \apachesolr_uninstall()
  2. 5.2 apachesolr.install \apachesolr_uninstall()
  3. 5 apachesolr.install \apachesolr_uninstall()
  4. 6.3 apachesolr.install \apachesolr_uninstall()
  5. 6 apachesolr.install \apachesolr_uninstall()
  6. 7 apachesolr.install \apachesolr_uninstall()

Implementation of hook_uninstall().

File

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

Code

function apachesolr_uninstall() {
  variable_del('apachesolr_host');
  variable_del('apachesolr_port');
  variable_del('apachesolr_path');
  variable_del('apachesolr_rows');
  variable_del('apachesolr_facet_show_children');
  variable_del('apachesolr_facet_query_limits');
  variable_del('apachesolr_facet_query_limit_default');
  variable_del('apachesolr_site_hash');
  variable_del('apachesolr_index_last');
  variable_del('apachesolr_mlt_blocks');
  variable_del('apachesolr_cron_limit');
  variable_del('apachesolr_enabled_facets');
  variable_del('apachesolr_exclude_nodeapi_types');

  // Remove tables.
  drupal_uninstall_schema('apachesolr');

  // Remove blocks.
  db_query('DELETE FROM {blocks} WHERE module = "apachesolr"');
}