function variable_realm_get_variable_options in Variable 7
Get options (allowed variables) for realm.
2 calls to variable_realm_get_variable_options()
- variable_realm_get_variable_list in variable_realm/
variable_realm.module - Get list of variable names that may be set for this realm.
- variable_realm_select_variables_form in variable_realm/
variable_realm.form.inc - Select variables for realm.
File
- variable_realm/
variable_realm.module, line 122 - Variable API module - Realms
Code
function variable_realm_get_variable_options($realm_name) {
$info = variable_realm_info($realm_name);
return !empty($info['options']) ? $info['options'] : array_keys(variable_get_info());
}