You are here

public function VariableRealmUnionController::variableRealmEnable in Variable 7.2

Implementation of VariableRealmHooks::variableRealmEnable()

Overrides VariableRealmHooks::variableRealmEnable

File

variable_realm/variable_realm_union.class.inc, line 108
Classes for Realm Union.

Class

VariableRealmUnionController
Default Realm Union class

Code

public function variableRealmEnable($realm_name, $realm_key) {

  // If this realm is enabled but not active, try to find a key.
  if ($this
    ->isEnabled() && !$this
    ->isActive() && $this
    ->isUnionRealm($realm_name) && ($union_key = $this
    ->getRequestKey())) {
    $this
      ->setKey($union_key);
  }
}