You are here

function bat_unit_delete in Booking and Availability Management Tools for Drupal 7

Same name and namespace in other branches
  1. 8 modules/bat_unit/bat_unit.module \bat_unit_delete()

Deletes a unit.

Parameters

BatUnit $unit: The BatUnit object that represents the unit to delete.

1 call to bat_unit_delete()
bat_unit_delete_form_submit in modules/bat_unit/bat_unit.admin.inc
Submit callback for unit_delete_form.

File

modules/bat_unit/bat_unit.module, line 837

Code

function bat_unit_delete(BatUnit $unit) {
  $unit
    ->delete();
}