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

Added a field for tracking work hours spent on farm tasks.

This commit is contained in:
Michael Stenta 2014-02-08 12:22:40 -05:00
parent 25df6a0230
commit 845fe546a9
6 changed files with 328 additions and 47 deletions

View file

@ -223,6 +223,57 @@ function farm_log_field_default_fields() {
),
);
// Exported field: 'log-farm_issue-field_farm_hours'.
$fields['log-farm_issue-field_farm_hours'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_farm_hours',
'foreign keys' => array(),
'indexes' => array(),
'locked' => '0',
'module' => 'fraction',
'settings' => array(),
'translatable' => '0',
'type' => 'fraction',
),
'field_instance' => array(
'bundle' => 'farm_issue',
'default_value' => NULL,
'deleted' => '0',
'description' => 'Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'fraction',
'settings' => array(
'precision' => 2,
),
'type' => 'fraction_decimal',
'weight' => '6',
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_hours',
'label' => 'Total work hours',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'fraction',
'settings' => array(
'precision' => '2',
),
'type' => 'fraction_decimal',
'weight' => '6',
),
),
);
// Exported field: 'log-farm_issue-field_farm_images'.
$fields['log-farm_issue-field_farm_images'] = array(
'field_config' => array(
@ -266,7 +317,7 @@ function farm_log_field_default_fields() {
'image_style' => 'large',
),
'type' => 'image',
'weight' => '6',
'weight' => '8',
),
),
'entity_type' => 'log',
@ -292,7 +343,7 @@ function farm_log_field_default_fields() {
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => '6',
'weight' => '8',
),
),
);
@ -414,7 +465,7 @@ function farm_log_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '7',
'weight' => '9',
),
),
'entity_type' => 'log',
@ -429,7 +480,7 @@ function farm_log_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '7',
'weight' => '9',
),
),
);
@ -472,7 +523,7 @@ function farm_log_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '5',
'weight' => '7',
),
),
'entity_type' => 'log',
@ -490,7 +541,7 @@ function farm_log_field_default_fields() {
'rows' => '5',
),
'type' => 'text_textarea',
'weight' => '5',
'weight' => '7',
),
),
);
@ -573,8 +624,10 @@ function farm_log_field_default_fields() {
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('Optionally, select other issues that are related to this one. This helps to connect data.');
t('Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).');
t('Related Issues');
t('Threats');
t('Total work hours');
return $fields;
}

View file

@ -10,6 +10,7 @@ dependencies[] = entity
dependencies[] = entityreference
dependencies[] = farm_taxonomy
dependencies[] = features
dependencies[] = fraction
dependencies[] = image
dependencies[] = list
dependencies[] = log
@ -21,6 +22,7 @@ features[features_api][] = api:1
features[field][] = log-farm_issue-field_date
features[field][] = log-farm_issue-field_farm_areas
features[field][] = log-farm_issue-field_farm_crops
features[field][] = log-farm_issue-field_farm_hours
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

View file

