2014-11-25 01:10:41 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Code for the Farm Soil feature.
|
|
|
|
*/
|
|
|
|
|
|
|
|
include_once 'farm_soil.features.inc';
|
2017-05-30 20:53:57 +02:00
|
|
|
|
2019-04-08 19:59:41 +02:00
|
|
|
/**
|
|
|
|
* 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'),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2017-05-30 20:53:57 +02:00
|
|
|
/**
|
|
|
|
* Implements hook_farm_log_categories().
|
|
|
|
*/
|
|
|
|
function farm_soil_farm_log_categories() {
|
|
|
|
|
2018-12-19 15:43:18 +01:00
|
|
|
// Provide log categories: Soil, Tillage.
|
|
|
|
return array('Soil', 'Tillage');
|
2017-05-30 20:53:57 +02:00
|
|
|
}
|