farmOS/farm_livestock.features.fie...

711 lines
20 KiB
PHP
Raw Normal View History

<?php
/**
* @file
* farm_livestock.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function farm_livestock_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'farm_asset-animal-field_farm_animal_castrated'.
$field_instances['farm_asset-animal-field_farm_animal_castrated'] = array(
'bundle' => 'animal',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => 'Has this animal been castrated?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 5,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_animal_castrated',
'label' => 'Castrated',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 1,
),
'type' => 'options_onoff',
'weight' => 6,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_group'.
$field_instances['farm_asset-animal-field_farm_animal_group'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Assign this animal to a particular group, herd, flock, etc. You can manage the list of available groups in the ' . l('Animal Groups', 'farm/assets/animals/groups') . ' vocabulary.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 1,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_animal_group',
'label' => 'Group',
'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,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_nicknames'.
$field_instances['farm_asset-animal-field_farm_animal_nicknames'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'description' => 'List any nickname(s) of this animal.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_animal_nicknames',
'label' => 'Nickname(s)',
'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,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_parents'.
$field_instances['farm_asset-animal-field_farm_animal_parents'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 7,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_animal_parents',
'label' => 'Parents',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'match_operator' => 'CONTAINS',
'path' => '',
'size' => 60,
),
'type' => 'entityreference_autocomplete',
'weight' => 8,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_sex'.
$field_instances['farm_asset-animal-field_farm_animal_sex'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 4,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_animal_sex',
'label' => 'Sex',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 5,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_tag'.
$field_instances['farm_asset-animal-field_farm_animal_tag'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'description' => 'List any identification tags that this animal has. These can be ear tags, tattoos, leg bands, etc. Use the fields below to describe the type, location, and ID of each.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'field_collection',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 2,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_animal_tag',
'label' => 'ID Tag(s)',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 3,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_type'.
$field_instances['farm_asset-animal-field_farm_animal_type'] = array(
'bundle' => 'animal',
2015-06-11 21:13:36 +02:00
'default_value' => array(),
'deleted' => 0,
'description' => 'What is the species/breed of this animal? You can manage the list of available species/breeds in the ' . l('Animal Species/Breeds', 'farm/assets/animals/types') . ' vocabulary.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 3,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_animal_type',
'label' => 'Type',
'required' => 1,
'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,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_date'.
$field_instances['farm_asset-animal-field_farm_date'] = array(
'bundle' => 'animal',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
2016-01-28 18:30:05 +01:00
'show_remaining_days' => FALSE,
),
'type' => 'date_default',
'weight' => 6,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_date',
'label' => 'Date of birth',
'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 j Y - g:i:sa',
'input_format_custom' => '',
'label_position' => 'above',
'repeat_collapsed' => 0,
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_popup',
'weight' => 7,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_description'.
$field_instances['farm_asset-animal-field_farm_description'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 8,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_description',
'label' => 'Description',
'required' => 0,
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 9,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_files'.
$field_instances['farm_asset-animal-field_farm_files'] = array(
'bundle' => 'animal',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 10,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_files',
'label' => 'Files',
'required' => 0,
'settings' => array(
'description_field' => 1,
'file_directory' => 'farm/asset/animal',
'file_extensions' => 'csv doc docx odt odp ods pdf ppt pptx txt xls xlsx kml kmz zip tar gz',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'file',
'settings' => array(
'progress_indicator' => 'bar',
),
'type' => 'file_generic',
'weight' => 11,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_images'.
$field_instances['farm_asset-animal-field_farm_images'] = array(
'bundle' => 'animal',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'colorbox',
'settings' => array(
'colorbox_caption' => 'auto',
'colorbox_caption_custom' => '',
'colorbox_gallery' => 'post',
'colorbox_gallery_custom' => '',
'colorbox_image_style' => '',
'colorbox_multivalue_index' => NULL,
'colorbox_node_style' => 'thumbnail',
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 9,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_images',
'label' => 'Photo(s)',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => 'farm/asset/animal',
'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' => 'bar',
),
'type' => 'image_image',
'weight' => 10,
),
);
// Exported field_instance:
2016-01-28 18:30:05 +01:00
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_id'.
$field_instances['field_collection_item-field_farm_animal_tag-field_farm_animal_tag_id'] = array(
'bundle' => 'field_farm_animal_tag',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
2016-05-03 19:50:38 +02:00
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_farm_animal_tag_id',
'label' => 'ID',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 1,
),
);
// Exported field_instance:
2016-01-28 18:30:05 +01:00
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_location'.
$field_instances['field_collection_item-field_farm_animal_tag-field_farm_animal_tag_location'] = array(
'bundle' => 'field_farm_animal_tag',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
2016-05-03 19:50:38 +02:00
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_farm_animal_tag_location',
'label' => 'Body Location',
'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' => 3,
),
);
// Exported field_instance:
2016-01-28 18:30:05 +01:00
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_type'.
$field_instances['field_collection_item-field_farm_animal_tag-field_farm_animal_tag_type'] = array(
'bundle' => 'field_farm_animal_tag',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
2016-05-03 19:50:38 +02:00
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 2,
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_farm_animal_tag_type',
'label' => 'Tag Type',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 2,
),
);
2016-06-08 19:17:48 +02:00
// Exported field_instance: 'log-farm_medical-field_farm_asset'.
$field_instances['log-farm_medical-field_farm_asset'] = array(
'bundle' => 'farm_medical',
'deleted' => 0,
'description' => 'What assets do this medical log pertain to?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_asset',
'label' => 'Assets',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference_view_widget',
'settings' => array(
'allow_duplicates' => 0,
'close_modal' => 1,
'pass_argument' => 1,
'pass_arguments' => '',
'rendered_entity' => 0,
'view' => 'farm_asset_entityreference_view|entityreference_view_widget',
'view_mode' => 'full',
),
'type' => 'entityreference_view_widget',
'weight' => 2,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_files'.
$field_instances['log-farm_medical-field_farm_files'] = array(
'bundle' => 'farm_medical',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 3,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_files',
'label' => 'Files',
'required' => 0,
'settings' => array(
'description_field' => 1,
'file_directory' => 'farm/log/medical',
'file_extensions' => 'csv doc docx odt odp ods pdf ppt pptx txt xls xlsx kml kmz zip tar gz',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'file',
'settings' => array(
'progress_indicator' => 'bar',
),
'type' => 'file_generic',
'weight' => 5,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_images'.
$field_instances['log-farm_medical-field_farm_images'] = array(
'bundle' => 'farm_medical',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'colorbox',
'settings' => array(
'colorbox_caption' => 'auto',
'colorbox_caption_custom' => '',
'colorbox_gallery' => 'post',
'colorbox_gallery_custom' => '',
'colorbox_image_style' => '',
'colorbox_multivalue_index' => NULL,
'colorbox_node_style' => 'thumbnail',
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 2,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_images',
'label' => 'Photo(s)',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => 'farm/log/medical',
'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' => 'bar',
),
'type' => 'image_image',
'weight' => 4,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_notes'.
$field_instances['log-farm_medical-field_farm_notes'] = array(
'bundle' => 'farm_medical',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_notes',
'label' => 'Notes',
'required' => 0,
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 3,
),
);
// Translatables
// Included for use with string extractors like potx.
2016-06-08 19:17:48 +02:00
t('Assets');
t('Assign this animal to a particular group, herd, flock, etc. You can manage the list of available groups in the ' . l('Animal Groups', 'farm/assets/animals/groups') . ' vocabulary.');
t('Body Location');
t('Castrated');
t('Date of birth');
t('Description');
t('Files');
t('Group');
t('Has this animal been castrated?');
t('ID');
t('ID Tag(s)');
t('List any identification tags that this animal has. These can be ear tags, tattoos, leg bands, etc. Use the fields below to describe the type, location, and ID of each.');
t('List any nickname(s) of this animal.');
t('Nickname(s)');
2016-06-08 19:17:48 +02:00
t('Notes');
t('Parents');
t('Photo(s)');
t('Sex');
t('Tag Type');
t('Type');
2016-06-08 19:17:48 +02:00
t('What assets do this medical log pertain to?');
t('What is the species/breed of this animal? You can manage the list of available species/breeds in the ' . l('Animal Species/Breeds', 'farm/assets/animals/types') . ' vocabulary.');
return $field_instances;
}