You are here

function theme_nodeaccess_admin_form_roles in Nodeaccess 6

Same name and namespace in other branches
  1. 5 nodeaccess.module \theme_nodeaccess_admin_form_roles()
  2. 6.2 nodeaccess.module \theme_nodeaccess_admin_form_roles()
  3. 7 nodeaccess.admin.inc \theme_nodeaccess_admin_form_roles()

Theme functions for nodeaccess_admin_form.

1 theme call to theme_nodeaccess_admin_form_roles()
nodeaccess_admin_form in ./nodeaccess.module
Menu callback. Draws the admin page.

File

./nodeaccess.module, line 297

Code

function theme_nodeaccess_admin_form_roles($form) {
  $roles = element_children($form);
  $header = array(
    t('Allow Role'),
    t('Alias'),
    t('Weight'),
  );
  foreach ($roles as $role) {
    $row = array();
    $row[] = drupal_render($form[$role]['allow']);
    $row[] = drupal_render($form[$role]['alias']);
    $row[] = drupal_render($form[$role]['weight']);
    $rows[] = $row;
  }
  $output .= theme('table', $header, $rows);
  return $output;
}