You are here

function theme_taxonomy_access_permissions_page in Taxonomy Access Control 5

Renders the main page of category permissions

1 call to theme_taxonomy_access_permissions_page()
_taxonomy_access_permissions_page in ./taxonomy_access_admin.inc
Menu callback; presents the category permissions page of TAC (admin/user/taxonomy_access).

File

./taxonomy_access_admin.inc, line 56
Administrative interface for taxonomy access control.

Code

function theme_taxonomy_access_permissions_page() {
  global $tac_user_roles;

  // Render role/permission overview:
  $header = array(
    t('Role'),
    ' ',
  );
  $rows = array();
  foreach ($tac_user_roles as $rid => $name) {
    $rows[] = array(
      $name,
      array(
        'data' => l(t("edit"), "admin/user/taxonomy_access/{$rid}"),
        'align' => 'right',
      ),
    );
  }
  return theme('table', $header, $rows);
}