function apachesolr_uninstall in Apache Solr Search 6
Same name and namespace in other branches
- 8 apachesolr.install \apachesolr_uninstall()
- 5.2 apachesolr.install \apachesolr_uninstall()
- 5 apachesolr.install \apachesolr_uninstall()
- 6.3 apachesolr.install \apachesolr_uninstall()
- 6.2 apachesolr.install \apachesolr_uninstall()
- 7 apachesolr.install \apachesolr_uninstall()
Implementation of hook_uninstall().
File
- ./
apachesolr.install, line 139 - Install and related hooks for apachesolr_search.
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');
variable_del('apachesolr_failure');
variable_del('apachesolr_read_only');
// Remove tables.
drupal_uninstall_schema('apachesolr');
// Remove blocks.
db_query('DELETE FROM {blocks} WHERE module = "apachesolr"');
}