You are here

function _roleassign_assignable_roles in RoleAssign 5

Same name and namespace in other branches
  1. 6 roleassign.module \_roleassign_assignable_roles()
  2. 7.2 roleassign.admin.inc \_roleassign_assignable_roles()
  3. 7 roleassign.admin.inc \_roleassign_assignable_roles()

Returns assignable roles.

2 calls to _roleassign_assignable_roles()
roleassign_form_alter in ./roleassign.module
Implementation of hook_form_alter().
roleassign_user_operations in ./roleassign.module
Implementation of hook_user_operations().

File

./roleassign.module, line 314

Code

function _roleassign_assignable_roles($roles) {
  return array_intersect_key($roles, array_filter(variable_get('roleassign_roles', array())));
}