You are here

function variable_admin_list in Variable 6

Print list of variables

2 calls to variable_admin_list()
variable_admin_page_modules in variable_admin/variable_admin.pages.inc
Variable overview, by module
variable_admin_page_overview in variable_admin/variable_admin.pages.inc
Variable overview, by group

File

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

Code

function variable_admin_list($list) {
  $header = array(
    t('Name'),
    t('Description'),
  );
  $rows = array();
  foreach ($list as $name => $variable) {
    $rows[] = array(
      l($variable['title'], 'admin/settings/variable/edit/' . $name),
      $variable['description'],
    );
  }
  return theme('table', $header, $rows);
}