function apachesolr_search_apachesolr_environment_delete in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr_search.module \apachesolr_search_apachesolr_environment_delete()
- 6.3 apachesolr_search.module \apachesolr_search_apachesolr_environment_delete()
Implements hook_apachesolr_environment_delete().
File
- ./
apachesolr_search.module, line 1566 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_apachesolr_environment_delete($server) {
db_update('apachesolr_search_page')
->fields(array(
'env_id' => '',
))
->condition('env_id', $server['env_id'])
->execute();
apachesolr_environment_variable_del($server['env_id'], 'apachesolr_search_show_facets');
apachesolr_environment_variable_del($server['env_id'], 'apachesolr_search_facet_pages');
menu_rebuild();
}