function bat_event_type_form_submit_delete in Booking and Availability Management Tools for Drupal 7
Form API submit callback for the delete button.
File
- modules/
bat_event/ bat_event_type.admin.inc, line 214 - BatEvent type editing UI.
Code
function bat_event_type_form_submit_delete(&$form, &$form_state) {
$destination = array();
if (isset($_GET['destination'])) {
$destination = drupal_get_destination();
unset($_GET['destination']);
}
$form_state['redirect'] = array(
'admin/bat/events/event_types/manage/' . $form_state['bat_event_type']->type . '/delete',
array(
'query' => $destination,
),
);
}