You are here

function secure_permissions_get_roles in Secure Permissions 7

Same name and namespace in other branches
  1. 6 secure_permissions.module \secure_permissions_get_roles()
  2. 7.2 secure_permissions.module \secure_permissions_get_roles()

Get all roles defined by the API.

1 call to secure_permissions_get_roles()
secure_permissions_build_roles in ./secure_permissions.module
Build the roles table correctly.

File

./secure_permissions.module, line 165
Secure Permissions module file.

Code

function secure_permissions_get_roles() {
  $roles = array_unique(module_invoke_all('secure_permissions_roles'));
  sort($roles);
  return $roles;
}