You are here

function farm_quantity_install in farmOS 7

Implements hook_install().

File

modules/farm/farm_quantity/farm_quantity.install, line 10
Farm quantity install.

Code

function farm_quantity_install() {

  // Set the default system of measurement (metric), if it isn't already.
  $unit_system = variable_get('farm_quantity_unit_system', NULL);
  if (empty($unit_system)) {
    variable_set('farm_quantity_unit_system', 'metric');
  }
}