You are here

function farm_quantity_system_of_measurement in farmOS 7

Helper function for loading the default system of measurement.

Return value

string Returns either 'metric' or 'us' (defaults to 'metric').

8 calls to farm_quantity_system_of_measurement()
farm_area_default_units in modules/farm/farm_area/farm_area.module
Return the default units for an area measure, with optional relative size.
farm_livestock_milk_form in modules/farm/farm_livestock/farm_livestock.farm_quick.milk.inc
Form for adding milk harvest logs.
farm_livestock_move_form in modules/farm/farm_livestock/farm_livestock.farm_quick.move.inc
Form for adding animal movement logs.
farm_quantity_farm_info in modules/farm/farm_quantity/farm_quantity.module
Implements hook_farm_info().
farm_quantity_settings_form in modules/farm/farm_quantity/farm_quantity.module
Quantity settings form.

... See full list

File

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

Code

function farm_quantity_system_of_measurement() {
  return variable_get('farm_quantity_unit_system', 'metric');
}