function bat_type_bundle_delete in Booking and Availability Management Tools for Drupal 8
Same name and namespace in other branches
- 7 modules/bat_unit/bat_unit.module \bat_type_bundle_delete()
Deletes a Bat Type bundle from the db.
File
- modules/
bat_unit/ bat_unit.module, line 723 - Manage units - Units are things that can be booked for some period of time. (e.g. rooms - but also villas bungalows, cars, drills, you-get-the-idea etc.)
Code
function bat_type_bundle_delete(TypeBundle $bundle) {
$bundle
->delete();
}