You are here

function units_currency_default_units_measure in Units of Measurement 7.2

Same name and namespace in other branches
  1. 7 units_currency/units_currency.module \units_currency_default_units_measure()

Implements hook_default_units_measure().

File

units_currency/units_currency.module, line 25
Integrate Units with Currency module.

Code

function units_currency_default_units_measure() {
  $items = array();
  $controller = entity_get_controller('units_measure');
  $items['currency'] = $controller
    ->create(array(
    'measure' => 'currency',
    'label' => 'Currency',
    'description' => '',
    'converter' => 'currency',
  ));
  return $items;
}