function _roleassign_assignable_roles in RoleAssign 6
Same name and namespace in other branches
- 5 roleassign.module \_roleassign_assignable_roles()
- 7.2 roleassign.admin.inc \_roleassign_assignable_roles()
- 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 300 - Allows site administrators to further delegate the task of managing user's roles.
Code
function _roleassign_assignable_roles($roles) {
return array_intersect_key($roles, array_filter(variable_get('roleassign_roles', array())));
}