function units_unit_load in Units of Measurement 7
Same name and namespace in other branches
- 7.2 units.module \units_unit_load()
Load an entity of entity type 'units_unit' by its ID.
2 calls to units_unit_load()
- UnitsWebTestCase::testCrud in ./units.test 
- Conduct testing of CRUD operations.
- units_unit_machine_name_load in ./units.module 
- Load a single entity of type 'units_unit' loading by its machine name.
File
- ./units.module, line 224 
- Provide API for managing and converting units of measurement.
Code
function units_unit_load($umid, $reset = FALSE) {
  $units = units_unit_load_multiple(array(
    $umid,
  ), array(), $reset);
  return reset($units);
}