function _taxonomy_access_user_roles in Taxonomy Access Control 5.2
Same name and namespace in other branches
- 6 taxonomy_access.module \_taxonomy_access_user_roles()
- 7 taxonomy_access.module \_taxonomy_access_user_roles()
Cache roles
3 calls to _taxonomy_access_user_roles()
- taxonomy_access_admin in ./
taxonomy_access_admin.inc - Menu callback; presents the category permissions page of TAC (admin/user/taxonomy_access).
- theme_taxonomy_access_admin in ./
taxonomy_access_admin.inc - Renders the main page of category permissions
- theme_taxonomy_access_admin_form in ./
taxonomy_access_admin.inc - Renders the permission matrix user form for choosen user role.
File
- ./
taxonomy_access_admin.inc, line 11 - Administrative interface for taxonomy access control.
Code
function _taxonomy_access_user_roles() {
static $roles;
if (!is_array($roles)) {
$roles = user_roles();
}
return $roles;
}