function advuser_user_roles in Advanced User 6.3
Same name and namespace in other branches
- 5.2 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 forms/
advuser_admin_account.inc - Provide the list of filtered users.
- advuser_filters in ./
advuser.module - List advuser administration filters that can be applied.
- theme_advuser_admin_account in forms/
advuser_admin_account.inc - Theme user administration overview.
File
- ./
advuser.module, line 504 - 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 = array();
if (empty($roles)) {
$roles = user_roles(TRUE);
unset($roles[DRUPAL_AUTHENTICATED_RID]);
}
return $roles;
}