You are here

function signup_form_submit in Signup 5.2

Same name and namespace in other branches
  1. 5 signup.module \signup_form_submit()
  2. 6.2 includes/signup_form.inc \signup_form_submit()
  3. 6 includes/signup_form.inc \signup_form_submit()
  4. 7 includes/signup_form.inc \signup_form_submit()

Executes the user signup form

Parameters

$form_id The ID of the form being submitted.:

$form_values The constructed form values array of the submitted form.:

Related topics

File

./signup.module, line 569
The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…

Code

function signup_form_submit($form_id, $form_values) {
  if (isset($form_values['signup_username'])) {
    $account = user_load(array(
      'name' => $form_values['signup_username'],
    ));
    $form_values['uid'] = $account->uid;
  }
  signup_sign_up_user($form_values);
}