From 4fbdd5f6775c1258412ea75a7fe64a3a8728ad37 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Thu, 6 Feb 2014 02:18:09 -0500 Subject: [PATCH] Extracted taxonomy to own module. Added sales log types and fields. Added related fields to all types. --- farm_log.features.field.inc | 2652 +---------------- farm_log.features.inc | 13 - farm_log.features.taxonomy.inc | 53 - farm_log.info | 62 +- .../farm_log_crops.features.field.inc | 2032 +++++++++++++ farm_log_crops/farm_log_crops.features.inc | 16 + farm_log_crops/farm_log_crops.info | 50 + farm_log_crops/farm_log_crops.module | 7 + .../farm_log_sales.features.field.inc | 2068 +++++++++++++ farm_log_sales/farm_log_sales.features.inc | 16 + farm_log_sales/farm_log_sales.info | 49 + farm_log_sales/farm_log_sales.module | 7 + 12 files changed, 4409 insertions(+), 2616 deletions(-) delete mode 100644 farm_log.features.taxonomy.inc create mode 100644 farm_log_crops/farm_log_crops.features.field.inc create mode 100644 farm_log_crops/farm_log_crops.features.inc create mode 100644 farm_log_crops/farm_log_crops.info create mode 100644 farm_log_crops/farm_log_crops.module create mode 100644 farm_log_sales/farm_log_sales.features.field.inc create mode 100644 farm_log_sales/farm_log_sales.features.inc create mode 100644 farm_log_sales/farm_log_sales.info create mode 100644 farm_log_sales/farm_log_sales.module diff --git a/farm_log.features.field.inc b/farm_log.features.field.inc index 76e7c133d..34abdfff4 100644 --- a/farm_log.features.field.inc +++ b/farm_log.features.field.inc @@ -10,1073 +10,6 @@ function farm_log_field_default_fields() { $fields = array(); - // Exported field: 'log-farm_failure-field_farm_areas'. - $fields['log-farm_failure-field_farm_areas'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_areas', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - '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', - ), - 'field_instance' => array( - 'bundle' => 'farm_failure', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '1', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_areas', - 'label' => 'Areas', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '1', - ), - ), - ); - - // Exported field: 'log-farm_failure-field_farm_crops'. - $fields['log-farm_failure-field_farm_crops'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_crops', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_crops', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_failure', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '0', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_crops', - 'label' => 'Crops', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '0', - ), - ), - ); - - // Exported field: 'log-farm_failure-field_farm_images'. - $fields['log-farm_failure-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_failure', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'hidden', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => 'large', - ), - 'type' => 'image', - 'weight' => '4', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '5', - ), - ), - ); - - // Exported field: 'log-farm_failure-field_farm_notes'. - $fields['log-farm_failure-field_farm_notes'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_notes', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array(), - 'translatable' => '0', - 'type' => 'text_long', - ), - 'field_instance' => array( - 'bundle' => 'farm_failure', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '3', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_notes', - 'label' => 'Notes', - 'required' => 0, - 'settings' => array( - 'text_processing' => '0', - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'text', - 'settings' => array( - 'rows' => '5', - ), - 'type' => 'text_textarea', - 'weight' => '3', - ), - ), - ); - - // Exported field: 'log-farm_failure-field_farm_quantity'. - $fields['log-farm_failure-field_farm_quantity'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_quantity', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array( - 'max_length' => '255', - ), - 'translatable' => '0', - 'type' => 'text', - ), - 'field_instance' => array( - 'bundle' => 'farm_failure', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '2', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_quantity', - 'label' => 'Quantity', - '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' => '2', - ), - ), - ); - - // Exported field: 'log-farm_fertilization-field_farm_areas'. - $fields['log-farm_fertilization-field_farm_areas'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_areas', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - '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', - ), - 'field_instance' => array( - 'bundle' => 'farm_fertilization', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '1', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_areas', - 'label' => 'Areas', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '3', - ), - ), - ); - - // Exported field: 'log-farm_fertilization-field_farm_crops'. - $fields['log-farm_fertilization-field_farm_crops'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_crops', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_crops', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_fertilization', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '0', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_crops', - 'label' => 'Crops', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '2', - ), - ), - ); - - // Exported field: 'log-farm_fertilization-field_farm_fertilizers'. - $fields['log-farm_fertilization-field_farm_fertilizers'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_fertilizers', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_fertilizers', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_fertilization', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '2', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_fertilizers', - 'label' => 'Fertilizers', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '0', - ), - ), - ); - - // Exported field: 'log-farm_fertilization-field_farm_images'. - $fields['log-farm_fertilization-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_fertilization', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'hidden', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => 'large', - ), - 'type' => 'image', - 'weight' => '5', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '6', - ), - ), - ); - - // Exported field: 'log-farm_fertilization-field_farm_notes'. - $fields['log-farm_fertilization-field_farm_notes'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_notes', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array(), - 'translatable' => '0', - 'type' => 'text_long', - ), - 'field_instance' => array( - 'bundle' => 'farm_fertilization', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '4', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_notes', - 'label' => 'Notes', - 'required' => 0, - 'settings' => array( - 'text_processing' => '0', - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'text', - 'settings' => array( - 'rows' => '5', - ), - 'type' => 'text_textarea', - 'weight' => '4', - ), - ), - ); - - // Exported field: 'log-farm_fertilization-field_farm_quantity'. - $fields['log-farm_fertilization-field_farm_quantity'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_quantity', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array( - 'max_length' => '255', - ), - 'translatable' => '0', - 'type' => 'text', - ), - 'field_instance' => array( - 'bundle' => 'farm_fertilization', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '3', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_quantity', - 'label' => 'Quantity', - '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: 'log-farm_harvest-field_farm_areas'. - $fields['log-farm_harvest-field_farm_areas'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_areas', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - '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', - ), - 'field_instance' => array( - 'bundle' => 'farm_harvest', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '1', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_areas', - 'label' => 'Areas', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '1', - ), - ), - ); - - // Exported field: 'log-farm_harvest-field_farm_crops'. - $fields['log-farm_harvest-field_farm_crops'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_crops', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_crops', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_harvest', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '0', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_crops', - 'label' => 'Crops', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'options', - 'settings' => array(), - 'type' => 'options_select', - 'weight' => '0', - ), - ), - ); - - // Exported field: 'log-farm_harvest-field_farm_images'. - $fields['log-farm_harvest-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_harvest', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'hidden', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => 'large', - ), - 'type' => 'image', - 'weight' => '4', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '4', - ), - ), - ); - - // Exported field: 'log-farm_harvest-field_farm_notes'. - $fields['log-farm_harvest-field_farm_notes'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_notes', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array(), - 'translatable' => '0', - 'type' => 'text_long', - ), - 'field_instance' => array( - 'bundle' => 'farm_harvest', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '3', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_notes', - 'label' => 'Notes', - 'required' => 0, - 'settings' => array( - 'text_processing' => '0', - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'text', - 'settings' => array( - 'rows' => '5', - ), - 'type' => 'text_textarea', - 'weight' => '3', - ), - ), - ); - - // Exported field: 'log-farm_harvest-field_farm_quantity'. - $fields['log-farm_harvest-field_farm_quantity'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_quantity', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array( - 'max_length' => '255', - ), - 'translatable' => '0', - 'type' => 'text', - ), - 'field_instance' => array( - 'bundle' => 'farm_harvest', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '2', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_quantity', - 'label' => 'Quantity', - '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' => '2', - ), - ), - ); - // Exported field: 'log-farm_issue-field_farm_areas'. $fields['log-farm_issue-field_farm_areas'] = array( 'field_config' => array( @@ -1122,7 +55,7 @@ function farm_log_field_default_fields() { 'module' => 'taxonomy', 'settings' => array(), 'type' => 'taxonomy_term_reference_link', - 'weight' => '1', + 'weight' => '2', ), ), 'entity_type' => 'log', @@ -1133,14 +66,14 @@ function farm_log_field_default_fields() { 'user_register_form' => FALSE, ), 'widget' => array( - 'active' => 1, + 'active' => 0, 'module' => 'taxonomy', 'settings' => array( 'autocomplete_path' => 'taxonomy/autocomplete', 'size' => 60, ), 'type' => 'taxonomy_autocomplete', - 'weight' => '2', + 'weight' => '3', ), ), ); @@ -1190,7 +123,7 @@ function farm_log_field_default_fields() { 'module' => 'taxonomy', 'settings' => array(), 'type' => 'taxonomy_term_reference_link', - 'weight' => '0', + 'weight' => '1', ), ), 'entity_type' => 'log', @@ -1208,7 +141,7 @@ function farm_log_field_default_fields() { 'size' => 60, ), 'type' => 'taxonomy_autocomplete', - 'weight' => '1', + 'weight' => '2', ), ), ); @@ -1256,7 +189,7 @@ function farm_log_field_default_fields() { 'image_style' => 'large', ), 'type' => 'image', - 'weight' => '3', + 'weight' => '5', ), ), 'entity_type' => 'log', @@ -1282,7 +215,147 @@ function farm_log_field_default_fields() { 'progress_indicator' => 'throbber', ), 'type' => 'image_image', - 'weight' => '5', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'log-farm_issue-field_farm_issue_severity'. + $fields['log-farm_issue-field_farm_issue_severity'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_issue_severity', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'locked' => '0', + 'module' => 'list', + 'settings' => array( + 'allowed_values' => array( + 'low priority' => 'low priority', + 'important' => 'important', + 'urgent' => 'urgent', + ), + 'allowed_values_function' => '', + ), + 'translatable' => '0', + 'type' => 'list_text', + ), + 'field_instance' => array( + 'bundle' => 'farm_issue', + 'default_value' => array( + 0 => array( + 'value' => 'important', + ), + ), + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'list', + 'settings' => array(), + 'type' => 'list_default', + 'weight' => '0', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_issue_severity', + 'label' => 'Issue severity', + 'required' => 1, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'log-farm_issue-field_farm_issues'. + $fields['log-farm_issue-field_farm_issues'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_issues', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_issue' => 'farm_issue', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_issue', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select other issues that are related to this one. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '6', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_issues', + 'label' => 'Related Issues', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '8', ), ), ); @@ -1325,412 +398,10 @@ function farm_log_field_default_fields() { 'module' => 'text', 'settings' => array(), 'type' => 'text_default', - 'weight' => '2', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_notes', - 'label' => 'Notes', - 'required' => 0, - 'settings' => array( - 'text_processing' => '0', - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'text', - 'settings' => array( - 'rows' => '5', - ), - 'type' => 'text_textarea', - 'weight' => '3', - ), - ), - ); - - // Exported field: 'log-farm_seeding-field_farm_areas'. - $fields['log-farm_seeding-field_farm_areas'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_areas', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - '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', - ), - 'field_instance' => array( - 'bundle' => 'farm_seeding', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '1', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_areas', - 'label' => 'Areas', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '1', - ), - ), - ); - - // Exported field: 'log-farm_seeding-field_farm_containers'. - $fields['log-farm_seeding-field_farm_containers'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_containers', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_containers', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_seeding', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', 'weight' => '4', ), ), 'entity_type' => 'log', - 'field_name' => 'field_farm_containers', - 'label' => 'Containers', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '3', - ), - ), - ); - - // Exported field: 'log-farm_seeding-field_farm_crops'. - $fields['log-farm_seeding-field_farm_crops'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_crops', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_crops', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_seeding', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '0', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_crops', - 'label' => 'Crops', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '0', - ), - ), - ); - - // Exported field: 'log-farm_seeding-field_farm_images'. - $fields['log-farm_seeding-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_seeding', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'hidden', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => 'large', - ), - 'type' => 'image', - 'weight' => '7', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '7', - ), - ), - ); - - // Exported field: 'log-farm_seeding-field_farm_measurements'. - $fields['log-farm_seeding-field_farm_measurements'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_measurements', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array( - 'max_length' => '255', - ), - 'translatable' => '0', - 'type' => 'text', - ), - 'field_instance' => array( - 'bundle' => 'farm_seeding', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '5', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_measurements', - 'label' => 'Measurements', - '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' => '2', - ), - ), - ); - - // Exported field: 'log-farm_seeding-field_farm_notes'. - $fields['log-farm_seeding-field_farm_notes'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_notes', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array(), - 'translatable' => '0', - 'type' => 'text_long', - ), - 'field_instance' => array( - 'bundle' => 'farm_seeding', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '6', - ), - ), - 'entity_type' => 'log', 'field_name' => 'field_farm_notes', 'label' => 'Notes', 'required' => 0, @@ -1745,284 +416,13 @@ function farm_log_field_default_fields() { 'rows' => '5', ), 'type' => 'text_textarea', - 'weight' => '5', + 'weight' => '6', ), ), ); - // Exported field: 'log-farm_threat-field_farm_areas'. - $fields['log-farm_threat-field_farm_areas'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_areas', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - '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', - ), - 'field_instance' => array( - 'bundle' => 'farm_threat', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '2', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_areas', - 'label' => 'Areas', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '2', - ), - ), - ); - - // Exported field: 'log-farm_threat-field_farm_crops'. - $fields['log-farm_threat-field_farm_crops'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_crops', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_crops', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_threat', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '1', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_crops', - 'label' => 'Crops', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '1', - ), - ), - ); - - // Exported field: 'log-farm_threat-field_farm_images'. - $fields['log-farm_threat-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_threat', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'hidden', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => 'large', - ), - 'type' => 'image', - 'weight' => '4', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '5', - ), - ), - ); - - // Exported field: 'log-farm_threat-field_farm_notes'. - $fields['log-farm_threat-field_farm_notes'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_notes', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array(), - 'translatable' => '0', - 'type' => 'text_long', - ), - 'field_instance' => array( - 'bundle' => 'farm_threat', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '3', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_notes', - 'label' => 'Notes', - 'required' => 0, - 'settings' => array( - 'text_processing' => '0', - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'text', - 'settings' => array( - 'rows' => '5', - ), - 'type' => 'text_textarea', - 'weight' => '3', - ), - ), - ); - - // Exported field: 'log-farm_threat-field_farm_threats'. - $fields['log-farm_threat-field_farm_threats'] = array( + // Exported field: 'log-farm_issue-field_farm_threats'. + $fields['log-farm_issue-field_farm_threats'] = array( 'field_config' => array( 'active' => '1', 'cardinality' => '-1', @@ -2056,17 +456,17 @@ function farm_log_field_default_fields() { 'type' => 'taxonomy_term_reference', ), 'field_instance' => array( - 'bundle' => 'farm_threat', + 'bundle' => 'farm_issue', 'default_value' => NULL, 'deleted' => '0', - 'description' => '', + 'description' => 'List any threats involved with this issue. This helps to categorize data. Separate each threat with a comma. As you type, you will have the option of selecting from threats that you\'ve entered in the past.', 'display' => array( 'default' => array( 'label' => 'inline', 'module' => 'taxonomy', 'settings' => array(), 'type' => 'taxonomy_term_reference_link', - 'weight' => '0', + 'weight' => '3', ), ), 'entity_type' => 'log', @@ -2076,139 +476,6 @@ function farm_log_field_default_fields() { 'settings' => array( 'user_register_form' => FALSE, ), - 'widget' => array( - 'active' => 1, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '0', - ), - ), - ); - - // Exported field: 'log-farm_transplanting-field_farm_areas'. - $fields['log-farm_transplanting-field_farm_areas'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_areas', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - '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', - ), - 'field_instance' => array( - 'bundle' => 'farm_transplanting', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '1', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_areas', - 'label' => 'Areas', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'options', - 'settings' => array(), - 'type' => 'options_select', - 'weight' => '2', - ), - ), - ); - - // Exported field: 'log-farm_transplanting-field_farm_crops'. - $fields['log-farm_transplanting-field_farm_crops'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_crops', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_crops', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_transplanting', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'inline', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => '0', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_crops', - 'label' => 'Crops', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), 'widget' => array( 'active' => 0, 'module' => 'taxonomy', @@ -2222,621 +489,16 @@ function farm_log_field_default_fields() { ), ); - // Exported field: 'log-farm_transplanting-field_farm_images'. - $fields['log-farm_transplanting-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_transplanting', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'hidden', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => 'large', - ), - 'type' => 'image', - 'weight' => '3', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '8', - ), - ), - ); - - // Exported field: 'log-farm_transplanting-field_farm_notes'. - $fields['log-farm_transplanting-field_farm_notes'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_notes', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array(), - 'translatable' => '0', - 'type' => 'text_long', - ), - 'field_instance' => array( - 'bundle' => 'farm_transplanting', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => '2', - ), - ), - 'entity_type' => 'log', - 'field_name' => 'field_farm_notes', - 'label' => 'Notes', - 'required' => 0, - 'settings' => array( - 'text_processing' => '0', - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'text', - 'settings' => array( - 'rows' => '5', - ), - 'type' => 'text_textarea', - 'weight' => '6', - ), - ), - ); - - // Exported field: 'taxonomy_term-farm_areas-field_farm_areas'. - $fields['taxonomy_term-farm_areas-field_farm_areas'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_areas', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - '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', - ), - 'field_instance' => array( - 'bundle' => 'farm_areas', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => 7, - ), - ), - 'entity_type' => 'taxonomy_term', - 'field_name' => 'field_farm_areas', - 'label' => 'Adjacent areas', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '2', - ), - ), - ); - - // Exported field: 'taxonomy_term-farm_areas-field_farm_images'. - $fields['taxonomy_term-farm_areas-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_areas', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => '', - ), - 'type' => 'image', - 'weight' => 8, - ), - ), - 'entity_type' => 'taxonomy_term', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '4', - ), - ), - ); - - // Exported field: 'taxonomy_term-farm_areas-field_farm_measurements'. - $fields['taxonomy_term-farm_areas-field_farm_measurements'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_measurements', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array( - 'max_length' => '255', - ), - 'translatable' => '0', - 'type' => 'text', - ), - 'field_instance' => array( - 'bundle' => 'farm_areas', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => 9, - ), - ), - 'entity_type' => 'taxonomy_term', - 'field_name' => 'field_farm_measurements', - 'label' => 'Measurements', - '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: 'taxonomy_term-farm_crops-field_farm_companions'. - $fields['taxonomy_term-farm_crops-field_farm_companions'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_companions', - 'foreign keys' => array( - 'tid' => array( - 'columns' => array( - 'tid' => 'tid', - ), - 'table' => 'taxonomy_term_data', - ), - ), - 'indexes' => array( - 'tid' => array( - 0 => 'tid', - ), - ), - 'locked' => '0', - 'module' => 'taxonomy', - 'settings' => array( - 'allowed_values' => array( - 0 => array( - 'vocabulary' => 'farm_crops', - 'parent' => '0', - ), - ), - ), - 'translatable' => '0', - 'type' => 'taxonomy_term_reference', - ), - 'field_instance' => array( - 'bundle' => 'farm_crops', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'taxonomy', - 'settings' => array(), - 'type' => 'taxonomy_term_reference_link', - 'weight' => 7, - ), - ), - 'entity_type' => 'taxonomy_term', - 'field_name' => 'field_farm_companions', - 'label' => 'Companions', - 'required' => 0, - 'settings' => array( - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'taxonomy', - 'settings' => array( - 'autocomplete_path' => 'taxonomy/autocomplete', - 'size' => 60, - ), - 'type' => 'taxonomy_autocomplete', - 'weight' => '2', - ), - ), - ); - - // Exported field: 'taxonomy_term-farm_crops-field_farm_crop_family'. - $fields['taxonomy_term-farm_crops-field_farm_crop_family'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_crop_family', - 'foreign keys' => array( - 'format' => array( - 'columns' => array( - 'format' => 'format', - ), - 'table' => 'filter_format', - ), - ), - 'indexes' => array( - 'format' => array( - 0 => 'format', - ), - ), - 'locked' => '0', - 'module' => 'text', - 'settings' => array( - 'max_length' => '255', - ), - 'translatable' => '0', - 'type' => 'text', - ), - 'field_instance' => array( - 'bundle' => 'farm_crops', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'text', - 'settings' => array(), - 'type' => 'text_default', - 'weight' => 9, - ), - ), - 'entity_type' => 'taxonomy_term', - 'field_name' => 'field_farm_crop_family', - 'label' => 'Crop family', - '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: 'taxonomy_term-farm_crops-field_farm_images'. - $fields['taxonomy_term-farm_crops-field_farm_images'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '-1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_images', - 'foreign keys' => array( - 'fid' => array( - 'columns' => array( - 'fid' => 'fid', - ), - 'table' => 'file_managed', - ), - ), - 'indexes' => array( - 'fid' => array( - 0 => 'fid', - ), - ), - 'locked' => '0', - 'module' => 'image', - 'settings' => array( - 'default_image' => 0, - 'uri_scheme' => 'public', - ), - 'translatable' => '0', - 'type' => 'image', - ), - 'field_instance' => array( - 'bundle' => 'farm_crops', - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => '', - ), - 'type' => 'image', - 'weight' => 6, - ), - ), - 'entity_type' => 'taxonomy_term', - 'field_name' => 'field_farm_images', - 'label' => 'Images', - 'required' => 0, - 'settings' => array( - 'alt_field' => 0, - 'default_image' => 0, - 'file_directory' => '', - 'file_extensions' => 'png gif jpg jpeg', - 'max_filesize' => '', - 'max_resolution' => '', - 'min_resolution' => '', - 'title_field' => 0, - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 1, - 'module' => 'image', - 'settings' => array( - 'preview_image_style' => 'thumbnail', - 'progress_indicator' => 'throbber', - ), - 'type' => 'image_image', - 'weight' => '5', - ), - ), - ); - - // Exported field: 'taxonomy_term-farm_crops-field_farm_maturity_days'. - $fields['taxonomy_term-farm_crops-field_farm_maturity_days'] = array( - 'field_config' => array( - 'active' => '1', - 'cardinality' => '1', - 'deleted' => '0', - 'entity_types' => array(), - 'field_name' => 'field_farm_maturity_days', - 'foreign keys' => array(), - 'indexes' => array(), - 'locked' => '0', - 'module' => 'number', - 'settings' => array(), - 'translatable' => '0', - 'type' => 'number_integer', - ), - 'field_instance' => array( - 'bundle' => 'farm_crops', - 'default_value' => NULL, - 'deleted' => '0', - 'description' => '', - 'display' => array( - 'default' => array( - 'label' => 'above', - 'module' => 'number', - 'settings' => array( - 'decimal_separator' => '.', - 'prefix_suffix' => TRUE, - 'scale' => 0, - 'thousand_separator' => ' ', - ), - 'type' => 'number_integer', - 'weight' => 8, - ), - ), - 'entity_type' => 'taxonomy_term', - 'field_name' => 'field_farm_maturity_days', - 'label' => 'Days to maturity', - 'required' => 0, - 'settings' => array( - 'max' => '', - 'min' => '', - 'prefix' => '', - 'suffix' => ' day| days', - 'user_register_form' => FALSE, - ), - 'widget' => array( - 'active' => 0, - 'module' => 'number', - 'settings' => array(), - 'type' => 'number', - 'weight' => '3', - ), - ), - ); - // Translatables // Included for use with string extractors like potx. - t('Adjacent areas'); t('Areas'); - t('Companions'); - t('Containers'); - t('Crop family'); t('Crops'); - t('Days to maturity'); - t('Fertilizers'); t('Images'); - t('Measurements'); + t('Issue severity'); + t('List any threats involved with this issue. This helps to categorize data. Separate each threat with a comma. As you type, you will have the option of selecting from threats that you\'ve entered in the past.'); t('Notes'); - t('Quantity'); + t('Optionally, select other issues that are related to this one. This helps to connect data.'); + t('Related Issues'); t('Threats'); return $fields; diff --git a/farm_log.features.inc b/farm_log.features.inc index 002e3245a..03b79797f 100644 --- a/farm_log.features.inc +++ b/farm_log.features.inc @@ -4,24 +4,11 @@ * farm_log.features.inc */ -/** - * Implements hook_views_api(). - */ -function farm_log_views_api() { - return array("version" => "3.0"); -} - /** * Implements hook_default_log_type(). */ function farm_log_default_log_type() { $items = array(); - $items['farm_failure'] = entity_import('log_type', '{ "type" : "farm_failure", "label" : "Failure", "weight" : 0 }'); - $items['farm_fertilization'] = entity_import('log_type', '{ "type" : "farm_fertilization", "label" : "Fertilization", "weight" : 0 }'); - $items['farm_harvest'] = entity_import('log_type', '{ "type" : "farm_harvest", "label" : "Harvest", "weight" : 0 }'); $items['farm_issue'] = entity_import('log_type', '{ "type" : "farm_issue", "label" : "Issue", "weight" : 0 }'); - $items['farm_seeding'] = entity_import('log_type', '{ "type" : "farm_seeding", "label" : "Seeding", "weight" : 0 }'); - $items['farm_threat'] = entity_import('log_type', '{ "type" : "farm_threat", "label" : "Threat", "weight" : 0 }'); - $items['farm_transplanting'] = entity_import('log_type', '{ "type" : "farm_transplanting", "label" : "Transplanting", "weight" : 0 }'); return $items; } diff --git a/farm_log.features.taxonomy.inc b/farm_log.features.taxonomy.inc deleted file mode 100644 index cafa2e2d0..000000000 --- a/farm_log.features.taxonomy.inc +++ /dev/null @@ -1,53 +0,0 @@ - array( - 'name' => 'Areas', - 'machine_name' => 'farm_areas', - 'description' => 'Distinct fields or beds that crops will be planted into.', - 'hierarchy' => '0', - 'module' => 'taxonomy', - 'weight' => '0', - ), - 'farm_containers' => array( - 'name' => 'Containers', - 'machine_name' => 'farm_containers', - 'description' => 'Various types of containers for growing crops.', - 'hierarchy' => '0', - 'module' => 'taxonomy', - 'weight' => '0', - ), - 'farm_crops' => array( - 'name' => 'Crops', - 'machine_name' => 'farm_crops', - 'description' => 'A taxonomy of crop types and varieties.', - 'hierarchy' => '0', - 'module' => 'taxonomy', - 'weight' => '0', - ), - 'farm_fertilizers' => array( - 'name' => 'Fertilizers', - 'machine_name' => 'farm_fertilizers', - 'description' => 'Materials used to fertilize crops, areas, etc.', - 'hierarchy' => '0', - 'module' => 'taxonomy', - 'weight' => '0', - ), - 'farm_threats' => array( - 'name' => 'Threats', - 'machine_name' => 'farm_threats', - 'description' => 'External forces that threaten your crops.', - 'hierarchy' => '0', - 'module' => 'taxonomy', - 'weight' => '0', - ), - ); -} diff --git a/farm_log.info b/farm_log.info index 898a1b806..549fd4a13 100644 --- a/farm_log.info +++ b/farm_log.info @@ -1,72 +1,24 @@ name = Farm Log -description = A feature that provides taxonomies, log types, and fields for farm recordkeeping. +description = Log types and fields for farms. core = 7.x package = Farm Features -dependencies[] = ctools dependencies[] = entity +dependencies[] = entityreference +dependencies[] = farm_taxonomy dependencies[] = features dependencies[] = field_sql_storage dependencies[] = image +dependencies[] = list dependencies[] = log -dependencies[] = number dependencies[] = options dependencies[] = taxonomy dependencies[] = text -dependencies[] = views -features[ctools][] = views:views_default:3.0 features[features_api][] = api:1 -features[field][] = log-farm_failure-field_farm_areas -features[field][] = log-farm_failure-field_farm_crops -features[field][] = log-farm_failure-field_farm_images -features[field][] = log-farm_failure-field_farm_notes -features[field][] = log-farm_failure-field_farm_quantity -features[field][] = log-farm_fertilization-field_farm_areas -features[field][] = log-farm_fertilization-field_farm_crops -features[field][] = log-farm_fertilization-field_farm_fertilizers -features[field][] = log-farm_fertilization-field_farm_images -features[field][] = log-farm_fertilization-field_farm_notes -features[field][] = log-farm_fertilization-field_farm_quantity -features[field][] = log-farm_harvest-field_farm_areas -features[field][] = log-farm_harvest-field_farm_crops -features[field][] = log-farm_harvest-field_farm_images -features[field][] = log-farm_harvest-field_farm_notes -features[field][] = log-farm_harvest-field_farm_quantity features[field][] = log-farm_issue-field_farm_areas features[field][] = log-farm_issue-field_farm_crops features[field][] = log-farm_issue-field_farm_images +features[field][] = log-farm_issue-field_farm_issue_severity +features[field][] = log-farm_issue-field_farm_issues features[field][] = log-farm_issue-field_farm_notes -features[field][] = log-farm_seeding-field_farm_areas -features[field][] = log-farm_seeding-field_farm_containers -features[field][] = log-farm_seeding-field_farm_crops -features[field][] = log-farm_seeding-field_farm_images -features[field][] = log-farm_seeding-field_farm_measurements -features[field][] = log-farm_seeding-field_farm_notes -features[field][] = log-farm_threat-field_farm_areas -features[field][] = log-farm_threat-field_farm_crops -features[field][] = log-farm_threat-field_farm_images -features[field][] = log-farm_threat-field_farm_notes -features[field][] = log-farm_threat-field_farm_threats -features[field][] = log-farm_transplanting-field_farm_areas -features[field][] = log-farm_transplanting-field_farm_crops -features[field][] = log-farm_transplanting-field_farm_images -features[field][] = log-farm_transplanting-field_farm_notes -features[field][] = taxonomy_term-farm_areas-field_farm_areas -features[field][] = taxonomy_term-farm_areas-field_farm_images -features[field][] = taxonomy_term-farm_areas-field_farm_measurements -features[field][] = taxonomy_term-farm_crops-field_farm_companions -features[field][] = taxonomy_term-farm_crops-field_farm_crop_family -features[field][] = taxonomy_term-farm_crops-field_farm_images -features[field][] = taxonomy_term-farm_crops-field_farm_maturity_days -features[log_type][] = farm_failure -features[log_type][] = farm_fertilization -features[log_type][] = farm_harvest +features[field][] = log-farm_issue-field_farm_threats features[log_type][] = farm_issue -features[log_type][] = farm_seeding -features[log_type][] = farm_threat -features[log_type][] = farm_transplanting -features[taxonomy][] = farm_areas -features[taxonomy][] = farm_containers -features[taxonomy][] = farm_crops -features[taxonomy][] = farm_fertilizers -features[taxonomy][] = farm_threats -features[views_view][] = logs diff --git a/farm_log_crops/farm_log_crops.features.field.inc b/farm_log_crops/farm_log_crops.features.field.inc new file mode 100644 index 000000000..4789cdb93 --- /dev/null +++ b/farm_log_crops/farm_log_crops.features.field.inc @@ -0,0 +1,2032 @@ + array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_areas', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + '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', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '4', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_areas', + 'label' => 'Areas', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '4', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_crops'. + $fields['log-farm_fertilize-field_farm_crops'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_crops', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_crops', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '3', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_crops', + 'label' => 'Crops', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '3', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_fertilizers'. + $fields['log-farm_fertilize-field_farm_fertilizers'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_fertilizers', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_fertilizers', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '0', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_fertilizers', + 'label' => 'Fertilizer', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '0', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_fertilizings'. + $fields['log-farm_fertilize-field_farm_fertilizings'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_fertilizings', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_fertilize' => 'farm_fertilize', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select other logged fertilizings that are related to this one. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '8', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_fertilizings', + 'label' => 'Related Fertilizings', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '8', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_images'. + $fields['log-farm_fertilize-field_farm_images'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_images', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => 'large', + ), + 'type' => 'image', + 'weight' => '6', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_images', + 'label' => 'Images', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_notes'. + $fields['log-farm_fertilize-field_farm_notes'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_notes', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '5', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_notes', + 'label' => 'Notes', + 'required' => 0, + 'settings' => array( + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => '5', + ), + 'type' => 'text_textarea', + 'weight' => '5', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_plantings'. + $fields['log-farm_fertilize-field_farm_plantings'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_plantings', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_planting' => 'farm_planting', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select plantings that are related to this fertilization. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '7', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_plantings', + 'label' => 'Related Plantings', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_quantity_units'. + $fields['log-farm_fertilize-field_farm_quantity_units'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_units', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_quantity_units', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Gallons? Pounds? Handfuls?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '2', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_units', + 'label' => 'Units', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'log-farm_fertilize-field_farm_quantity_value'. + $fields['log-farm_fertilize-field_farm_quantity_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_fertilize', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'How much?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_value', + 'label' => 'Quantity', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '2', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_areas'. + $fields['log-farm_harvest-field_farm_areas'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_areas', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + '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', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '3', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_areas', + 'label' => 'Areas', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '3', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_crops'. + $fields['log-farm_harvest-field_farm_crops'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_crops', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_crops', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '0', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_crops', + 'label' => 'Crops', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '0', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_harvests'. + $fields['log-farm_harvest-field_farm_harvests'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_harvests', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_harvest' => 'farm_harvest', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select other harvests that are related to this one. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '8', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_harvests', + 'label' => 'Related Harvests', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '8', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_images'. + $fields['log-farm_harvest-field_farm_images'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_images', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => 'large', + ), + 'type' => 'image', + 'weight' => '5', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_images', + 'label' => 'Images', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '5', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_issues'. + $fields['log-farm_harvest-field_farm_issues'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_issues', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_issue' => 'farm_issue', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select issues that are related to this harvest. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '6', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_issues', + 'label' => 'Related Issues', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_notes'. + $fields['log-farm_harvest-field_farm_notes'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_notes', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '4', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_notes', + 'label' => 'Notes', + 'required' => 0, + 'settings' => array( + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => '5', + ), + 'type' => 'text_textarea', + 'weight' => '4', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_plantings'. + $fields['log-farm_harvest-field_farm_plantings'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_plantings', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_planting' => 'farm_planting', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select plantings that are related to this harvest. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '7', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_plantings', + 'label' => 'Related Plantings', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_quantity_units'. + $fields['log-farm_harvest-field_farm_quantity_units'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_units', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_quantity_units', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Bushels? Pounds? Dozens?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '2', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_units', + 'label' => 'Units', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'log-farm_harvest-field_farm_quantity_value'. + $fields['log-farm_harvest-field_farm_quantity_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_harvest', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'How much?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_value', + 'label' => 'Quantity', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '2', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_areas'. + $fields['log-farm_planting-field_farm_areas'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_areas', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + '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', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '5', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_areas', + 'label' => 'Areas', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '5', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_containers'. + $fields['log-farm_planting-field_farm_containers'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_containers', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_containers', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '4', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_containers', + 'label' => 'Containers', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '4', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_crops'. + $fields['log-farm_planting-field_farm_crops'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_crops', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_crops', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '1', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_crops', + 'label' => 'Crops', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_images'. + $fields['log-farm_planting-field_farm_images'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_images', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => 'large', + ), + 'type' => 'image', + 'weight' => '9', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_images', + 'label' => 'Images', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '9', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_notes'. + $fields['log-farm_planting-field_farm_notes'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_notes', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '8', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_notes', + 'label' => 'Notes', + 'required' => 0, + 'settings' => array( + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => '5', + ), + 'type' => 'text_textarea', + 'weight' => '8', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_planting_type'. + $fields['log-farm_planting-field_farm_planting_type'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_planting_type', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'locked' => '0', + 'module' => 'list', + 'settings' => array( + 'allowed_values' => array( + 'direct seeding' => 'direct seeding', + 'transplanting' => 'transplanting', + ), + 'allowed_values_function' => '', + ), + 'translatable' => '0', + 'type' => 'list_text', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => array( + 0 => array( + 'value' => 'direct seeding', + ), + ), + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'list', + 'settings' => array(), + 'type' => 'list_default', + 'weight' => '0', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_planting_type', + 'label' => 'Planting type', + 'required' => 1, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '0', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_plantings'. + $fields['log-farm_planting-field_farm_plantings'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_plantings', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_planting' => 'farm_planting', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Select other plantings that are related to this one. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '10', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_plantings', + 'label' => 'Related Plantings', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '10', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_quantity_units'. + $fields['log-farm_planting-field_farm_quantity_units'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_units', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_quantity_units', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Row feet? Acres? 4" pots?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '3', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_units', + 'label' => 'Units', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '3', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_quantity_value'. + $fields['log-farm_planting-field_farm_quantity_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'How much?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '2', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_value', + 'label' => 'Quantity', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_seeding_date'. + $fields['log-farm_planting-field_farm_seeding_date'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_seeding_date', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'date', + 'settings' => array( + 'cache_count' => '4', + 'cache_enabled' => 0, + 'granularity' => array( + 'day' => 'day', + 'hour' => 0, + 'minute' => 0, + 'month' => 'month', + 'second' => 0, + 'year' => 'year', + ), + 'timezone_db' => '', + 'todate' => '', + 'tz_handling' => 'none', + ), + 'translatable' => '0', + 'type' => 'datestamp', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'deleted' => '0', + 'description' => 'When was this planting direct seeded, if ever?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'date', + 'settings' => array( + 'format_type' => 'long', + 'fromto' => 'both', + 'multiple_from' => '', + 'multiple_number' => '', + 'multiple_to' => '', + ), + 'type' => 'date_default', + 'weight' => '6', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_seeding_date', + 'label' => 'Seeding date', + 'required' => 0, + 'settings' => array( + 'default_value' => 'now', + 'default_value2' => 'same', + 'default_value_code' => '', + 'default_value_code2' => '', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'date', + 'settings' => array( + 'increment' => '15', + 'input_format' => 'm/d/Y - H:i:s', + 'input_format_custom' => '', + 'label_position' => 'above', + 'text_parts' => array(), + 'year_range' => '-3:+3', + ), + 'type' => 'date_popup', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'log-farm_planting-field_farm_transplant_date'. + $fields['log-farm_planting-field_farm_transplant_date'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_transplant_date', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'date', + 'settings' => array( + 'cache_count' => '4', + 'cache_enabled' => 0, + 'granularity' => array( + 'day' => 'day', + 'hour' => 'hour', + 'minute' => 0, + 'month' => 'month', + 'second' => 0, + 'year' => 'year', + ), + 'timezone_db' => 'UTC', + 'todate' => '', + 'tz_handling' => 'site', + ), + 'translatable' => '0', + 'type' => 'datestamp', + ), + 'field_instance' => array( + 'bundle' => 'farm_planting', + 'deleted' => '0', + 'description' => 'When was this planting direct seeded, if ever?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'date', + 'settings' => array( + 'format_type' => 'long', + 'fromto' => 'both', + 'multiple_from' => '', + 'multiple_number' => '', + 'multiple_to' => '', + ), + 'type' => 'date_default', + 'weight' => '7', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_transplant_date', + 'label' => 'Transplanting date', + 'required' => 0, + 'settings' => array( + 'default_value' => 'now', + 'default_value2' => 'same', + 'default_value_code' => '', + 'default_value_code2' => '', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'date', + 'settings' => array( + 'increment' => '15', + 'input_format' => 'm/d/Y - H:i:s', + 'input_format_custom' => '', + 'label_position' => 'above', + 'text_parts' => array(), + 'year_range' => '-3:+3', + ), + 'type' => 'date_popup', + 'weight' => '7', + ), + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Areas'); + t('Bushels? Pounds? Dozens?'); + t('Containers'); + t('Crops'); + t('Fertilizer'); + t('Gallons? Pounds? Handfuls?'); + t('How much?'); + t('Images'); + t('Notes'); + t('Optionally, select issues that are related to this harvest. This helps to connect data.'); + t('Optionally, select other harvests that are related to this one. This helps to connect data.'); + t('Optionally, select other logged fertilizings that are related to this one. This helps to connect data.'); + t('Optionally, select plantings that are related to this fertilization. This helps to connect data.'); + t('Optionally, select plantings that are related to this harvest. This helps to connect data.'); + t('Planting type'); + t('Quantity'); + t('Related Fertilizings'); + t('Related Harvests'); + t('Related Issues'); + t('Related Plantings'); + t('Row feet? Acres? 4" pots?'); + t('Seeding date'); + t('Select other plantings that are related to this one. This helps to connect data.'); + t('Transplanting date'); + t('Units'); + t('When was this planting direct seeded, if ever?'); + + return $fields; +} diff --git a/farm_log_crops/farm_log_crops.features.inc b/farm_log_crops/farm_log_crops.features.inc new file mode 100644 index 000000000..718ef12c2 --- /dev/null +++ b/farm_log_crops/farm_log_crops.features.inc @@ -0,0 +1,16 @@ + array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_areas', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + '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', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '4', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_areas', + 'label' => 'Areas', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '4', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_crops'. + $fields['log-farm_loss-field_farm_crops'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_crops', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_crops', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '3', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_crops', + 'label' => 'Crops', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '3', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_images'. + $fields['log-farm_loss-field_farm_images'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_images', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => 'large', + ), + 'type' => 'image', + 'weight' => '6', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_images', + 'label' => 'Images', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_issues'. + $fields['log-farm_loss-field_farm_issues'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_issues', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_issue' => 'farm_issue', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select other issues that are related to this loss. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '7', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_issues', + 'label' => 'Related Issues', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_losses'. + $fields['log-farm_loss-field_farm_losses'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_losses', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_loss' => 'farm_loss', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select other losses that are related to this one. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '9', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_losses', + 'label' => 'Related Losses', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '9', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_notes'. + $fields['log-farm_loss-field_farm_notes'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_notes', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '5', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_notes', + 'label' => 'Notes', + 'required' => 0, + 'settings' => array( + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => '5', + ), + 'type' => 'text_textarea', + 'weight' => '5', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_plantings'. + $fields['log-farm_loss-field_farm_plantings'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_plantings', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_planting' => 'farm_planting', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select plantings that are related to this loss. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '8', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_plantings', + 'label' => 'Related Plantings', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '8', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_quantity_units'. + $fields['log-farm_loss-field_farm_quantity_units'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_units', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_quantity_units', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Row feet? Bushels? Chickens?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '2', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_units', + 'label' => 'Units', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_quantity_value'. + $fields['log-farm_loss-field_farm_quantity_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'How much?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_value', + 'label' => 'Quantity', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'log-farm_loss-field_farm_value'. + $fields['log-farm_loss-field_farm_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_loss', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'What was the monetary value of the loss?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => 2, + ), + 'type' => 'fraction_decimal', + 'weight' => '0', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_value', + 'label' => 'Value', + 'required' => 1, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '2', + ), + 'type' => 'fraction_decimal', + 'weight' => '0', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_areas'. + $fields['log-farm_purchase-field_farm_areas'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_areas', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + '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', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '4', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_areas', + 'label' => 'Areas', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '4', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_crops'. + $fields['log-farm_purchase-field_farm_crops'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_crops', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_crops', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '3', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_crops', + 'label' => 'Crops', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '3', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_images'. + $fields['log-farm_purchase-field_farm_images'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_images', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => 'large', + ), + 'type' => 'image', + 'weight' => '6', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_images', + 'label' => 'Images', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_issues'. + $fields['log-farm_purchase-field_farm_issues'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_issues', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_issue' => 'farm_issue', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select issues that are related to this purchase. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '7', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_issues', + 'label' => 'Related Issues', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_notes'. + $fields['log-farm_purchase-field_farm_notes'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_notes', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '5', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_notes', + 'label' => 'Notes', + 'required' => 0, + 'settings' => array( + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => '5', + ), + 'type' => 'text_textarea', + 'weight' => '5', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_plantings'. + $fields['log-farm_purchase-field_farm_plantings'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_plantings', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_planting' => 'farm_planting', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select plantings that are related to this purchase. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '8', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_plantings', + 'label' => 'Related Plantings', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '8', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_purchases'. + $fields['log-farm_purchase-field_farm_purchases'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_purchases', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'ASC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_purchase' => 'farm_purchase', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select other purchases that are related to this one. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '9', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_purchases', + 'label' => 'Related Purchases', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '9', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_quantity_units'. + $fields['log-farm_purchase-field_farm_quantity_units'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_units', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_quantity_units', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Packets? Feet? Pounds?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '2', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_units', + 'label' => 'Units', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_quantity_value'. + $fields['log-farm_purchase-field_farm_quantity_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'How much?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_value', + 'label' => 'Quantity', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'log-farm_purchase-field_farm_value'. + $fields['log-farm_purchase-field_farm_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_purchase', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'What was the monetary value of the loss?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => 2, + ), + 'type' => 'fraction_decimal', + 'weight' => '0', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_value', + 'label' => 'Value', + 'required' => 1, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '2', + ), + 'type' => 'fraction_decimal', + 'weight' => '0', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_areas'. + $fields['log-farm_sale-field_farm_areas'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_areas', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + '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', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '4', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_areas', + 'label' => 'Areas', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '4', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_crops'. + $fields['log-farm_sale-field_farm_crops'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_crops', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_crops', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '3', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_crops', + 'label' => 'Crops', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '3', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_images'. + $fields['log-farm_sale-field_farm_images'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_images', + 'foreign keys' => array( + 'fid' => array( + 'columns' => array( + 'fid' => 'fid', + ), + 'table' => 'file_managed', + ), + ), + 'indexes' => array( + 'fid' => array( + 0 => 'fid', + ), + ), + 'locked' => '0', + 'module' => 'image', + 'settings' => array( + 'default_image' => 0, + 'uri_scheme' => 'public', + ), + 'translatable' => '0', + 'type' => 'image', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => 'large', + ), + 'type' => 'image', + 'weight' => '6', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_images', + 'label' => 'Images', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => '', + 'file_extensions' => 'png gif jpg jpeg', + 'max_filesize' => '', + 'max_resolution' => '', + 'min_resolution' => '', + 'title_field' => 0, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'image', + 'settings' => array( + 'preview_image_style' => 'thumbnail', + 'progress_indicator' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => '6', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_issues'. + $fields['log-farm_sale-field_farm_issues'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_issues', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_issue' => 'farm_issue', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select issues that are related to this sale. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '7', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_issues', + 'label' => 'Related Issues', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '7', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_notes'. + $fields['log-farm_sale-field_farm_notes'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_notes', + 'foreign keys' => array( + 'format' => array( + 'columns' => array( + 'format' => 'format', + ), + 'table' => 'filter_format', + ), + ), + 'indexes' => array( + 'format' => array( + 0 => 'format', + ), + ), + 'locked' => '0', + 'module' => 'text', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'text_long', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => '5', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_notes', + 'label' => 'Notes', + 'required' => 0, + 'settings' => array( + 'text_processing' => '0', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'text', + 'settings' => array( + 'rows' => '5', + ), + 'type' => 'text_textarea', + 'weight' => '5', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_plantings'. + $fields['log-farm_sale-field_farm_plantings'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_plantings', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'DESC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_planting' => 'farm_planting', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select plantings that are related to this sale. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '8', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_plantings', + 'label' => 'Related Plantings', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '8', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_quantity_units'. + $fields['log-farm_sale-field_farm_quantity_units'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_units', + 'foreign keys' => array( + 'tid' => array( + 'columns' => array( + 'tid' => 'tid', + ), + 'table' => 'taxonomy_term_data', + ), + ), + 'indexes' => array( + 'tid' => array( + 0 => 'tid', + ), + ), + 'locked' => '0', + 'module' => 'taxonomy', + 'settings' => array( + 'allowed_values' => array( + 0 => array( + 'vocabulary' => 'farm_quantity_units', + 'parent' => '0', + ), + ), + ), + 'translatable' => '0', + 'type' => 'taxonomy_term_reference', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Cases? Pounds? Bunches?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'taxonomy', + 'settings' => array(), + 'type' => 'taxonomy_term_reference_link', + 'weight' => '2', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_units', + 'label' => 'Units', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 0, + 'module' => 'taxonomy', + 'settings' => array( + 'autocomplete_path' => 'taxonomy/autocomplete', + 'size' => 60, + ), + 'type' => 'taxonomy_autocomplete', + 'weight' => '2', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_quantity_value'. + $fields['log-farm_sale-field_farm_quantity_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_quantity_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'How much?', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_quantity_value', + 'label' => 'Quantity', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '3', + ), + 'type' => 'fraction_decimal', + 'weight' => '1', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_sales'. + $fields['log-farm_sale-field_farm_sales'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '-1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_sales', + 'foreign keys' => array( + 'log' => array( + 'columns' => array( + 'target_id' => 'lid', + ), + 'table' => 'log', + ), + ), + 'indexes' => array( + 'target_id' => array( + 0 => 'target_id', + ), + ), + 'locked' => '0', + 'module' => 'entityreference', + 'settings' => array( + 'handler' => 'base', + 'handler_settings' => array( + 'behaviors' => array( + 'views-select-list' => array( + 'status' => 0, + ), + ), + 'sort' => array( + 'direction' => 'ASC', + 'property' => 'timestamp', + 'type' => 'property', + ), + 'target_bundles' => array( + 'farm_sales' => 'farm_sales', + ), + ), + 'target_type' => 'log', + ), + 'translatable' => '0', + 'type' => 'entityreference', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => 'Optionally, select other sales that are related to this one. This helps to connect data.', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'entityreference', + 'settings' => array( + 'link' => 1, + ), + 'type' => 'entityreference_label', + 'weight' => '9', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_sales', + 'label' => 'Related Sales', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'options', + 'settings' => array(), + 'type' => 'options_select', + 'weight' => '9', + ), + ), + ); + + // Exported field: 'log-farm_sale-field_farm_value'. + $fields['log-farm_sale-field_farm_value'] = array( + 'field_config' => array( + 'active' => '1', + 'cardinality' => '1', + 'deleted' => '0', + 'entity_types' => array(), + 'field_name' => 'field_farm_value', + 'foreign keys' => array(), + 'indexes' => array(), + 'locked' => '0', + 'module' => 'fraction', + 'settings' => array(), + 'translatable' => '0', + 'type' => 'fraction', + ), + 'field_instance' => array( + 'bundle' => 'farm_sale', + 'default_value' => NULL, + 'deleted' => '0', + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'inline', + 'module' => 'fraction', + 'settings' => array( + 'precision' => 2, + ), + 'type' => 'fraction_decimal', + 'weight' => '0', + ), + ), + 'entity_type' => 'log', + 'field_name' => 'field_farm_value', + 'label' => 'Value', + 'required' => 1, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'fraction', + 'settings' => array( + 'precision' => '2', + ), + 'type' => 'fraction_decimal', + 'weight' => '0', + ), + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Areas'); + t('Cases? Pounds? Bunches?'); + t('Crops'); + t('How much?'); + t('Images'); + t('Notes'); + t('Optionally, select issues that are related to this purchase. This helps to connect data.'); + t('Optionally, select issues that are related to this sale. This helps to connect data.'); + t('Optionally, select other issues that are related to this loss. This helps to connect data.'); + t('Optionally, select other losses that are related to this one. This helps to connect data.'); + t('Optionally, select other purchases that are related to this one. This helps to connect data.'); + t('Optionally, select other sales that are related to this one. This helps to connect data.'); + t('Optionally, select plantings that are related to this loss. This helps to connect data.'); + t('Optionally, select plantings that are related to this purchase. This helps to connect data.'); + t('Optionally, select plantings that are related to this sale. This helps to connect data.'); + t('Packets? Feet? Pounds?'); + t('Quantity'); + t('Related Issues'); + t('Related Losses'); + t('Related Plantings'); + t('Related Purchases'); + t('Related Sales'); + t('Row feet? Bushels? Chickens?'); + t('Units'); + t('Value'); + t('What was the monetary value of the loss?'); + + return $fields; +} diff --git a/farm_log_sales/farm_log_sales.features.inc b/farm_log_sales/farm_log_sales.features.inc new file mode 100644 index 000000000..440f432a4 --- /dev/null +++ b/farm_log_sales/farm_log_sales.features.inc @@ -0,0 +1,16 @@ +