You are here

public function VariableRealmDefaultController::variable_del in Variable 7

Delete single variable.

Parameters

$name: Variable name

Overrides VariableRealmControllerInterface::variable_del

1 call to VariableRealmDefaultController::variable_del()
VariableRealmGlobal::variable_del in variable_realm/variable_realm.class.inc
Delete single variable.
2 methods override VariableRealmDefaultController::variable_del()
VariableRealmGlobal::variable_del in variable_realm/variable_realm.class.inc
Delete single variable.
VariableStoreRealmController::variable_del in variable_store/variable_store.class.inc
Delete single variable.

File

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

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function variable_del($name) {
  $this
    ->variable_init();
  unset($this->variables[$name]);
}