-
Notifications
You must be signed in to change notification settings - Fork 0
/
rbv_org.views_default.inc
257 lines (251 loc) · 15.1 KB
/
rbv_org.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
<?php
/**
* @file
* rbv_org.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function rbv_org_views_default_views() {
$export = array();
$view = new view();
$view->name = 'rbv_view_members';
$view->description = 'Group members.';
$view->tag = 'RBV';
$view->base_table = 'users';
$view->human_name = 'RBV members';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['title'] = 'Persone';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$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']['reset_button_label'] = 'Ripristina';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '0';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Relationship: OG membership: OG membership from Utente */
$handler->display->display_options['relationships']['og_membership_rel']['id'] = 'og_membership_rel';
$handler->display->display_options['relationships']['og_membership_rel']['table'] = 'users';
$handler->display->display_options['relationships']['og_membership_rel']['field'] = 'og_membership_rel';
/* Campo: Utente: Nome */
$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']['label'] = '';
/* Campo: Utente: Immagine */
$handler->display->display_options['fields']['field_user_picture']['id'] = 'field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['table'] = 'field_data_field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['field'] = 'field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['label'] = '';
$handler->display->display_options['fields']['field_user_picture']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_user_picture']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_user_picture']['settings'] = array(
'image_style' => 'rbv_image_icon',
'image_link' => 'content',
);
/* Sort criterion: OG membership: Created */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'og_membership';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['relationship'] = 'og_membership_rel';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Contextual filter: OG membership: Group ID */
$handler->display->display_options['arguments']['gid']['id'] = 'gid';
$handler->display->display_options['arguments']['gid']['table'] = 'og_membership';
$handler->display->display_options['arguments']['gid']['field'] = 'gid';
$handler->display->display_options['arguments']['gid']['relationship'] = 'og_membership_rel';
$handler->display->display_options['arguments']['gid']['default_action'] = 'not found';
$handler->display->display_options['arguments']['gid']['exception']['title'] = 'Tutti';
$handler->display->display_options['arguments']['gid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['gid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['gid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['gid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['gid']['specify_validation'] = TRUE;
$handler->display->display_options['arguments']['gid']['validate']['type'] = 'og';
/* Filter criterion: Utente: Attivo */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'users';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = '1';
/* Filter criterion: OG membership: State */
$handler->display->display_options['filters']['state']['id'] = 'state';
$handler->display->display_options['filters']['state']['table'] = 'og_membership';
$handler->display->display_options['filters']['state']['field'] = 'state';
$handler->display->display_options['filters']['state']['relationship'] = 'og_membership_rel';
$handler->display->display_options['filters']['state']['value'] = array(
1 => '1',
);
/* Display: pane: group members */
$handler = $view->new_display('panel_pane', 'pane: group members', 'panel_pane_1');
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['style_options']['row_class'] = 'member';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['row_options']['inline'] = array(
'field_user_picture' => 'field_user_picture',
'name' => 'name',
);
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: Utente: Immagine */
$handler->display->display_options['fields']['field_user_picture']['id'] = 'field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['table'] = 'field_data_field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['field'] = 'field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['label'] = '';
$handler->display->display_options['fields']['field_user_picture']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_user_picture']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_user_picture']['settings'] = array(
'image_style' => 'rbv_image_icon',
'image_link' => 'content',
);
/* Campo: Utente: Nome */
$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']['label'] = '';
$handler->display->display_options['pane_title'] = 'RBV members';
$handler->display->display_options['allow']['use_pager'] = 0;
$handler->display->display_options['allow']['items_per_page'] = 'items_per_page';
$handler->display->display_options['allow']['offset'] = 0;
$handler->display->display_options['allow']['link_to_view'] = 0;
$handler->display->display_options['allow']['more_link'] = 0;
$handler->display->display_options['allow']['path_override'] = 0;
$handler->display->display_options['allow']['title_override'] = 'title_override';
$handler->display->display_options['allow']['exposed_form'] = 0;
$handler->display->display_options['allow']['fields_override'] = 0;
$handler->display->display_options['argument_input'] = array(
'gid' => array(
'type' => 'context',
'context' => 'entity:node.nid',
'context_optional' => 0,
'panel' => '0',
'fixed' => '',
'label' => 'OG membership: Group ID',
),
);
$handler->display->display_options['inherit_panels_path'] = '1';
/* Display: pane: all site users */
$handler = $view->new_display('panel_pane', 'pane: all site users', 'panel_pane_2');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'Persone della rete';
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '40';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['pager']['options']['quantity'] = '9';
$handler->display->display_options['pager']['options']['expose']['items_per_page'] = TRUE;
$handler->display->display_options['pager']['options']['expose']['items_per_page_options_all_label'] = '- Tutte -';
$handler->display->display_options['pager']['options']['tags']['first'] = '« prima';
$handler->display->display_options['pager']['options']['tags']['previous'] = '‹ precedente';
$handler->display->display_options['pager']['options']['tags']['next'] = 'seguente ›';
$handler->display->display_options['pager']['options']['tags']['last'] = 'ultima »';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'masonry_views';
$handler->display->display_options['style_options']['row_class'] = 'col-xs-12 col-sm-6 col-md-4 col-lg-3';
$handler->display->display_options['style_options']['masonry_resizable'] = TRUE;
$handler->display->display_options['style_options']['masonry_animated'] = TRUE;
$handler->display->display_options['style_options']['masonry_fit_width'] = FALSE;
$handler->display->display_options['style_options']['masonry_rtl'] = FALSE;
$handler->display->display_options['style_options']['masonry_images_first'] = TRUE;
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['footer'] = FALSE;
/* Piè di pagina: Global: Result summary */
$handler->display->display_options['footer']['result']['id'] = 'result';
$handler->display->display_options['footer']['result']['table'] = 'views';
$handler->display->display_options['footer']['result']['field'] = 'result';
$handler->display->display_options['footer']['result']['content'] = '<p>Ci sono <strong>@total</strong> persone in totale.</p>';
$handler->display->display_options['defaults']['relationships'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Campo: Utente: Immagine */
$handler->display->display_options['fields']['field_user_picture']['id'] = 'field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['table'] = 'field_data_field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['field'] = 'field_user_picture';
$handler->display->display_options['fields']['field_user_picture']['label'] = '';
$handler->display->display_options['fields']['field_user_picture']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_user_picture']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_user_picture']['settings'] = array(
'image_style' => 'rbv_image_teaser',
'image_link' => 'content',
);
/* Campo: Utente: Nome */
$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']['label'] = '';
$handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
/* Campo: Utente: Organizzazioni */
$handler->display->display_options['fields']['og_user_node']['id'] = 'og_user_node';
$handler->display->display_options['fields']['og_user_node']['table'] = 'og_membership';
$handler->display->display_options['fields']['og_user_node']['field'] = 'og_user_node';
$handler->display->display_options['fields']['og_user_node']['label'] = '';
$handler->display->display_options['fields']['og_user_node']['alter']['max_length'] = '28';
$handler->display->display_options['fields']['og_user_node']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['og_user_node']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['og_user_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['og_user_node']['type'] = 'og_list_default';
$handler->display->display_options['fields']['og_user_node']['settings'] = array(
'link' => 1,
);
$handler->display->display_options['fields']['og_user_node']['delta_offset'] = '0';
$handler->display->display_options['fields']['og_user_node']['separator'] = ' ';
$handler->display->display_options['defaults']['sorts'] = FALSE;
$handler->display->display_options['defaults']['arguments'] = FALSE;
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
$handler->display->display_options['defaults']['filters'] = FALSE;
/* Filter criterion: Utente: Attivo */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'users';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = '1';
$handler->display->display_options['allow']['use_pager'] = 0;
$handler->display->display_options['allow']['items_per_page'] = 0;
$handler->display->display_options['allow']['offset'] = 0;
$handler->display->display_options['allow']['link_to_view'] = 0;
$handler->display->display_options['allow']['more_link'] = 0;
$handler->display->display_options['allow']['path_override'] = 0;
$handler->display->display_options['allow']['title_override'] = 'title_override';
$handler->display->display_options['allow']['exposed_form'] = 0;
$handler->display->display_options['allow']['fields_override'] = 0;
$translatables['rbv_view_members'] = array(
t('Defaults'),
t('Persone'),
t('more'),
t('Apply'),
t('Ripristina'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('OG membership from user'),
t('Tutti'),
t('pane: group members'),
t('RBV members'),
t('View panes'),
t('pane: all site users'),
t('Persone della rete'),
t('Items per page'),
t('- Tutte -'),
t('Offset'),
t('« prima'),
t('‹ precedente'),
t('seguente ›'),
t('ultima »'),
t('<p>Ci sono <strong>@total</strong> persone in totale.</p>'),
);
$export['rbv_view_members'] = $view;
return $export;
}