You are here

function _roleassign_sticky_roles in RoleAssign 7

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

Store and retrive sticky roles.

Parameters

array|null $new_sticky_roles:

Return value

array

2 calls to _roleassign_sticky_roles()
_roleassign_form_alter in ./roleassign.admin.inc
Really implements hook_form_alter().
_roleassign_user_presave in ./roleassign.admin.inc
Really implements hook_user_presave().

File

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

Code

function _roleassign_sticky_roles($new_sticky_roles = NULL) {
  static $sticky_roles = array();
  if (isset($new_sticky_roles)) {
    $sticky_roles = $new_sticky_roles;
  }
  return $sticky_roles;
}