Skip to content

Commit

Permalink
Describe missing taxonomies with hook_farm_ui_entities(): log categor…
Browse files Browse the repository at this point in the history
…ies, input materials, quantity units, season, and soil names.
  • Loading branch information
mstenta committed Apr 8, 2019
1 parent c2fd93b commit ec02c33
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/farm/farm_fields/farm_fields.module
Expand Up @@ -6,6 +6,20 @@

include_once 'farm_fields.features.inc';

/**
* Implements hook_farm_ui_entities().
*/
function farm_fields_farm_ui_entities() {
return array(
'taxonomy_term' => array(
'farm_log_categories' => array(
'label' => t('Log category'),
'label_plural' => t('Log categories'),
),
),
);
}

/**
* Implements hook_farm_access_perms().
*/
Expand Down
6 changes: 6 additions & 0 deletions modules/farm/farm_log/farm_log_input/farm_log_input.module
Expand Up @@ -21,6 +21,12 @@ function farm_log_input_farm_ui_entities() {
'weight' => 0,
),
),
'taxonomy_term' => array(
'farm_materials' => array(
'label' => t('Material'),
'label_plural' => t('Materials'),
),
),
);
}

Expand Down
14 changes: 14 additions & 0 deletions modules/farm/farm_quantity/farm_quantity.module
Expand Up @@ -7,6 +7,20 @@
// Include Features code.
include_once 'farm_quantity.features.inc';

/**
* Implements hook_farm_ui_entities().
*/
function farm_quantity_farm_ui_entities() {
return array(
'taxonomy_term' => array(
'farm_quantity_units' => array(
'label' => t('Quantity unit'),
'label_plural' => t('Quantity units'),
),
),
);
}

/**
* Implements hook_restws_field_collection_info().
*/
Expand Down
14 changes: 14 additions & 0 deletions modules/farm/farm_season/farm_season.module
Expand Up @@ -5,3 +5,17 @@
*/

include_once 'farm_season.features.inc';

/**
* Implements hook_farm_ui_entities().
*/
function farm_season_farm_ui_entities() {
return array(
'taxonomy_term' => array(
'farm_season' => array(
'label' => t('Season'),
'label_plural' => t('Seasons'),
),
),
);
}
14 changes: 14 additions & 0 deletions modules/farm/farm_soil/farm_soil.module
Expand Up @@ -6,6 +6,20 @@

include_once 'farm_soil.features.inc';

/**
* Implements hook_farm_ui_entities().
*/
function farm_soil_farm_ui_entities() {
return array(
'taxonomy_term' => array(
'farm_soil_names' => array(
'label' => t('Soil name'),
'label_plural' => t('Soil names'),
),
),
);
}

/**
* Implements hook_farm_log_categories().
*/
Expand Down

0 comments on commit ec02c33

Please sign in to comment.