You are here

public function VariableRealmDefaultController::variable_add in Variable 7

Implementation of VariableRealmControllerInterface::variable_add().

Overrides VariableRealmControllerInterface::variable_add

File

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

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function variable_add($name, $value) {
  $this
    ->variable_init();
  $this->variables[$name] = $value;
}