You are here

public function VariableRealmDefaultController::getRealmVariable in Variable 7.2

Implementation of VariableRealmControllerInterface::getRealmVariable().

Overrides VariableRealmControllerInterface::getRealmVariable

2 calls to VariableRealmDefaultController::getRealmVariable()
VariableRealmDefaultController::getDefaultWeight in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::getWeight().
VariableRealmDefaultController::getEnabledVariables in variable_realm/variable_realm.class.inc
Implementation of VariableRealmControllerInterface::getEnabledVariables().

File

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

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function getRealmVariable($name, $default = NULL) {
  return variable_get('variable_realm_' . $name . '_' . $this->realm_name, $default);
}