drupalorg_user.views_default.inc 176 KB
Newer Older
1
<?php
2

3
4
5
6
7
8
9
10
11
12
13
/**
 * @file
 * drupalorg_user.views_default.inc
 */

/**
 * Implements hook_views_default_views().
 */
function drupalorg_user_views_default_views() {
  $export = array();

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  $view = new view();
  $view->name = 'contribution_roles';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'node';
  $view->human_name = 'Contributor roles';
  $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'] = 'Contributor roles';
  $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';
32
33
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['pager']['options']['offset'] = '0';
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  $handler->display->display_options['style_plugin'] = 'default';
  $handler->display->display_options['row_plugin'] = 'fields';
  /* Header: Global: Text area */
  $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']['content'] = '<h4>Contributor roles</h4>';
  $handler->display->display_options['header']['area']['format'] = '1';
  /* Relationship: Entity Reference: Referencing entity */
  $handler->display->display_options['relationships']['reverse_field_con_role_field_collection_item']['id'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['relationships']['reverse_field_con_role_field_collection_item']['table'] = 'node';
  $handler->display->display_options['relationships']['reverse_field_con_role_field_collection_item']['field'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['relationships']['reverse_field_con_role_field_collection_item']['required'] = TRUE;
  /* Relationship: Field collection item: Entity with the Contributor role (field_contribution_role) */
  $handler->display->display_options['relationships']['field_contribution_role_user']['id'] = 'field_contribution_role_user';
  $handler->display->display_options['relationships']['field_contribution_role_user']['table'] = 'field_collection_item';
  $handler->display->display_options['relationships']['field_contribution_role_user']['field'] = 'field_contribution_role_user';
  $handler->display->display_options['relationships']['field_contribution_role_user']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['relationships']['field_contribution_role_user']['required'] = TRUE;
53
  /* Field: Field collection item: Organization support */
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
  $handler->display->display_options['fields']['field_organization_reference']['id'] = 'field_organization_reference';
  $handler->display->display_options['fields']['field_organization_reference']['table'] = 'field_data_field_organization_reference';
  $handler->display->display_options['fields']['field_organization_reference']['field'] = 'field_organization_reference';
  $handler->display->display_options['fields']['field_organization_reference']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_organization_reference']['label'] = '';
  $handler->display->display_options['fields']['field_organization_reference']['exclude'] = TRUE;
  $handler->display->display_options['fields']['field_organization_reference']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_organization_reference']['alter']['text'] = 'for [field_organization_reference]';
  $handler->display->display_options['fields']['field_organization_reference']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_organization_reference']['settings'] = array(
    'bypass_access' => 0,
    'link' => 1,
  );
  /* Field: Field collection item: Role name */
  $handler->display->display_options['fields']['field_con_role']['id'] = 'field_con_role';
  $handler->display->display_options['fields']['field_con_role']['table'] = 'field_data_field_con_role';
  $handler->display->display_options['fields']['field_con_role']['field'] = 'field_con_role';
  $handler->display->display_options['fields']['field_con_role']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_con_role']['label'] = '';
  $handler->display->display_options['fields']['field_con_role']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_con_role']['alter']['text'] = '[field_con_role] [field_organization_reference] - starting [field_role_participation_dates] [field_role_participation_dates_1]';
  $handler->display->display_options['fields']['field_con_role']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_con_role']['settings'] = array(
    'bypass_access' => 0,
    'link' => 1,
  );
  /* Field: Field collection item: Role start date */
  $handler->display->display_options['fields']['field_role_start_date']['id'] = 'field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['table'] = 'field_data_field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['field'] = 'field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_role_start_date']['label'] = '';
  $handler->display->display_options['fields']['field_role_start_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_role_start_date']['alter']['text'] = 'From [field_role_start_date]';
  $handler->display->display_options['fields']['field_role_start_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_role_start_date']['settings'] = array(
    'format_type' => 'custom',
    'custom_date_format' => 'Y-m',
    'fromto' => 'both',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Field: Field collection item: Role end date */
  $handler->display->display_options['fields']['field_role_end_date']['id'] = 'field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['table'] = 'field_data_field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['field'] = 'field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_role_end_date']['label'] = '';
  $handler->display->display_options['fields']['field_role_end_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_role_end_date']['alter']['text'] = ' to [field_role_end_date]';
  $handler->display->display_options['fields']['field_role_end_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_role_end_date']['empty'] = ' to present';
  $handler->display->display_options['fields']['field_role_end_date']['settings'] = array(
    'format_type' => 'custom',
    'custom_date_format' => 'Y-m',
    'fromto' => 'both',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Sort criterion: Field collection item: Role start date (field_role_start_date) */
  $handler->display->display_options['sorts']['field_role_start_date_value']['id'] = 'field_role_start_date_value';
  $handler->display->display_options['sorts']['field_role_start_date_value']['table'] = 'field_data_field_role_start_date';
  $handler->display->display_options['sorts']['field_role_start_date_value']['field'] = 'field_role_start_date_value';
  $handler->display->display_options['sorts']['field_role_start_date_value']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['sorts']['field_role_start_date_value']['order'] = 'DESC';
  /* Sort criterion: Field collection item: Role end date (field_role_end_date) */
  $handler->display->display_options['sorts']['field_role_end_date_value']['id'] = 'field_role_end_date_value';
  $handler->display->display_options['sorts']['field_role_end_date_value']['table'] = 'field_data_field_role_end_date';
  $handler->display->display_options['sorts']['field_role_end_date_value']['field'] = 'field_role_end_date_value';
  $handler->display->display_options['sorts']['field_role_end_date_value']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['sorts']['field_role_end_date_value']['order'] = 'DESC';
  /* 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(
    'contributor_role' => 'contributor_role',
  );
143
144
145
146
147
148
  /* Filter criterion: User: Active */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'users';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['relationship'] = 'field_contribution_role_user';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
149

150
151
152
  /* Display: Org display of users with contributor role */
  $handler = $view->new_display('block', 'Org display of users with contributor role', 'org_con_role_block');
  $handler->display->display_options['defaults']['title'] = FALSE;
153
154
155
156
157
158
159
  $handler->display->display_options['defaults']['group_by'] = FALSE;
  $handler->display->display_options['defaults']['query'] = FALSE;
  $handler->display->display_options['query']['type'] = 'views_query';
  $handler->display->display_options['query']['options']['distinct'] = TRUE;
  $handler->display->display_options['defaults']['pager'] = FALSE;
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['pager']['options']['offset'] = '0';
160
161
  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  $handler->display->display_options['style_plugin'] = 'default';
162
163
164
165
166
167
168
  $handler->display->display_options['style_options']['grouping'] = array(
    0 => array(
      'field' => 'name',
      'rendered' => 0,
      'rendered_strip' => 0,
    ),
  );
169
  $handler->display->display_options['style_options']['row_class_special'] = FALSE;
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
  $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(
    'picture' => 'picture',
    'name' => 'name',
    'field_role_start_date' => 'field_role_start_date',
    'field_role_end_date' => 'field_role_end_date',
  );
  $handler->display->display_options['row_options']['hide_empty'] = TRUE;
  $handler->display->display_options['defaults']['row_options'] = FALSE;
  $handler->display->display_options['defaults']['header'] = FALSE;
  /* Header: Global: Text area */
  $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']['format'] = '1';
  $handler->display->display_options['defaults']['empty'] = FALSE;
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* Field: User: Picture */
  $handler->display->display_options['fields']['picture']['id'] = 'picture';
  $handler->display->display_options['fields']['picture']['table'] = 'users';
  $handler->display->display_options['fields']['picture']['field'] = 'picture';
  $handler->display->display_options['fields']['picture']['relationship'] = 'field_contribution_role_user';
  $handler->display->display_options['fields']['picture']['label'] = '';
195
  $handler->display->display_options['fields']['picture']['exclude'] = TRUE;
196
197
198
199
200
201
202
203
204
  $handler->display->display_options['fields']['picture']['element_class'] = 'left user-picture';
  $handler->display->display_options['fields']['picture']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['picture']['image_style'] = 'drupalorg_user_picture';
  /* Field: User: Name */
  $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']['relationship'] = 'field_contribution_role_user';
  $handler->display->display_options['fields']['name']['label'] = '';
205
  $handler->display->display_options['fields']['name']['exclude'] = TRUE;
206
207
  $handler->display->display_options['fields']['name']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['name']['alter']['text'] = '<span>[picture]<br>[name]</span>';
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
  $handler->display->display_options['fields']['name']['element_class'] = 'left';
  $handler->display->display_options['fields']['name']['element_label_colon'] = FALSE;
  /* Field: Field collection item: Role name */
  $handler->display->display_options['fields']['field_con_role']['id'] = 'field_con_role';
  $handler->display->display_options['fields']['field_con_role']['table'] = 'field_data_field_con_role';
  $handler->display->display_options['fields']['field_con_role']['field'] = 'field_con_role';
  $handler->display->display_options['fields']['field_con_role']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_con_role']['label'] = '';
  $handler->display->display_options['fields']['field_con_role']['alter']['text'] = '[field_con_role] <br>[field_role_start_date] [field_role_end_date]';
  $handler->display->display_options['fields']['field_con_role']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_con_role']['settings'] = array(
    'bypass_access' => 0,
    'link' => 1,
  );
  /* Field: Field collection item: Role start date */
  $handler->display->display_options['fields']['field_role_start_date']['id'] = 'field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['table'] = 'field_data_field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['field'] = 'field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_role_start_date']['label'] = '';
  $handler->display->display_options['fields']['field_role_start_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_role_start_date']['alter']['text'] = 'From [field_role_start_date]';
  $handler->display->display_options['fields']['field_role_start_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_role_start_date']['hide_empty'] = TRUE;
  $handler->display->display_options['fields']['field_role_start_date']['settings'] = array(
    'format_type' => 'custom',
    'custom_date_format' => 'Y-m',
    'fromto' => 'both',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Field: Field collection item: Role end date */
  $handler->display->display_options['fields']['field_role_end_date']['id'] = 'field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['table'] = 'field_data_field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['field'] = 'field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_role_end_date']['label'] = '';
  $handler->display->display_options['fields']['field_role_end_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_role_end_date']['alter']['text'] = 'until [field_role_end_date]';
  $handler->display->display_options['fields']['field_role_end_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_role_end_date']['hide_empty'] = TRUE;
  $handler->display->display_options['fields']['field_role_end_date']['settings'] = array(
    'format_type' => 'custom',
    'custom_date_format' => 'Y-m',
    'fromto' => 'both',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Field: Field collection item: Project/initiative details */
  $handler->display->display_options['fields']['field_project_initiative_details']['id'] = 'field_project_initiative_details';
  $handler->display->display_options['fields']['field_project_initiative_details']['table'] = 'field_data_field_project_initiative_details';
  $handler->display->display_options['fields']['field_project_initiative_details']['field'] = 'field_project_initiative_details';
  $handler->display->display_options['fields']['field_project_initiative_details']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['fields']['field_project_initiative_details']['label'] = '';
  $handler->display->display_options['fields']['field_project_initiative_details']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_project_initiative_details']['hide_empty'] = TRUE;
  $handler->display->display_options['fields']['field_project_initiative_details']['type'] = 'text_trimmed';
  $handler->display->display_options['fields']['field_project_initiative_details']['settings'] = array(
    'trim_length' => '200',
  );
272
273
274
275
276
277
278
  $handler->display->display_options['defaults']['sorts'] = FALSE;
  /* Sort criterion: Field collection item: Role start date (field_role_start_date) */
  $handler->display->display_options['sorts']['field_role_start_date_value']['id'] = 'field_role_start_date_value';
  $handler->display->display_options['sorts']['field_role_start_date_value']['table'] = 'field_data_field_role_start_date';
  $handler->display->display_options['sorts']['field_role_start_date_value']['field'] = 'field_role_start_date_value';
  $handler->display->display_options['sorts']['field_role_start_date_value']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['sorts']['field_role_start_date_value']['order'] = 'DESC';
279
  $handler->display->display_options['defaults']['arguments'] = FALSE;
280
  /* Contextual filter: Field collection item: Organization support (field_organization_reference) */
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['id'] = 'field_organization_reference_target_id';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['table'] = 'field_data_field_organization_reference';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['field'] = 'field_organization_reference_target_id';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['relationship'] = 'reverse_field_con_role_field_collection_item';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['default_action'] = 'empty';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['summary_options']['items_per_page'] = '25';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['specify_validation'] = TRUE;
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['validate']['type'] = 'node';
  $handler->display->display_options['arguments']['field_organization_reference_target_id']['validate_options']['types'] = array(
    'organization' => 'organization',
  );
  $handler->display->display_options['block_description'] = 'Org contibutor role support list';
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
  $translatables['contribution_roles'] = array(
    t('Master'),
    t('Contributor roles'),
    t('more'),
    t('Apply'),
    t('Reset'),
    t('Sort by'),
    t('Asc'),
    t('Desc'),
    t('<h4>Contributor roles</h4>'),
    t('Field collection item referencing Content from field_con_role'),
    t('field_contribution_role'),
    t('for [field_organization_reference]'),
    t('[field_con_role] [field_organization_reference] - starting [field_role_participation_dates] [field_role_participation_dates_1]'),
    t('From [field_role_start_date]'),
    t(' to [field_role_end_date]'),
    t(' to present'),
313
    t('Org display of users with contributor role'),
314
    t('<span>[picture]<br>[name]</span>'),
315
    t('[field_con_role] <br>[field_role_start_date] [field_role_end_date]'),
316
317
    t('until [field_role_end_date]'),
    t('All'),
318
    t('Org contibutor role support list'),
319
320
321
  );
  $export['contribution_roles'] = $view;

322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
  $view = new view();
  $view->name = 'contributor_roles';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'users';
  $view->human_name = 'Contributor roles';
  $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['display_comment'] = 'Used on user profile page.';
  $handler->display->display_options['use_more_always'] = FALSE;
  $handler->display->display_options['access']['type'] = 'perm';
  $handler->display->display_options['access']['perm'] = 'access user profiles';
  $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'] = 'none';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['row_plugin'] = 'fields';
  $handler->display->display_options['row_options']['inline'] = array(
    'field_organization_reference' => 'field_organization_reference',
  );
  /* Header: Global: Text area */
  $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']['content'] = '<h4>Contributor roles</h4>';
  $handler->display->display_options['header']['area']['format'] = '1';
  /* Relationship: User: Contributor role (field_contribution_role) */
  $handler->display->display_options['relationships']['field_contribution_role_value']['id'] = 'field_contribution_role_value';
  $handler->display->display_options['relationships']['field_contribution_role_value']['table'] = 'field_data_field_contribution_role';
  $handler->display->display_options['relationships']['field_contribution_role_value']['field'] = 'field_contribution_role_value';
  $handler->display->display_options['relationships']['field_contribution_role_value']['required'] = TRUE;
  $handler->display->display_options['relationships']['field_contribution_role_value']['delta'] = '-1';
360
  /* Field: Field collection item: Organization support */
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
  $handler->display->display_options['fields']['field_organization_reference']['id'] = 'field_organization_reference';
  $handler->display->display_options['fields']['field_organization_reference']['table'] = 'field_data_field_organization_reference';
  $handler->display->display_options['fields']['field_organization_reference']['field'] = 'field_organization_reference';
  $handler->display->display_options['fields']['field_organization_reference']['relationship'] = 'field_contribution_role_value';
  $handler->display->display_options['fields']['field_organization_reference']['label'] = '';
  $handler->display->display_options['fields']['field_organization_reference']['exclude'] = TRUE;
  $handler->display->display_options['fields']['field_organization_reference']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_organization_reference']['alter']['text'] = '<span class="attribution-label">Credit<span class="attribution element-invisible"><strong>Attribution: [field_organization_reference]</strong></span></span>';
  $handler->display->display_options['fields']['field_organization_reference']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_organization_reference']['settings'] = array(
    'bypass_access' => 0,
    'link' => 1,
  );
  /* Field: Field collection item: Role start date */
  $handler->display->display_options['fields']['field_role_start_date']['id'] = 'field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['table'] = 'field_data_field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['field'] = 'field_role_start_date';
  $handler->display->display_options['fields']['field_role_start_date']['relationship'] = 'field_contribution_role_value';
  $handler->display->display_options['fields']['field_role_start_date']['label'] = '';
  $handler->display->display_options['fields']['field_role_start_date']['exclude'] = TRUE;
  $handler->display->display_options['fields']['field_role_start_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_role_start_date']['alter']['text'] = 'From [field_role_start_date]';
  $handler->display->display_options['fields']['field_role_start_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_role_start_date']['settings'] = array(
    'format_type' => 'custom',
    'custom_date_format' => 'Y-m',
    'fromto' => 'both',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Field: Field collection item: Role end date */
  $handler->display->display_options['fields']['field_role_end_date']['id'] = 'field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['table'] = 'field_data_field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['field'] = 'field_role_end_date';
  $handler->display->display_options['fields']['field_role_end_date']['relationship'] = 'field_contribution_role_value';
  $handler->display->display_options['fields']['field_role_end_date']['label'] = '';
  $handler->display->display_options['fields']['field_role_end_date']['exclude'] = TRUE;
  $handler->display->display_options['fields']['field_role_end_date']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_role_end_date']['alter']['text'] = 'until [field_role_end_date]';
  $handler->display->display_options['fields']['field_role_end_date']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_role_end_date']['settings'] = array(
    'format_type' => 'custom',
    'custom_date_format' => 'Y-m',
    'fromto' => 'both',
    'multiple_number' => '',
    'multiple_from' => '',
    'multiple_to' => '',
    'show_remaining_days' => 0,
  );
  /* Field: Field collection item: Role name */
  $handler->display->display_options['fields']['field_con_role']['id'] = 'field_con_role';
  $handler->display->display_options['fields']['field_con_role']['table'] = 'field_data_field_con_role';
  $handler->display->display_options['fields']['field_con_role']['field'] = 'field_con_role';
  $handler->display->display_options['fields']['field_con_role']['relationship'] = 'field_contribution_role_value';
  $handler->display->display_options['fields']['field_con_role']['label'] = '';
  $handler->display->display_options['fields']['field_con_role']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_con_role']['alter']['text'] = '[field_con_role] [field_organization_reference] <br>[field_role_start_date] [field_role_end_date]';
  $handler->display->display_options['fields']['field_con_role']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_con_role']['settings'] = array(
    'bypass_access' => 0,
    'link' => 1,
  );
  /* Field: Field collection item: Project/initiative details */
  $handler->display->display_options['fields']['field_project_initiative_details']['id'] = 'field_project_initiative_details';
  $handler->display->display_options['fields']['field_project_initiative_details']['table'] = 'field_data_field_project_initiative_details';
  $handler->display->display_options['fields']['field_project_initiative_details']['field'] = 'field_project_initiative_details';
  $handler->display->display_options['fields']['field_project_initiative_details']['relationship'] = 'field_contribution_role_value';
  $handler->display->display_options['fields']['field_project_initiative_details']['label'] = '';
  $handler->display->display_options['fields']['field_project_initiative_details']['element_label_colon'] = FALSE;
  /* Sort criterion: User: Contributor role (field_contribution_role:delta) */
  $handler->display->display_options['sorts']['delta']['id'] = 'delta';
  $handler->display->display_options['sorts']['delta']['table'] = 'field_data_field_contribution_role';
  $handler->display->display_options['sorts']['delta']['field'] = 'delta';
  /* Contextual filter: User: Uid */
  $handler->display->display_options['arguments']['uid']['id'] = 'uid';
  $handler->display->display_options['arguments']['uid']['table'] = 'users';
  $handler->display->display_options['arguments']['uid']['field'] = 'uid';
  $handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
  $handler->display->display_options['arguments']['uid']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
  $handler->display->display_options['arguments']['uid']['specify_validation'] = TRUE;
  $handler->display->display_options['arguments']['uid']['validate']['type'] = 'user';
  $translatables['contributor_roles'] = array(
    t('Master'),
    t('more'),
    t('Apply'),
    t('Reset'),
    t('Sort by'),
    t('Asc'),
    t('Desc'),
    t('<h4>Contributor roles</h4>'),
    t('field collection item from field_contribution_role'),
    t('<span class="attribution-label">Credit<span class="attribution element-invisible"><strong>Attribution: [field_organization_reference]</strong></span></span>'),
    t('From [field_role_start_date]'),
    t('until [field_role_end_date]'),
    t('[field_con_role] [field_organization_reference] <br>[field_role_start_date] [field_role_end_date]'),
    t('All'),
  );
  $export['contributor_roles'] = $view;

