You are here

function farm_quantity_measures in farmOS 7

Define information about available quantity measures.

Return value

array Returns an array of measure information.

2 calls to farm_quantity_measures()
farm_quantity_measure_options in modules/farm/farm_quantity/farm_quantity.module
Define available options for the Measure field.
farm_quantity_units in modules/farm/farm_quantity/farm_quantity.module
Return an array of standard unit names for given measures.

File

modules/farm/farm_quantity/farm_quantity.module, line 155
Farm quantity module.

Code

function farm_quantity_measures() {
  return array(
    'count' => array(
      'label' => t('Count'),
    ),
    'length' => array(
      'label' => t('Length/depth'),
    ),
    'weight' => array(
      'label' => t('Weight'),
    ),
    'area' => array(
      'label' => t('Area'),
    ),
    'volume' => array(
      'label' => t('Volume'),
    ),
    'time' => array(
      'label' => t('Time'),
    ),
    'temperature' => array(
      'label' => t('Temperature'),
    ),
    'pressure' => array(
      'label' => t('Pressure'),
    ),
    'water_content' => array(
      'label' => t('Water content'),
    ),
    'value' => array(
      'label' => t('Value'),
    ),
    'rate' => array(
      'label' => t('Rate'),
    ),
    'rating' => array(
      'label' => t('Rating'),
    ),
    'ratio' => array(
      'label' => t('Ratio'),
    ),
    'probability' => array(
      'label' => t('Probability'),
    ),
  );
}