You are here

function variable_realm_del in Variable 7.2

Same name and namespace in other branches
  1. 7 variable_realm/variable_realm.module \variable_realm_del()

Delete variable from realm

3 calls to variable_realm_del()
drush_variable_realm_del in variable_realm/variable_realm.drush.inc
Drush command callback. Delete realm's variables.
VariableRealmDefaultController::deleteVariable in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::deleteVariable().
variable_realm_variable_settings_form_submit in variable_realm/variable_realm.form.inc
Save realm variables and remove them from form.

File

variable_realm/variable_realm.module, line 267
Variable API module - Realms

Code

function variable_realm_del($realm, $key, $name, $rebuild = TRUE) {
  if ($store = variable_realm($realm, $key)) {
    $store
      ->variable_del($name);
    if ($rebuild) {
      variable_realm_refresh($realm, $key, $name);
    }
  }
}