@ -107,6 +107,7 @@ function farm_log_views_default_views() {
'field_farm_crops' => 'field_farm_crops',
'field_farm_areas' => 'field_farm_areas',
'field_farm_threats' => 'field_farm_threats',
'field_farm_hours' => 'field_farm_hours',
'field_farm_issues' => 'field_farm_issues',
'field_farm_issue_severity' => 'field_farm_issue_severity',
'nothing' => 'nothing',
@ -149,13 +150,20 @@ function farm_log_views_default_views() {
'separator' => '',
'empty_column' => 0,
),
'field_farm_hours' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_issues' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_issue_severity' => array(
'sortable' => 0,
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
@ -216,6 +224,15 @@ function farm_log_views_default_views() {
$handler->display->display_options['fields']['field_farm_threats']['table'] = 'field_data_field_farm_threats';
$handler->display->display_options['fields']['field_farm_threats']['field'] = 'field_farm_threats';
$handler->display->display_options['fields']['field_farm_threats']['delta_offset'] = '0';
/* Field: Log: Total work hours */
$handler->display->display_options['fields']['field_farm_hours']['id'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['table'] = 'field_data_field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['field'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['label'] = 'Hours';
$handler->display->display_options['fields']['field_farm_hours']['type'] = 'fraction_decimal';
$handler->display->display_options['fields']['field_farm_hours']['settings'] = array(
'precision' => '2',
);
/* Field: Log: Related Issues */
$handler->display->display_options['fields']['field_farm_issues']['id'] = 'field_farm_issues';
$handler->display->display_options['fields']['field_farm_issues']['table'] = 'field_data_field_farm_issues';

View file

@ -346,7 +346,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '10',
'weight' => '11',
),
),
'entity_type' => 'log',
@ -361,7 +361,58 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '10',
'weight' => '11',
),
),
);
// Exported field: 'log-farm_fertilize-field_farm_hours'.
$fields['log-farm_fertilize-field_farm_hours'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_farm_hours',
'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' => 'Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'fraction',
'settings' => array(
'precision' => 2,
),
'type' => 'fraction_decimal',
'weight' => '6',
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_hours',
'label' => 'Total work hours',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'fraction',
'settings' => array(
'precision' => '2',
),
'type' => 'fraction_decimal',
'weight' => '7',
),
),
);
@ -409,7 +460,7 @@ function farm_log_crops_field_default_fields() {
'image_style' => 'large',
),
'type' => 'image',
'weight' => '7',
'weight' => '8',
),
),
'entity_type' => 'log',
@ -435,7 +486,7 @@ function farm_log_crops_field_default_fields() {
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => '7',
'weight' => '8',
),
),
);
@ -495,7 +546,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '8',
'weight' => '9',
),
),
'entity_type' => 'log',
@ -510,7 +561,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '8',
'weight' => '9',
),
),
);
@ -553,7 +604,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '6',
'weight' => '7',
),
),
'entity_type' => 'log',
@ -631,7 +682,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '9',
'weight' => '10',
),
),
'entity_type' => 'log',
@ -646,7 +697,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '9',
'weight' => '10',
),
),
);
@ -1038,7 +1089,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '9',
'weight' => '10',
),
),
'entity_type' => 'log',
@ -1053,7 +1104,58 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '9',
'weight' => '10',
),
),
);
// Exported field: 'log-farm_harvest-field_farm_hours'.
$fields['log-farm_harvest-field_farm_hours'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_farm_hours',
'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' => 'Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'fraction',
'settings' => array(
'precision' => 2,
),
'type' => 'fraction_decimal',
'weight' => '5',
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_hours',
'label' => 'Total work hours',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'fraction',
'settings' => array(
'precision' => '2',
),
'type' => 'fraction_decimal',
'weight' => '5',
),
),
);
@ -1101,7 +1203,7 @@ function farm_log_crops_field_default_fields() {
'image_style' => 'large',
),
'type' => 'image',
'weight' => '6',
'weight' => '7',
),
),
'entity_type' => 'log',
@ -1127,7 +1229,7 @@ function farm_log_crops_field_default_fields() {
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => '6',
'weight' => '7',
),
),
);
@ -1187,7 +1289,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '7',
'weight' => '8',
),
),
'entity_type' => 'log',
@ -1202,7 +1304,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '7',
'weight' => '8',
),
),
);
@ -1245,7 +1347,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '5',
'weight' => '6',
),
),
'entity_type' => 'log',
@ -1263,7 +1365,7 @@ function farm_log_crops_field_default_fields() {
'rows' => '5',
),
'type' => 'text_textarea',
'weight' => '5',
'weight' => '6',
),
),
);
@ -1323,7 +1425,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '8',
'weight' => '9',
),
),
'entity_type' => 'log',
@ -1338,7 +1440,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '8',
'weight' => '9',
),
),
);
@ -1666,6 +1768,57 @@ function farm_log_crops_field_default_fields() {
),
);
// Exported field: 'log-farm_planting-field_farm_hours'.
$fields['log-farm_planting-field_farm_hours'] = array(
'field_config' => array(
'active' => '1',
'cardinality' => '1',
'deleted' => '0',
'entity_types' => array(),
'field_name' => 'field_farm_hours',
'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' => 'Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'fraction',
'settings' => array(
'precision' => 2,
),
'type' => 'fraction_decimal',
'weight' => '8',
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_hours',
'label' => 'Total work hours',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'fraction',
'settings' => array(
'precision' => '2',
),
'type' => 'fraction_decimal',
'weight' => '8',
),
),
);
// Exported field: 'log-farm_planting-field_farm_images'.
$fields['log-farm_planting-field_farm_images'] = array(
'field_config' => array(
@ -1709,7 +1862,7 @@ function farm_log_crops_field_default_fields() {
'image_style' => 'large',
),
'type' => 'image',
'weight' => '9',
'weight' => '10',
),
),
'entity_type' => 'log',
@ -1735,7 +1888,7 @@ function farm_log_crops_field_default_fields() {
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => '9',
'weight' => '10',
),
),
);
@ -1795,7 +1948,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '10',
'weight' => '11',
),
),
'entity_type' => 'log',
@ -1810,7 +1963,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '10',
'weight' => '11',
),
),
);
@ -1853,7 +2006,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '8',
'weight' => '9',
),
),
'entity_type' => 'log',
@ -1871,7 +2024,7 @@ function farm_log_crops_field_default_fields() {
'rows' => '5',
),
'type' => 'text_textarea',
'weight' => '8',
'weight' => '9',
),
),
);
@ -1992,7 +2145,7 @@ function farm_log_crops_field_default_fields() {
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => '11',
'weight' => '12',
),
),
'entity_type' => 'log',
@ -2007,7 +2160,7 @@ function farm_log_crops_field_default_fields() {
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => '11',
'weight' => '12',
),
),
);
@ -2308,12 +2461,14 @@ function farm_log_crops_field_default_fields() {
t('Optionally, select plantings that are related to this harvest. This helps to connect data.');
t('Planting type');
t('Quantity');
t('Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).');
t('Related Fertilizings');
t('Related Harvests');
t('Related Issues');
t('Related Plantings');
t('Row feet? Acres? 4" pots?');
t('Seeding date');
t('Total work hours');
t('Transplanting date');
t('Units');
t('When was this planting direct seeded, if ever?');

View file

@ -24,6 +24,7 @@ features[field][] = log-farm_fertilize-field_farm_areas
features[field][] = log-farm_fertilize-field_farm_crops
features[field][] = log-farm_fertilize-field_farm_fertilizers
features[field][] = log-farm_fertilize-field_farm_fertilizings
features[field][] = log-farm_fertilize-field_farm_hours
features[field][] = log-farm_fertilize-field_farm_images
features[field][] = log-farm_fertilize-field_farm_issues
features[field][] = log-farm_fertilize-field_farm_notes
@ -34,6 +35,7 @@ features[field][] = log-farm_harvest-field_date
features[field][] = log-farm_harvest-field_farm_areas
features[field][] = log-farm_harvest-field_farm_crops
features[field][] = log-farm_harvest-field_farm_harvests
features[field][] = log-farm_harvest-field_farm_hours
features[field][] = log-farm_harvest-field_farm_images
features[field][] = log-farm_harvest-field_farm_issues
features[field][] = log-farm_harvest-field_farm_notes
@ -43,6 +45,7 @@ features[field][] = log-farm_harvest-field_farm_quantity_value
features[field][] = log-farm_planting-field_farm_areas
features[field][] = log-farm_planting-field_farm_containers
features[field][] = log-farm_planting-field_farm_crops
features[field][] = log-farm_planting-field_farm_hours
features[field][] = log-farm_planting-field_farm_images
features[field][] = log-farm_planting-field_farm_issues
features[field][] = log-farm_planting-field_farm_notes

View file

@ -110,6 +110,7 @@ function farm_log_crops_views_default_views() {
'field_farm_quantity_units' => 'field_farm_quantity_units',
'field_farm_crops' => 'field_farm_crops',
'field_farm_areas' => 'field_farm_areas',
'field_farm_hours' => 'field_farm_hours',
'field_farm_issues' => 'field_farm_issues',
'field_farm_plantings' => 'field_farm_plantings',
'field_farm_fertilizings' => 'field_farm_fertilizings',
@ -167,6 +168,13 @@ function farm_log_crops_views_default_views() {
'separator' => '',
'empty_column' => 0,
),
'field_farm_hours' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_issues' => array(
'align' => '',
'separator' => '',
@ -248,6 +256,15 @@ function farm_log_crops_views_default_views() {
$handler->display->display_options['fields']['field_farm_areas']['table'] = 'field_data_field_farm_areas';
$handler->display->display_options['fields']['field_farm_areas']['field'] = 'field_farm_areas';
$handler->display->display_options['fields']['field_farm_areas']['delta_offset'] = '0';
/* Field: Log: Total work hours */
$handler->display->display_options['fields']['field_farm_hours']['id'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['table'] = 'field_data_field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['field'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['label'] = 'Hours';
$handler->display->display_options['fields']['field_farm_hours']['type'] = 'fraction_decimal';
$handler->display->display_options['fields']['field_farm_hours']['settings'] = array(
'precision' => '2',
);
/* Field: Log: Related Issues */
$handler->display->display_options['fields']['field_farm_issues']['id'] = 'field_farm_issues';
$handler->display->display_options['fields']['field_farm_issues']['table'] = 'field_data_field_farm_issues';
@ -499,6 +516,7 @@ function farm_log_crops_views_default_views() {
'field_farm_quantity_value' => 'field_farm_quantity_value',
'field_farm_quantity_units' => 'field_farm_quantity_units',
'field_farm_areas' => 'field_farm_areas',
'field_farm_hours' => 'field_farm_hours',
'field_farm_issues' => 'field_farm_issues',
'field_farm_plantings' => 'field_farm_plantings',
'field_farm_harvests' => 'field_farm_harvests',
@ -533,14 +551,14 @@ function farm_log_crops_views_default_views() {
'empty_column' => 0,
),
'field_farm_quantity_value' => array(
'sortable' => 0,
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_quantity_units' => array(
'sortable' => 0,
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
@ -551,6 +569,13 @@ function farm_log_crops_views_default_views() {
'separator' => '',
'empty_column' => 0,
),
'field_farm_hours' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_issues' => array(
'align' => '',
'separator' => '',
@ -627,6 +652,15 @@ function farm_log_crops_views_default_views() {
$handler->display->display_options['fields']['field_farm_areas']['table'] = 'field_data_field_farm_areas';
$handler->display->display_options['fields']['field_farm_areas']['field'] = 'field_farm_areas';
$handler->display->display_options['fields']['field_farm_areas']['delta_offset'] = '0';
/* Field: Log: Total work hours */
$handler->display->display_options['fields']['field_farm_hours']['id'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['table'] = 'field_data_field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['field'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['label'] = 'Hours';
$handler->display->display_options['fields']['field_farm_hours']['type'] = 'fraction_decimal';
$handler->display->display_options['fields']['field_farm_hours']['settings'] = array(
'precision' => '2',
);
/* Field: Log: Related Issues */
$handler->display->display_options['fields']['field_farm_issues']['id'] = 'field_farm_issues';
$handler->display->display_options['fields']['field_farm_issues']['table'] = 'field_data_field_farm_issues';
@ -859,14 +893,15 @@ function farm_log_crops_views_default_views() {
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'lid' => 'lid',
'field_farm_seeding_date' => 'field_farm_seeding_date',
'field_farm_transplant_date' => 'field_farm_transplant_date',
'name' => 'name',
'field_farm_crops' => 'field_farm_crops',
'field_farm_quantity_value' => 'field_farm_quantity_value',
'field_farm_quantity_units' => 'field_farm_quantity_units',
'field_farm_containers' => 'field_farm_containers',
'field_farm_areas' => 'field_farm_areas',
'field_farm_seeding_date' => 'field_farm_seeding_date',
'field_farm_transplant_date' => 'field_farm_transplant_date',
'field_farm_hours' => 'field_farm_hours',
'field_farm_issues' => 'field_farm_issues',
'field_farm_plantings' => 'field_farm_plantings',
'nothing' => 'nothing',
@ -880,6 +915,20 @@ function farm_log_crops_views_default_views() {
'separator' => '',
'empty_column' => 0,
),
'field_farm_seeding_date' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_transplant_date' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'name' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
@ -916,16 +965,9 @@ function farm_log_crops_views_default_views() {
'separator' => '',
'empty_column' => 0,
),
'field_farm_seeding_date' => array(
'field_farm_hours' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_transplant_date' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
@ -1017,6 +1059,15 @@ function farm_log_crops_views_default_views() {
$handler->display->display_options['fields']['field_farm_areas']['table'] = 'field_data_field_farm_areas';
$handler->display->display_options['fields']['field_farm_areas']['field'] = 'field_farm_areas';
$handler->display->display_options['fields']['field_farm_areas']['delta_offset'] = '0';
/* Field: Log: Total work hours */
$handler->display->display_options['fields']['field_farm_hours']['id'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['table'] = 'field_data_field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['field'] = 'field_farm_hours';
$handler->display->display_options['fields']['field_farm_hours']['label'] = 'Hours';
$handler->display->display_options['fields']['field_farm_hours']['type'] = 'fraction_decimal';
$handler->display->display_options['fields']['field_farm_hours']['settings'] = array(
'precision' => '2',
);
/* Field: Log: Related Issues */
$handler->display->display_options['fields']['field_farm_issues']['id'] = 'field_farm_issues';
$handler->display->display_options['fields']['field_farm_issues']['table'] = 'field_data_field_farm_issues';