You are here

function variable_realm_del in Variable 7

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

Delete variable from realm

2 calls to variable_realm_del()
variable_realm_delete_variable in variable_realm/variable_realm.module
Delete variable for all keys on realm.
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 293
Variable API module - Realms

Code

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