You are here

function farm_modules in farmOS 7

Same name and namespace in other branches
  1. 2.x farm.profile \farm_modules()

Define farmOS modules that will be available to enable during installation.

Return value

array Returns an array with two sub-arrays: 'default': an array of modules that will be checked by default. 'optional': an array of modules that will be unchecked by default.

1 call to farm_modules()
farm_install_configure_form in ./farm.install
Form callback for farmOS configuration install task.

File

./farm.install, line 16
farmOS install file.

Code

function farm_modules() {
  return array(
    'default' => array(
      'farm_log_harvest' => st('Harvest logs'),
      'farm_log_input' => st('Input logs'),
      'farm_crop' => st('Crops'),
      'farm_livestock' => st('Livestock'),
      'farm_livestock_weight' => st('Livestock weight tracking'),
      'farm_equipment' => st('Equipment'),
      'farm_equipment_field' => st('Add "Equipment used" field to logs'),
      'farm_calendar' => st('Calendar of logs'),
      'farm_import' => st('CSV importers for assets and logs'),
      'farm_quick' => st('Quick forms UI'),
      'farm_soil_nrcs' => st('NRCS Soil Survey'),
      'farm_soil_test' => st('Soil test logs'),
      'farm_area_generate' => st('Area generator (for generating parallel beds within an area)'),
      'farm_area_import' => st('Import areas in bulk from a single KML file'),
      'farm_area_types' => t('Default area types: Property, Field, Building, etc'),
      'farm_crop_area_types' => t('Crop area types: Bed and Greenhouse'),
      'farm_livestock_area_types' => t('Livestock area types: Paddock'),
      'farm_water' => st('Water area type'),
      'farm_quantity_report' => st('Quantity report generator'),
      'farm_data_field' => st('Add an arbitrary "data" field to logs and assets'),
      'farm_fields_autocomplete' => st('Adds autocomplete to text fields'),
      'farm_access_roles' => st('Default roles: Manager, Worker, Viewer'),
      'farm_help' => st('farmOS Help Pages'),
      'farm_api' => st('farmOS API'),
      'farm_client' => st('farmOS Client (Field Kit) integration'),
    ),
    'optional' => array(
      'farm_water_test' => st('Water test logs'),
      'farm_soil_compost' => st('Compost'),
      'farm_sensor' => st('Sensor'),
      'farm_sensor_listener' => st('Sensor: Listener'),
      'farm_ledger' => st('Sale and purchase logs (beta)'),
      'farm_l10n' => st('Localization/translation'),
    ),
  );
}