You are here

function variable_admin_group_list in Variable 7

Same name and namespace in other branches
  1. 7.2 variable_admin/variable_admin.inc \variable_admin_group_list()

Build list of variables for group

Return value

Renderable array

2 calls to variable_admin_group_list()
variable_admin_page_group in variable_admin/variable_admin.inc
Variable overview, by group
variable_admin_page_module in variable_admin/variable_admin.inc
Variable overview, by group

File

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

Code

function variable_admin_group_list($variables) {
  $list = array();
  foreach ($variables as $name => $variable) {
    $type = variable_get_type($variable['type']);
    $list[$name] = array(
      l($variable['title'], 'admin/config/system/variable/edit/' . $name),
      $type['title'],
      variable_format_value($variable),
    );
  }
  return array(
    '#theme' => 'table',
    '#rows' => $list,
  );
}