465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
  $view = new view();
  $view->name = 'issue_credit';
  $view->description = '';
  $view->tag = 'default';
  $view->base_table = 'node';
  $view->human_name = 'Issue credit';
  $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['use_more_always'] = FALSE;
  $handler->display->display_options['group_by'] = TRUE;
  $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';
484
485
486
487
  $handler->display->display_options['pager']['options']['items_per_page'] = '50';
  $handler->display->display_options['pager']['options']['offset'] = '0';
  $handler->display->display_options['pager']['options']['id'] = '0';
  $handler->display->display_options['pager']['options']['quantity'] = '9';
488
489
490
491
492
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  $handler->display->display_options['style_options']['row_class_special'] = FALSE;
  $handler->display->display_options['row_plugin'] = 'fields';
  $handler->display->display_options['row_options']['inline'] = array(
493
494
    'title' => 'title',
    'changed' => 'changed',
495
  );
496
497
498
499
500
  $handler->display->display_options['row_options']['separator'] = 'updated';
  /* Header: Global: Text area */
  $handler->display->display_options['header']['area']['id'] = 'area';
  $handler->display->display_options['header']['area']['table'] = 'views';
  $handler->display->display_options['header']['area']['field'] = 'area';
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
  /* Relationship: Entity Reference: Referenced Entity */
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['id'] = 'field_issue_credit_target_id';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['table'] = 'field_data_field_issue_credit';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['field'] = 'field_issue_credit_target_id';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['required'] = TRUE;
  /* Relationship: Entity Reference: Referenced Entity */
  $handler->display->display_options['relationships']['field_project_target_id']['id'] = 'field_project_target_id';
  $handler->display->display_options['relationships']['field_project_target_id']['table'] = 'field_data_field_project';
  $handler->display->display_options['relationships']['field_project_target_id']['field'] = 'field_project_target_id';
  $handler->display->display_options['relationships']['field_project_target_id']['required'] = TRUE;
  /* Field: Content: Title */
  $handler->display->display_options['fields']['title_1']['id'] = 'title_1';
  $handler->display->display_options['fields']['title_1']['table'] = 'node';
  $handler->display->display_options['fields']['title_1']['field'] = 'title';
  $handler->display->display_options['fields']['title_1']['relationship'] = 'field_project_target_id';
  $handler->display->display_options['fields']['title_1']['label'] = '';
  $handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE;
  /* Field: COUNT(DISTINCT Content: Nid) */
  $handler->display->display_options['fields']['nid']['id'] = 'nid';
  $handler->display->display_options['fields']['nid']['table'] = 'node';
  $handler->display->display_options['fields']['nid']['field'] = 'nid';
  $handler->display->display_options['fields']['nid']['group_type'] = 'count_distinct';
  $handler->display->display_options['fields']['nid']['label'] = '';
  $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
