function signup_form_submit in Signup 6.2
Same name and namespace in other branches
- 5.2 signup.module \signup_form_submit()
- 5 signup.module \signup_form_submit()
- 6 includes/signup_form.inc \signup_form_submit()
- 7 includes/signup_form.inc \signup_form_submit()
Submit handler for the user signup form.
Parameters
$form: The form being submitted.
$form_values: The state of the form, including the submitted values.
File
- includes/
signup_form.inc, line 118 - Code for the form when users sign up.
Code
function signup_form_submit($form, &$form_state) {
if (isset($form_state['values']['signup_username'])) {
$account = user_load(array(
'name' => $form_state['values']['signup_username'],
));
$form_state['values']['uid'] = $account->uid;
}
signup_sign_up_user($form_state['values']);
}