You are here

function farm_quantity_settings_form in farmOS 7

Quantity settings form.

1 string reference to 'farm_quantity_settings_form'
farm_quantity_menu in modules/farm/farm_quantity/farm_quantity.module
Implements hook_menu().

File

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

Code

function farm_quantity_settings_form($form, &$form_state) {

  // Metric or US/Imperial.
  $form['farm_quantity_unit_system'] = array(
    '#type' => 'radios',
    '#title' => t('System of measurement'),
    '#description' => t('Select the system of measurement you would like to use in farmOS. Changing this setting after data has been entered is not recommended.'),
    '#options' => array(
      'metric' => t('Metric'),
      'us' => t('US/Imperial'),
    ),
    '#default_value' => farm_quantity_system_of_measurement(),
  );

  // Return it as a system settings form.
  return system_settings_form($form);
}