uw_ct_event.views_default.inc 196 KB
Newer Older
1
2
3
4
5
6
7
<?php
/**
 * @file
 * uw_ct_event.views_default.inc
 */

/**
8
 * Implements hook_views_default_views().
9
10
11
12
 */
function uw_ct_event_views_default_views() {
  $export = array();

13
  $view = new view();
14
15
  $view->name = 'event_type_block';
  $view->description = 'Displays event item by audience.';
16
17
  $view->tag = 'events';
  $view->base_table = 'taxonomy_term_data';
18
  $view->human_name = 'Event type block';
19
  $view->core = 7;
kolafson's avatar
kolafson committed
20
  $view->api_version = '3.0';
21
22
23
24
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: Master */
  $handler = $view->new_display('default', 'Master', 'default');
25
  $handler->display->display_options['title'] = 'Events by type';
kpaxman's avatar
kpaxman committed
26
  $handler->display->display_options['use_more_always'] = FALSE;
27
28
29
30
31
32
33
34
35
  $handler->display->display_options['group_by'] = TRUE;
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['cache']['type'] = 'none';
  $handler->display->display_options['query']['type'] = 'views_query';
  $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  $handler->display->display_options['exposed_form']['type'] = 'basic';
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['row_plugin'] = 'fields';
36
  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
mnshantz's avatar
mnshantz committed
37
  /* Relationship: Taxonomy term: Content using Type */
38
39
40
  $handler->display->display_options['relationships']['reverse_field_uw_event_type_node']['id'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['relationships']['reverse_field_uw_event_type_node']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['relationships']['reverse_field_uw_event_type_node']['field'] = 'reverse_field_uw_event_type_node';
41
42
43
44
45
46
47
  /* Field: Taxonomy term: Term ID */
  $handler->display->display_options['fields']['tid']['id'] = 'tid';
  $handler->display->display_options['fields']['tid']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['fields']['tid']['field'] = 'tid';
  $handler->display->display_options['fields']['tid']['label'] = '';
  $handler->display->display_options['fields']['tid']['exclude'] = TRUE;
  $handler->display->display_options['fields']['tid']['element_label_colon'] = FALSE;
48
  $handler->display->display_options['fields']['tid']['hide_alter_empty'] = FALSE;
49
50
51
52
53
54
  /* Field: Taxonomy term: Name */
  $handler->display->display_options['fields']['name']['id'] = 'name';
  $handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
  $handler->display->display_options['fields']['name']['field'] = 'name';
  $handler->display->display_options['fields']['name']['label'] = '';
  $handler->display->display_options['fields']['name']['exclude'] = TRUE;
55
  $handler->display->display_options['fields']['name']['alter']['make_link'] = TRUE;
56
  $handler->display->display_options['fields']['name']['alter']['path'] = 'events/type/[tid]';
57
58
  $handler->display->display_options['fields']['name']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['name']['alter']['ellipsis'] = FALSE;
59
  $handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
60
  $handler->display->display_options['fields']['name']['hide_alter_empty'] = FALSE;
61
62
63
64
  /* Field: COUNT(Content: Nid) */
  $handler->display->display_options['fields']['nid']['id'] = 'nid';
  $handler->display->display_options['fields']['nid']['table'] = 'node';
  $handler->display->display_options['fields']['nid']['field'] = 'nid';
65
  $handler->display->display_options['fields']['nid']['relationship'] = 'reverse_field_uw_event_type_node';
66
67
  $handler->display->display_options['fields']['nid']['group_type'] = 'count';
  $handler->display->display_options['fields']['nid']['label'] = '';
68
  $handler->display->display_options['fields']['nid']['alter']['alter_text'] = TRUE;
69
70
  $handler->display->display_options['fields']['nid']['alter']['text'] = '[name] [nid]';
  $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
71
  $handler->display->display_options['fields']['nid']['hide_alter_empty'] = FALSE;
72
73
  $handler->display->display_options['fields']['nid']['prefix'] = '(';
  $handler->display->display_options['fields']['nid']['suffix'] = ')';
74
75
76
77
78
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
  );
79
80
81
82
83
  /* Filter criterion: Taxonomy vocabulary: Machine name */
  $handler->display->display_options['filters']['machine_name']['id'] = 'machine_name';
  $handler->display->display_options['filters']['machine_name']['table'] = 'taxonomy_vocabulary';
  $handler->display->display_options['filters']['machine_name']['field'] = 'machine_name';
  $handler->display->display_options['filters']['machine_name']['value'] = array(
84
    'uw_event_type' => 'uw_event_type',
85
  );
86
  $handler->display->display_options['filters']['machine_name']['group'] = 1;
87
88
89
90
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'node';
  $handler->display->display_options['filters']['type']['field'] = 'type';
91
  $handler->display->display_options['filters']['type']['relationship'] = 'reverse_field_uw_event_type_node';
92
93
94
  $handler->display->display_options['filters']['type']['value'] = array(
    'uw_event' => 'uw_event',
  );
95
  $handler->display->display_options['filters']['type']['group'] = 1;
96
97
98
99
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
100
  $handler->display->display_options['filters']['status']['relationship'] = 'reverse_field_uw_event_type_node';
101
  $handler->display->display_options['filters']['status']['value'] = '1';
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
  $handler->display->display_options['filters']['status']['group'] = 1;
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '<=';
  $handler->display->display_options['filters']['field_event_date_value']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
  /* Filter criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value2']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type_1']['id'] = 'type_1';
  $handler->display->display_options['filters']['type_1']['table'] = 'node';
  $handler->display->display_options['filters']['type_1']['field'] = 'type';
  $handler->display->display_options['filters']['type_1']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['type_1']['value'] = array(
    'uw_event' => 'uw_event',
  );
  $handler->display->display_options['filters']['type_1']['group'] = 2;
  /* Filter criterion: Taxonomy vocabulary: Machine name */
  $handler->display->display_options['filters']['machine_name_1']['id'] = 'machine_name_1';
  $handler->display->display_options['filters']['machine_name_1']['table'] = 'taxonomy_vocabulary';
  $handler->display->display_options['filters']['machine_name_1']['field'] = 'machine_name';
  $handler->display->display_options['filters']['machine_name_1']['value'] = array(
    'uw_event_type' => 'uw_event_type',
  );
  $handler->display->display_options['filters']['machine_name_1']['group'] = 2;
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'node';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 2;
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value_1']['relationship'] = 'reverse_field_uw_event_type_node';
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value_1']['group'] = 2;
  $handler->display->display_options['filters']['field_event_date_value_1']['default_date'] = 'today';
151

152
  /* Display: Block - Events by Type */
153
  $handler = $view->new_display('block', 'Block - Events by Type', 'events_by_type');
kpaxman's avatar
kpaxman committed
154
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
155
  $export['event_type_block'] = $view;
156

157
  $view = new view();
158
159
  $view->name = 'events';
  $view->description = '';
160
  $view->tag = 'events';
161
162
163
  $view->base_table = 'node';
  $view->human_name = 'Events';
  $view->core = 7;
kolafson's avatar
kolafson committed
164
  $view->api_version = '3.0';
165
166
167
168
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

  /* Display: Master */
  $handler = $view->new_display('default', 'Master', 'default');
169
  $handler->display->display_options['title'] = 'Events';
kpaxman's avatar
kpaxman committed
170
  $handler->display->display_options['use_more_always'] = FALSE;
171
172
173
174
175
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['cache']['type'] = 'none';
  $handler->display->display_options['query']['type'] = 'views_query';
  $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  $handler->display->display_options['exposed_form']['type'] = 'basic';
ccarigna's avatar
ccarigna committed
176
177
  $handler->display->display_options['pager']['type'] = 'date_views_pager';
  $handler->display->display_options['pager']['options']['link_format'] = 'clean';
178
179
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['row_plugin'] = 'fields';
180
  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
181
182
183
184
185
  /* Field: Content: Title */
  $handler->display->display_options['fields']['title']['id'] = 'title';
  $handler->display->display_options['fields']['title']['table'] = 'node';
  $handler->display->display_options['fields']['title']['field'] = 'title';
  $handler->display->display_options['fields']['title']['label'] = '';
186
187
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
188
189
  $handler->display->display_options['fields']['title']['element_type'] = 'h3';
  $handler->display->display_options['fields']['title']['element_class'] = 'event-title';
ccarigna's avatar
ccarigna committed
190
  $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
191
192
  $handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
193
194
195
196
197
  /* Field: Content: Date and time */
  $handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['label'] = '';
ccarigna's avatar
ccarigna committed
198
199
  $handler->display->display_options['fields']['field_event_date']['element_type'] = 'div';
  $handler->display->display_options['fields']['field_event_date']['element_class'] = 'event-date';
200
  $handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
201
202
  $handler->display->display_options['fields']['field_event_date']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = FALSE;
203
  $handler->display->display_options['fields']['field_event_date']['settings'] = array(
lkmorlan's avatar
lkmorlan committed
204
    'format_type' => 'long',
ccarigna's avatar
ccarigna committed
205
    'fromto' => 'both',
206
207
208
209
210
    'multiple_number' => '1',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_repeat_rule' => 'hide',
  );
211
  $handler->display->display_options['fields']['field_event_date']['group_rows'] = FALSE;
212
213
  $handler->display->display_options['fields']['field_event_date']['delta_offset'] = '0';
  $handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
lkmorlan's avatar
lkmorlan committed
214
  /* Field: Content: Listing page image */
ccarigna's avatar
ccarigna committed
215
216
217
218
219
  $handler->display->display_options['fields']['field_event_image']['id'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['table'] = 'field_data_field_event_image';
  $handler->display->display_options['fields']['field_event_image']['field'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['label'] = '';
  $handler->display->display_options['fields']['field_event_image']['element_label_colon'] = FALSE;
220
221
  $handler->display->display_options['fields']['field_event_image']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['hide_alter_empty'] = FALSE;
ccarigna's avatar
ccarigna committed
222
223
224
225
226
  $handler->display->display_options['fields']['field_event_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_event_image']['settings'] = array(
    'image_style' => 'thumbnail',
    'image_link' => '',
  );
l26yan's avatar
l26yan committed
227
  /* Field: Content: Body */
228
229
230
231
  $handler->display->display_options['fields']['body']['id'] = 'body';
  $handler->display->display_options['fields']['body']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['body']['field'] = 'body';
  $handler->display->display_options['fields']['body']['label'] = '';
232
  $handler->display->display_options['fields']['body']['exclude'] = TRUE;
kolafson's avatar
kolafson committed
233
  $handler->display->display_options['fields']['body']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br>';
ccarigna's avatar
ccarigna committed
234
235
  $handler->display->display_options['fields']['body']['element_type'] = 'div';
  $handler->display->display_options['fields']['body']['element_class'] = 'event-summary';
236
  $handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
237
238
  $handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['body']['hide_alter_empty'] = FALSE;
ccarigna's avatar
ccarigna committed
239
  $handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
240
  $handler->display->display_options['fields']['body']['settings'] = array(
241
    'trim_length' => '600',
242
  );
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
  /* Field: Headers-Replaced Body */
  $handler->display->display_options['fields']['php']['id'] = 'php';
  $handler->display->display_options['fields']['php']['table'] = 'views';
  $handler->display->display_options['fields']['php']['field'] = 'php';
  $handler->display->display_options['fields']['php']['ui_name'] = 'Headers-Replaced Body';
  $handler->display->display_options['fields']['php']['label'] = '';
  $handler->display->display_options['fields']['php']['alter']['trim_whitespace'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['php']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br> <b> <i>';
  $handler->display->display_options['fields']['php']['element_type'] = 'div';
  $handler->display->display_options['fields']['php']['element_class'] = 'event-summary';
  $handler->display->display_options['fields']['php']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['php']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['php']['use_php_setup'] = 0;
  $handler->display->display_options['fields']['php']['php_output'] = '<?php
258
echo preg_replace(\'/<(\\/?)h\\d/\', \'<$1p\', $data->field_body[0][\'rendered\'][\'#markup\']);
259
260
261
?>';
  $handler->display->display_options['fields']['php']['use_php_click_sortable'] = '0';
  $handler->display->display_options['fields']['php']['php_click_sortable'] = '';
262
263
264
265
  /* Sort criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['sorts']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['sorts']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value']['field'] = 'field_event_date_value';
kpaxman's avatar
kpaxman committed
266
267
268
269
270
271
272
273
274
275
276
277
  /* Sort criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['sorts']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['sorts']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value2']['field'] = 'field_event_date_value2';
  /* Sort criterion: Content: Title */
  $handler->display->display_options['sorts']['title']['id'] = 'title';
  $handler->display->display_options['sorts']['title']['table'] = 'node';
  $handler->display->display_options['sorts']['title']['field'] = 'title';
  /* Sort criterion: Content: Nid */
  $handler->display->display_options['sorts']['nid']['id'] = 'nid';
  $handler->display->display_options['sorts']['nid']['table'] = 'node';
  $handler->display->display_options['sorts']['nid']['field'] = 'nid';
278
279
280
281
282
  /* Contextual filter: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['arguments']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['arguments']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['arguments']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['arguments']['field_event_date_value']['summary']['format'] = 'default_summary';
283
284
285
286
287
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
  );
288
289
290
291
292
293
294
295
296
297
298
299
300
301
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
  $handler->display->display_options['filters']['status']['value'] = 1;
  $handler->display->display_options['filters']['status']['group'] = 0;
  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'node';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'uw_event' => 'uw_event',
  );
302
303
304
305
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
306
307
308
309
310
311
312
313
314
315
316
317
318
  /* Filter criterion: Workbench Moderation: Current */
  $handler->display->display_options['filters']['current']['id'] = 'current';
  $handler->display->display_options['filters']['current']['table'] = 'workbench_moderation_node_history';
  $handler->display->display_options['filters']['current']['field'] = 'current';
  $handler->display->display_options['filters']['current']['value'] = '1';
  /* Filter criterion: Workbench Moderation: State */
  $handler->display->display_options['filters']['state']['id'] = 'state';
  $handler->display->display_options['filters']['state']['table'] = 'workbench_moderation_node_history';
  $handler->display->display_options['filters']['state']['field'] = 'state';
  $handler->display->display_options['filters']['state']['operator'] = 'not in';
  $handler->display->display_options['filters']['state']['value'] = array(
    'archived' => 'archived',
  );
319
320
321

  /* Display: Events - List */
  $handler = $view->new_display('page', 'Events - List', 'page');
ccarigna's avatar
ccarigna committed
322
323
  $handler->display->display_options['defaults']['title'] = FALSE;
  $handler->display->display_options['title'] = 'Events';
kpaxman's avatar
kpaxman committed
324
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
kolafson's avatar
kolafson committed
325
  $handler->display->display_options['defaults']['group_by'] = FALSE;
326
  $handler->display->display_options['defaults']['pager'] = FALSE;
ccarigna's avatar
ccarigna committed
327
328
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '25';
ccarigna's avatar
ccarigna committed
329
  $handler->display->display_options['pager']['options']['offset'] = '0';
ccarigna's avatar
ccarigna committed
330
  $handler->display->display_options['pager']['options']['id'] = '0';
331
332
333
334
335
336
  $handler->display->display_options['defaults']['footer'] = FALSE;
  $handler->display->display_options['defaults']['empty'] = FALSE;
  /* No results behavior: Global: Text area */
  $handler->display->display_options['empty']['area']['id'] = 'area';
  $handler->display->display_options['empty']['area']['table'] = 'views';
  $handler->display->display_options['empty']['area']['field'] = 'area';
kpaxman's avatar
kpaxman committed
337
338
  $handler->display->display_options['empty']['area']['empty'] = TRUE;
  $handler->display->display_options['empty']['area']['content'] = '<p>No events found.</p>';
339
  $handler->display->display_options['empty']['area']['format'] = 'uw_tf_standard';
ccarigna's avatar
ccarigna committed
340
  $handler->display->display_options['defaults']['arguments'] = FALSE;
341
342
343
344
345
346
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
  );
347
348
349
350
351
352
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
  $handler->display->display_options['filters']['status']['value'] = 1;
353
  $handler->display->display_options['filters']['status']['group'] = 1;
354
355
356
357
358
359
360
361
  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'node';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'uw_event' => 'uw_event',
  );
362
  $handler->display->display_options['filters']['type']['group'] = 1;
l26yan's avatar
l26yan committed
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
  /* Filter criterion: Global: Composite Filter */
  $handler->display->display_options['filters']['composite_views_filter']['id'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['table'] = 'views';
  $handler->display->display_options['filters']['composite_views_filter']['field'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['exposed'] = TRUE;
  $handler->display->display_options['filters']['composite_views_filter']['expose']['operator_id'] = '';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['label'] = 'Dates';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['operator'] = 'composite_views_filter_op';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['identifier'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['required'] = TRUE;
  $handler->display->display_options['filters']['composite_views_filter']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
  );
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['groups'] = 'All|- Any -
Current|Current and upcoming
Past|Past';
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['default_group'] = 'Current';
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['classification'] = array(
    'field_event_date_value' => 'Current',
    'field_event_date_value_1' => 'All',
    'field_event_date_value2' => 'Past',
  );
mnshantz's avatar
mnshantz committed
399
  /* Filter criterion: Content: Type (field_uw_event_type) */
l26yan's avatar
l26yan committed
400
401
402
403
404
  $handler->display->display_options['filters']['field_uw_event_type_tid']['id'] = 'field_uw_event_type_tid';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['table'] = 'field_data_field_uw_event_type';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['field'] = 'field_uw_event_type_tid';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['operator_id'] = 'field_uw_event_type_tid_op';
kpaxman's avatar
kpaxman committed
405
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['label'] = 'Type';
l26yan's avatar
l26yan committed
406
407
408
409
410
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['operator'] = 'field_uw_event_type_tid_op';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['identifier'] = 'field_uw_event_type_tid';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
kpaxman's avatar
kpaxman committed
411
    16 => 0,
l26yan's avatar
l26yan committed
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
  );
  $handler->display->display_options['filters']['field_uw_event_type_tid']['type'] = 'select';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['vocabulary'] = 'uw_event_type';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['hierarchy'] = 1;
  /* Filter criterion: Content: Audience (field_audience) */
  $handler->display->display_options['filters']['field_audience_tid']['id'] = 'field_audience_tid';
  $handler->display->display_options['filters']['field_audience_tid']['table'] = 'field_data_field_audience';
  $handler->display->display_options['filters']['field_audience_tid']['field'] = 'field_audience_tid';
  $handler->display->display_options['filters']['field_audience_tid']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_audience_tid']['expose']['operator_id'] = 'field_audience_tid_op';
kpaxman's avatar
kpaxman committed
435
  $handler->display->display_options['filters']['field_audience_tid']['expose']['label'] = 'Audience';
l26yan's avatar
l26yan committed
436
437
438
439
440
  $handler->display->display_options['filters']['field_audience_tid']['expose']['operator'] = 'field_audience_tid_op';
  $handler->display->display_options['filters']['field_audience_tid']['expose']['identifier'] = 'field_audience_tid';
  $handler->display->display_options['filters']['field_audience_tid']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
kpaxman's avatar
kpaxman committed
441
    16 => 0,
l26yan's avatar
l26yan committed
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
  );
  $handler->display->display_options['filters']['field_audience_tid']['type'] = 'select';
  $handler->display->display_options['filters']['field_audience_tid']['vocabulary'] = 'uwaterloo_audience';
  $handler->display->display_options['filters']['field_audience_tid']['hierarchy'] = 1;
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
460
461
462
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
l26yan's avatar
l26yan committed
463
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
464
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
l26yan's avatar
l26yan committed
465
  /* Filter criterion: Content: Date and time - end date (field_event_date:value2) */
466
467
468
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
l26yan's avatar
l26yan committed
469
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '<';
470
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
l26yan's avatar
l26yan committed
471
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
472
473
474
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
l26yan's avatar
l26yan committed
475
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = 'not empty';
476
477
478
479
  $handler->display->display_options['path'] = 'events';
  $handler->display->display_options['menu']['type'] = 'normal';
  $handler->display->display_options['menu']['title'] = 'Events';
  $handler->display->display_options['menu']['weight'] = '21';
480
  $handler->display->display_options['menu']['name'] = 'main-menu';
l26yan's avatar
260360    
l26yan committed
481
482
  $handler->display->display_options['menu']['context'] = 0;
  $handler->display->display_options['menu']['context_only_inline'] = 0;
483

mnshantz's avatar
mnshantz committed
484
485
486
487
  /* Display: Events Public Feed */
  $handler = $view->new_display('feed', 'Events Public Feed', 'uw_public_event_feed');
  $handler->display->display_options['defaults']['title'] = FALSE;
  $handler->display->display_options['title'] = 'Events Feed';
kpaxman's avatar
kpaxman committed
488
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
mnshantz's avatar
mnshantz committed
489
490
  $handler->display->display_options['pager']['type'] = 'some';
  $handler->display->display_options['style_plugin'] = 'rss';
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
  $handler->display->display_options['row_plugin'] = 'rss_fields';
  $handler->display->display_options['row_options']['title_field'] = 'title';
  $handler->display->display_options['row_options']['link_field'] = 'path';
  $handler->display->display_options['row_options']['description_field'] = 'nothing';
  $handler->display->display_options['row_options']['creator_field'] = 'uid';
  $handler->display->display_options['row_options']['date_field'] = 'created';
  $handler->display->display_options['row_options']['guid_field_options'] = array(
    'guid_field' => 'path',
    'guid_field_is_permalink' => 1,
  );
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* Field: Content: Listing page image */
  $handler->display->display_options['fields']['field_event_image']['id'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['table'] = 'field_data_field_event_image';
  $handler->display->display_options['fields']['field_event_image']['field'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['label'] = '';
  $handler->display->display_options['fields']['field_event_image']['exclude'] = TRUE;
508
  $handler->display->display_options['fields']['field_event_image']['element_type'] = 'p';
509
510
  $handler->display->display_options['fields']['field_event_image']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['element_default_classes'] = FALSE;
511
  $handler->display->display_options['fields']['field_event_image']['hide_empty'] = TRUE;
512
513
514
515
516
517
518
519
520
521
  $handler->display->display_options['fields']['field_event_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_event_image']['settings'] = array(
    'image_style' => 'thumbnail',
    'image_link' => '',
  );
  /* Field: Content: Date and time */
  $handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['label'] = '';
522
523
524
525
  $handler->display->display_options['fields']['field_event_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_event_date']['alter']['text'] = '<p>[field_event_date]</p>';
  $handler->display->display_options['fields']['field_event_date']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['field_event_date']['alter']['preserve_tags'] = '<p>';
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
  $handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['settings'] = array(
    'format_type' => 'long',
    'fromto' => 'both',
    'multiple_number' => '1',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_repeat_rule' => 'hide',
  );
  $handler->display->display_options['fields']['field_event_date']['group_rows'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['delta_offset'] = '0';
  $handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
  /* Field: Content: Title */
  $handler->display->display_options['fields']['title']['id'] = 'title';
  $handler->display->display_options['fields']['title']['table'] = 'node';
  $handler->display->display_options['fields']['title']['field'] = 'title';
  $handler->display->display_options['fields']['title']['label'] = '';
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
  /* Field: Content: Post date */
  $handler->display->display_options['fields']['created']['id'] = 'created';
  $handler->display->display_options['fields']['created']['table'] = 'node';
  $handler->display->display_options['fields']['created']['field'] = 'created';
555
556
557
  $handler->display->display_options['fields']['created']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['created']['date_format'] = 'custom';
  $handler->display->display_options['fields']['created']['custom_date_format'] = 'r';
l26yan's avatar
l26yan committed
558
  /* Field: Content: Body */
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
  $handler->display->display_options['fields']['body']['id'] = 'body';
  $handler->display->display_options['fields']['body']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['body']['field'] = 'body';
  $handler->display->display_options['fields']['body']['label'] = '';
  $handler->display->display_options['fields']['body']['alter']['trim_whitespace'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br>';
  $handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['body']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
  $handler->display->display_options['fields']['body']['settings'] = array(
    'trim_length' => '300',
  );
  /* Field: Content: Path */
  $handler->display->display_options['fields']['path']['id'] = 'path';
  $handler->display->display_options['fields']['path']['table'] = 'node';
  $handler->display->display_options['fields']['path']['field'] = 'path';
  $handler->display->display_options['fields']['path']['label'] = '';
  $handler->display->display_options['fields']['path']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['path']['absolute'] = TRUE;
  /* 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'] = 'Feed Elements';
585
586
  $handler->display->display_options['fields']['nothing']['alter']['text'] = '[field_event_image]
[field_event_date]
587
588
589
590
591
[body]';
  /* Field: Content: Author uid */
  $handler->display->display_options['fields']['uid']['id'] = 'uid';
  $handler->display->display_options['fields']['uid']['table'] = 'node';
  $handler->display->display_options['fields']['uid']['field'] = 'uid';
592
593
594
595
596
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
mnshantz's avatar
mnshantz committed
597
  );
598
599
600
601
602
603
604
605
606
607
608
609
610
611
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
  $handler->display->display_options['filters']['status']['value'] = 1;
  $handler->display->display_options['filters']['status']['group'] = 1;
  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'node';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'uw_event' => 'uw_event',
mnshantz's avatar
mnshantz committed
612
  );
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Start date &lt;= Today */
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value_1']['ui_name'] = 'Start date <= Today';
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = '<=';
  $handler->display->display_options['filters']['field_event_date_value_1']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value_1']['default_date'] = 'today';
  /* Filter criterion: End date &gt;= Today */
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['ui_name'] = 'End date >= Today';
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value2']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'node';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 2;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type_1']['id'] = 'type_1';
  $handler->display->display_options['filters']['type_1']['table'] = 'node';
  $handler->display->display_options['filters']['type_1']['field'] = 'type';
  $handler->display->display_options['filters']['type_1']['value'] = array(
    'uw_event' => 'uw_event',
mnshantz's avatar
mnshantz committed
642
  );
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
  $handler->display->display_options['filters']['type_1']['group'] = 2;
  /* Filter criterion: Start date &gt;= Today */
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['ui_name'] = 'Start date >= Today';
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value']['group'] = 2;
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
  $handler->display->display_options['path'] = 'events/events.xml';
  $handler->display->display_options['displays'] = array(
    'page' => 'page',
    'default' => 0,
    'page_2' => 0,
    'page_3' => 0,
mnshantz's avatar
mnshantz committed
658
  );
659
660
  $handler->display->display_options['sitename_title'] = 1;

l26yan's avatar
l26yan committed
661
662
  /* Display: Individual Events iCal Feed */
  $handler = $view->new_display('feed', 'Individual Events iCal Feed', 'uw_individual_event_feed');
663
664
665
666
667
668
669
670
  $handler->display->display_options['defaults']['title'] = FALSE;
  $handler->display->display_options['title'] = 'Events Feed';
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['style_plugin'] = 'date_ical';
  $handler->display->display_options['row_plugin'] = 'date_ical';
  $handler->display->display_options['row_options']['date_field'] = 'field_data_field_event_date.field_event_date_value';
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* Field: Content: Title */
  $handler->display->display_options['fields']['title']['id'] = 'title';
  $handler->display->display_options['fields']['title']['table'] = 'node';
  $handler->display->display_options['fields']['title']['field'] = 'title';
  $handler->display->display_options['fields']['title']['label'] = '';
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  $handler->display->display_options['fields']['title']['element_type'] = 'h3';
  $handler->display->display_options['fields']['title']['element_class'] = 'event-title';
  $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['title']['hide_alter_empty'] = FALSE;
  /* Field: Content: Date and time */
  $handler->display->display_options['fields']['field_event_date']['id'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['fields']['field_event_date']['field'] = 'field_event_date';
  $handler->display->display_options['fields']['field_event_date']['label'] = '';
  $handler->display->display_options['fields']['field_event_date']['element_type'] = 'div';
  $handler->display->display_options['fields']['field_event_date']['element_class'] = 'event-date';
  $handler->display->display_options['fields']['field_event_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['settings'] = array(
    'format_type' => 'long',
    'fromto' => 'both',
    'multiple_number' => '1',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_repeat_rule' => 'hide',
  );
  $handler->display->display_options['fields']['field_event_date']['group_rows'] = FALSE;
  $handler->display->display_options['fields']['field_event_date']['delta_offset'] = '0';
  $handler->display->display_options['fields']['field_event_date']['multi_type'] = 'ul';
  /* Field: Content: Listing page image */
  $handler->display->display_options['fields']['field_event_image']['id'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['table'] = 'field_data_field_event_image';
  $handler->display->display_options['fields']['field_event_image']['field'] = 'field_event_image';
  $handler->display->display_options['fields']['field_event_image']['label'] = '';
  $handler->display->display_options['fields']['field_event_image']['exclude'] = TRUE;
  $handler->display->display_options['fields']['field_event_image']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['field_event_image']['click_sort_column'] = 'fid';
  $handler->display->display_options['fields']['field_event_image']['settings'] = array(
    'image_style' => 'thumbnail',
    'image_link' => '',
  );
l26yan's avatar
l26yan committed
719
  /* Field: Content: Body */
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
  $handler->display->display_options['fields']['body']['id'] = 'body';
  $handler->display->display_options['fields']['body']['table'] = 'field_data_body';
  $handler->display->display_options['fields']['body']['field'] = 'body';
  $handler->display->display_options['fields']['body']['label'] = '';
  $handler->display->display_options['fields']['body']['alter']['trim_whitespace'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['strip_tags'] = TRUE;
  $handler->display->display_options['fields']['body']['alter']['preserve_tags'] = '<p> <strong> <em> <a> <br>';
  $handler->display->display_options['fields']['body']['element_type'] = 'div';
  $handler->display->display_options['fields']['body']['element_class'] = 'event-summary';
  $handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['body']['element_default_classes'] = FALSE;
  $handler->display->display_options['fields']['body']['hide_alter_empty'] = FALSE;
  $handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
  $handler->display->display_options['fields']['body']['settings'] = array(
    'trim_length' => '300',
  );
736
737
738
739
740
741
742
743
744
745
746
747
748
749
  $handler->display->display_options['defaults']['arguments'] = FALSE;
  /* Contextual filter: Content: Nid */
  $handler->display->display_options['arguments']['nid']['id'] = 'nid';
  $handler->display->display_options['arguments']['nid']['table'] = 'node';
  $handler->display->display_options['arguments']['nid']['field'] = 'nid';
  $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
  /* Contextual filter: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['arguments']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['arguments']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['arguments']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['arguments']['field_event_date_value']['summary']['format'] = 'default_summary';
750
751
752
753
754
755
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'AND',
  );
mnshantz's avatar
mnshantz committed
756
757
758
759
760
761
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
  $handler->display->display_options['filters']['status']['value'] = 1;
762
  $handler->display->display_options['filters']['status']['group'] = 1;
mnshantz's avatar
mnshantz committed
763
764
765
766
767
768
769
770
  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'node';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'uw_event' => 'uw_event',
  );
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Start date &lt;= Today */
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value_1']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value_1']['ui_name'] = 'Start date <= Today';
  $handler->display->display_options['filters']['field_event_date_value_1']['operator'] = '<=';
  $handler->display->display_options['filters']['field_event_date_value_1']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value_1']['default_date'] = 'today';
  /* Filter criterion: End date &gt;= Today */
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['ui_name'] = 'End date >= Today';
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value2']['group'] = 1;
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'node';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 2;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type_1']['id'] = 'type_1';
  $handler->display->display_options['filters']['type_1']['table'] = 'node';
  $handler->display->display_options['filters']['type_1']['field'] = 'type';
  $handler->display->display_options['filters']['type_1']['value'] = array(
    'uw_event' => 'uw_event',
  );
  $handler->display->display_options['filters']['type_1']['group'] = 2;
  /* Filter criterion: Start date &gt;= Today */
mnshantz's avatar
mnshantz committed
803
804
805
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
806
  $handler->display->display_options['filters']['field_event_date_value']['ui_name'] = 'Start date >= Today';
mnshantz's avatar
mnshantz committed
807
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
808
  $handler->display->display_options['filters']['field_event_date_value']['group'] = 2;
mnshantz's avatar
mnshantz committed
809
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
l26yan's avatar
l26yan committed
810
  $handler->display->display_options['path'] = 'events/ical/%/calendar.ics';
mnshantz's avatar
mnshantz committed
811
812
  $handler->display->display_options['displays'] = array(
    'default' => 0,
l26yan's avatar
l26yan committed
813
    'page' => 0,
mnshantz's avatar
mnshantz committed
814
815
816
    'page_2' => 0,
    'page_3' => 0,
  );
817
  $handler->display->display_options['sitename_title'] = 1;
818

l26yan's avatar
l26yan committed
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
  /* Display: Events - Archive */
  $handler = $view->new_display('page', 'Events - Archive', 'events_archive_page');
  $handler->display->display_options['defaults']['title'] = FALSE;
  $handler->display->display_options['title'] = 'Events';
  $handler->display->display_options['display_description'] = 'Display all events for archive';
  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
  $handler->display->display_options['defaults']['access'] = FALSE;
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['defaults']['pager'] = FALSE;
  $handler->display->display_options['pager']['type'] = 'full';
  $handler->display->display_options['pager']['options']['items_per_page'] = '25';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['pager']['options']['id'] = '0';
  $handler->display->display_options['defaults']['empty'] = FALSE;
  /* No results behavior: Global: Text area */
  $handler->display->display_options['empty']['area']['id'] = 'area';
  $handler->display->display_options['empty']['area']['table'] = 'views';
  $handler->display->display_options['empty']['area']['field'] = 'area';
kpaxman's avatar
kpaxman committed
837
838
  $handler->display->display_options['empty']['area']['empty'] = TRUE;
  $handler->display->display_options['empty']['area']['content'] = '<p>No events found.</p>';
l26yan's avatar
l26yan committed
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
  $handler->display->display_options['empty']['area']['format'] = 'uw_tf_standard';
  $handler->display->display_options['defaults']['sorts'] = FALSE;
  /* Sort criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['sorts']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['sorts']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['sorts']['field_event_date_value']['order'] = 'DESC';
  /* Sort criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['sorts']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['sorts']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['sorts']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['sorts']['field_event_date_value2']['order'] = 'DESC';
  /* Sort criterion: Content: Title */
  $handler->display->display_options['sorts']['title']['id'] = 'title';
  $handler->display->display_options['sorts']['title']['table'] = 'node';
  $handler->display->display_options['sorts']['title']['field'] = 'title';
  /* Sort criterion: Content: Nid */
  $handler->display->display_options['sorts']['nid']['id'] = 'nid';
  $handler->display->display_options['sorts']['nid']['table'] = 'node';
  $handler->display->display_options['sorts']['nid']['field'] = 'nid';
  $handler->display->display_options['defaults']['arguments'] = FALSE;
  /* Contextual filter: Date: Date (node) */
  $handler->display->display_options['arguments']['date_argument']['id'] = 'date_argument';
  $handler->display->display_options['arguments']['date_argument']['table'] = 'node';
  $handler->display->display_options['arguments']['date_argument']['field'] = 'date_argument';
  $handler->display->display_options['arguments']['date_argument']['default_action'] = 'default';
l26yan's avatar
l26yan committed
865
  $handler->display->display_options['arguments']['date_argument']['summary']['format'] = 'default_summary';
866
  $handler->display->display_options['arguments']['date_argument']['year_range'] = '-1000:+1000';
l26yan's avatar
l26yan committed
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
  $handler->display->display_options['arguments']['date_argument']['date_fields'] = array(
    'field_data_field_event_date.field_event_date_value' => 'field_data_field_event_date.field_event_date_value',
  );
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['filter_groups']['operator'] = 'OR';
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* Filter criterion: Content: Published */
  $handler->display->display_options['filters']['status']['id'] = 'status';
  $handler->display->display_options['filters']['status']['table'] = 'node';
  $handler->display->display_options['filters']['status']['field'] = 'status';
  $handler->display->display_options['filters']['status']['value'] = 1;
  $handler->display->display_options['filters']['status']['group'] = 1;
  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  /* Filter criterion: Content: Type */
  $handler->display->display_options['filters']['type']['id'] = 'type';
  $handler->display->display_options['filters']['type']['table'] = 'node';
  $handler->display->display_options['filters']['type']['field'] = 'type';
  $handler->display->display_options['filters']['type']['value'] = array(
    'uw_event' => 'uw_event',
  );
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Global: Composite Filter */
  $handler->display->display_options['filters']['composite_views_filter']['id'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['table'] = 'views';
  $handler->display->display_options['filters']['composite_views_filter']['field'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['group'] = 1;
  $handler->display->display_options['filters']['composite_views_filter']['exposed'] = TRUE;
  $handler->display->display_options['filters']['composite_views_filter']['expose']['operator_id'] = '';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['label'] = 'Dates';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['operator'] = 'composite_views_filter_op';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['identifier'] = 'composite_views_filter';
  $handler->display->display_options['filters']['composite_views_filter']['expose']['required'] = TRUE;
  $handler->display->display_options['filters']['composite_views_filter']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
  );
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['groups'] = 'All|- Any -
Current|Current and upcoming
Past|Past';
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['default_group'] = 'All';
  $handler->display->display_options['filters']['composite_views_filter']['composite_views_filter']['classification'] = array(
    'field_event_date_value' => 'Current',
    'field_event_date_value_1' => 'All',
    'field_event_date_value2' => 'Past',
  );
mnshantz's avatar
mnshantz committed
925
  /* Filter criterion: Content: Type (field_uw_event_type) */
l26yan's avatar
l26yan committed
926
927
928
  $handler->display->display_options['filters']['field_uw_event_type_tid']['id'] = 'field_uw_event_type_tid';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['table'] = 'field_data_field_uw_event_type';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['field'] = 'field_uw_event_type_tid';
l26yan's avatar
l26yan committed
929
  $handler->display->display_options['filters']['field_uw_event_type_tid']['group'] = 1;
l26yan's avatar
l26yan committed
930
931
  $handler->display->display_options['filters']['field_uw_event_type_tid']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['operator_id'] = 'field_uw_event_type_tid_op';
kpaxman's avatar
kpaxman committed
932
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['label'] = 'Type';
l26yan's avatar
l26yan committed
933
934
935
936
937
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['operator'] = 'field_uw_event_type_tid_op';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['identifier'] = 'field_uw_event_type_tid';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
kpaxman's avatar
kpaxman committed
938
    16 => 0,
l26yan's avatar
l26yan committed
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
  );
  $handler->display->display_options['filters']['field_uw_event_type_tid']['type'] = 'select';
  $handler->display->display_options['filters']['field_uw_event_type_tid']['vocabulary'] = 'uw_event_type';
  /* Filter criterion: Content: Audience (field_audience) */
  $handler->display->display_options['filters']['field_audience_tid']['id'] = 'field_audience_tid';
  $handler->display->display_options['filters']['field_audience_tid']['table'] = 'field_data_field_audience';
  $handler->display->display_options['filters']['field_audience_tid']['field'] = 'field_audience_tid';
l26yan's avatar
l26yan committed
959
  $handler->display->display_options['filters']['field_audience_tid']['group'] = 1;
l26yan's avatar
l26yan committed
960
961
  $handler->display->display_options['filters']['field_audience_tid']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_audience_tid']['expose']['operator_id'] = 'field_audience_tid_op';
kpaxman's avatar
kpaxman committed
962
  $handler->display->display_options['filters']['field_audience_tid']['expose']['label'] = 'Audience';
l26yan's avatar
l26yan committed
963
964
965
966
967
  $handler->display->display_options['filters']['field_audience_tid']['expose']['operator'] = 'field_audience_tid_op';
  $handler->display->display_options['filters']['field_audience_tid']['expose']['identifier'] = 'field_audience_tid';
  $handler->display->display_options['filters']['field_audience_tid']['expose']['remember_roles'] = array(
    2 => '2',
    1 => 0,
kpaxman's avatar
kpaxman committed
968
    16 => 0,
l26yan's avatar
l26yan committed
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
    13 => 0,
    14 => 0,
    15 => 0,
    3 => 0,
    6 => 0,
    12 => 0,
    5 => 0,
    4 => 0,
    7 => 0,
    8 => 0,
    9 => 0,
    11 => 0,
    10 => 0,
  );
  $handler->display->display_options['filters']['field_audience_tid']['type'] = 'select';
  $handler->display->display_options['filters']['field_audience_tid']['vocabulary'] = 'uwaterloo_audience';
  $handler->display->display_options['filters']['field_audience_tid']['hierarchy'] = 1;
l26yan's avatar
l26yan committed
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value']['id'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value']['field'] = 'field_event_date_value';
  $handler->display->display_options['filters']['field_event_date_value']['operator'] = '>=';
  $handler->display->display_options['filters']['field_event_date_value']['default_date'] = 'today';
  /* Filter criterion: Content: Date and time - end date (field_event_date:value2) */
  $handler->display->display_options['filters']['field_event_date_value2']['id'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['table'] = 'field_data_field_event_date';
  $handler->display->display_options['filters']['field_event_date_value2']['field'] = 'field_event_date_value2';
  $handler->display->display_options['filters']['field_event_date_value2']['operator'] = '<';
  $handler->display->display_options['filters']['field_event_date_value2']['default_date'] = 'today';
  /* Filter criterion: Content: Date and time -  start date (field_event_date) */
  $handler->display->display_options['filters']['field_event_date_value_1']['id'] = 'field_event_date_value_1';
  $handler->display->display_options['filters']['field_event_date_value_1']['table'] = 'field_data_field_event_date';
For faster browsing, not all history is shown. View entire blame