1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Bulk export of views_default objects generated by Bulk export module.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implementation of hook_views_default_views()
|
10 |
|
|
*/
|
11 |
|
|
function node_views_default_views() {
|
12 |
|
|
$views = array();
|
13 |
|
|
|
14 |
|
|
$view = new view;
|
15 |
|
|
$view->name = 'archive';
|
16 |
|
|
$view->description = 'Display a list of months that link to content for that month.';
|
17 |
|
|
$view->tag = 'default';
|
18 |
|
|
$view->base_table = 'node';
|
19 |
|
|
$view->human_name = 'Archive';
|
20 |
|
|
$view->core = 0;
|
21 |
|
|
$view->api_version = '3.0';
|
22 |
|
|
$view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
|
23 |
|
|
|
24 |
|
|
/* Display: Master */
|
25 |
|
|
$handler = $view->new_display('default', 'Master', 'default');
|
26 |
|
|
$handler->display->display_options['title'] = 'Monthly archive';
|
27 |
13c3c9b4
|
Assos Assos
|
$handler->display->display_options['access']['type'] = 'perm';
|
28 |
|
|
$handler->display->display_options['access']['perm'] = 'access content';
|
29 |
85ad3d82
|
Assos Assos
|
$handler->display->display_options['cache']['type'] = 'none';
|
30 |
|
|
$handler->display->display_options['query']['type'] = 'views_query';
|
31 |
|
|
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
|
32 |
|
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
33 |
|
|
$handler->display->display_options['pager']['type'] = 'full';
|
34 |
|
|
$handler->display->display_options['style_plugin'] = 'default';
|
35 |
|
|
$handler->display->display_options['row_plugin'] = 'node';
|
36 |
|
|
/* Sort criterion: Content: Post date */
|
37 |
|
|
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
38 |
|
|
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
39 |
|
|
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
40 |
|
|
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
41 |
|
|
/* Contextual filter: Content: Created year + month */
|
42 |
|
|
$handler->display->display_options['arguments']['created_year_month']['id'] = 'created_year_month';
|
43 |
|
|
$handler->display->display_options['arguments']['created_year_month']['table'] = 'node';
|
44 |
|
|
$handler->display->display_options['arguments']['created_year_month']['field'] = 'created_year_month';
|
45 |
|
|
$handler->display->display_options['arguments']['created_year_month']['default_action'] = 'summary';
|
46 |
|
|
$handler->display->display_options['arguments']['created_year_month']['exception']['title_enable'] = 1;
|
47 |
|
|
$handler->display->display_options['arguments']['created_year_month']['title_enable'] = 1;
|
48 |
|
|
$handler->display->display_options['arguments']['created_year_month']['title'] = '%1';
|
49 |
|
|
$handler->display->display_options['arguments']['created_year_month']['default_argument_type'] = 'fixed';
|
50 |
|
|
$handler->display->display_options['arguments']['created_year_month']['summary']['sort_order'] = 'desc';
|
51 |
|
|
$handler->display->display_options['arguments']['created_year_month']['summary']['format'] = 'default_summary';
|
52 |
|
|
$handler->display->display_options['arguments']['created_year_month']['summary_options']['override'] = TRUE;
|
53 |
|
|
$handler->display->display_options['arguments']['created_year_month']['summary_options']['items_per_page'] = '30';
|
54 |
|
|
$handler->display->display_options['arguments']['created_year_month']['specify_validation'] = 1;
|
55 |
|
|
/* Filter criterion: Content: Published */
|
56 |
|
|
$handler->display->display_options['filters']['status']['id'] = 'status';
|
57 |
|
|
$handler->display->display_options['filters']['status']['table'] = 'node';
|
58 |
|
|
$handler->display->display_options['filters']['status']['field'] = 'status';
|
59 |
|
|
$handler->display->display_options['filters']['status']['value'] = 1;
|
60 |
|
|
$handler->display->display_options['filters']['status']['group'] = 0;
|
61 |
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
62 |
|
|
|
63 |
|
|
/* Display: Page */
|
64 |
|
|
$handler = $view->new_display('page', 'Page', 'page');
|
65 |
|
|
$handler->display->display_options['path'] = 'archive';
|
66 |
|
|
|
67 |
|
|
/* Display: Block */
|
68 |
|
|
$handler = $view->new_display('block', 'Block', 'block');
|
69 |
|
|
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
70 |
|
|
/* Contextual filter: Content: Created year + month */
|
71 |
|
|
$handler->display->display_options['arguments']['created_year_month']['id'] = 'created_year_month';
|
72 |
|
|
$handler->display->display_options['arguments']['created_year_month']['table'] = 'node';
|
73 |
|
|
$handler->display->display_options['arguments']['created_year_month']['field'] = 'created_year_month';
|
74 |
|
|
$handler->display->display_options['arguments']['created_year_month']['default_action'] = 'summary';
|
75 |
|
|
$handler->display->display_options['arguments']['created_year_month']['exception']['title_enable'] = 1;
|
76 |
|
|
$handler->display->display_options['arguments']['created_year_month']['title_enable'] = 1;
|
77 |
|
|
$handler->display->display_options['arguments']['created_year_month']['title'] = '%1';
|
78 |
|
|
$handler->display->display_options['arguments']['created_year_month']['default_argument_type'] = 'fixed';
|
79 |
|
|
$handler->display->display_options['arguments']['created_year_month']['summary']['format'] = 'default_summary';
|
80 |
|
|
$handler->display->display_options['arguments']['created_year_month']['summary_options']['items_per_page'] = '30';
|
81 |
|
|
$handler->display->display_options['arguments']['created_year_month']['specify_validation'] = 1;
|
82 |
|
|
$translatables['archive'] = array(
|
83 |
|
|
t('Master'),
|
84 |
|
|
t('Monthly archive'),
|
85 |
|
|
t('more'),
|
86 |
|
|
t('Apply'),
|
87 |
|
|
t('Reset'),
|
88 |
|
|
t('Sort by'),
|
89 |
|
|
t('Asc'),
|
90 |
|
|
t('Desc'),
|
91 |
|
|
t('Items per page'),
|
92 |
|
|
t('- All -'),
|
93 |
|
|
t('Offset'),
|
94 |
|
|
t('All'),
|
95 |
|
|
t('%1'),
|
96 |
|
|
t('Page'),
|
97 |
|
|
t('Block'),
|
98 |
|
|
);
|
99 |
|
|
|
100 |
|
|
$views['archive'] = $view;
|
101 |
|
|
|
102 |
|
|
$view = new view;
|
103 |
|
|
$view->name = 'frontpage';
|
104 |
|
|
$view->description = 'Emulates the default Drupal front page; you may set the default home page path to this view to make it your front page.';
|
105 |
|
|
$view->tag = 'default';
|
106 |
|
|
$view->base_table = 'node';
|
107 |
|
|
$view->human_name = 'Front page';
|
108 |
|
|
$view->core = 0;
|
109 |
|
|
$view->api_version = '3.0';
|
110 |
|
|
$view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
|
111 |
|
|
|
112 |
|
|
/* Display: Master */
|
113 |
|
|
$handler = $view->new_display('default', 'Master', 'default');
|
114 |
13c3c9b4
|
Assos Assos
|
$handler->display->display_options['access']['type'] = 'perm';
|
115 |
|
|
$handler->display->display_options['access']['perm'] = 'access content';
|
116 |
85ad3d82
|
Assos Assos
|
$handler->display->display_options['cache']['type'] = 'none';
|
117 |
|
|
$handler->display->display_options['query']['type'] = 'views_query';
|
118 |
|
|
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
|
119 |
|
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
120 |
|
|
$handler->display->display_options['pager']['type'] = 'full';
|
121 |
|
|
$handler->display->display_options['style_plugin'] = 'default';
|
122 |
|
|
$handler->display->display_options['row_plugin'] = 'node';
|
123 |
|
|
$handler->display->display_options['row_options']['links'] = 1;
|
124 |
|
|
/* Sort criterion: Content: Sticky */
|
125 |
|
|
$handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
|
126 |
|
|
$handler->display->display_options['sorts']['sticky']['table'] = 'node';
|
127 |
|
|
$handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
|
128 |
|
|
$handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
|
129 |
|
|
/* Sort criterion: Content: Post date */
|
130 |
|
|
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
131 |
|
|
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
132 |
|
|
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
133 |
|
|
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
134 |
|
|
/* Filter criterion: Content: Promoted to front page */
|
135 |
|
|
$handler->display->display_options['filters']['promote']['id'] = 'promote';
|
136 |
|
|
$handler->display->display_options['filters']['promote']['table'] = 'node';
|
137 |
|
|
$handler->display->display_options['filters']['promote']['field'] = 'promote';
|
138 |
|
|
$handler->display->display_options['filters']['promote']['value'] = '1';
|
139 |
|
|
$handler->display->display_options['filters']['promote']['group'] = 0;
|
140 |
|
|
$handler->display->display_options['filters']['promote']['expose']['operator'] = FALSE;
|
141 |
|
|
/* Filter criterion: Content: Published */
|
142 |
|
|
$handler->display->display_options['filters']['status']['id'] = 'status';
|
143 |
|
|
$handler->display->display_options['filters']['status']['table'] = 'node';
|
144 |
|
|
$handler->display->display_options['filters']['status']['field'] = 'status';
|
145 |
|
|
$handler->display->display_options['filters']['status']['value'] = '1';
|
146 |
|
|
$handler->display->display_options['filters']['status']['group'] = 0;
|
147 |
|
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
148 |
|
|
|
149 |
|
|
/* Display: Page */
|
150 |
|
|
$handler = $view->new_display('page', 'Page', 'page');
|
151 |
|
|
$handler->display->display_options['path'] = 'frontpage';
|
152 |
|
|
|
153 |
|
|
/* Display: Feed */
|
154 |
|
|
$handler = $view->new_display('feed', 'Feed', 'feed');
|
155 |
|
|
$handler->display->display_options['defaults']['title'] = FALSE;
|
156 |
|
|
$handler->display->display_options['title'] = 'Front page feed';
|
157 |
|
|
$handler->display->display_options['pager']['type'] = 'some';
|
158 |
|
|
$handler->display->display_options['style_plugin'] = 'rss';
|
159 |
|
|
$handler->display->display_options['row_plugin'] = 'node_rss';
|
160 |
|
|
$handler->display->display_options['path'] = 'rss.xml';
|
161 |
|
|
$handler->display->display_options['displays'] = array(
|
162 |
|
|
'default' => 'default',
|
163 |
|
|
'page' => 'page',
|
164 |
|
|
);
|
165 |
|
|
$handler->display->display_options['sitename_title'] = '1';
|
166 |
|
|
$translatables['frontpage'] = array(
|
167 |
|
|
t('Master'),
|
168 |
|
|
t('more'),
|
169 |
|
|
t('Apply'),
|
170 |
|
|
t('Reset'),
|
171 |
|
|
t('Sort by'),
|
172 |
|
|
t('Asc'),
|
173 |
|
|
t('Desc'),
|
174 |
|
|
t('Items per page'),
|
175 |
|
|
t('- All -'),
|
176 |
|
|
t('Offset'),
|
177 |
|
|
t('Page'),
|
178 |
|
|
t('Feed'),
|
179 |
|
|
t('Front page feed'),
|
180 |
|
|
);
|
181 |
|
|
|
182 |
|
|
$views['frontpage'] = $view;
|
183 |
|
|
|
184 |
|
|
$view = new view;
|
185 |
|
|
$view->name = 'glossary';
|
186 |
|
|
$view->description = 'A list of all content, by letter.';
|
187 |
|
|
$view->tag = 'default';
|
188 |
|
|
$view->base_table = 'node';
|
189 |
|
|
$view->human_name = 'Glossary';
|
190 |
|
|
$view->core = 0;
|
191 |
|
|
$view->api_version = '3.0';
|
192 |
|
|
$view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
|
193 |
|
|
|
194 |
|
|
/* Display: Master */
|
195 |
|
|
$handler = $view->new_display('default', 'Master', 'default');
|
196 |
|
|
$handler->display->display_options['use_ajax'] = TRUE;
|
197 |
13c3c9b4
|
Assos Assos
|
$handler->display->display_options['access']['type'] = 'perm';
|
198 |
|
|
$handler->display->display_options['access']['perm'] = 'access content';
|
199 |
85ad3d82
|
Assos Assos
|
$handler->display->display_options['cache']['type'] = 'none';
|
200 |
|
|
$handler->display->display_options['query']['type'] = 'views_query';
|
201 |
|
|
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
|
202 |
|
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
203 |
|
|
$handler->display->display_options['pager']['type'] = 'full';
|
204 |
|
|
$handler->display->display_options['pager']['options']['items_per_page'] = 36;
|
205 |
|
|
$handler->display->display_options['style_plugin'] = 'table';
|
206 |
|
|
$handler->display->display_options['style_options']['columns'] = array(
|
207 |
|
|
'title' => 'title',
|
208 |
|
|
'name' => 'name',
|
209 |
|
|
'changed' => 'changed',
|
210 |
|
|
);
|
211 |
|
|
$handler->display->display_options['style_options']['default'] = 'title';
|
212 |
|
|
$handler->display->display_options['style_options']['info'] = array(
|
213 |
|
|
'title' => array(
|
214 |
|
|
'sortable' => 1,
|
215 |
|
|
'separator' => '',
|
216 |
|
|
),
|
217 |
|
|
'name' => array(
|
218 |
|
|
'sortable' => 1,
|
219 |
|
|
'separator' => '',
|
220 |
|
|
),
|
221 |
|
|
'changed' => array(
|
222 |
|
|
'sortable' => 1,
|
223 |
|
|
'separator' => '',
|
224 |
|
|
),
|
225 |
|
|
);
|
226 |
|
|
$handler->display->display_options['style_options']['override'] = 1;
|
227 |
|
|
$handler->display->display_options['style_options']['sticky'] = 0;
|
228 |
|
|
/* Field: Content: Title */
|
229 |
|
|
$handler->display->display_options['fields']['title']['id'] = 'title';
|
230 |
|
|
$handler->display->display_options['fields']['title']['table'] = 'node';
|
231 |
|
|
$handler->display->display_options['fields']['title']['field'] = 'title';
|
232 |
|
|
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
|
233 |
|
|
/* Field: User: Name */
|
234 |
|
|
$handler->display->display_options['fields']['name']['id'] = 'name';
|
235 |
|
|
$handler->display->display_options['fields']['name']['table'] = 'users';
|
236 |
|
|
$handler->display->display_options['fields']['name']['field'] = 'name';
|
237 |
|
|
$handler->display->display_options['fields']['name']['label'] = 'Author';
|
238 |
|
|
$handler->display->display_options['fields']['name']['link_to_user'] = 1;
|
239 |
|
|
/* Field: Content: Updated date */
|
240 |
|
|
$handler->display->display_options['fields']['changed']['id'] = 'changed';
|
241 |
|
|
$handler->display->display_options['fields']['changed']['table'] = 'node';
|
242 |
|
|
$handler->display->display_options['fields']['changed']['field'] = 'changed';
|
243 |
|
|
$handler->display->display_options['fields']['changed']['label'] = 'Last update';
|
244 |
|
|
$handler->display->display_options['fields']['changed']['date_format'] = 'large';
|
245 |
|
|
/* Contextual filter: Content: Title */
|
246 |
|
|
$handler->display->display_options['arguments']['title']['id'] = 'title';
|
247 |
|
|
$handler->display->display_options['arguments']['title']['table'] = 'node';
|
248 |
|
|
$handler->display->display_options['arguments']['title']['field'] = 'title';
|
249 |
|
|
$handler->display->display_options['arguments']['title']['default_action'] = 'default';
|
250 |
|
|
$handler->display->display_options['arguments']['title']['exception']['title_enable'] = 1;
|
251 |
|
|
$handler->display->display_options['arguments']['title']['default_argument_type'] = 'fixed';
|
252 |
|
|
$handler->display->display_options['arguments']['title']['default_argument_options']['argument'] = 'a';
|
253 |
|
|
$handler->display->display_options['arguments']['title']['summary']['format'] = 'default_summary';
|
254 |
|
|
$handler->display->display_options['arguments']['title']['specify_validation'] = 1;
|
255 |
|
|
$handler->display->display_options['arguments']['title']['glossary'] = 1;
|
256 |
|
|
$handler->display->display_options['arguments']['title']['limit'] = '1';
|
257 |
|
|
$handler->display->display_options['arguments']['title']['case'] = 'upper';
|
258 |
|
|
$handler->display->display_options['arguments']['title']['path_case'] = 'lower';
|
259 |
|
|
$handler->display->display_options['arguments']['title']['transform_dash'] = 0;
|
260 |
|
|
|
261 |
|
|
/* Display: Page */
|
262 |
|
|
$handler = $view->new_display('page', 'Page', 'page');
|
263 |
|
|
$handler->display->display_options['path'] = 'glossary';
|
264 |
|
|
$handler->display->display_options['menu']['type'] = 'normal';
|
265 |
|
|
$handler->display->display_options['menu']['title'] = 'Glossary';
|
266 |
|
|
$handler->display->display_options['menu']['weight'] = '0';
|
267 |
|
|
|
268 |
|
|
/* Display: Attachment */
|
269 |
|
|
$handler = $view->new_display('attachment', 'Attachment', 'attachment');
|
270 |
|
|
$handler->display->display_options['pager']['type'] = 'none';
|
271 |
|
|
$handler->display->display_options['pager']['options']['offset'] = '0';
|
272 |
|
|
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
273 |
|
|
/* Contextual filter: Content: Title */
|
274 |
|
|
$handler->display->display_options['arguments']['title']['id'] = 'title';
|
275 |
|
|
$handler->display->display_options['arguments']['title']['table'] = 'node';
|
276 |
|
|
$handler->display->display_options['arguments']['title']['field'] = 'title';
|
277 |
|
|
$handler->display->display_options['arguments']['title']['default_action'] = 'summary';
|
278 |
|
|
$handler->display->display_options['arguments']['title']['exception']['title_enable'] = 1;
|
279 |
|
|
$handler->display->display_options['arguments']['title']['default_argument_type'] = 'fixed';
|
280 |
|
|
$handler->display->display_options['arguments']['title']['default_argument_options']['argument'] = 'a';
|
281 |
|
|
$handler->display->display_options['arguments']['title']['summary']['format'] = 'unformatted_summary';
|
282 |
|
|
$handler->display->display_options['arguments']['title']['summary_options']['items_per_page'] = '25';
|
283 |
|
|
$handler->display->display_options['arguments']['title']['summary_options']['inline'] = 1;
|
284 |
|
|
$handler->display->display_options['arguments']['title']['summary_options']['separator'] = ' | ';
|
285 |
|
|
$handler->display->display_options['arguments']['title']['specify_validation'] = 1;
|
286 |
|
|
$handler->display->display_options['arguments']['title']['glossary'] = 1;
|
287 |
|
|
$handler->display->display_options['arguments']['title']['limit'] = '1';
|
288 |
|
|
$handler->display->display_options['arguments']['title']['case'] = 'upper';
|
289 |
|
|
$handler->display->display_options['arguments']['title']['path_case'] = 'lower';
|
290 |
|
|
$handler->display->display_options['arguments']['title']['transform_dash'] = 0;
|
291 |
|
|
$handler->display->display_options['displays'] = array(
|
292 |
|
|
'default' => 'default',
|
293 |
|
|
'page' => 'page',
|
294 |
|
|
);
|
295 |
|
|
$handler->display->display_options['inherit_arguments'] = 0;
|
296 |
|
|
$translatables['glossary'] = array(
|
297 |
|
|
t('Master'),
|
298 |
|
|
t('more'),
|
299 |
|
|
t('Apply'),
|
300 |
|
|
t('Reset'),
|
301 |
|
|
t('Sort by'),
|
302 |
|
|
t('Asc'),
|
303 |
|
|
t('Desc'),
|
304 |
|
|
t('Items per page'),
|
305 |
|
|
t('- All -'),
|
306 |
|
|
t('Offset'),
|
307 |
|
|
t('Title'),
|
308 |
|
|
t('Author'),
|
309 |
|
|
t('Last update'),
|
310 |
|
|
t('All'),
|
311 |
|
|
t('Page'),
|
312 |
|
|
t('Attachment'),
|
313 |
|
|
);
|
314 |
|
|
|
315 |
|
|
$views['glossary'] = $view;
|
316 |
|
|
|
317 |
|
|
return $views;
|
318 |
|
|
} |