You are here

function units_unit_load in Units of Measurement 7.2

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

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

3 calls to units_unit_load()
UnitsWebTestCase::testCrud in ./units.test
Conduct testing of CRUD operations.
units_field_dimension in units_field/units_field.module
Retrieve allowed dimension for a provided field.
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 256
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);
}