525
  $handler->display->display_options['fields']['nid']['separator'] = '';
526
527
528
  $handler->display->display_options['fields']['nid']['format_plural'] = TRUE;
  $handler->display->display_options['fields']['nid']['format_plural_singular'] = '1 issue';
  $handler->display->display_options['fields']['nid']['format_plural_plural'] = '@count issues';
529
530
531
532
533
534
  /* Sort criterion: MAX(Content: Last status change (field_issue_last_status_change)) */
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['id'] = 'field_issue_last_status_change_value';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['table'] = 'field_data_field_issue_last_status_change';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['field'] = 'field_issue_last_status_change_value';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['group_type'] = 'max';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['order'] = 'DESC';
535
536
537
538
  $handler->display->display_options['filter_groups']['groups'] = array(
    1 => 'AND',
    2 => 'OR',
  );
539
540
541
542
543
544
545
546
547
548
549
550
551
  /* 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_issue' => 'project_issue',
552
    'sa' => 'sa',
553
  );
554
  $handler->display->display_options['filters']['type']['group'] = 1;
555
556
557
558
559
560
  /* Filter criterion: Comment: Approved */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'comment';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
561
  $handler->display->display_options['filters']['status_1']['group'] = 1;
562
563
564
565
566
567
568
569
  /* Filter criterion: Content: Status (field_issue_status) */
  $handler->display->display_options['filters']['field_issue_status_value']['id'] = 'field_issue_status_value';
  $handler->display->display_options['filters']['field_issue_status_value']['table'] = 'field_data_field_issue_status';
  $handler->display->display_options['filters']['field_issue_status_value']['field'] = 'field_issue_status_value';
  $handler->display->display_options['filters']['field_issue_status_value']['value'] = array(
    2 => '2',
    7 => '7',
  );
