-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathos2web_hearings.views_default.inc
298 lines (291 loc) · 15.8 KB
/
os2web_hearings.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
<?php
/**
* @file
* os2web_hearings.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function os2web_hearings_views_default_views() {
$export = array();
$view = new view();
$view->name = 'planer_i_hearing';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Planer i høring';
$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'] = 'Planer i høring';
$handler->display->display_options['css_class'] = 'planer_i_hearing';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['use_more_text'] = 'mere';
$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['exposed_form']['options']['submit_button'] = 'Udfør';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Gendan';
$handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Sortér efter';
$handler->display->display_options['exposed_form']['options']['sort_asc_label'] = 'Stigende';
$handler->display->display_options['exposed_form']['options']['sort_desc_label'] = 'Faldende';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['pager']['options']['expose']['items_per_page_label'] = 'Antal elementer';
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Alle -';
$handler->display->display_options['pager']['options']['expose']['offset_label'] = 'Forskydning';
$handler->display->display_options['pager']['options']['tags']['first'] = '« første';
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ forrige';
$handler->display->display_options['pager']['options']['tags']['next'] = 'næste ›';
$handler->display->display_options['pager']['options']['tags']['last'] = 'sidste »';
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['wrapper_class'] = 'os2web_hearing';
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['default_field_elements'] = FALSE;
/* Overskrift: Planer i Høring */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['ui_name'] = 'Planer i Høring';
$handler->display->display_options['header']['area']['label'] = 'Overskrift: Planer i Høring';
$handler->display->display_options['header']['area']['empty'] = TRUE;
$handler->display->display_options['header']['area']['content'] = '<h3>Planer i høring</h3>';
$handler->display->display_options['header']['area']['format'] = 'full_html';
/* Sidefod: Global: Tekstområde */
$handler->display->display_options['footer']['area']['id'] = 'area';
$handler->display->display_options['footer']['area']['table'] = 'views';
$handler->display->display_options['footer']['area']['field'] = 'area';
$handler->display->display_options['footer']['area']['label'] = 'Sidefod';
$handler->display->display_options['footer']['area']['empty'] = TRUE;
$handler->display->display_options['footer']['area']['content'] = '<span class="foroffase"><a href="/foroffentlighed">> I foroffentlighedsfase</a></span><span class="vedtagne"><a href="/lokalplaner">> Vedtagne</a></span><span class="alle"><a href="/planforslag">> Se alle</a></span>';
$handler->display->display_options['footer']['area']['format'] = 'full_html';
/* Felt: Indhold: Slutdato */
$handler->display->display_options['fields']['field_slutdato']['id'] = 'field_slutdato';
$handler->display->display_options['fields']['field_slutdato']['table'] = 'field_data_field_slutdato';
$handler->display->display_options['fields']['field_slutdato']['field'] = 'field_slutdato';
$handler->display->display_options['fields']['field_slutdato']['label'] = '';
$handler->display->display_options['fields']['field_slutdato']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_slutdato']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_slutdato']['settings'] = array(
'format_type' => 'kun_dato',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Felt: Indhold: Hjemmeside */
$handler->display->display_options['fields']['field_url']['id'] = 'field_url';
$handler->display->display_options['fields']['field_url']['table'] = 'field_data_field_url';
$handler->display->display_options['fields']['field_url']['field'] = 'field_url';
$handler->display->display_options['fields']['field_url']['label'] = '';
$handler->display->display_options['fields']['field_url']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_url']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_url']['type'] = 'text_plain';
/* Felt: Indhold: Titel */
$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']['make_link'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['path'] = '[field_url]';
$handler->display->display_options['fields']['title']['alter']['alt'] = '[title] - [field_slutdato] ';
$handler->display->display_options['fields']['title']['alter']['target'] = '_blank';
$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']['link_to_node'] = FALSE;
/* Felt: Indhold: Oprettelsesdato */
$handler->display->display_options['fields']['created']['id'] = 'created';
$handler->display->display_options['fields']['created']['table'] = 'node';
$handler->display->display_options['fields']['created']['field'] = 'created';
$handler->display->display_options['fields']['created']['label'] = '';
$handler->display->display_options['fields']['created']['exclude'] = TRUE;
$handler->display->display_options['fields']['created']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['created']['date_format'] = 'kun_dato';
$handler->display->display_options['fields']['created']['custom_date_format'] = 'd.m.Y';
/* Felt: Feeds item: Import date */
$handler->display->display_options['fields']['imported']['id'] = 'imported';
$handler->display->display_options['fields']['imported']['table'] = 'feeds_item';
$handler->display->display_options['fields']['imported']['field'] = 'imported';
$handler->display->display_options['fields']['imported']['label'] = '';
$handler->display->display_options['fields']['imported']['exclude'] = TRUE;
$handler->display->display_options['fields']['imported']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['imported']['empty'] = '[created]';
$handler->display->display_options['fields']['imported']['empty_zero'] = TRUE;
$handler->display->display_options['fields']['imported']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['imported']['date_format'] = 'kun_dato';
/* Felt: Indhold: Startdato */
$handler->display->display_options['fields']['field_startdato']['id'] = 'field_startdato';
$handler->display->display_options['fields']['field_startdato']['table'] = 'field_data_field_startdato';
$handler->display->display_options['fields']['field_startdato']['field'] = 'field_startdato';
$handler->display->display_options['fields']['field_startdato']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_startdato']['settings'] = array(
'format_type' => 'kun_dato',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Felt: Global: Tilpasset tekst */
$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'] = 'Dato fra-til';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '[field_startdato] -<br />
[field_slutdato]';
$handler->display->display_options['fields']['nothing']['element_type'] = 'span';
$handler->display->display_options['fields']['nothing']['element_class'] = 'aktiv-hearing';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing']['element_default_classes'] = FALSE;
/* Felt: Global: Tilpasset tekst */
$handler->display->display_options['fields']['nothing_1']['id'] = 'nothing_1';
$handler->display->display_options['fields']['nothing_1']['table'] = 'views';
$handler->display->display_options['fields']['nothing_1']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing_1']['label'] = 'I høring';
$handler->display->display_options['fields']['nothing_1']['alter']['text'] = 'I høring';
$handler->display->display_options['fields']['nothing_1']['element_type'] = 'span';
$handler->display->display_options['fields']['nothing_1']['element_class'] = 'er-i-hearing';
$handler->display->display_options['fields']['nothing_1']['element_default_classes'] = FALSE;
/* Felt: Global: Kontekstuelle links */
$handler->display->display_options['fields']['contextual_links']['id'] = 'contextual_links';
$handler->display->display_options['fields']['contextual_links']['table'] = 'views';
$handler->display->display_options['fields']['contextual_links']['field'] = 'contextual_links';
$handler->display->display_options['fields']['contextual_links']['label'] = '';
$handler->display->display_options['fields']['contextual_links']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['contextual_links']['fields'] = array(
'field_slutdato' => 'field_slutdato',
'field_url' => 'field_url',
'created' => 'created',
'imported' => 'imported',
'title' => 0,
'nothing' => 0,
'nothing_1' => 0,
);
/* Sorteringskriterie: Indhold: Oprettelsesdato */
$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';
/* Filterkriterie: Indhold: Udgivet */
$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;
/* Filterkriterie: Indhold: 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(
'hearing' => 'hearing',
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['path'] = 'planer-i-h-ring';
/* Display: Feed */
$handler = $view->new_display('feed', 'Feed', 'feed');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['style_plugin'] = 'rss';
$handler->display->display_options['row_plugin'] = 'node_rss';
$handler->display->display_options['path'] = 'planer-i-hearing.xml';
$handler->display->display_options['displays'] = array(
'default' => 'default',
'page' => 'page',
);
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'field_slutdato' => 'field_slutdato',
'field_url' => 'field_url',
'title' => 'title',
'imported' => 'imported',
'nothing' => 'nothing',
);
$handler->display->display_options['style_options']['default'] = 'field_slutdato';
$handler->display->display_options['style_options']['info'] = array(
'field_slutdato' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_url' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'title' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'imported' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nothing' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
$handler->display->display_options['style_options']['override'] = FALSE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['defaults']['row_options'] = FALSE;
$translatables['planer_i_hearing'] = array(
t('Master'),
t('Planer i høring'),
t('mere'),
t('Udfør'),
t('Gendan'),
t('Sortér efter'),
t('Stigende'),
t('Faldende'),
t('Antal elementer'),
t('- Alle -'),
t('Forskydning'),
t('« første'),
t('‹ forrige'),
t('næste ›'),
t('sidste »'),
t('Overskrift: Planer i Høring'),
t('<h3>Planer i høring</h3>'),
t('Sidefod'),
t('<span class="foroffase"><a href="/foroffentlighed">> I foroffentlighedsfase</a></span><span class="vedtagne"><a href="/lokalplaner">> Vedtagne</a></span><span class="alle"><a href="/planforslag">> Se alle</a></span>'),
t('Titel'),
t('[title] - [field_slutdato] '),
t('_blank'),
t('[created]'),
t('Startdato'),
t('Dato fra-til'),
t('[field_startdato] -<br />
[field_slutdato]'),
t('I høring'),
t('Page'),
t('Feed'),
t('Block'),
);
$export['planer_i_hearing'] = $view;
return $export;
}