You are here

function variable_group in Variable 6

Get variable group information

3 calls to variable_group()
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
variable_build_variable in ./variable.inc
Build single variable

File

./variable.module, line 202
Variable API module

Code

function variable_group($name = NULL) {
  $groups =& variable_static('variable_group_info');
  if (!isset($groups)) {
    variable_include();
    $groups = variable_build_groups();
  }
  if ($name) {
    return isset($groups[$name]) ? $groups[$name] : NULL;
  }
  else {
    return $groups;
  }
}