570
571
572
573
574
575
576
  $handler->display->display_options['filters']['field_issue_status_value']['group'] = 2;
  /* Filter criterion: Content: Status (field_issue_status) */
  $handler->display->display_options['filters']['field_issue_status_value_1']['id'] = 'field_issue_status_value_1';
  $handler->display->display_options['filters']['field_issue_status_value_1']['table'] = 'field_data_field_issue_status';
  $handler->display->display_options['filters']['field_issue_status_value_1']['field'] = 'field_issue_status_value';
  $handler->display->display_options['filters']['field_issue_status_value_1']['operator'] = 'empty';
  $handler->display->display_options['filters']['field_issue_status_value_1']['group'] = 2;
577
578
579
580
581
582

  /* Display: User recent */
  $handler = $view->new_display('block', 'User recent', 'user_recent');
  $handler->display->display_options['defaults']['pager'] = FALSE;
  $handler->display->display_options['pager']['type'] = 'none';
  $handler->display->display_options['pager']['options']['offset'] = '0';
583
584
585
586
  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  $handler->display->display_options['style_options']['row_class_special'] = FALSE;
587
  $handler->display->display_options['style_options']['wrapper_class'] = '';
588
589
590
591
592
  $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(
    'title_1' => 'title_1',
593
    'drupalorg_project_subtitle' => 'drupalorg_project_subtitle',
594
595
596
    'nid' => 'nid',
  );
  $handler->display->display_options['defaults']['row_options'] = FALSE;
