You are here

function units_measure_load in Units of Measurement 7

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

Load an entity of entity type 'units_measure' by its ID.

3 calls to units_measure_load()
UnitsWebTestCase::testCrud in ./units.test
Conduct testing of CRUD operations.
units_measure_machine_name_load in ./units.module
Load a single entity of type 'units_measure' loading by its machine name.
units_unit_by_measure_load_multiple in ./units.module
Load all units of the supplied measure.

File

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

Code

function units_measure_load($mid, $reset = FALSE) {
  $measures = units_measure_load_multiple(array(
    $mid,
  ), array(), $reset);
  return reset($measures);
}