3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/farm_crop.features.field.inc

351 lines
9 KiB
PHP

<?php
/**
* @file
* farm_crop.features.field.inc
*/
/**
* Implements hook_field_default_fields().
*/
function farm_crop_field_default_fields() {
$fields = array();
// 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' => '1',
),
),
'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' => '3',
),
),
);
// 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' => '0',
),
),
'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' => '2',
),
),
);
// Exported field: 'taxonomy_term-farm_crops-field_farm_files'.
$fields['taxonomy_term-farm_crops-field_farm_files'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '-1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_farm_files',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
),
),
'locked' => '0',
'module' => 'file',
'settings' => array(
'display_default' => 0,
'display_field' => 0,
'uri_scheme' => 'public',
),
'translatable' => '0',
'type' => 'file',
),
'field_instance' => array(
'bundle' => 'farm_crops',
'deleted' => '0',
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => '5',
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'field_farm_files',
'label' => 'Files',
'required' => 0,
'settings' => array(
'description_field' => 1,
'file_directory' => '',
'file_extensions' => 'csv doc docx odt odp ods pdf ppt pptx txt xls xlsx',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'file',
'settings' => array(
'progress_indicator' => 'throbber',
),
'type' => 'file_generic',
'weight' => '4',
),
),
);
// 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' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => '4',
),
),
'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' => '3',
),
),
);
// 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' => '2',
),
),
'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' => '2',
),
),
);
// Translatables
// Included for use with string extractors like potx.
t('Companions');
t('Crop family');
t('Days to maturity');
t('Files');
t('Images');
return $fields;
}