597
598
599
600
601
  $handler->display->display_options['defaults']['footer'] = FALSE;
  /* Footer: Global: Text area */
  $handler->display->display_options['footer']['area']['id'] = 'area';
  $handler->display->display_options['footer']['area']['table'] = 'views';
  $handler->display->display_options['footer']['area']['field'] = 'area';
602
  $handler->display->display_options['footer']['area']['content'] = '<a href="/u/%1/issue-credits">View all issue credits</a>';
603
604
  $handler->display->display_options['footer']['area']['format'] = '1';
  $handler->display->display_options['footer']['area']['tokenize'] = TRUE;
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* Field: Content: Nid */
  $handler->display->display_options['fields']['nid_1']['id'] = 'nid_1';
  $handler->display->display_options['fields']['nid_1']['table'] = 'node';
  $handler->display->display_options['fields']['nid_1']['field'] = 'nid';
  $handler->display->display_options['fields']['nid_1']['relationship'] = 'field_project_target_id';
  $handler->display->display_options['fields']['nid_1']['label'] = '';
  $handler->display->display_options['fields']['nid_1']['exclude'] = TRUE;
  $handler->display->display_options['fields']['nid_1']['element_label_colon'] = FALSE;
  /* Field: Content: Title */
  $handler->display->display_options['fields']['title_1']['id'] = 'title_1';
  $handler->display->display_options['fields']['title_1']['table'] = 'node';
  $handler->display->display_options['fields']['title_1']['field'] = 'title';
  $handler->display->display_options['fields']['title_1']['relationship'] = 'field_project_target_id';
  $handler->display->display_options['fields']['title_1']['label'] = '';
620
  $handler->display->display_options['fields']['title_1']['exclude'] = TRUE;
621
  $handler->display->display_options['fields']['title_1']['alter']['make_link'] = TRUE;
622
  $handler->display->display_options['fields']['title_1']['alter']['path'] = 'node/[nid_1]';
623
624
  $handler->display->display_options['fields']['title_1']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['title_1']['link_to_node'] = FALSE;
625
626
627
628
629
630
631
632
633
634
  /* Field: Content: Project subtitle */
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['id'] = 'drupalorg_project_subtitle';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['table'] = 'views_entity_node';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['field'] = 'drupalorg_project_subtitle';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['relationship'] = 'field_project_target_id';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['label'] = '';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['alter']['text'] = '[title_1] [drupalorg_project_subtitle],';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['empty'] = '[title_1],';
635
636
637
638
639
640
  /* Field: COUNT(DISTINCT Content: Nid) */
  $handler->display->display_options['fields']['nid']['id'] = 'nid';
  $handler->display->display_options['fields']['nid']['table'] = 'node';
  $handler->display->display_options['fields']['nid']['field'] = 'nid';
  $handler->display->display_options['fields']['nid']['group_type'] = 'count_distinct';
  $handler->display->display_options['fields']['nid']['label'] = '';
