You are here

function units_unit_delete in Units of Measurement 7.2

Same name and namespace in other branches
  1. 7 units.module \units_unit_delete()

Delete a single entity of type 'units_unit'.

2 calls to units_unit_delete()
UnitsWebTestCase::testCrud in ./units.test
Conduct testing of CRUD operations.
units_unit_form_delete_submit in ./units_ui.pages.inc
Submit handler for 'units_unit_form'.

File

./units.module, line 338
Provide API for managing and converting units of measurement.

Code

function units_unit_delete($entity) {
  entity_delete('units_unit', entity_id('units_unit', $entity));
}