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

Views updates for new data architecture. Added views per area and crop. Lots of little cleanups and reorganization.

This commit is contained in:
Michael Stenta 2014-07-09 11:35:17 -04:00
parent f813dd8006
commit 546635e01e
2 changed files with 2331 additions and 1006 deletions

View file

@ -35,12 +35,10 @@ function farm_log_views_default_views() {
$handler->display->display_options['style_options']['columns'] = array(
'id' => 'id',
'field_farm_date' => 'field_farm_date',
'name' => 'name',
'field_farm_threats' => 'field_farm_threats',
'field_farm_crops' => 'field_farm_crops',
'field_farm_areas' => 'field_farm_areas',
'field_farm_priority' => 'field_farm_priority',
'field_farm_hours' => 'field_farm_hours',
'nothing' => 'nothing',
);
$handler->display->display_options['style_options']['default'] = 'field_farm_date';
@ -59,13 +57,6 @@ function farm_log_views_default_views() {
'separator' => '',
'empty_column' => 0,
),
'name' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_threats' => array(
'align' => '',
'separator' => '',
@ -88,26 +79,32 @@ 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,
),
'nothing' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
$handler->display->display_options['style_options']['empty_table'] = TRUE;
/* Footer: Global: Unfiltered text */
$handler->display->display_options['footer']['area_text_custom']['id'] = 'area_text_custom';
$handler->display->display_options['footer']['area_text_custom']['table'] = 'views';
$handler->display->display_options['footer']['area_text_custom']['field'] = 'area_text_custom';
$handler->display->display_options['footer']['area_text_custom']['empty'] = TRUE;
$handler->display->display_options['footer']['area_text_custom']['content'] = '<a href="/log/add/farm_issue?destination=admin/farm/logs/issues">+ Log an issue</a>';
/* No results behavior: Global: Unfiltered text */
$handler->display->display_options['empty']['area_text_custom']['id'] = 'area_text_custom';
$handler->display->display_options['empty']['area_text_custom']['table'] = 'views';
$handler->display->display_options['empty']['area_text_custom']['field'] = 'area_text_custom';
$handler->display->display_options['empty']['area_text_custom']['empty'] = TRUE;
$handler->display->display_options['empty']['area_text_custom']['content'] = 'No issues found.';
/* Field: Log: Log ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'log';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
$handler->display->display_options['fields']['id']['separator'] = '';
/* Field: Log: Date */
/* Field: Field: Date */
$handler->display->display_options['fields']['field_farm_date']['id'] = 'field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['table'] = 'field_data_field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['field'] = 'field_farm_date';
@ -119,12 +116,6 @@ function farm_log_views_default_views() {
'multiple_to' => '',
'show_repeat_rule' => 'show',
);
/* Field: Log: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'log';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['name']['alter']['path'] = 'log/[id]';
/* Field: Log: Threats */
$handler->display->display_options['fields']['field_farm_threats']['id'] = 'field_farm_threats';
$handler->display->display_options['fields']['field_farm_threats']['table'] = 'field_data_field_farm_threats';
@ -135,7 +126,7 @@ function farm_log_views_default_views() {
$handler->display->display_options['fields']['field_farm_crops']['table'] = 'field_data_field_farm_crops';
$handler->display->display_options['fields']['field_farm_crops']['field'] = 'field_farm_crops';
$handler->display->display_options['fields']['field_farm_crops']['delta_offset'] = '0';
/* Field: Field: Areas */
/* Field: Log: Areas */
$handler->display->display_options['fields']['field_farm_areas']['id'] = 'field_farm_areas';
$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';
@ -144,20 +135,12 @@ function farm_log_views_default_views() {
$handler->display->display_options['fields']['field_farm_priority']['id'] = 'field_farm_priority';
$handler->display->display_options['fields']['field_farm_priority']['table'] = 'field_data_field_farm_priority';
$handler->display->display_options['fields']['field_farm_priority']['field'] = 'field_farm_priority';
/* 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']['type'] = 'fraction_decimal';
$handler->display->display_options['fields']['field_farm_hours']['settings'] = array(
'precision' => '2',
);
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = 'Operations';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<a href="/log/[id]/edit?destination=admin/farm/logs/issue">Edit</a> | <a href="/log/[id]/delete?destination=admin/farm/logs/issue">Delete</a>';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<a href="/log/[id]/edit?destination=admin/farm/logs/issues">Edit</a> | <a href="/log/[id]/delete?destination=admin/farm/logs/issues">Delete</a>';
/* Filter criterion: Log: Log type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'log';
@ -166,7 +149,7 @@ function farm_log_views_default_views() {
'farm_issue' => 'farm_issue',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Filter criterion: Log: Date (field_farm_date) */
/* Filter criterion: Field: Date (field_farm_date) */
$handler->display->display_options['filters']['field_farm_date_value']['id'] = 'field_farm_date_value';
$handler->display->display_options['filters']['field_farm_date_value']['table'] = 'field_data_field_farm_date';
$handler->display->display_options['filters']['field_farm_date_value']['field'] = 'field_farm_date_value';
@ -181,21 +164,6 @@ function farm_log_views_default_views() {
1 => 0,
);
$handler->display->display_options['filters']['field_farm_date_value']['form_type'] = 'date_popup';
/* Filter criterion: Log: Name */
$handler->display->display_options['filters']['name']['id'] = 'name';
$handler->display->display_options['filters']['name']['table'] = 'log';
$handler->display->display_options['filters']['name']['field'] = 'name';
$handler->display->display_options['filters']['name']['operator'] = 'contains';
$handler->display->display_options['filters']['name']['group'] = 1;
$handler->display->display_options['filters']['name']['exposed'] = TRUE;
$handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
$handler->display->display_options['filters']['name']['expose']['label'] = 'Name';
$handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
$handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
$handler->display->display_options['filters']['name']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
);
/* Filter criterion: Log: Threats (field_farm_threats) */
$handler->display->display_options['filters']['field_farm_threats_tid']['id'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['table'] = 'field_data_field_farm_threats';
@ -203,12 +171,19 @@ function farm_log_views_default_views() {
$handler->display->display_options['filters']['field_farm_threats_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_threats_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['operator_id'] = 'field_farm_threats_tid_op';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['label'] = 'Threat';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['label'] = 'Threats';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['operator'] = 'field_farm_threats_tid_op';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['identifier'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_threats_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_threats_tid']['vocabulary'] = 'farm_threats';
@ -220,29 +195,43 @@ function farm_log_views_default_views() {
$handler->display->display_options['filters']['field_farm_crops_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_crops_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['operator_id'] = 'field_farm_crops_tid_op';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['label'] = 'Crop';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['label'] = 'Crops';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['operator'] = 'field_farm_crops_tid_op';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['identifier'] = 'field_farm_crops_tid';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_crops_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_crops_tid']['vocabulary'] = 'farm_crops';
$handler->display->display_options['filters']['field_farm_crops_tid']['hierarchy'] = 1;
/* Filter criterion: Field: Areas (field_farm_areas) */
/* Filter criterion: Log: Areas (field_farm_areas) */
$handler->display->display_options['filters']['field_farm_areas_tid']['id'] = 'field_farm_areas_tid';
$handler->display->display_options['filters']['field_farm_areas_tid']['table'] = 'field_data_field_farm_areas';
$handler->display->display_options['filters']['field_farm_areas_tid']['field'] = 'field_farm_areas_tid';
$handler->display->display_options['filters']['field_farm_areas_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_areas_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['operator_id'] = 'field_farm_areas_tid_op';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['label'] = 'Area';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['label'] = 'Areas';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['operator'] = 'field_farm_areas_tid_op';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['identifier'] = 'field_farm_areas_tid';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_areas_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_areas_tid']['vocabulary'] = 'farm_areas';
@ -254,21 +243,27 @@ function farm_log_views_default_views() {
$handler->display->display_options['filters']['field_farm_priority_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_priority_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['operator_id'] = 'field_farm_priority_tid_op';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['label'] = 'Priority';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['label'] = 'Priorities';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['operator'] = 'field_farm_priority_tid_op';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['identifier'] = 'field_farm_priority_tid';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_priority_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_priority_tid']['vocabulary'] = 'farm_priority';
$handler->display->display_options['filters']['field_farm_priority_tid']['hierarchy'] = 1;
/* Display: Issue log (page) */
$handler = $view->new_display('page', 'Issue log (page)', 'page');
$handler->display->display_options['defaults']['header'] = FALSE;
$handler->display->display_options['path'] = 'admin/farm/logs/issue';
/* Display: All issues (Page) */
$handler = $view->new_display('page', 'All issues (Page)', 'page');
$handler->display->display_options['path'] = 'admin/farm/logs/issues';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Issues';
$handler->display->display_options['menu']['weight'] = '100';
@ -280,28 +275,117 @@ function farm_log_views_default_views() {
$handler->display->display_options['tab_options']['weight'] = '0';
$handler->display->display_options['tab_options']['name'] = 'management';
/* Display: Entity Reference */
$handler = $view->new_display('entityreference', 'Entity Reference', 'entityreference_1');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['pager']['options']['offset'] = '0';
/* Display: Issues by area (Page) */
$handler = $view->new_display('page', 'Issues by area (Page)', 'page_1');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'entityreference_style';
$handler->display->display_options['style_options']['search_fields'] = array(
'name' => 'name',
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'id' => 'id',
'field_farm_date' => 'field_farm_date',
'field_farm_threats' => 'field_farm_threats',
'field_farm_crops' => 'field_farm_crops',
'field_farm_priority' => 'field_farm_priority',
'nothing' => 'nothing',
);
$handler->display->display_options['style_options']['default'] = 'field_farm_date';
$handler->display->display_options['style_options']['info'] = array(
'id' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_date' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_threats' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_crops' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_priority' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nothing' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
$handler->display->display_options['style_options']['empty_table'] = TRUE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'entityreference_fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Log: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'log';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['name']['alter']['path'] = 'log/[id]';
/* Field: Log: Log ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'log';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
$handler->display->display_options['fields']['id']['separator'] = '';
/* Field: Field: Date */
$handler->display->display_options['fields']['field_farm_date']['id'] = 'field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['table'] = 'field_data_field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['field'] = 'field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['settings'] = array(
'format_type' => 'short',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'show',
);
/* Field: Log: Threats */
$handler->display->display_options['fields']['field_farm_threats']['id'] = 'field_farm_threats';
$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: Crops */
$handler->display->display_options['fields']['field_farm_crops']['id'] = 'field_farm_crops';
$handler->display->display_options['fields']['field_farm_crops']['table'] = 'field_data_field_farm_crops';
$handler->display->display_options['fields']['field_farm_crops']['field'] = 'field_farm_crops';
$handler->display->display_options['fields']['field_farm_crops']['delta_offset'] = '0';
/* Field: Log: Priority */
$handler->display->display_options['fields']['field_farm_priority']['id'] = 'field_farm_priority';
$handler->display->display_options['fields']['field_farm_priority']['table'] = 'field_data_field_farm_priority';
$handler->display->display_options['fields']['field_farm_priority']['field'] = 'field_farm_priority';
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = 'Operations';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<a href="/log/[id]/edit?destination=admin/farm/logs/issues">Edit</a> | <a href="/log/[id]/delete?destination=admin/farm/logs/issues">Delete</a>';
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Log: Areas (field_farm_areas) */
$handler->display->display_options['arguments']['field_farm_areas_tid']['id'] = 'field_farm_areas_tid';
$handler->display->display_options['arguments']['field_farm_areas_tid']['table'] = 'field_data_field_farm_areas';
$handler->display->display_options['arguments']['field_farm_areas_tid']['field'] = 'field_farm_areas_tid';
$handler->display->display_options['arguments']['field_farm_areas_tid']['default_action'] = 'not found';
$handler->display->display_options['arguments']['field_farm_areas_tid']['title_enable'] = TRUE;
$handler->display->display_options['arguments']['field_farm_areas_tid']['title'] = 'Issues with %1';
$handler->display->display_options['arguments']['field_farm_areas_tid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_farm_areas_tid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_farm_areas_tid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_farm_areas_tid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['field_farm_areas_tid']['specify_validation'] = TRUE;
$handler->display->display_options['arguments']['field_farm_areas_tid']['validate']['type'] = 'taxonomy_term';
$handler->display->display_options['arguments']['field_farm_areas_tid']['validate_options']['vocabularies'] = array(
'farm_areas' => 'farm_areas',
);
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Log: Log type */
@ -311,6 +395,317 @@ function farm_log_views_default_views() {
$handler->display->display_options['filters']['type']['value'] = array(
'farm_issue' => 'farm_issue',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Filter criterion: Field: Date (field_farm_date) */
$handler->display->display_options['filters']['field_farm_date_value']['id'] = 'field_farm_date_value';
$handler->display->display_options['filters']['field_farm_date_value']['table'] = 'field_data_field_farm_date';
$handler->display->display_options['filters']['field_farm_date_value']['field'] = 'field_farm_date_value';
$handler->display->display_options['filters']['field_farm_date_value']['group'] = 1;
$handler->display->display_options['filters']['field_farm_date_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_date_value']['expose']['operator_id'] = 'field_farm_date_value_op';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['label'] = 'Date';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['operator'] = 'field_farm_date_value_op';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['identifier'] = 'field_farm_date_value';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
);
$handler->display->display_options['filters']['field_farm_date_value']['form_type'] = 'date_popup';
/* Filter criterion: Log: Threats (field_farm_threats) */
$handler->display->display_options['filters']['field_farm_threats_tid']['id'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['table'] = 'field_data_field_farm_threats';
$handler->display->display_options['filters']['field_farm_threats_tid']['field'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_threats_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['operator_id'] = 'field_farm_threats_tid_op';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['label'] = 'Threats';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['operator'] = 'field_farm_threats_tid_op';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['identifier'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_threats_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_threats_tid']['vocabulary'] = 'farm_threats';
$handler->display->display_options['filters']['field_farm_threats_tid']['hierarchy'] = 1;
/* Filter criterion: Log: Crops (field_farm_crops) */
$handler->display->display_options['filters']['field_farm_crops_tid']['id'] = 'field_farm_crops_tid';
$handler->display->display_options['filters']['field_farm_crops_tid']['table'] = 'field_data_field_farm_crops';
$handler->display->display_options['filters']['field_farm_crops_tid']['field'] = 'field_farm_crops_tid';
$handler->display->display_options['filters']['field_farm_crops_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_crops_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['operator_id'] = 'field_farm_crops_tid_op';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['label'] = 'Crops';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['operator'] = 'field_farm_crops_tid_op';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['identifier'] = 'field_farm_crops_tid';
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_crops_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_crops_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_crops_tid']['vocabulary'] = 'farm_crops';
$handler->display->display_options['filters']['field_farm_crops_tid']['hierarchy'] = 1;
/* Filter criterion: Log: Priority (field_farm_priority) */
$handler->display->display_options['filters']['field_farm_priority_tid']['id'] = 'field_farm_priority_tid';
$handler->display->display_options['filters']['field_farm_priority_tid']['table'] = 'field_data_field_farm_priority';
$handler->display->display_options['filters']['field_farm_priority_tid']['field'] = 'field_farm_priority_tid';
$handler->display->display_options['filters']['field_farm_priority_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_priority_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['operator_id'] = 'field_farm_priority_tid_op';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['label'] = 'Priorities';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['operator'] = 'field_farm_priority_tid_op';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['identifier'] = 'field_farm_priority_tid';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_priority_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_priority_tid']['vocabulary'] = 'farm_priority';
$handler->display->display_options['filters']['field_farm_priority_tid']['hierarchy'] = 1;
$handler->display->display_options['path'] = 'admin/farm/areas/%/issues';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Issues';
$handler->display->display_options['menu']['weight'] = '50';
$handler->display->display_options['menu']['name'] = 'management';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
/* Display: Issues by crop (Page) */
$handler = $view->new_display('page', 'Issues by crop (Page)', 'page_2');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'id' => 'id',
'field_farm_date' => 'field_farm_date',
'field_farm_threats' => 'field_farm_threats',
'field_farm_areas' => 'field_farm_areas',
'field_farm_priority' => 'field_farm_priority',
'nothing' => 'nothing',
);
$handler->display->display_options['style_options']['default'] = 'field_farm_date';
$handler->display->display_options['style_options']['info'] = array(
'id' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_date' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_threats' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_areas' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_priority' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nothing' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
$handler->display->display_options['style_options']['empty_table'] = TRUE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Log: Log ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'log';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
$handler->display->display_options['fields']['id']['separator'] = '';
/* Field: Field: Date */
$handler->display->display_options['fields']['field_farm_date']['id'] = 'field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['table'] = 'field_data_field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['field'] = 'field_farm_date';
$handler->display->display_options['fields']['field_farm_date']['settings'] = array(
'format_type' => 'short',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'show_repeat_rule' => 'show',
);
/* Field: Log: Threats */
$handler->display->display_options['fields']['field_farm_threats']['id'] = 'field_farm_threats';
$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: Areas */
$handler->display->display_options['fields']['field_farm_areas']['id'] = 'field_farm_areas';
$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: Priority */
$handler->display->display_options['fields']['field_farm_priority']['id'] = 'field_farm_priority';
$handler->display->display_options['fields']['field_farm_priority']['table'] = 'field_data_field_farm_priority';
$handler->display->display_options['fields']['field_farm_priority']['field'] = 'field_farm_priority';
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = 'Operations';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<a href="/log/[id]/edit?destination=admin/farm/logs/issues">Edit</a> | <a href="/log/[id]/delete?destination=admin/farm/logs/issues">Delete</a>';
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Log: Crops (field_farm_crops) */
$handler->display->display_options['arguments']['field_farm_crops_tid']['id'] = 'field_farm_crops_tid';
$handler->display->display_options['arguments']['field_farm_crops_tid']['table'] = 'field_data_field_farm_crops';
$handler->display->display_options['arguments']['field_farm_crops_tid']['field'] = 'field_farm_crops_tid';
$handler->display->display_options['arguments']['field_farm_crops_tid']['default_action'] = 'not found';
$handler->display->display_options['arguments']['field_farm_crops_tid']['title_enable'] = TRUE;
$handler->display->display_options['arguments']['field_farm_crops_tid']['title'] = 'Issues with %1';
$handler->display->display_options['arguments']['field_farm_crops_tid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_farm_crops_tid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_farm_crops_tid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_farm_crops_tid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['field_farm_crops_tid']['specify_validation'] = TRUE;
$handler->display->display_options['arguments']['field_farm_crops_tid']['validate']['type'] = 'taxonomy_term';
$handler->display->display_options['arguments']['field_farm_crops_tid']['validate_options']['vocabularies'] = array(
'farm_crops' => 'farm_crops',
);
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Log: Log type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'log';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'farm_issue' => 'farm_issue',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Filter criterion: Field: Date (field_farm_date) */
$handler->display->display_options['filters']['field_farm_date_value']['id'] = 'field_farm_date_value';
$handler->display->display_options['filters']['field_farm_date_value']['table'] = 'field_data_field_farm_date';
$handler->display->display_options['filters']['field_farm_date_value']['field'] = 'field_farm_date_value';
$handler->display->display_options['filters']['field_farm_date_value']['group'] = 1;
$handler->display->display_options['filters']['field_farm_date_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_date_value']['expose']['operator_id'] = 'field_farm_date_value_op';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['label'] = 'Date';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['operator'] = 'field_farm_date_value_op';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['identifier'] = 'field_farm_date_value';
$handler->display->display_options['filters']['field_farm_date_value']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
);
$handler->display->display_options['filters']['field_farm_date_value']['form_type'] = 'date_popup';
/* Filter criterion: Log: Threats (field_farm_threats) */
$handler->display->display_options['filters']['field_farm_threats_tid']['id'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['table'] = 'field_data_field_farm_threats';
$handler->display->display_options['filters']['field_farm_threats_tid']['field'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_threats_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['operator_id'] = 'field_farm_threats_tid_op';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['label'] = 'Threats';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['operator'] = 'field_farm_threats_tid_op';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['identifier'] = 'field_farm_threats_tid';
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_threats_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_threats_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_threats_tid']['vocabulary'] = 'farm_threats';
$handler->display->display_options['filters']['field_farm_threats_tid']['hierarchy'] = 1;
/* Filter criterion: Log: Areas (field_farm_areas) */
$handler->display->display_options['filters']['field_farm_areas_tid']['id'] = 'field_farm_areas_tid';
$handler->display->display_options['filters']['field_farm_areas_tid']['table'] = 'field_data_field_farm_areas';
$handler->display->display_options['filters']['field_farm_areas_tid']['field'] = 'field_farm_areas_tid';
$handler->display->display_options['filters']['field_farm_areas_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_areas_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['operator_id'] = 'field_farm_areas_tid_op';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['label'] = 'Areas';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['operator'] = 'field_farm_areas_tid_op';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['identifier'] = 'field_farm_areas_tid';
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_areas_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_areas_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_areas_tid']['vocabulary'] = 'farm_areas';
$handler->display->display_options['filters']['field_farm_areas_tid']['hierarchy'] = 1;
/* Filter criterion: Log: Priority (field_farm_priority) */
$handler->display->display_options['filters']['field_farm_priority_tid']['id'] = 'field_farm_priority_tid';
$handler->display->display_options['filters']['field_farm_priority_tid']['table'] = 'field_data_field_farm_priority';
$handler->display->display_options['filters']['field_farm_priority_tid']['field'] = 'field_farm_priority_tid';
$handler->display->display_options['filters']['field_farm_priority_tid']['group'] = 1;
$handler->display->display_options['filters']['field_farm_priority_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['operator_id'] = 'field_farm_priority_tid_op';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['label'] = 'Priorities';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['operator'] = 'field_farm_priority_tid_op';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['identifier'] = 'field_farm_priority_tid';
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_farm_priority_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
30037204 => 0,
200153887 => 0,
125843996 => 0,
173712484 => 0,
196317508 => 0,
146437786 => 0,
);
$handler->display->display_options['filters']['field_farm_priority_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_farm_priority_tid']['vocabulary'] = 'farm_priority';
$handler->display->display_options['filters']['field_farm_priority_tid']['hierarchy'] = 1;
$handler->display->display_options['path'] = 'admin/farm/crops/%/issues';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Issues';
$handler->display->display_options['menu']['weight'] = '50';
$handler->display->display_options['menu']['name'] = 'management';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
$export['farm_log_issues'] = $view;
return $export;

File diff suppressed because it is too large Load diff