function registration_role_form_user_register_form_alter in Registration role 7
Implements hook_form_FORM_ID_alter().
File
- ./
registration_role.module, line 69 - The main registration_role.module file
Code
function registration_role_form_user_register_form_alter(&$form, $form_state) {
// Insert our handler BEFORE user_register_submit().
// This allows us to add the role before the new user is saved.
array_unshift($form['#submit'], 'registration_role_form_user_register_submit');
}