function units_measure_delete in Units of Measurement 7.2
Same name and namespace in other branches
- 7 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 401 - Provide API for managing and converting units of measurement.
Code
function units_measure_delete($entity) {
entity_delete('units_measure', entity_id('units_measure', $entity));
}