2020-08-15 17:39:00 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2020-08-18 14:29:35 +02:00
|
|
|
* General functions for the farmOS installation profile.
|
2020-08-15 17:39:00 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define farmOS modules that can be installed.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
* Returns an array with two sub-arrays: 'default' and 'optional'. Default
|
|
|
|
* modules will be selected for installation by default, and optional modules
|
|
|
|
* will require the user to select them for installation.
|
|
|
|
*/
|
|
|
|
function farm_modules() {
|
|
|
|
return [
|
|
|
|
'default' => [
|
2020-10-06 15:55:50 +02:00
|
|
|
'farm_land' => t('Land assets'),
|
2020-09-30 16:58:04 +02:00
|
|
|
'farm_plant' => t('Plant assets'),
|
|
|
|
'farm_animal' => t('Animal assets'),
|
|
|
|
'farm_equipment' => t('Equipment assets'),
|
2020-10-06 15:55:50 +02:00
|
|
|
'farm_structure' => t('Structure assets'),
|
|
|
|
'farm_water' => t('Water assets'),
|
2020-08-15 17:39:00 +02:00
|
|
|
'farm_activity' => t('Activity logs'),
|
|
|
|
'farm_observation' => t('Observation logs'),
|
2020-09-27 20:07:46 +02:00
|
|
|
'farm_seeding' => t('Seeding logs'),
|
2020-08-15 17:39:00 +02:00
|
|
|
'farm_input' => t('Input logs'),
|
|
|
|
'farm_harvest' => t('Harvest logs'),
|
2020-09-27 20:07:46 +02:00
|
|
|
'farm_maintenance' => t('Maintenance logs'),
|
2020-10-17 13:30:25 +02:00
|
|
|
'farm_role_roles' => t('Default roles: Manager, Worker, Viewer'),
|
2020-06-06 16:21:32 +02:00
|
|
|
'farm_api' => t('farmOS API'),
|
2020-11-24 18:24:00 +01:00
|
|
|
'farm_dashboard' => t('farmOS Dashboard'),
|
2020-11-27 16:33:30 +01:00
|
|
|
'farm_ui_views' => t('farmOS UI Views'),
|
2020-11-28 06:17:04 +01:00
|
|
|
'farm_ui_theme' => t('farmOS UI Theme'),
|
2020-12-09 18:18:44 +01:00
|
|
|
'farm_ui_user' => t('farmOS UI User'),
|
2020-08-15 17:39:00 +02:00
|
|
|
],
|
|
|
|
'optional' => [
|
2020-09-30 16:58:04 +02:00
|
|
|
'farm_sensor' => t('Sensor assets'),
|
|
|
|
'farm_compost' => t('Compost assets'),
|
|
|
|
'farm_group' => t('Group assets'),
|
2020-08-15 17:39:00 +02:00
|
|
|
'farm_transplanting' => t('Transplanting logs'),
|
|
|
|
'farm_lab_test' => t('Lab test logs'),
|
|
|
|
'farm_medical' => t('Medical logs'),
|
|
|
|
'farm_purchase' => t('Purchase logs'),
|
|
|
|
'farm_sale' => t('Sale logs'),
|
|
|
|
],
|
|
|
|
];
|
|
|
|
}
|