View source
<?php
function farm_log_input_field_default_field_instances() {
$field_instances = array();
$field_instances['log-farm_input-field_farm_area'] = array(
'bundle' => 'farm_input',
'default_value' => array(),
'deleted' => 0,
'description' => 'What areas is this input being applied to?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 2,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_area',
'label' => 'Areas',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 12,
),
);
$field_instances['log-farm_input-field_farm_asset'] = array(
'bundle' => 'farm_input',
'deleted' => 0,
'description' => 'What assets do this input log pertain to?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => 3,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'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' => 4,
),
);
$field_instances['log-farm_input-field_farm_date_purchase'] = array(
'bundle' => 'farm_input',
'deleted' => 0,
'description' => 'When was this input purchased (if applicable)?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'date',
'settings' => array(
'format_type' => 'short',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
'show_remaining_days' => 0,
),
'type' => 'date_default',
'weight' => 9,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_date_purchase',
'label' => 'Date purchased',
'required' => 0,
'settings' => array(
'default_value' => 'blank',
'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',
'no_fieldset' => 0,
'text_parts' => array(),
'year_range' => '-10:+3',
),
'type' => 'date_select',
'weight' => 6,
),
);
$field_instances['log-farm_input-field_farm_files'] = array(
'bundle' => 'farm_input',
'default_value' => array(),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 16,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_files',
'label' => 'Files',
'required' => 0,
'settings' => array(
'description_field' => 1,
'file_directory' => 'farm/log/input',
'file_extensions' => '',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'multiupload_filefield_widget',
'settings' => array(
'progress_indicator' => 'bar',
),
'type' => 'file_mfw',
'weight' => 9,
),
);
$field_instances['log-farm_input-field_farm_flags'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 12,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 8,
),
);
$field_instances['log-farm_input-field_farm_geofield'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This field is optional. It allows you to store geospatial data along with this input.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'farm_map_geofield',
'settings' => array(),
'type' => 'farm_map_geofield',
'weight' => 17,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_geofield',
'label' => 'Geometry',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'farm_map_geofield',
'settings' => array(
'delta_handling' => 'default',
'geocoder_field' => 'field_farm_files',
'geocoder_handler' => 'kml',
'handler_settings' => array(
'google' => array(
'all_results' => 0,
'geometry_type' => 'point',
'reject_results' => array(
'APPROXIMATE' => 0,
'GEOMETRIC_CENTER' => 0,
'RANGE_INTERPOLATED' => 0,
'ROOFTOP' => 0,
),
),
),
'use_geocoder' => 1,
),
'type' => 'farm_map_geofield',
'weight' => 3,
),
);
$field_instances['log-farm_input-field_farm_images'] = array(
'bundle' => 'farm_input',
'default_value' => array(),
'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' => 15,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_images',
'label' => 'Photos',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => 'farm/log/input',
'file_extensions' => '',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'multiupload_imagefield_widget',
'settings' => array(
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'bar',
),
'type' => 'image_miw',
'weight' => 8,
),
);
$field_instances['log-farm_input-field_farm_input_method'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'How was this input applied?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 6,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_input_method',
'label' => 'Application method',
'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,
),
);
$field_instances['log-farm_input-field_farm_input_purpose'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'What was the purpose of this input?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 5,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_input_purpose',
'label' => 'Purpose',
'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,
),
);
$field_instances['log-farm_input-field_farm_input_source'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Where was this input obtained? Who manufactured it?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 7,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_input_source',
'label' => 'Source/manufacturer',
'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' => 4,
),
);
$field_instances['log-farm_input-field_farm_inventory'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Use this to set or adjust asset inventory levels along with this log.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'field_collection',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 10,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_inventory',
'label' => 'Inventory adjustments',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 16,
),
);
$field_instances['log-farm_input-field_farm_log_category'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Use this to organize your logs into categories for easier searching and filtering later.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_plain',
'weight' => 13,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_category',
'label' => 'Log category',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 4,
),
);
$field_instances['log-farm_input-field_farm_log_owner'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 14,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Assigned to',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 14,
),
);
$field_instances['log-farm_input-field_farm_lot_number'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'If the manufacturer assigned this input a lot number, enter it here.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 8,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_lot_number',
'label' => 'Input lot number',
'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' => 5,
),
);
$field_instances['log-farm_input-field_farm_material'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'What materials are being applied? As you type, you will have the option of selecting from materials that you\'ve entered in the past. Separate multiple materials with a comma.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 0,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_material',
'label' => 'Materials',
'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,
),
);
$field_instances['log-farm_input-field_farm_movement'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Use these fields to record a movement with this log entry. This will be used to define the location of any referenced assets. The current location of any asset is determined by the most recently completed movement log. Only the "to" field is required.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'field_collection',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 4,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_movement',
'label' => 'Movement',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 5,
),
);
$field_instances['log-farm_input-field_farm_notes'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 11,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'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' => 7,
),
);
$field_instances['log-farm_input-field_farm_quantity'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Describe the quantity of this input, using a value, unit, and measure. For example, if you used 10 gallons of liquid fertilizer, enter "10" in the Value field, and "gallons" in the Units field. As you type the unit, you will have the option of selecting from units that you\'ve entered in the past.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'field_collection',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 1,
),
'token' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_quantity',
'label' => 'Quantity',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 1,
),
);
t('Add flags to this log to enable better sorting and filtering of records.');
t('Application method');
t('Areas');
t('Assets');
t('Assigned to');
t('Date purchased');
t('Describe the quantity of this input, using a value, unit, and measure. For example, if you used 10 gallons of liquid fertilizer, enter "10" in the Value field, and "gallons" in the Units field. As you type the unit, you will have the option of selecting from units that you\'ve entered in the past.');
t('Files');
t('Flags');
t('Geometry');
t('How was this input applied?');
t('If the manufacturer assigned this input a lot number, enter it here.');
t('Input lot number');
t('Inventory adjustments');
t('Log category');
t('Materials');
t('Movement');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Photos');
t('Purpose');
t('Quantity');
t('Source/manufacturer');
t('This field is optional. It allows you to store geospatial data along with this input.');
t('Use these fields to record a movement with this log entry. This will be used to define the location of any referenced assets. The current location of any asset is determined by the most recently completed movement log. Only the "to" field is required.');
t('Use this to organize your logs into categories for easier searching and filtering later.');
t('Use this to set or adjust asset inventory levels along with this log.');
t('What areas is this input being applied to?');
t('What assets do this input log pertain to?');
t('What materials are being applied? As you type, you will have the option of selecting from materials that you\'ve entered in the past. Separate multiple materials with a comma.');
t('What was the purpose of this input?');
t('When was this input purchased (if applicable)?');
t('Where was this input obtained? Who manufactured it?');
return $field_instances;
}