You are here

function rooms_unit_delete_form_wrapper in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

Form callback wrapper: delete a unit.

Parameters

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

See also

rooms_unit_edit_form()

1 string reference to 'rooms_unit_delete_form_wrapper'
RoomsUnitUIController::hook_menu in modules/rooms_unit/rooms_unit.admin.inc
Overrides hook_menu() defaults. Main reason for doing this is that parent class hook_menu() is optimized for entity type administration.

File

modules/rooms_unit/rooms_unit.admin.inc, line 182
Rooms editing UI.

Code

function rooms_unit_delete_form_wrapper($unit) {

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