Describe missing taxonomies with hook_farm_ui_entities(): log categories, input materials, quantity units, season, and soil names.
This commit is contained in:
parent
c2fd93bfca
commit
ec02c334e0
|
@ -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().
|
||||
*/
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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().
|
||||
*/
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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().
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue