This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
farm_grazing.views_default.inc
213 lines (208 loc) · 10.8 KB
/
farm_grazing.views_default.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
/**
* @file
* farm_grazing.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function farm_grazing_views_default_views() {
$export = array();
$view = new view();
$view->name = 'farm_grazing_plan';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'farm_plan';
$view->human_name = 'Farm Grazing Plans';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Grazing Plans';
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'view any grazing farm plans';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
$handler->display->display_options['exposed_form']['options']['autosubmit'] = TRUE;
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '50';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['pager']['options']['expose']['items_per_page'] = TRUE;
$handler->display->display_options['pager']['options']['expose']['items_per_page_options'] = '25, 50, 100, 250, 500';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all'] = TRUE;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'id' => 'id',
'name' => 'name',
'field_farm_date_range' => 'field_farm_date_range',
'field_grazing_growing_season' => 'field_grazing_growing_season',
'active' => 'active',
);
$handler->display->display_options['style_options']['class'] = '';
$handler->display->display_options['style_options']['default'] = 'name';
$handler->display->display_options['style_options']['info'] = array(
'id' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'name' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_farm_date_range' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_grazing_growing_season' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'active' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* 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 plans found.';
/* Field: Farm plan: Farm plan ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'farm_plan';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['label'] = 'Plan ID';
$handler->display->display_options['fields']['id']['separator'] = '';
/* Field: Farm plan: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'farm_plan';
$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'] = 'farm/plan/[id]';
/* Field: Field: Date range */
$handler->display->display_options['fields']['field_farm_date_range']['id'] = 'field_farm_date_range';
$handler->display->display_options['fields']['field_farm_date_range']['table'] = 'field_data_field_farm_date_range';
$handler->display->display_options['fields']['field_farm_date_range']['field'] = 'field_farm_date_range';
$handler->display->display_options['fields']['field_farm_date_range']['settings'] = array(
'format_type' => 'custom',
'custom_date_format' => 'Y-m-d',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'show_remaining_days' => 0,
);
/* Field: Farm plan: Growing season */
$handler->display->display_options['fields']['field_grazing_growing_season']['id'] = 'field_grazing_growing_season';
$handler->display->display_options['fields']['field_grazing_growing_season']['table'] = 'field_data_field_grazing_growing_season';
$handler->display->display_options['fields']['field_grazing_growing_season']['field'] = 'field_grazing_growing_season';
/* Field: Farm plan: Active */
$handler->display->display_options['fields']['active']['id'] = 'active';
$handler->display->display_options['fields']['active']['table'] = 'farm_plan';
$handler->display->display_options['fields']['active']['field'] = 'active';
$handler->display->display_options['fields']['active']['not'] = 0;
/* Filter criterion: Farm plan: Farm plan type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'farm_plan';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
'grazing' => 'grazing',
);
$handler->display->display_options['filters']['type']['group'] = 1;
$handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
$handler->display->display_options['filters']['type']['expose']['label'] = 'Plan type';
$handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
$handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
/* Filter criterion: Farm plan: Name */
$handler->display->display_options['filters']['name']['id'] = 'name';
$handler->display->display_options['filters']['name']['table'] = 'farm_plan';
$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';
/* Filter criterion: Farm plan: Growing season (field_grazing_growing_season) */
$handler->display->display_options['filters']['field_grazing_growing_season_value']['id'] = 'field_grazing_growing_season_value';
$handler->display->display_options['filters']['field_grazing_growing_season_value']['table'] = 'field_data_field_grazing_growing_season';
$handler->display->display_options['filters']['field_grazing_growing_season_value']['field'] = 'field_grazing_growing_season_value';
$handler->display->display_options['filters']['field_grazing_growing_season_value']['group'] = 1;
$handler->display->display_options['filters']['field_grazing_growing_season_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_grazing_growing_season_value']['expose']['operator_id'] = 'field_grazing_growing_season_value_op';
$handler->display->display_options['filters']['field_grazing_growing_season_value']['expose']['label'] = 'Growing season';
$handler->display->display_options['filters']['field_grazing_growing_season_value']['expose']['operator'] = 'field_grazing_growing_season_value_op';
$handler->display->display_options['filters']['field_grazing_growing_season_value']['expose']['identifier'] = 'field_grazing_growing_season_value';
/* Filter criterion: Farm plan: Active */
$handler->display->display_options['filters']['active']['id'] = 'active';
$handler->display->display_options['filters']['active']['table'] = 'farm_plan';
$handler->display->display_options['filters']['active']['field'] = 'active';
$handler->display->display_options['filters']['active']['value'] = '1';
$handler->display->display_options['filters']['active']['group'] = 1;
$handler->display->display_options['filters']['active']['exposed'] = TRUE;
$handler->display->display_options['filters']['active']['expose']['operator_id'] = '';
$handler->display->display_options['filters']['active']['expose']['label'] = 'Active';
$handler->display->display_options['filters']['active']['expose']['operator'] = 'active_op';
$handler->display->display_options['filters']['active']['expose']['identifier'] = 'active';
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'farm/plans/grazing';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Grazing Plans';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['name'] = 'farm';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
$translatables['farm_grazing_plan'] = array(
t('Master'),
t('Grazing Plans'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Items per page'),
t('- All -'),
t('Offset'),
t('« first'),
t('‹ previous'),
t('next ›'),
t('last »'),
t('No plans found.'),
t('Plan ID'),
t('.'),
t('Name'),
t('Date range'),
t('Growing season'),
t('Active'),
t('Plan type'),
t('Page'),
);
$export['farm_grazing_plan'] = $view;
return $export;
}