function rooms_unit_type_delete in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Deletes a unit type from the db.
File
- modules/
rooms_unit/ rooms_unit.module, line 499 - 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_type_delete(RoomsUnitType $type) {
$type
->delete();
}