rsvp_reply_form_submit

Definition

rsvp_reply_form_submit($form_id, $edit)
rsvp/rsvp.module, line 921

Code

<?php
function rsvp_reply_form_submit($form_id, $edit) {
  global $user;

  drupal_set_message('Your response was saved.', 'status');
  db_query('UPDATE {rsvp_invite} SET response = \'%s\', invited = 1, received = 1 WHERE hash = \'%s\'', $edit['invite_reply'], $edit['hash']);
  if ($user->uid > 0) {
    drupal_goto('user/'. $user->uid .'/rsvp');
  }
}
?>