-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroom_reservations.views_default.inc
435 lines (422 loc) · 25.1 KB
/
room_reservations.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<?php
/**
* @file
* Bulk export of views_default objects generated by Bulk export module.
*/
/**
* Implements hook_views_default_views().
*/
function room_reservations_views_default_views() {
$views = array();
$view = new view();
$view->name = 'room_reservations';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Room Reservations (default views)';
$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'] = 'Room Reservations';
$handler->display->display_options['use_more_always'] = FALSE;
$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['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['grouping'] = array(
0 => array(
'field' => 'reservations_room_category',
'rendered' => 1,
'rendered_strip' => 0,
),
);
$handler->display->display_options['row_plugin'] = 'fields';
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['reservations_room_category_target_id']['id'] = 'reservations_room_category_target_id';
$handler->display->display_options['relationships']['reservations_room_category_target_id']['table'] = 'field_data_reservations_room_category';
$handler->display->display_options['relationships']['reservations_room_category_target_id']['field'] = 'reservations_room_category_target_id';
$handler->display->display_options['relationships']['reservations_room_category_target_id']['label'] = 'category';
/* 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;
/* Field: Content: Body */
$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']['element_label_colon'] = FALSE;
/* Field: Content: Capacity */
$handler->display->display_options['fields']['reservations_room_capacity']['id'] = 'reservations_room_capacity';
$handler->display->display_options['fields']['reservations_room_capacity']['table'] = 'field_data_reservations_room_capacity';
$handler->display->display_options['fields']['reservations_room_capacity']['field'] = 'reservations_room_capacity';
$handler->display->display_options['fields']['reservations_room_capacity']['element_type'] = 'span';
/* Field: Content: Category */
$handler->display->display_options['fields']['reservations_room_category']['id'] = 'reservations_room_category';
$handler->display->display_options['fields']['reservations_room_category']['table'] = 'field_data_reservations_room_category';
$handler->display->display_options['fields']['reservations_room_category']['field'] = 'reservations_room_category';
$handler->display->display_options['fields']['reservations_room_category']['label'] = '';
$handler->display->display_options['fields']['reservations_room_category']['exclude'] = TRUE;
$handler->display->display_options['fields']['reservations_room_category']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['reservations_room_category']['settings'] = array(
'link' => 0,
);
/* Sort criterion: Content: Title */
$handler->display->display_options['sorts']['title_1']['id'] = 'title_1';
$handler->display->display_options['sorts']['title_1']['table'] = 'node';
$handler->display->display_options['sorts']['title_1']['field'] = 'title';
$handler->display->display_options['sorts']['title_1']['relationship'] = 'reservations_room_category_target_id';
/* 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';
/* 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(
'room_reservations_room' => 'room_reservations_room',
);
/* Display: Room Descriptions */
$handler = $view->new_display('page', 'Room Descriptions', 'page_1');
$handler->display->display_options['path'] = 'room_reservations/rooms';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Room Descriptions';
$handler->display->display_options['menu']['weight'] = '20';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
/* Display: My Reservations */
$handler = $view->new_display('page', 'My Reservations', 'page_2');
$handler->display->display_options['defaults']['relationships'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: 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';
$handler->display->display_options['fields']['nid']['label'] = '';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
$handler->display->display_options['fields']['nid']['element_label_colon'] = 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'] = 'Group';
$handler->display->display_options['fields']['title']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['path'] = 'node/[nid]/edit';
$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'] = 'span';
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
/* Field: Content: Room */
$handler->display->display_options['fields']['reservation_room']['id'] = 'reservation_room';
$handler->display->display_options['fields']['reservation_room']['table'] = 'field_data_reservation_room';
$handler->display->display_options['fields']['reservation_room']['field'] = 'reservation_room';
$handler->display->display_options['fields']['reservation_room']['element_type'] = 'span';
$handler->display->display_options['fields']['reservation_room']['settings'] = array(
'link' => 1,
);
/* Field: Content: Date */
$handler->display->display_options['fields']['reservation_date']['id'] = 'reservation_date';
$handler->display->display_options['fields']['reservation_date']['table'] = 'field_data_reservation_date';
$handler->display->display_options['fields']['reservation_date']['field'] = 'reservation_date';
$handler->display->display_options['fields']['reservation_date']['element_type'] = 'span';
/* Field: Content: Time */
$handler->display->display_options['fields']['reservation_time']['id'] = 'reservation_time';
$handler->display->display_options['fields']['reservation_time']['table'] = 'field_data_reservation_time';
$handler->display->display_options['fields']['reservation_time']['field'] = 'reservation_time';
$handler->display->display_options['fields']['reservation_time']['element_type'] = 'span';
$handler->display->display_options['fields']['reservation_time']['settings'] = array(
'thousand_separator' => '',
'prefix_suffix' => 0,
);
/* Field: Content: Length */
$handler->display->display_options['fields']['reservation_length']['id'] = 'reservation_length';
$handler->display->display_options['fields']['reservation_length']['table'] = 'field_data_reservation_length';
$handler->display->display_options['fields']['reservation_length']['field'] = 'reservation_length';
$handler->display->display_options['fields']['reservation_length']['label'] = 'Booked for';
$handler->display->display_options['fields']['reservation_length']['element_type'] = 'span';
$handler->display->display_options['defaults']['sorts'] = FALSE;
/* Sort criterion: Content: Date (reservation_date) */
$handler->display->display_options['sorts']['reservation_date_value']['id'] = 'reservation_date_value';
$handler->display->display_options['sorts']['reservation_date_value']['table'] = 'field_data_reservation_date';
$handler->display->display_options['sorts']['reservation_date_value']['field'] = 'reservation_date_value';
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Author uid */
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
$handler->display->display_options['arguments']['uid']['table'] = 'node';
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
$handler->display->display_options['arguments']['uid']['default_action'] = 'default';
$handler->display->display_options['arguments']['uid']['default_argument_type'] = 'current_user';
$handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$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(
'room_reservations_reservation' => 'room_reservations_reservation',
);
/* Filter criterion: Content: Date (reservation_date) */
$handler->display->display_options['filters']['reservation_date_value']['id'] = 'reservation_date_value';
$handler->display->display_options['filters']['reservation_date_value']['table'] = 'field_data_reservation_date';
$handler->display->display_options['filters']['reservation_date_value']['field'] = 'reservation_date_value';
$handler->display->display_options['filters']['reservation_date_value']['operator'] = '>=';
$handler->display->display_options['filters']['reservation_date_value']['form_type'] = 'date_text';
$handler->display->display_options['filters']['reservation_date_value']['default_date'] = 'now';
$handler->display->display_options['path'] = 'room_reservations/list';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'My Reservations';
$handler->display->display_options['menu']['weight'] = '15';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
$views['room_reservations'] = $view;
/////////////////////////////////////////////
$view = new view();
$view->name = 'manage_reservations';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Manage Reservations';
$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'] = 'Manage Reservations';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'administer room reservations system';
$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['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '40';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'title' => 'title',
'title_2' => 'title',
'title_1' => 'title',
'reservation_date' => 'reservation_date',
'reservation_time' => 'reservation_date',
'reservation_length' => 'reservation_date',
'name' => 'title',
'reservation_repeat_type' => 'reservation_repeat_type',
'reservation_repeat_until' => 'reservation_repeat_type',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'title' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '<br>',
'empty_column' => 0,
),
'title_2' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'title_1' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'reservation_date' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '<br>',
'empty_column' => 0,
),
'reservation_time' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'reservation_length' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'name' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'reservation_repeat_type' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '<br>',
'empty_column' => 0,
),
'reservation_repeat_until' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* Relationship: Content: Author */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'node';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['reservation_room_target_id']['id'] = 'reservation_room_target_id';
$handler->display->display_options['relationships']['reservation_room_target_id']['table'] = 'field_data_reservation_room';
$handler->display->display_options['relationships']['reservation_room_target_id']['field'] = 'reservation_room_target_id';
$handler->display->display_options['relationships']['reservation_room_target_id']['label'] = 'room';
/* Relationship: Entity Reference: Referencing entity */
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['id'] = 'reverse_reservations_room_category_node';
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['table'] = 'node';
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['field'] = 'reverse_reservations_room_category_node';
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['relationship'] = 'reservation_room_target_id';
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['label'] = 'reservations_room_category';
/* 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']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: Title */
$handler->display->display_options['fields']['title_2']['id'] = 'title_2';
$handler->display->display_options['fields']['title_2']['table'] = 'node';
$handler->display->display_options['fields']['title_2']['field'] = 'title';
$handler->display->display_options['fields']['title_2']['relationship'] = 'reverse_reservations_room_category_node';
$handler->display->display_options['fields']['title_2']['label'] = 'Room Category';
/* Field: Content: Title */
$handler->display->display_options['fields']['title_1']['id'] = 'title_1';
$handler->display->display_options['fields']['title_1']['table'] = 'node';
$handler->display->display_options['fields']['title_1']['field'] = 'title';
$handler->display->display_options['fields']['title_1']['relationship'] = 'reservation_room_target_id';
$handler->display->display_options['fields']['title_1']['label'] = 'Room';
/* Field: Content: Date */
$handler->display->display_options['fields']['reservation_date']['id'] = 'reservation_date';
$handler->display->display_options['fields']['reservation_date']['table'] = 'field_data_reservation_date';
$handler->display->display_options['fields']['reservation_date']['field'] = 'reservation_date';
$handler->display->display_options['fields']['reservation_date']['label'] = 'Reservation Date';
$handler->display->display_options['fields']['reservation_date']['settings'] = array(
'format_type' => 'date_year',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Field: Content: Time */
$handler->display->display_options['fields']['reservation_time']['id'] = 'reservation_time';
$handler->display->display_options['fields']['reservation_time']['table'] = 'field_data_reservation_time';
$handler->display->display_options['fields']['reservation_time']['field'] = 'reservation_time';
$handler->display->display_options['fields']['reservation_time']['label'] = 'Booking Time';
/* Field: Content: Booking Length */
$handler->display->display_options['fields']['reservation_length']['id'] = 'reservation_length';
$handler->display->display_options['fields']['reservation_length']['table'] = 'field_data_reservation_length';
$handler->display->display_options['fields']['reservation_length']['field'] = 'reservation_length';
/* Field: User: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'users';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['relationship'] = 'uid';
$handler->display->display_options['fields']['name']['label'] = 'Booked by';
/* Field: Content: Repeat Type */
$handler->display->display_options['fields']['reservation_repeat_type']['id'] = 'reservation_repeat_type';
$handler->display->display_options['fields']['reservation_repeat_type']['table'] = 'field_data_reservation_repeat_type';
$handler->display->display_options['fields']['reservation_repeat_type']['field'] = 'reservation_repeat_type';
/* Field: Content: Repeat reservation until */
$handler->display->display_options['fields']['reservation_repeat_until']['id'] = 'reservation_repeat_until';
$handler->display->display_options['fields']['reservation_repeat_until']['table'] = 'field_data_reservation_repeat_until';
$handler->display->display_options['fields']['reservation_repeat_until']['field'] = 'reservation_repeat_until';
$handler->display->display_options['fields']['reservation_repeat_until']['settings'] = array(
'format_type' => 'date_year',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* 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(
'room_reservations_reservation' => 'room_reservations_reservation',
);
/* Filter criterion: Content: Date (reservation_date) */
$handler->display->display_options['filters']['reservation_date_value']['id'] = 'reservation_date_value';
$handler->display->display_options['filters']['reservation_date_value']['table'] = 'field_data_reservation_date';
$handler->display->display_options['filters']['reservation_date_value']['field'] = 'reservation_date_value';
$handler->display->display_options['filters']['reservation_date_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['reservation_date_value']['expose']['operator_id'] = 'reservation_date_value_op';
$handler->display->display_options['filters']['reservation_date_value']['expose']['label'] = 'Reservation Date';
$handler->display->display_options['filters']['reservation_date_value']['expose']['operator'] = 'reservation_date_value_op';
$handler->display->display_options['filters']['reservation_date_value']['expose']['identifier'] = 'reservation_date_value';
$handler->display->display_options['filters']['reservation_date_value']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
4 => 0,
5 => 0,
6 => 0,
8 => 0,
9 => 0,
10 => 0,
11 => 0,
);
$handler->display->display_options['filters']['reservation_date_value']['form_type'] = 'date_popup';
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'admin/content/manage-reservations';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Manage Reservations';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
$views['manage_reservations'] = $view;
return $views;
}