There’s probably something really obvious I’m missing here. Can anybody lend me an extra set of eyes?
farmos_crop_taxonomic_info.info
name = farmOS Crop Taxonomic Info
description = Provides additional taxonomic fields for crops in farmOS.
core = 7.x
package = farmOS Contrib
dependencies[] = ctools
dependencies[] = entity
dependencies[] = entityreference
dependencies[] = entityreference_view_widget
dependencies[] = farm_crop
dependencies[] = farm_fields_dynamic
dependencies[] = features
dependencies[] = field_group
features[features_api][] = api:2
features[field_base][] = field_farm_crop_genus
features[field_base][] = field_farm_crop_species
features[field_base][] = field_farm_crop_general_common_name
features[field_instance][] = taxonomy_term-farm_crops-field_farm_crop_genus
features[field_instance][] = taxonomy_term-farm_crops-field_farm_crop_species
features[field_instance][] = taxonomy_term-farm_crops-field_farm_crop_general_common_name
farmos_crop_taxonomic_info.module
<?php
/**
* @file
* farmOS Crop Taxonomic Info
*/
/**
* Implements hook_farm_fields_dynamic_bases().
*/
function farmos_crop_taxonomic_info_farm_fields_dynamic_bases() {
return array(
'field_farm_crop_genus' => array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_farm_crop_genus',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
),
'field_farm_crop_species' => array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_farm_crop_species',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
),
'field_farm_crop_general_common_name' => array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_farm_crop_general_common_name',
'indexes' => array(
'format' => array(
0 => 'format',
),
),
'locked' => 0,
'module' => 'text',
'settings' => array(
'max_length' => 255,
),
'translatable' => 0,
'type' => 'text',
),
);
}
/**
* Implements hook_farm_fields_dynamic_instances().
*/
function farmos_crop_taxonomic_info_farm_fields_dynamic_instances() {
// Start an empty array of field instance definitions.
$field_instances = array();
// Exported field_instance: 'farm_asset-equipment-field_farm_manufacturer'.
$field_instances['taxonomy_term-farm_crops-field_farm_crop_genus'] = array(
'bundle' => 'farm_crops',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Taxonomic genus of this crop e.g. "Phaseolus"',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'field_farm_crop_genus',
'label' => 'Genus',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 1,
),
);
// Exported field_instance: 'farm_asset-equipment-field_farm_manufacturer'.
$field_instances['taxonomy_term-farm_crops-field_farm_crop_species'] = array(
'bundle' => 'farm_crops',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Taxonomic species of this crop e.g. "vulgaris"',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'field_farm_crop_species',
'label' => 'Species',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 1,
),
);
// Exported field_instance: 'farm_asset-equipment-field_farm_manufacturer'.
$field_instances['taxonomy_term-farm_crops-field_farm_crop_general_common_name'] = array(
'bundle' => 'farm_crops',
'default_value' => NULL,
'deleted' => 0,
'description' => 'General common name of this crop e.g. "wheat", "peas", "common beans", "fava beans"',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'field_farm_crop_general_common_name',
'label' => 'General Common Name',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 1,
),
);
// Return the array of field instance definitions.
return $field_instances;
}
Interestingly it shows up in the features view;
But the fields don’t show up on the crops taxonomy;
What magic incantation am I missing…?