You are here

function units_measure_delete in Units of Measurement 7

Same name and namespace in other branches
  1. 7.2 units.module \units_measure_delete()

Delete a single entity of type 'units_measure'.

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

File

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

Code

function units_measure_delete($entity) {
  entity_delete('units_measure', entity_id('units_measure', $entity));
}