You are here

function variable_admin_build_groups in Variable 6

Build variable groups

2 calls to variable_admin_build_groups()
variable_admin_page_group in variable_admin/variable_admin.pages.inc
Variable group, edit all variables
variable_admin_page_overview in variable_admin/variable_admin.pages.inc
Variable overview, by group

File

variable_admin/variable_admin.pages.inc, line 45
Variable API module - Admin UI

Code

function variable_admin_build_groups() {
  $groups = array();
  foreach (variable_info() as $name => $variable) {
    if (empty($variable['parent'])) {
      $groups[$variable['group']][$name] = $variable;
    }
  }
  return $groups;
}