function apachesolr_uninstall in Apache Solr Search 7
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 apachesolr.install \apachesolr_uninstall()
- 6.2 apachesolr.install \apachesolr_uninstall()
Implements hook_uninstall().
File
- ./
apachesolr.install, line 268 - 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_exclude_nodeapi_types');
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 blocks.
db_delete('block')
->condition('module', 'apachesolr')
->execute();
}