Add a field base for referencing areas (taxonomy term reference field).

This commit is contained in:
Michael Stenta 2015-05-01 16:10:23 -04:00
parent b47c0415e8
commit 6d9bc36214
2 changed files with 27 additions and 0 deletions

View File

@ -10,6 +10,32 @@
function farm_area_field_default_field_bases() {
$field_bases = array();
// Exported field_base: 'field_farm_area'
$field_bases['field_farm_area'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_farm_area',
'indexes' => array(
'tid' => array(
0 => 'tid',
),
),
'locked' => 0,
'module' => 'taxonomy',
'settings' => array(
'allowed_values' => array(
0 => array(
'vocabulary' => 'farm_areas',
'parent' => 0,
),
),
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
);
// Exported field_base: 'field_farm_area_type'
$field_bases['field_farm_area_type'] = array(
'active' => 1,

View File

@ -26,6 +26,7 @@ features[ctools][] = openlayers:openlayers_maps:1
features[ctools][] = strongarm:strongarm:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = field_farm_area
features[field_base][] = field_farm_area_type
features[field_instance][] = taxonomy_term-farm_areas-field_farm_area_type
features[field_instance][] = taxonomy_term-farm_areas-field_farm_files