You are here

public function VariableRealmDefaultController::enable in Variable 7.2

Implementation of VariableRealmControllerInterface::enable().

Overrides VariableRealmControllerInterface::enable

File

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

Class

VariableRealmDefaultController
Base class, keeps static list of variables.

Code

public function enable($realm_key = NULL) {
  if (!isset($this->current_key)) {
    return $this->current_key = isset($realm_key) ? $realm_key : $this
      ->getRequestKey();
  }
}