You are here

public function VariableRealmDefaultController::getEnabledVariables in Variable 7.2

Implementation of VariableRealmControllerInterface::getEnabledVariables().

Overrides VariableRealmControllerInterface::getEnabledVariables

1 method overrides VariableRealmDefaultController::getEnabledVariables()
VariableRealmUnionController::getEnabledVariables in variable_realm/variable_realm_union.class.inc
Implementation of VariableRealmControllerInterface::getEnabledVariables().

File

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

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function getEnabledVariables() {
  if ($this
    ->getInfo('select')) {
    return $this
      ->getRealmVariable('list', array());
  }
  else {

    // If the variable is not set it will default to all variables
    return $this
      ->getAvailableVariables();
  }
}