Describe missing taxonomies with hook_farm_ui_entities(): log categories, input materials, quantity units, season, and soil names.

This commit is contained in:
Michael Stenta 2019-04-08 13:59:41 -04:00
parent c2fd93bfca
commit ec02c334e0
5 changed files with 62 additions and 0 deletions

View File

@ -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().
*/

View File

@ -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'),
),
),
);
}

View File

@ -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().
*/

View File

@ -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'),
),
),
);
}

View File

@ -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().
*/