You are here

function mass_pwreset_get_custom_roles in Mass Password Reset 2.x

Same name and namespace in other branches
  1. 8 mass_pwreset.module \mass_pwreset_get_custom_roles()

Remove anonymous and authenticated and return a list of roles.

1 call to mass_pwreset_get_custom_roles()
MassPasswordResetForm::buildForm in src/Form/MassPasswordResetForm.php
Form constructor.

File

./mass_pwreset.module, line 78
Reset user passwords and optionally notify users.

Code

function mass_pwreset_get_custom_roles() {
  $roles = user_role_names(TRUE);
  unset($roles['authenticated']);
  return $roles;
}