You are here

function _roleassign_assignable_roles in RoleAssign 7

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

Returns assignable roles.

Parameters

array $roles:

Return value

array

2 calls to _roleassign_assignable_roles()
_roleassign_form_alter in ./roleassign.admin.inc
Really implements hook_form_alter().
_roleassign_user_operations in ./roleassign.admin.inc
Really implements hook_user_operations().

File

./roleassign.admin.inc, line 221
Allows site administrators to further delegate the task of managing user's roles.

Code

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