641
642
  $handler->display->display_options['fields']['nid']['alter']['make_link'] = TRUE;
  $handler->display->display_options['fields']['nid']['alter']['path'] = 'u/%1/issue-credits/[nid_1]';
643
  $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
644
  $handler->display->display_options['fields']['nid']['separator'] = '';
645
646
647
  $handler->display->display_options['fields']['nid']['format_plural'] = TRUE;
  $handler->display->display_options['fields']['nid']['format_plural_singular'] = '1 issue';
  $handler->display->display_options['fields']['nid']['format_plural_plural'] = '@count issues';
648
649
650
651
652
653
654
655
656
657
658
659
660
  $handler->display->display_options['defaults']['arguments'] = FALSE;
  /* Contextual filter: Comment: Author uid */
  $handler->display->display_options['arguments']['uid']['id'] = 'uid';
  $handler->display->display_options['arguments']['uid']['table'] = 'comment';
  $handler->display->display_options['arguments']['uid']['field'] = 'uid';
  $handler->display->display_options['arguments']['uid']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
  $handler->display->display_options['arguments']['uid']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
  $handler->display->display_options['arguments']['uid']['specify_validation'] = TRUE;
  $handler->display->display_options['arguments']['uid']['validate']['type'] = 'user';
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* 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_issue' => 'project_issue',
  );
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Comment: Approved */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'comment';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 1;
685
686
687
688
689
690
691
692
693
  /* Filter criterion: Content: Status (field_issue_status) */
  $handler->display->display_options['filters']['field_issue_status_value']['id'] = 'field_issue_status_value';
  $handler->display->display_options['filters']['field_issue_status_value']['table'] = 'field_data_field_issue_status';
  $handler->display->display_options['filters']['field_issue_status_value']['field'] = 'field_issue_status_value';
  $handler->display->display_options['filters']['field_issue_status_value']['value'] = array(
    2 => '2',
    7 => '7',
  );
  $handler->display->display_options['filters']['field_issue_status_value']['group'] = 1;
694

695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
  /* Display: User recent page */
  $handler = $view->new_display('page', 'User recent page', 'user_recent_page');
  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  $handler->display->display_options['style_options']['row_class_special'] = FALSE;
  $handler->display->display_options['style_options']['wrapper_class'] = '';
  $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(
    'title' => 'title',
    'changed' => 'changed',
  );
  $handler->display->display_options['row_options']['separator'] = 'updated';
  $handler->display->display_options['defaults']['row_options'] = FALSE;
  $handler->display->display_options['defaults']['header'] = FALSE;
  /* Header: Global: Text area */
  $handler->display->display_options['header']['area']['id'] = 'area';
  $handler->display->display_options['header']['area']['table'] = 'views';
  $handler->display->display_options['header']['area']['field'] = 'area';
716
  $handler->display->display_options['header']['area']['content'] = '◀︎ [uid]';
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
  $handler->display->display_options['header']['area']['format'] = '1';
  $handler->display->display_options['header']['area']['tokenize'] = TRUE;
  $handler->display->display_options['defaults']['relationships'] = FALSE;
  /* Relationship: Entity Reference: Referenced Entity */
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['id'] = 'field_issue_credit_target_id';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['table'] = 'field_data_field_issue_credit';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['field'] = 'field_issue_credit_target_id';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['required'] = TRUE;
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* 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']['element_label_colon'] = FALSE;
  /* Field: Content: Updated date */
  $handler->display->display_options['fields']['changed']['id'] = 'changed';
  $handler->display->display_options['fields']['changed']['table'] = 'node';
  $handler->display->display_options['fields']['changed']['field'] = 'changed';
  $handler->display->display_options['fields']['changed']['label'] = '';
  $handler->display->display_options['fields']['changed']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['changed']['date_format'] = 'today time ago';
  $handler->display->display_options['fields']['changed']['second_date_format'] = 'medium';
  /* Field: Comment: Author uid */
  $handler->display->display_options['fields']['uid']['id'] = 'uid';
  $handler->display->display_options['fields']['uid']['table'] = 'comment';
  $handler->display->display_options['fields']['uid']['field'] = 'uid';
  $handler->display->display_options['fields']['uid']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['fields']['uid']['label'] = '';
  $handler->display->display_options['fields']['uid']['exclude'] = TRUE;
747
748
749
750
  $handler->display->display_options['fields']['uid']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['uid']['alter']['text'] = 'Back to %1’s profile';
  $handler->display->display_options['fields']['uid']['alter']['make_link'] = TRUE;
  $handler->display->display_options['fields']['uid']['alter']['path'] = 'user/[uid]';
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
  $handler->display->display_options['fields']['uid']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['uid']['link_to_user'] = FALSE;
  $handler->display->display_options['defaults']['arguments'] = FALSE;
  /* Contextual filter: Comment: Author uid */
  $handler->display->display_options['arguments']['uid']['id'] = 'uid';
  $handler->display->display_options['arguments']['uid']['table'] = 'comment';
  $handler->display->display_options['arguments']['uid']['field'] = 'uid';
  $handler->display->display_options['arguments']['uid']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
  $handler->display->display_options['arguments']['uid']['exception']['value'] = '';
  $handler->display->display_options['arguments']['uid']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
  $handler->display->display_options['arguments']['uid']['specify_validation'] = TRUE;
  $handler->display->display_options['arguments']['uid']['validate']['type'] = 'user';
  $handler->display->display_options['arguments']['uid']['validate_options']['type'] = 'name';
