You are here

function apachesolr_environment_variable_del in Apache Solr Search 8

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

Get a named variable, or return the default.

See also

variable_del()

5 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
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 1424
Integration with the Apache Solr search application.

Code

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