function apachesolr_uninstall in Apache Solr Search 5.2
Same name and namespace in other branches
- 8 apachesolr.install \apachesolr_uninstall()
- 5 apachesolr.install \apachesolr_uninstall()
- 6.3 apachesolr.install \apachesolr_uninstall()
- 6 apachesolr.install \apachesolr_uninstall()
- 6.2 apachesolr.install \apachesolr_uninstall()
- 7 apachesolr.install \apachesolr_uninstall()
Implementation of hook_uninstall().
File
- ./
apachesolr.install, line 148 - 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_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');
// Remove tables.
if (db_table_exists('apachesolr_search_node')) {
db_query("DROP TABLE {apachesolr_search_node}");
}
// Remove blocks.
db_query('DELETE FROM {blocks} WHERE module = "apachesolr"');
}