function variable_list_group in Variable 7
Same name and namespace in other branches
- 6 variable.module \variable_list_group()
- 7.2 variable.inc \variable_list_group()
List variables for a group
3 calls to variable_list_group()
- variable_admin_page_group in variable_admin/
variable_admin.inc - Variable overview, by group
- variable_example_page_list in variable_example/
variable_example.module - Variable example realm page.
- variable_group_form in ./
variable.module - Form for group variables
File
- ./
variable.inc, line 180 - Variable API module. Extended API.
Code
function variable_list_group($group) {
$list = array();
foreach (variable_get_info() as $name => $variable) {
if ($variable['group'] == $group) {
$list[$name] = $variable;
}
}
return $list;
}