function variable_realm_keys in Variable 7
Same name and namespace in other branches
- 7.2 variable_realm/variable_realm.module \variable_realm_keys()
Get keys for realm.
6 calls to variable_realm_keys()
- variable_realm_admin_realm_info in variable_realm_admin/
variable_realm_admin.pages.inc - Lists available realms.
- variable_realm_delete_variable in variable_realm/
variable_realm.module - Delete variable for all keys on realm.
- variable_realm_features_export_options in variable_realm/
variable_realm.features.inc - Implements hook_features_export_options().
- variable_realm_features_selection in variable_realm/
variable_realm.features.inc - Processes export data selections consistently.
- variable_realm_form_key_selector in variable_realm/
variable_realm.form.inc - Key selector for realm forms.
1 string reference to 'variable_realm_keys'
- _variable_realm_union_realm_keys in variable_realm_union/
variable_realm_union.variable.inc - Produce keys for union realm.
File
- variable_realm/
variable_realm.module, line 108 - Variable API module - Realms
Code
function variable_realm_keys($realm) {
$info = variable_realm_info($realm);
if (!empty($info['keys callback'])) {
$function = $info['keys callback'];
return $function($realm, $info);
}
else {
return isset($info['keys']) ? $info['keys'] : array();
}
}