-
Notifications
You must be signed in to change notification settings - Fork 2
/
luggage_projects.views_default.inc
135 lines (129 loc) · 8.09 KB
/
luggage_projects.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
<?php
/**
* @file
* luggage_projects.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function luggage_projects_views_default_views() {
$export = array();
$view = new view();
$view->name = 'projects';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'projects';
$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'] = 'Projects';
$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['pager']['options']['items_per_page'] = '50';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['row_class'] = 'node clearfix';
$handler->display->display_options['row_plugin'] = 'fields';
/* 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']['exclude'] = TRUE;
$handler->display->display_options['fields']['path']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['path']['absolute'] = TRUE;
/* Field: Content: Alternate URL */
$handler->display->display_options['fields']['field_project_alternate_url']['id'] = 'field_project_alternate_url';
$handler->display->display_options['fields']['field_project_alternate_url']['table'] = 'field_data_field_project_alternate_url';
$handler->display->display_options['fields']['field_project_alternate_url']['field'] = 'field_project_alternate_url';
$handler->display->display_options['fields']['field_project_alternate_url']['label'] = '';
$handler->display->display_options['fields']['field_project_alternate_url']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_project_alternate_url']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_project_alternate_url']['empty'] = '[path]';
$handler->display->display_options['fields']['field_project_alternate_url']['click_sort_column'] = 'url';
$handler->display->display_options['fields']['field_project_alternate_url']['type'] = 'link_url';
/* 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']['make_link'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['path'] = '[field_project_alternate_url]';
$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'] = 'h2';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_node'] = 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;
$handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '600',
);
/* Sort criterion: Content: Order (field_project_order) */
$handler->display->display_options['sorts']['field_project_order_value']['id'] = 'field_project_order_value';
$handler->display->display_options['sorts']['field_project_order_value']['table'] = 'field_data_field_project_order';
$handler->display->display_options['sorts']['field_project_order_value']['field'] = 'field_project_order_value';
/* 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(
'project' => 'project',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Filter criterion: Content: Project Type (field_project_type) */
$handler->display->display_options['filters']['field_project_type_tid']['id'] = 'field_project_type_tid';
$handler->display->display_options['filters']['field_project_type_tid']['table'] = 'field_data_field_project_type';
$handler->display->display_options['filters']['field_project_type_tid']['field'] = 'field_project_type_tid';
$handler->display->display_options['filters']['field_project_type_tid']['group'] = 1;
$handler->display->display_options['filters']['field_project_type_tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_project_type_tid']['expose']['operator_id'] = 'field_project_type_tid_op';
$handler->display->display_options['filters']['field_project_type_tid']['expose']['label'] = 'Project Type';
$handler->display->display_options['filters']['field_project_type_tid']['expose']['operator'] = 'field_project_type_tid_op';
$handler->display->display_options['filters']['field_project_type_tid']['expose']['identifier'] = 'field_project_type_tid';
$handler->display->display_options['filters']['field_project_type_tid']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_project_type_tid']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
6 => 0,
5 => 0,
4 => 0,
7 => 0,
);
$handler->display->display_options['filters']['field_project_type_tid']['reduce_duplicates'] = TRUE;
$handler->display->display_options['filters']['field_project_type_tid']['type'] = 'select';
$handler->display->display_options['filters']['field_project_type_tid']['vocabulary'] = 'project_type';
$handler->display->display_options['filters']['field_project_type_tid']['hierarchy'] = 1;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'projects';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Projects';
$handler->display->display_options['menu']['weight'] = '-33';
$handler->display->display_options['menu']['name'] = 'main-menu';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block_1');
$export['projects'] = $view;
return $export;
}