You are here

function apachesolr_environment_variable_del in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.module \apachesolr_environment_variable_del()
  2. 6.3 apachesolr.module \apachesolr_environment_variable_del()

Get a named variable, or return the default.

See also

variable_del()

6 calls to apachesolr_environment_variable_del()
apachesolr_search_apachesolr_environment_delete in ./apachesolr_search.module
Implements hook_apachesolr_environment_delete().
apachesolr_search_bias_form_reset in ./apachesolr_search.admin.inc
apachesolr_search_facetapi_realm_settings_form_submit in ./apachesolr_search.module
Form submission handler for facetapi_realm_settings_form().
apachesolr_search_update_7006 in ./apachesolr_search.install
Remove all apachesolr_search env variables for show_facets if it is zero
apachesolr_update_7012 in ./apachesolr.install
Rename some variables and update the database tables

... See full list

1 string reference to 'apachesolr_environment_variable_del'
drush_apachesolr_solr_variable_delete in drush/apachesolr.drush.inc
Command callback. Delete a variable.

File

./apachesolr.module, line 1444
Integration with the Apache Solr search application.

Code

function apachesolr_environment_variable_del($env_id, $name) {
  apachesolr_environment_save_to_database($env_id);
  db_delete('apachesolr_environment_variable')
    ->condition('env_id', $env_id)
    ->condition('name', $name)
    ->execute();
  apachesolr_environments_clear_cache();
}