function rooms_unit_delete in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Deletes a bookable unit.
Parameters
RoomsUnit $unit: The RoomsUnit object that represents the unit to delete.
1 call to rooms_unit_delete()
- rooms_unit_delete_form_submit in modules/
rooms_unit/ rooms_unit.admin.inc - Submit callback for unit_delete_form
File
- modules/
rooms_unit/ rooms_unit.module, line 442 - Manage units - Units are things that can be booked on a nightly basis (e.g. rooms - but also villas bungalows, etc).
Code
function rooms_unit_delete(RoomsUnit $unit) {
$unit
->delete();
}