function bat_type_bundle_form_submit_delete in Booking and Availability Management Tools for Drupal 7
Form API submit callback for the delete button.
File
- modules/
bat_unit/ bat_type_bundle.admin.inc, line 175 - BatTypeBundle editing UI.
Code
function bat_type_bundle_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/types/type_bundles/manage/' . $form_state['bat_type_bundle']->type . '/delete',
array(
'query' => $destination,
),
);
}