You are here

function registration_role_form_user_register_submit in Registration role 7

Submit handler for the user registration form.

1 string reference to 'registration_role_form_user_register_submit'
registration_role_form_user_register_form_alter in ./registration_role.module
Implements hook_form_FORM_ID_alter().

File

./registration_role.module, line 78
The main registration_role.module file

Code

function registration_role_form_user_register_submit(&$form, &$form_state) {
  if ($rid = variable_get('registration_role_roles', '')) {
    $roles = user_roles(TRUE);
    $form_state['values']['roles'][$rid] = $roles[$rid];
  }
}