You are here

function variable_realm_status in Variable 7.2

Same name and namespace in other branches
  1. 7 variable_realm/variable_realm.module \variable_realm_status()

Set / get current realm values.

Parameters

$realm: Optional realm name

$key: Optional realm value to set a status for this realm. FALSE to disable this realm.

4 calls to variable_realm_status()
variable_realm_add in variable_realm/variable_realm.module
Set values for variable realm
variable_realm_boot in variable_realm/variable_realm.module
Implements hook_boot()
variable_realm_refresh in variable_realm/variable_realm.module
Refresh variable value.
variable_realm_switch in variable_realm/variable_realm.module
Switch current variable realms.

File

variable_realm/variable_realm.module, line 361
Variable API module - Realms

Code

function variable_realm_status($realm, $key = NULL) {
  if ($realm_controller = variable_realm_controller($realm)) {
    if (isset($key)) {
      $realm_controller
        ->setKey($key);
    }
    return $realm_controller
      ->getKey();
  }
}