You are here

public function VariableRealmDefaultController::deleteVariable in Variable 7.2

Implementation of VariableRealmControllerInterface::deleteVariable().

Overrides VariableRealmControllerInterface::deleteVariable

File

variable_realm/variable_realm.class.inc, line 423
Variable realm controller

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function deleteVariable($variable_name) {
  foreach ($this
    ->getAllKeys() as $key => $name) {
    variable_realm_del($this->realm_name, $key, $variable_name, FALSE);
  }
}