function advuser_user_roles in Advanced User 5.2
Same name and namespace in other branches
- 6.3 advuser.module \advuser_user_roles()
- 6.2 advuser.module \advuser_user_roles()
- 7.3 advuser.module \advuser_user_roles()
User Roles for use in ADVUSER.
Return value
array
3 calls to advuser_user_roles()
- advuser_admin_account in ./
advuser.module - advuser_filters in ./
advuser_filters.inc - List advuser administration filters that can be applied.
- theme_advuser_admin_account in ./
advuser.module - Theme user administration overview.
File
- ./
advuser.module, line 701 - Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.
Code
function advuser_user_roles() {
static $roles;
if (empty($roles)) {
$roles = user_roles(1);
unset($roles[DRUPAL_AUTHENTICATED_RID]);
}
return $roles;
}