You are here

function apachesolr_uninstall in Apache Solr Search 6.3

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 apachesolr.install \apachesolr_uninstall()
  5. 6.2 apachesolr.install \apachesolr_uninstall()
  6. 7 apachesolr.install \apachesolr_uninstall()

Implements hook_uninstall(). @todo : Remove the blocks with a query

File

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

Code

function apachesolr_uninstall() {

  // Remove variables.
  variable_del('apachesolr_default_environment');
  variable_del('apachesolr_rows');
  variable_del('apachesolr_site_hash');
  variable_del('apachesolr_index_last');
  variable_del('apachesolr_search_mlt_blocks');
  variable_del('apachesolr_cron_limit');
  variable_del('apachesolr_failure');
  variable_del('apachesolr_index_updated');
  variable_del('apachesolr_read_only');
  variable_del('apachesolr_set_nodeapi_messages');
  variable_del('apachesolr_last_optimize');
  variable_del('apachesolr_update_from_6303');

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

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