function apachesolr_search_uninstall in Apache Solr Search 6
Same name and namespace in other branches
- 8 apachesolr_search.install \apachesolr_search_uninstall()
- 5.2 apachesolr_search.install \apachesolr_search_uninstall()
- 6.3 apachesolr_search.install \apachesolr_search_uninstall()
- 6.2 apachesolr_search.install \apachesolr_search_uninstall()
- 7 apachesolr_search.install \apachesolr_search_uninstall()
Implementation of hook_uninstall(). Update to namespace tracking.
File
- ./
apachesolr_search.install, line 12 - Install and related hooks for apachesolr_search.
Code
function apachesolr_search_uninstall() {
variable_del('apachesolr_search_default_previous');
variable_del('apachesolr_search_spellcheck');
variable_del('apachesolr_search_taxonomy_links');
variable_del('apachesolr_search_taxonomy_previous');
variable_del('apachesolr_set_nodeapi_messages');
$stored = variable_get('apachesolr_index_last', array());
unset($stored['apachesolr_search']);
variable_set('apachesolr_index_last', $stored);
// Remove blocks.
db_query('DELETE FROM {blocks} WHERE module = "apachesolr_search"');
}