function variable_realm_get in Variable 7.2
Same name and namespace in other branches
- 7 variable_realm/variable_realm.module \variable_realm_get()
Get value from realm
5 calls to variable_realm_get()
- drush_variable_realm_get in variable_realm/variable_realm.drush.inc 
- Drush command callback. List realm's variables.
- VariableStoreTestCase::testVariableStoreAPI in variable_store/variable_store.test 
- Test that all core modules can be enabled, disabled and uninstalled.
- variable_realm_edit_variables_form_submit in variable_realm/variable_realm.form.inc 
- Edit variables for realm.
- variable_realm_global_get in variable_realm/variable_realm.module 
- Get original global variable
- variable_realm_set in variable_realm/variable_realm.module 
- Set value for realm variable.
File
- variable_realm/variable_realm.module, line 211 
- Variable API module - Realms
Code
function variable_realm_get($realm, $key, $name = NULL, $default = NULL) {
  if ($store = variable_realm($realm, $key)) {
    return $store
      ->variable_get($name, $default);
  }
}