function _roleassign_sticky_roles in RoleAssign 6
Same name and namespace in other branches
- 5 roleassign.module \_roleassign_sticky_roles()
- 7.2 roleassign.admin.inc \_roleassign_sticky_roles()
- 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 307 - 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;
}