Neil Drumm's avatar
Neil Drumm committed
768
  /* Contextual filter: Field: Project (field_project) */
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
  $handler->display->display_options['arguments']['field_project_target_id']['id'] = 'field_project_target_id';
  $handler->display->display_options['arguments']['field_project_target_id']['table'] = 'field_data_field_project';
  $handler->display->display_options['arguments']['field_project_target_id']['field'] = 'field_project_target_id';
  $handler->display->display_options['arguments']['field_project_target_id']['default_action'] = 'not found';
  $handler->display->display_options['arguments']['field_project_target_id']['title_enable'] = TRUE;
  $handler->display->display_options['arguments']['field_project_target_id']['title'] = '%2 issues credited to %1';
  $handler->display->display_options['arguments']['field_project_target_id']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['field_project_target_id']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['field_project_target_id']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['field_project_target_id']['summary_options']['items_per_page'] = '25';
  $handler->display->display_options['arguments']['field_project_target_id']['specify_validation'] = TRUE;
  $handler->display->display_options['arguments']['field_project_target_id']['validate']['type'] = 'project_nid';
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* 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_issue' => 'project_issue',
  );
797
  $handler->display->display_options['filters']['type']['group'] = 1;
798
799
800
801
802
803
  /* Filter criterion: Comment: Approved */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'comment';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
804
  $handler->display->display_options['filters']['status_1']['group'] = 1;
805
806
807
808
809
810
811
812
  /* Filter criterion: Content: Status (field_issue_status) */
  $handler->display->display_options['filters']['field_issue_status_value']['id'] = 'field_issue_status_value';
  $handler->display->display_options['filters']['field_issue_status_value']['table'] = 'field_data_field_issue_status';
  $handler->display->display_options['filters']['field_issue_status_value']['field'] = 'field_issue_status_value';
  $handler->display->display_options['filters']['field_issue_status_value']['value'] = array(
    2 => '2',
    7 => '7',
  );
813
  $handler->display->display_options['filters']['field_issue_status_value']['group'] = 1;
814
815
  $handler->display->display_options['path'] = 'u/%/issue-credits/%';

816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
  /* Display: User issue credit page */
  $handler = $view->new_display('page', 'User issue credit page', 'page_1');
  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
  $handler->display->display_options['style_plugin'] = 'list';
  $handler->display->display_options['style_options']['grouping'] = array(
    0 => array(
      'field' => 'field_project_machine_name',
      'rendered' => 0,
      'rendered_strip' => 0,
    ),
  );
  $handler->display->display_options['style_options']['default_row_class'] = FALSE;
  $handler->display->display_options['style_options']['row_class_special'] = FALSE;
  $handler->display->display_options['style_options']['wrapper_class'] = '';
  $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(
    'title' => 'title',
    'changed' => 'changed',
  );
  $handler->display->display_options['row_options']['separator'] = 'updated';
  $handler->display->display_options['defaults']['row_options'] = FALSE;
  $handler->display->display_options['defaults']['header'] = FALSE;
  /* Header: Global: Text area */
  $handler->display->display_options['header']['area']['id'] = 'area';
  $handler->display->display_options['header']['area']['table'] = 'views';
  $handler->display->display_options['header']['area']['field'] = 'area';
844
  $handler->display->display_options['header']['area']['content'] = '◀︎ [uid]';
845
846
  $handler->display->display_options['header']['area']['format'] = '1';
  $handler->display->display_options['header']['area']['tokenize'] = TRUE;
847
848
849
850
  /* Header: Global: Result summary */
  $handler->display->display_options['header']['result']['id'] = 'result';
  $handler->display->display_options['header']['result']['table'] = 'views';
  $handler->display->display_options['header']['result']['field'] = 'result';
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
  $handler->display->display_options['defaults']['relationships'] = FALSE;
  /* Relationship: Entity Reference: Referenced Entity */
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['id'] = 'field_issue_credit_target_id';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['table'] = 'field_data_field_issue_credit';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['field'] = 'field_issue_credit_target_id';
  $handler->display->display_options['relationships']['field_issue_credit_target_id']['required'] = TRUE;
  /* Relationship: Entity Reference: Referenced Entity */
  $handler->display->display_options['relationships']['field_project_target_id']['id'] = 'field_project_target_id';
  $handler->display->display_options['relationships']['field_project_target_id']['table'] = 'field_data_field_project';
  $handler->display->display_options['relationships']['field_project_target_id']['field'] = 'field_project_target_id';
  $handler->display->display_options['defaults']['fields'] = FALSE;
  /* 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']['element_label_colon'] = FALSE;
  /* Field: Content: Updated date */
  $handler->display->display_options['fields']['changed']['id'] = 'changed';
  $handler->display->display_options['fields']['changed']['table'] = 'node';
  $handler->display->display_options['fields']['changed']['field'] = 'changed';
  $handler->display->display_options['fields']['changed']['label'] = '';
  $handler->display->display_options['fields']['changed']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['changed']['date_format'] = 'today time ago';
  $handler->display->display_options['fields']['changed']['second_date_format'] = 'medium';
  /* Field: Comment: Author uid */
  $handler->display->display_options['fields']['uid']['id'] = 'uid';
  $handler->display->display_options['fields']['uid']['table'] = 'comment';
  $handler->display->display_options['fields']['uid']['field'] = 'uid';
  $handler->display->display_options['fields']['uid']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['fields']['uid']['label'] = '';
  $handler->display->display_options['fields']['uid']['exclude'] = TRUE;
883
884
885
886
  $handler->display->display_options['fields']['uid']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['uid']['alter']['text'] = 'Back to %1’s profile';
  $handler->display->display_options['fields']['uid']['alter']['make_link'] = TRUE;
  $handler->display->display_options['fields']['uid']['alter']['path'] = 'user/[uid]';
887
888
  $handler->display->display_options['fields']['uid']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['uid']['link_to_user'] = FALSE;
889
890
891
892
893
894
895
896
  /* Field: Content: Nid */
  $handler->display->display_options['fields']['nid']['id'] = 'nid';
  $handler->display->display_options['fields']['nid']['table'] = 'node';
  $handler->display->display_options['fields']['nid']['field'] = 'nid';
  $handler->display->display_options['fields']['nid']['relationship'] = 'field_project_target_id';
  $handler->display->display_options['fields']['nid']['label'] = '';
  $handler->display->display_options['fields']['nid']['exclude'] = TRUE;
  $handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
