You are here

function variable_list_group in Variable 6

Same name and namespace in other branches
  1. 7.2 variable.inc \variable_list_group()
  2. 7 variable.inc \variable_list_group()

List variables for a group

1 call to variable_list_group()
variable_group_form in ./variable.module
Form for group variables

File

./variable.module, line 336
Variable API module

Code

function variable_list_group($group) {
  $list = array();
  foreach (variable_info() as $name => $variable) {
    if ($variable['group'] == $group) {
      $list[$name] = $variable;
    }
  }
  return $list;
}