You are here

function theme_config_perms_form in Custom Permissions 6.2

Same name and namespace in other branches
  1. 7.2 config_perms.admin.inc \theme_config_perms_form()

Administration form theme function

1 theme call to theme_config_perms_form()
config_perms_admin_form in ./config_perms.admin.inc
Administration form

File

./config_perms.admin.inc, line 74
Admin pages

Code

function theme_config_perms_form($form) {
  $header = array(
    t('Enabled'),
    t('Delete'),
    t('Name'),
    t('Path(s)'),
  );
  $rows = array();
  foreach (element_children($form) as $key) {
    $row = array();
    $row[] = drupal_render($form[$key]['status']);
    $row[] = drupal_render($form[$key]['remove']);
    $row[] = drupal_render($form[$key]['name']);
    $row[] = drupal_render($form[$key]['path']);
    $rows[] = $row;
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}