You are here

function bat_unit_delete_form_wrapper in Booking and Availability Management Tools for Drupal 7

Form callback wrapper: delete a unit.

Parameters

BatUnit $unit: The unit object being edited by this form.

See also

bat_unit_edit_form()

1 string reference to 'bat_unit_delete_form_wrapper'
BatUnitUIController::hook_menu in modules/bat_unit/bat_unit.admin.inc
Overrides hook_menu() defaults.

File

modules/bat_unit/bat_unit.admin.inc, line 197
BatUnit editing UI.

Code

function bat_unit_delete_form_wrapper(BatUnit $unit) {

  // Add the breadcrumb for the form's location.
  bat_unit_set_breadcrumb();
  return drupal_get_form('bat_unit_delete_form', $unit);
}