rsvp_delete_form_submit($form_id, &$edit)
rsvp/rsvp.module, line 1180
$form_id The id of the form submitted.
<?php
function rsvp_delete_form_submit($form_id, &$edit) {
switch (rsvp_delete($edit['rid'])) {
case RSVP_DELETED:
drupal_set_message(t('RSVP deleted.'));
break;
case RSVP_ERROR_DELETE_USER_RECORDS:
drupal_set_message(t('There was an error removing the RSVP user records'));
break;
case RSVP_ERROR_DELETE_RSVP:
drupal_set_message(t('There was an error removing the RSVP'));
break;
}
return 'node/'. $edit['nid'] .'/rsvp';
}
?>