You are here

public function VariableRealmDefaultController::getCurrentVariables in Variable 7.2

Implementation of VariableRealmControllerInterface::getCurrentVariables().

Overrides VariableRealmControllerInterface::getCurrentVariables

File

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

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function getCurrentVariables() {
  if ($store = $this
    ->getCurrentStore()) {
    return $store
      ->variable_list();
  }
  else {
    return array();
  }
}