You are here

function _taxonomy_access_user_roles in Taxonomy Access Control 6

Same name and namespace in other branches
  1. 5.2 taxonomy_access_admin.inc \_taxonomy_access_user_roles()
  2. 7 taxonomy_access.module \_taxonomy_access_user_roles()

Cache a list of all roles.

Return value

An array of roles from user_roles().

6 calls to _taxonomy_access_user_roles()
tac_fields_admin in tac_fields/tac_fields.admin.inc
Menu callback for TAC Fields admin page (admin/user/tac_fields).
taxonomy_access_admin in ./taxonomy_access.admin.inc
Menu callback (for admin/user/taxonomy_access). Renders the TAC permissions administration form.
theme_tac_fields_admin_form in tac_fields/tac_fields.admin.inc
Renders the admin form in an HTML table.
theme_taxonomy_access_admin in ./taxonomy_access.admin.inc
Renders the main administration page, with links to configure each role.
theme_taxonomy_access_admin_form in ./taxonomy_access.admin.inc
Renders the permission matrix user form for a given user role.

... See full list

File

./taxonomy_access.module, line 21
Allows administrators to specify how each category (in the taxonomy) can be used by various roles.

Code

function _taxonomy_access_user_roles() {
  static $roles;
  if (!is_array($roles)) {
    $roles = user_roles();
  }
  return $roles;
}