Project

General

Profile

Paste
Download (15.1 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / views / tests / views_test.views_default.inc @ 6de61b86

1
<?php
2

    
3
/**
4
 * @file
5
 * Tests views.
6
 */
7

    
8
/**
9
 * Implements hook_views_default_views().
10
 */
11
function views_test_views_default_views() {
12
  $view = new view();
13
  $view->name = 'test_views_groupby_save';
14
  $view->description = '';
15
  $view->tag = '';
16
  $view->view_php = '';
17
  $view->base_table = 'node';
18
  $view->is_cacheable = FALSE;
19
  $view->api_version = 2;
20
  $view->version = 7;
21
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
22

    
23
  /* Display: Master */
24
  $handler = $view->new_display('default', 'Master', 'default');
25
  $handler->display->display_options['access']['type'] = 'none';
26
  $handler->display->display_options['cache']['type'] = 'none';
27
  $handler->display->display_options['exposed_form']['type'] = 'basic';
28
  $handler->display->display_options['pager']['type'] = 'none';
29
  $handler->display->display_options['style_plugin'] = 'default';
30
  $handler->display->display_options['row_plugin'] = 'fields';
31

    
32
  $views[$view->name] = $view;
33

    
34
  $view = new view();
35
  $view->name = 'test_rename_reset_button';
36
  $view->description = '';
37
  $view->tag = '';
38
  $view->base_table = 'node';
39
  $view->human_name = '';
40
  $view->core = 0;
41
  $view->api_version = '3.0';
42
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
43

    
44
  /* Display: Master */
45
  $handler = $view->new_display('default', 'Master', 'default');
46
  $handler->display->display_options['access']['type'] = 'none';
47
  $handler->display->display_options['cache']['type'] = 'none';
48
  $handler->display->display_options['query']['type'] = 'views_query';
49
  $handler->display->display_options['query']['options']['query_comment'] = FALSE;
50
  $handler->display->display_options['exposed_form']['type'] = 'basic';
51
  $handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
52
  $handler->display->display_options['pager']['type'] = 'full';
53
  $handler->display->display_options['style_plugin'] = 'default';
54
  $handler->display->display_options['row_plugin'] = 'node';
55
  $handler->display->display_options['row_options']['links'] = 1;
56
  $handler->display->display_options['row_options']['comments'] = 0;
57
  /* Filter criterion: Content: Type */
58
  $handler->display->display_options['filters']['type']['id'] = 'type';
59
  $handler->display->display_options['filters']['type']['table'] = 'node';
60
  $handler->display->display_options['filters']['type']['field'] = 'type';
61
  $handler->display->display_options['filters']['type']['exposed'] = TRUE;
62
  $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
63
  $handler->display->display_options['filters']['type']['expose']['label'] = 'Content: Type';
64
  $handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
65
  $handler->display->display_options['filters']['type']['expose']['reduce'] = 0;
66

    
67
  /* Display: Page */
68
  $handler = $view->new_display('page', 'Page', 'page_1');
69
  $handler->display->display_options['path'] = 'test_rename_reset_button';
70

    
71
  $views[$view->name] = $view;
72

    
73
  $view = new view();
74
  $view->name = 'test_exposed_admin_ui';
75
  $view->description = '';
76
  $view->tag = '';
77
  $view->view_php = '';
78
  $view->base_table = 'node';
79
  $view->is_cacheable = FALSE;
80
  $view->api_version = 2;
81
  $view->version = 7;
82
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
83

    
84
  /* Display: Master */
85
  $handler = $view->new_display('default', 'Master', 'default');
86
  $handler->display->display_options['access']['type'] = 'none';
87
  $handler->display->display_options['cache']['type'] = 'none';
88
  $handler->display->display_options['exposed_form']['type'] = 'basic';
89
  $handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
90
  $handler->display->display_options['pager']['type'] = 'full';
91
  $handler->display->display_options['style_plugin'] = 'default';
92
  $handler->display->display_options['row_plugin'] = 'node';
93
  $handler->display->display_options['row_options']['links'] = 1;
94
  $handler->display->display_options['row_options']['comments'] = 0;
95
  /* Sort criterion: Content: Post date */
96
  $handler->display->display_options['sorts']['created']['id'] = 'created';
97
  $handler->display->display_options['sorts']['created']['table'] = 'node';
98
  $handler->display->display_options['sorts']['created']['field'] = 'created';
99
  /* Filter: Content: Type */
100
  $handler->display->display_options['filters']['type']['id'] = 'type';
101
  $handler->display->display_options['filters']['type']['table'] = 'node';
102
  $handler->display->display_options['filters']['type']['field'] = 'type';
103
  $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
104
  $handler->display->display_options['filters']['type']['expose']['label'] = 'Content: Type';
105
  $handler->display->display_options['filters']['type']['expose']['use_operator'] = TRUE;
106

    
107
  /* Display: Page */
108
  $handler = $view->new_display('page', 'Page', 'page_1');
109
  $handler->display->display_options['path'] = 'test_exposed_admin_ui';
110

    
111
  $views[$view->name] = $view;
112

    
113
  $view = new view();
114
  $view->name = 'test_filter_in_operator_ui';
115
  $view->description = '';
116
  $view->tag = '';
117
  $view->view_php = '';
118
  $view->base_table = 'node';
119
  $view->is_cacheable = FALSE;
120
  $view->api_version = 2;
121
  $view->version = 7;
122
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
123

    
124
  /* Display: Master */
125
  $handler = $view->new_display('default', 'Master', 'default');
126
  $handler->display->display_options['access']['type'] = 'none';
127
  $handler->display->display_options['cache']['type'] = 'none';
128
  $handler->display->display_options['exposed_form']['type'] = 'basic';
129
  $handler->display->display_options['pager']['type'] = 'full';
130
  $handler->display->display_options['style_plugin'] = 'default';
131
  $handler->display->display_options['row_plugin'] = 'fields';
132
  /* Filter: Content: Type */
133
  $handler->display->display_options['filters']['type']['id'] = 'type';
134
  $handler->display->display_options['filters']['type']['table'] = 'node';
135
  $handler->display->display_options['filters']['type']['field'] = 'type';
136
  $handler->display->display_options['filters']['type']['exposed'] = TRUE;
137
  $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
138
  $handler->display->display_options['filters']['type']['expose']['label'] = 'Content: Type';
139
  $handler->display->display_options['filters']['type']['expose']['use_operator'] = 0;
140
  $handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
141
  $handler->display->display_options['filters']['type']['expose']['reduce'] = 0;
142

    
143
  $views[$view->name] = $view;
144

    
145
  $view = new view();
146
  $view->name = 'test_argument_default_current_user';
147
  $view->description = '';
148
  $view->tag = '';
149
  $view->view_php = '';
150
  $view->base_table = 'node';
151
  $view->is_cacheable = FALSE;
152
  $view->api_version = 3;
153
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
154

    
155
  /* Display: Master */
156
  $handler = $view->new_display('default', 'Master', 'default');
157
  $handler->display->display_options['access']['type'] = 'none';
158
  $handler->display->display_options['cache']['type'] = 'none';
159
  $handler->display->display_options['exposed_form']['type'] = 'basic';
160
  $handler->display->display_options['pager']['type'] = 'full';
161
  $handler->display->display_options['pager']['options']['items_per_page'] = '10';
162
  $handler->display->display_options['pager']['options']['offset'] = '0';
163
  $handler->display->display_options['pager']['options']['id'] = '0';
164
  $handler->display->display_options['style_plugin'] = 'default';
165
  $handler->display->display_options['row_plugin'] = 'fields';
166
  /* Field: Content: Title */
167
  $handler->display->display_options['fields']['title']['id'] = 'title';
168
  $handler->display->display_options['fields']['title']['table'] = 'node';
169
  $handler->display->display_options['fields']['title']['field'] = 'title';
170
  $handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
171
  $handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
172
  $handler->display->display_options['fields']['title']['alter']['trim'] = 0;
173
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
174
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
175
  $handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
176
  $handler->display->display_options['fields']['title']['alter']['html'] = 0;
177
  $handler->display->display_options['fields']['title']['hide_empty'] = 0;
178
  $handler->display->display_options['fields']['title']['empty_zero'] = 0;
179
  $handler->display->display_options['fields']['title']['link_to_node'] = 0;
180
  /* Contextual filter: Content: Author uid */
181
  $handler->display->display_options['arguments']['uid']['id'] = 'uid';
182
  $handler->display->display_options['arguments']['uid']['table'] = 'node';
183
  $handler->display->display_options['arguments']['uid']['field'] = 'uid';
184
  $handler->display->display_options['arguments']['uid']['default_action'] = 'default';
185

    
186
  $views[$view->name] = $view;
187

    
188
  $view = new view();
189
  $view->name = 'test_feed_http_headers_caching';
190
  $view->description = '';
191
  $view->tag = '';
192
  $view->base_table = 'node';
193
  $view->core = 7;
194
  $view->api_version = '3.0';
195
  $view->disabled = FALSE;
196

    
197
  /* Display: Master */
198
  $handler = $view->new_display('default', 'Master', 'default');
199
  $handler->display->display_options['access']['type'] = 'none';
200
  $handler->display->display_options['cache']['type'] = 'time';
201
  $handler->display->display_options['cache']['results_lifespan'] = '3600';
202
  $handler->display->display_options['cache']['results_lifespan_custom'] = '0';
203
  $handler->display->display_options['cache']['output_lifespan'] = '3600';
204
  $handler->display->display_options['cache']['output_lifespan_custom'] = '0';
205
  $handler->display->display_options['query']['type'] = 'views_query';
206
  $handler->display->display_options['exposed_form']['type'] = 'basic';
207
  $handler->display->display_options['pager']['type'] = 'full';
208
  $handler->display->display_options['style_plugin'] = 'default';
209
  $handler->display->display_options['row_plugin'] = 'node';
210

    
211
  /* Display: Feed */
212
  $handler = $view->new_display('feed', 'Feed', 'feed_1');
213
  $handler->display->display_options['pager']['type'] = 'none';
214
  $handler->display->display_options['pager']['options']['offset'] = '0';
215
  $handler->display->display_options['style_plugin'] = 'rss';
216
  $handler->display->display_options['row_plugin'] = 'node_rss';
217
  $handler->display->display_options['path'] = 'test_feed_http_headers_caching';
218

    
219
  $views[$view->name] = $view;
220

    
221
  $view = new view();
222
  $view->name = 'test_exposed_remember';
223
  $view->description = '';
224
  $view->tag = '';
225
  $view->base_table = 'node';
226
  $view->human_name = 'test_exposed_remember';
227
  $view->core = 0;
228
  $view->api_version = '3.0';
229
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
230

    
231
  /* Display: Master */
232
  $handler = $view->new_display('default', 'Master', 'default');
233
  $handler->display->display_options['use_more_always'] = FALSE;
234
  $handler->display->display_options['access']['type'] = 'none';
235
  $handler->display->display_options['cache']['type'] = 'none';
236
  $handler->display->display_options['query']['type'] = 'views_query';
237
  $handler->display->display_options['exposed_form']['type'] = 'basic';
238
  $handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
239
  $handler->display->display_options['pager']['type'] = 'none';
240
  $handler->display->display_options['style_plugin'] = 'default';
241
  $handler->display->display_options['row_plugin'] = 'node';
242
  /* Sort criterion: Content: Post date */
243
  $handler->display->display_options['sorts']['created']['id'] = 'created';
244
  $handler->display->display_options['sorts']['created']['table'] = 'node';
245
  $handler->display->display_options['sorts']['created']['field'] = 'created';
246
  /* Filter criterion: Content: Type */
247
  $handler->display->display_options['filters']['type']['id'] = 'type';
248
  $handler->display->display_options['filters']['type']['table'] = 'node';
249
  $handler->display->display_options['filters']['type']['field'] = 'type';
250
  $handler->display->display_options['filters']['type']['exposed'] = TRUE;
251
  $handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
252
  $handler->display->display_options['filters']['type']['expose']['label'] = 'Type';
253
  $handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
254
  $handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
255
  $handler->display->display_options['filters']['type']['expose']['remember'] = TRUE;
256
  $handler->display->display_options['filters']['type']['expose']['remember_roles'] = array(
257
    2 => '2',
258
  );
259

    
260
  /* Display: Page */
261
  $handler = $view->new_display('page', 'Page', 'page_1');
262
  $handler->display->display_options['path'] = 'test_exposed_remember';
263
  $translatables['test_exposed_remember'] = array(
264
    t('Master'),
265
    t('more'),
266
    t('Apply'),
267
    t('Reset'),
268
    t('Sort by'),
269
    t('Asc'),
270
    t('Desc'),
271
    t('Type'),
272
    t('Page'),
273
  );
274

    
275
  $views[$view->name] = $view;
276

    
277
  $view = new view();
278
  $view->name = 'test_ajax_view';
279
  $view->description = '';
280
  $view->tag = '';
281
  $view->base_table = 'node';
282
  $view->human_name = '';
283
  $view->core = 0;
284
  $view->api_version = '3.0';
285
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
286

    
287
  /* Display: Master */
288
  $handler = $view->new_display('default', 'Master', 'default');
289
  $handler->display->display_options['use_ajax'] = TRUE;
290
  $handler->display->display_options['use_more_always'] = FALSE;
291
  $handler->display->display_options['access']['type'] = 'none';
292
  $handler->display->display_options['cache']['type'] = 'none';
293
  $handler->display->display_options['query']['type'] = 'views_query';
294
  $handler->display->display_options['exposed_form']['type'] = 'basic';
295
  $handler->display->display_options['pager']['type'] = 'none';
296
  $handler->display->display_options['style_plugin'] = 'default';
297
  $handler->display->display_options['row_plugin'] = 'node';
298

    
299
  /* Display: Page */
300
  $handler = $view->new_display('page', 'Page', 'page_1');
301
  $handler->display->display_options['path'] = 'test_ajax_view';
302

    
303
  $views[$view->name] = $view;
304

    
305
  $view = new view();
306
  $view->name = 'test_noajax_view';
307
  $view->description = '';
308
  $view->tag = '';
309
  $view->base_table = 'node';
310
  $view->human_name = '';
311
  $view->core = 0;
312
  $view->api_version = '3.0';
313
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
314

    
315
  /* Display: Master */
316
  $handler = $view->new_display('default', 'Master', 'default');
317
  $handler->display->display_options['use_ajax'] = FALSE;
318
  $handler->display->display_options['use_more_always'] = FALSE;
319
  $handler->display->display_options['access']['type'] = 'none';
320
  $handler->display->display_options['cache']['type'] = 'none';
321
  $handler->display->display_options['query']['type'] = 'views_query';
322
  $handler->display->display_options['exposed_form']['type'] = 'basic';
323
  $handler->display->display_options['pager']['type'] = 'none';
324
  $handler->display->display_options['style_plugin'] = 'default';
325
  $handler->display->display_options['row_plugin'] = 'node';
326

    
327
  $views[$view->name] = $view;
328

    
329
  return $views;
330
}