2015-05-01 22:28:42 +02:00
< ? php
/**
* @ file
* farm_soil_test . features . field_instance . inc
*/
/**
* Implements hook_field_default_field_instances () .
*/
function farm_soil_test_field_default_field_instances () {
$field_instances = array ();
2015-11-24 23:32:53 +01:00
// Exported field_instance: 'log-farm_soil_test-field_farm_area'.
2015-05-01 22:28:42 +02:00
$field_instances [ 'log-farm_soil_test-field_farm_area' ] = array (
'bundle' => 'farm_soil_test' ,
2017-05-16 04:35:33 +02:00
'default_value' => array (),
2015-05-01 22:28:42 +02:00
'deleted' => 0 ,
2017-07-11 15:31:58 +02:00
'description' => 'What areas is this sample being taken from?' ,
2015-05-01 22:28:42 +02:00
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'taxonomy' ,
'settings' => array (),
'type' => 'taxonomy_term_reference_link' ,
2015-10-05 19:43:35 +02:00
'weight' => 0 ,
2015-05-01 22:28:42 +02:00
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_area' ,
2016-04-25 00:36:19 +02:00
'label' => 'Areas' ,
2015-05-01 22:28:42 +02:00
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
2016-10-06 19:28:14 +02:00
'active' => 1 ,
2017-07-13 14:55:42 +02:00
'module' => 'options' ,
'settings' => array (),
'type' => 'options_select' ,
2017-09-26 19:05:02 +02:00
'weight' => 6 ,
2015-05-01 22:28:42 +02:00
),
);
2015-11-24 23:32:53 +01:00
// Exported field_instance: 'log-farm_soil_test-field_farm_files'.
2015-05-01 22:28:42 +02:00
$field_instances [ 'log-farm_soil_test-field_farm_files' ] = array (
'bundle' => 'farm_soil_test' ,
2017-05-19 04:02:15 +02:00
'default_value' => array (),
2015-05-01 22:28:42 +02:00
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
2015-10-05 19:43:35 +02:00
'label' => 'above' ,
2015-05-01 22:28:42 +02:00
'module' => 'file' ,
'settings' => array (),
'type' => 'file_table' ,
2018-03-19 21:24:05 +01:00
'weight' => 9 ,
2015-05-01 22:28:42 +02:00
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_files' ,
'label' => 'Files' ,
'required' => 0 ,
'settings' => array (
'description_field' => 1 ,
2016-01-26 18:37:27 +01:00
'file_directory' => 'farm/log/soil_test' ,
2017-07-20 19:53:48 +02:00
'file_extensions' => '' ,
2015-05-01 22:28:42 +02:00
'max_filesize' => '' ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
2017-05-19 04:02:15 +02:00
'module' => 'multiupload_filefield_widget' ,
2015-05-01 22:28:42 +02:00
'settings' => array (
'progress_indicator' => 'bar' ,
),
2017-05-19 04:02:15 +02:00
'type' => 'file_mfw' ,
2017-05-20 00:10:19 +02:00
'weight' => 7 ,
2015-10-05 19:43:35 +02:00
),
);
2018-03-19 21:24:05 +01:00
// Exported field_instance: 'log-farm_soil_test-field_farm_flags'.
$field_instances [ 'log-farm_soil_test-field_farm_flags' ] = array (
'bundle' => 'farm_soil_test' ,
'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' => 5 ,
),
),
'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' => - 6 ,
),
);
2017-09-14 14:34:39 +02:00
// Exported field_instance: 'log-farm_soil_test-field_farm_geofield'.
$field_instances [ 'log-farm_soil_test-field_farm_geofield' ] = array (
'bundle' => 'farm_soil_test' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => 'Use the map to pinpoint the location(s) from which this sample is taken. If you are preparing a soil test, you may be sampling multiple points within a given area. All the points that comprise this sample should be included.' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'openlayers_geofield' ,
'settings' => array (
'data' => 'full' ,
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter' ,
),
'type' => 'openlayers_geofield' ,
'weight' => 1 ,
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_geofield' ,
'label' => 'Sample points' ,
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'openlayers_geofield' ,
'settings' => array (
'allow_edit' => 1 ,
'data_storage' => 'collection' ,
'delta_handling' => 'default' ,
'feature_types' => array (
'path' => 0 ,
'point' => 'point' ,
'polygon' => 0 ,
),
'geocoder_field' => 'field_farm_files' ,
'geocoder_handler' => 'kml' ,
'handler_settings' => array (
'google' => array (
'all_results' => 0 ,
'biasing' => array (
'bounds' => '' ,
'components' => '' ,
'region' => '' ,
),
'geometry_type' => 'point' ,
'reject_results' => array (
'APPROXIMATE' => 0 ,
'GEOMETRIC_CENTER' => 0 ,
'RANGE_INTERPOLATED' => 0 ,
'ROOFTOP' => 0 ,
),
),
),
'openlayers_map' => 'farm_map_geofield' ,
'showInputField' => 1 ,
'use_geocoder' => 1 ,
),
'type' => 'openlayers_geofield' ,
2017-09-26 19:05:02 +02:00
'weight' => 7 ,
2017-09-14 14:34:39 +02:00
),
);
2015-11-24 23:32:53 +01:00
// Exported field_instance: 'log-farm_soil_test-field_farm_images'.
2015-10-05 19:43:35 +02:00
$field_instances [ 'log-farm_soil_test-field_farm_images' ] = array (
'bundle' => 'farm_soil_test' ,
2017-05-19 04:02:15 +02:00
'default_value' => array (),
2015-10-05 19:43:35 +02:00
'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' ,
2018-03-19 21:24:05 +01:00
'weight' => 8 ,
2015-10-05 19:43:35 +02:00
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_images' ,
2017-05-31 20:58:09 +02:00
'label' => 'Photos' ,
2015-10-05 19:43:35 +02:00
'required' => 0 ,
'settings' => array (
'alt_field' => 0 ,
'default_image' => 0 ,
2016-01-26 18:37:27 +01:00
'file_directory' => 'farm/log/soil_test' ,
2017-07-20 19:53:48 +02:00
'file_extensions' => '' ,
2015-10-05 19:43:35 +02:00
'max_filesize' => '' ,
'max_resolution' => '' ,
'min_resolution' => '' ,
'title_field' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
2017-05-19 04:02:15 +02:00
'module' => 'multiupload_imagefield_widget' ,
2015-10-05 19:43:35 +02:00
'settings' => array (
'preview_image_style' => 'thumbnail' ,
'progress_indicator' => 'bar' ,
),
2017-05-19 04:02:15 +02:00
'type' => 'image_miw' ,
2017-05-20 00:10:19 +02:00
'weight' => 6 ,
2015-05-01 22:28:42 +02:00
),
);
2017-07-18 13:48:14 +02:00
// Exported field_instance: 'log-farm_soil_test-field_farm_log_category'.
$field_instances [ 'log-farm_soil_test-field_farm_log_category' ] = array (
'bundle' => 'farm_soil_test' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => 'Use this to organize your logs into categories for easier searching and filtering later.' ,
'display' => array (
'default' => array (
2017-10-31 17:07:02 +01:00
'label' => 'inline' ,
2017-07-18 13:48:14 +02:00
'module' => 'taxonomy' ,
'settings' => array (),
'type' => 'taxonomy_term_reference_link' ,
2018-03-19 21:24:05 +01:00
'weight' => 6 ,
2017-07-18 13:48:14 +02:00
),
),
'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' => 11 ,
),
);
2017-06-12 21:33:25 +02:00
// Exported field_instance: 'log-farm_soil_test-field_farm_log_owner'.
$field_instances [ 'log-farm_soil_test-field_farm_log_owner' ] = array (
'bundle' => 'farm_soil_test' ,
'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' ,
2018-03-19 21:24:05 +01:00
'weight' => 7 ,
2017-06-12 21:33:25 +02:00
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_log_owner' ,
2017-09-04 16:58:25 +02:00
'label' => 'Assigned to' ,
2017-06-12 21:33:25 +02:00
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'options' ,
'settings' => array (),
'type' => 'options_select' ,
'weight' => 9 ,
),
);
2015-11-24 23:32:53 +01:00
// Exported field_instance: 'log-farm_soil_test-field_farm_notes'.
2015-05-01 22:28:42 +02:00
$field_instances [ 'log-farm_soil_test-field_farm_notes' ] = array (
'bundle' => 'farm_soil_test' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
2015-10-05 19:43:35 +02:00
'weight' => 4 ,
2015-05-01 22:28:42 +02:00
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_notes' ,
'label' => 'Notes' ,
'required' => 0 ,
'settings' => array (
2015-11-03 22:50:38 +01:00
'text_processing' => 1 ,
2015-05-01 22:28:42 +02:00
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'rows' => 5 ,
),
'type' => 'text_textarea' ,
2018-03-19 21:24:05 +01:00
'weight' => - 7 ,
2015-05-01 22:28:42 +02:00
),
);
2015-11-24 23:32:53 +01:00
// Exported field_instance: 'log-farm_soil_test-field_farm_soil_lab'.
2015-05-01 22:28:42 +02:00
$field_instances [ 'log-farm_soil_test-field_farm_soil_lab' ] = array (
'bundle' => 'farm_soil_test' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => 'What laboratory performed the soil test?' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
2015-10-05 19:43:35 +02:00
'weight' => 3 ,
2015-05-01 22:28:42 +02:00
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_soil_lab' ,
'label' => 'Laboratory' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'size' => 60 ,
),
'type' => 'text_textfield' ,
2018-03-19 21:24:05 +01:00
'weight' => - 8 ,
2015-05-01 22:28:42 +02:00
),
);
2016-01-16 17:23:31 +01:00
// Exported field_instance: 'log-farm_soil_test-field_farm_soil_names'.
$field_instances [ 'log-farm_soil_test-field_farm_soil_names' ] = array (
'bundle' => 'farm_soil_test' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => 'List the names of soils that are included in this sample. For soil maps and soil names, visit http://websoilsurvey.nrcs.usda.gov/app' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'taxonomy' ,
'settings' => array (),
'type' => 'taxonomy_term_reference_link' ,
'weight' => 2 ,
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_soil_names' ,
'label' => 'Soil Names' ,
'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' ,
2017-09-26 19:05:02 +02:00
'weight' => 8 ,
2015-05-01 22:28:42 +02:00
),
);
// Translatables
// Included for use with string extractors like potx.
2018-03-19 21:24:05 +01:00
t ( 'Add flags to this log to enable better sorting and filtering of records.' );
2016-04-25 00:36:19 +02:00
t ( 'Areas' );
2017-09-04 16:58:25 +02:00
t ( 'Assigned to' );
2015-05-01 22:28:42 +02:00
t ( 'Files' );
2018-03-19 21:24:05 +01:00
t ( 'Flags' );
2015-05-01 22:28:42 +02:00
t ( 'Laboratory' );
2016-01-16 16:25:07 +01:00
t ( 'List the names of soils that are included in this sample. For soil maps and soil names, visit http://websoilsurvey.nrcs.usda.gov/app' );
2017-07-18 13:48:14 +02:00
t ( 'Log category' );
2015-05-01 22:28:42 +02:00
t ( 'Notes' );
2017-06-12 21:33:25 +02:00
t ( 'Optionally assign this task to one or more people.' );
2017-05-31 20:58:09 +02:00
t ( 'Photos' );
2017-09-14 14:34:39 +02:00
t ( 'Sample points' );
2016-01-16 16:25:07 +01:00
t ( 'Soil Names' );
2015-05-01 22:28:42 +02:00
t ( 'Use the map to pinpoint the location(s) from which this sample is taken. If you are preparing a soil test, you may be sampling multiple points within a given area. All the points that comprise this sample should be included.' );
2017-07-18 13:48:14 +02:00
t ( 'Use this to organize your logs into categories for easier searching and filtering later.' );
2017-07-11 15:31:58 +02:00
t ( 'What areas is this sample being taken from?' );
2015-05-01 22:28:42 +02:00
t ( 'What laboratory performed the soil test?' );
return $field_instances ;
}