You are here

function roleassign_user_operations in RoleAssign 7

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

Implements hook_user_operations().

Add or remove roles to selected users.

Return value

array|null

File

./roleassign.module, line 109
Allows site administrators to further delegate the task of managing user's roles.

Code

function roleassign_user_operations() {

  // Do nothing if add and remove roles operations already is shown or
  // the user hasn't right to assign roles.
  if (user_access('administer permissions') || !user_access('assign roles')) {
    return NULL;
  }
  _roleassign_module_load_include('admin.inc');
  return _roleassign_user_operations();
}