You are here

function _roleassign_sticky_roles in RoleAssign 5

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

Store and retrive sticky roles.

2 calls to _roleassign_sticky_roles()
roleassign_form_alter in ./roleassign.module
Implementation of hook_form_alter().
roleassign_user in ./roleassign.module
Implementation of hook_user().

File

./roleassign.module, line 321

Code

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