rsvp_delete_form_submit

Definition

rsvp_delete_form_submit($form_id, &$edit)
rsvp/rsvp.module, line 1180

Description

  • Handles submitting of the rsvp delete confirmation form
*
  • *

Parameters

$form_id The id of the form submitted.

  • @param $edit The $edit array.
  • @return path a path to redirect after the form submission.

Code

<?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';
}
?>