897
898
899
900
901
902
903
904
905
906
  /* Field: Content: Project subtitle */
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['id'] = 'drupalorg_project_subtitle';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['table'] = 'views_entity_node';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['field'] = 'drupalorg_project_subtitle';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['relationship'] = 'field_project_target_id';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['label'] = '';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['exclude'] = TRUE;
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['alter']['text'] = '<small>[drupalorg_project_subtitle]</small>';
  $handler->display->display_options['fields']['drupalorg_project_subtitle']['element_label_colon'] = FALSE;
907
908
909
910
911
912
913
914
915
  /* Field: Content: Short name */
  $handler->display->display_options['fields']['field_project_machine_name']['id'] = 'field_project_machine_name';
  $handler->display->display_options['fields']['field_project_machine_name']['table'] = 'field_data_field_project_machine_name';
  $handler->display->display_options['fields']['field_project_machine_name']['field'] = 'field_project_machine_name';
  $handler->display->display_options['fields']['field_project_machine_name']['relationship'] = 'field_project_target_id';
  $handler->display->display_options['fields']['field_project_machine_name']['label'] = '';
  $handler->display->display_options['fields']['field_project_machine_name']['exclude'] = TRUE;
  $handler->display->display_options['fields']['field_project_machine_name']['alter']['alter_text'] = TRUE;
  $handler->display->display_options['fields']['field_project_machine_name']['alter']['make_link'] = TRUE;
916
  $handler->display->display_options['fields']['field_project_machine_name']['alter']['path'] = 'node/[nid]';
917
  $handler->display->display_options['fields']['field_project_machine_name']['alter']['suffix'] = ' [drupalorg_project_subtitle]';
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
  $handler->display->display_options['fields']['field_project_machine_name']['element_label_colon'] = FALSE;
  $handler->display->display_options['fields']['field_project_machine_name']['group_columns'] = array(
    'value' => 'value',
  );
  $handler->display->display_options['defaults']['sorts'] = FALSE;
  /* Sort criterion: Content: Short name (field_project_machine_name) */
  $handler->display->display_options['sorts']['field_project_machine_name_value']['id'] = 'field_project_machine_name_value';
  $handler->display->display_options['sorts']['field_project_machine_name_value']['table'] = 'field_data_field_project_machine_name';
  $handler->display->display_options['sorts']['field_project_machine_name_value']['field'] = 'field_project_machine_name_value';
  $handler->display->display_options['sorts']['field_project_machine_name_value']['relationship'] = 'field_project_target_id';
  /* Sort criterion: MAX(Content: Last status change (field_issue_last_status_change)) */
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['id'] = 'field_issue_last_status_change_value';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['table'] = 'field_data_field_issue_last_status_change';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['field'] = 'field_issue_last_status_change_value';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['group_type'] = 'max';
  $handler->display->display_options['sorts']['field_issue_last_status_change_value']['order'] = 'DESC';
  $handler->display->display_options['defaults']['arguments'] = FALSE;
  /* Contextual filter: Comment: Author uid */
  $handler->display->display_options['arguments']['uid']['id'] = 'uid';
  $handler->display->display_options['arguments']['uid']['table'] = 'comment';
  $handler->display->display_options['arguments']['uid']['field'] = 'uid';
  $handler->display->display_options['arguments']['uid']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['arguments']['uid']['default_action'] = 'not found';
  $handler->display->display_options['arguments']['uid']['exception']['value'] = '';
  $handler->display->display_options['arguments']['uid']['default_argument_type'] = 'fixed';
  $handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
  $handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
  $handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
  $handler->display->display_options['arguments']['uid']['specify_validation'] = TRUE;
  $handler->display->display_options['arguments']['uid']['validate']['type'] = 'user';
  $handler->display->display_options['arguments']['uid']['validate_options']['type'] = 'name';
  $handler->display->display_options['defaults']['filter_groups'] = FALSE;
  $handler->display->display_options['defaults']['filters'] = FALSE;
  /* 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_issue' => 'project_issue',
  );
  $handler->display->display_options['filters']['type']['group'] = 1;
  /* Filter criterion: Comment: Approved */
  $handler->display->display_options['filters']['status_1']['id'] = 'status_1';
  $handler->display->display_options['filters']['status_1']['table'] = 'comment';
  $handler->display->display_options['filters']['status_1']['field'] = 'status';
  $handler->display->display_options['filters']['status_1']['relationship'] = 'field_issue_credit_target_id';
  $handler->display->display_options['filters']['status_1']['value'] = '1';
  $handler->display->display_options['filters']['status_1']['group'] = 1;
973
974
975
976
  /* Filter criterion: Content: Last status change (field_issue_last_status_change) */
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['id'] = 'field_issue_last_status_change_value';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['table'] = 'field_data_field_issue_last_status_change';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['field'] = 'field_issue_last_status_change_value';
977
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['group'] = 1;
978
979
980
981
982
983
984
985
986
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['exposed'] = TRUE;
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['operator_id'] = 'field_issue_last_status_change_value_op';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['label'] = 'Last status change (field_issue_last_status_change)';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['operator'] = 'field_issue_last_status_change_value_op';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['expose']['identifier'] = 'field_issue_last_status_change_value';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['is_grouped'] = TRUE;
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['group_info']['label'] = 'Date range';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['group_info']['identifier'] = 'field_issue_last_status_change_value';
  $handler->display->display_options['filters']['field_issue_last_status_change_value']['group_info']['group_items'] = array(
987
988
989
990
    1 => array(
      'title' => 'Past 12 months',
      'operator' => '>=',
      'value' => array(
991
        'type' => 'offset',
992
993
994
995
996
        'value' => '-1 year',
        'min' => '',
        'max' => '',
      ),
    ),
997
998
999
1000
    2 => array(
      'title' => 'Past 90 days',
      'operator' => '>=',
      'value' => array(
For faster browsing, not all history is shown. View entire blame