You are here

function registration_form_delete_submit in Entity Registration 7.2

Same name and namespace in other branches
  1. 8.2 includes/registration.forms.inc \registration_form_delete_submit()
  2. 8 includes/registration.forms.inc \registration_form_delete_submit()
  3. 7 includes/registration.forms.inc \registration_form_delete_submit()

Button submit function: handle the 'Delete' button on the node form.

1 string reference to 'registration_form_delete_submit'
registration_form in includes/registration.forms.inc
Form callback: create or edit a registration.

File

includes/registration.forms.inc, line 376
Form definitions and callbacks for Registration.

Code

function registration_form_delete_submit($form, &$form_state) {
  $destination = array();
  if (isset($_GET['destination'])) {
    $destination = drupal_get_destination();
    unset($_GET['destination']);
  }
  $registration = $form_state['registration'];
  $form_state['redirect'] = array(
    'registration/' . $registration->registration_id . '/delete',
    array(
      'query' => $destination,
    ),
  );
}