-
Notifications
You must be signed in to change notification settings - Fork 2
/
inventory_views.views_default.inc
1346 lines (1329 loc) · 91.6 KB
/
inventory_views.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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
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
360
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
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
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
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
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
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
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
844
845
846
847
848
849
850
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
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
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
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
* @file
* inventory_views.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function inventory_views_views_default_views() {
$export = array();
$view = new view();
$view->name = 'client_list';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'civicrm_contact';
$view->human_name = 'Client List';
$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'] = 'Client List';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'role';
$handler->display->display_options['access']['role'] = array(
3 => '3',
);
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '100';
$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['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'id' => 'id',
'nick_name' => 'nick_name',
'current_employer' => 'current_employer',
);
$handler->display->display_options['style_options']['default'] = 'nick_name';
$handler->display->display_options['style_options']['info'] = array(
'id' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nick_name' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'current_employer' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* Field: CiviCRM Contacts: Contact ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
$handler->display->display_options['fields']['id']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['id']['separator'] = '';
/* Field: CiviCRM Contacts: Nickname */
$handler->display->display_options['fields']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['label'] = 'Short Name';
$handler->display->display_options['fields']['nick_name']['element_label_colon'] = FALSE;
/* Field: CiviCRM Contacts: Organization Name */
$handler->display->display_options['fields']['current_employer']['id'] = 'current_employer';
$handler->display->display_options['fields']['current_employer']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['current_employer']['field'] = 'current_employer';
$handler->display->display_options['fields']['current_employer']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['current_employer']['alter']['path'] = '/civicrm/contact/view?reset=1&cid=[id]';
$handler->display->display_options['fields']['current_employer']['element_label_colon'] = FALSE;
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = 'Redmine';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<a href="https://hq.megaphonetech.com/projects/[nick_name]/issues">Redmine</a>';
/* Sort criterion: CiviCRM Contacts: Nickname */
$handler->display->display_options['sorts']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['sorts']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['sorts']['nick_name']['field'] = 'nick_name';
/* Filter criterion: CiviCRM Groups: Group ID */
$handler->display->display_options['filters']['id']['id'] = 'id';
$handler->display->display_options['filters']['id']['table'] = 'civicrm_group';
$handler->display->display_options['filters']['id']['field'] = 'id';
$handler->display->display_options['filters']['id']['value']['value'] = '2';
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'client-list';
/* Display: Entity Reference */
$handler = $view->new_display('entityreference', 'Entity Reference', 'entityreference_1');
$handler->display->display_options['defaults']['title'] = FALSE;
$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['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'entityreference_style';
$handler->display->display_options['style_options']['search_fields'] = array(
'nick_name' => 'nick_name',
'current_employer' => 0,
'nothing' => 0,
);
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'entityreference_fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: CiviCRM Contacts: Nickname */
$handler->display->display_options['fields']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['label'] = '';
$handler->display->display_options['fields']['nick_name']['element_label_colon'] = FALSE;
/* Field: CiviCRM Contacts: Organization Name */
$handler->display->display_options['fields']['current_employer']['id'] = 'current_employer';
$handler->display->display_options['fields']['current_employer']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['current_employer']['field'] = 'current_employer';
$handler->display->display_options['fields']['current_employer']['label'] = '';
$handler->display->display_options['fields']['current_employer']['element_label_colon'] = FALSE;
$export['client_list'] = $view;
$view = new view();
$view->name = 'contract_list';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Contract List';
$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'] = 'Contract List';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
/* Header: Global: Unfiltered text */
$handler->display->display_options['header']['area_text_custom']['id'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['table'] = 'views';
$handler->display->display_options['header']['area_text_custom']['field'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['label'] = '"New Contract" link';
$handler->display->display_options['header']['area_text_custom']['empty'] = TRUE;
$handler->display->display_options['header']['area_text_custom']['content'] = '<a href="/node/add/contract?destination=contract-list">New Contract</a>';
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_client_target_id']['id'] = 'field_client_target_id';
$handler->display->display_options['relationships']['field_client_target_id']['table'] = 'field_data_field_client';
$handler->display->display_options['relationships']['field_client_target_id']['field'] = 'field_client_target_id';
/* Field: CiviCRM Contacts: Contact ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
$handler->display->display_options['fields']['id']['separator'] = '';
/* Field: CiviCRM Contacts: Nickname */
$handler->display->display_options['fields']['nick_name_1']['id'] = 'nick_name_1';
$handler->display->display_options['fields']['nick_name_1']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['nick_name_1']['field'] = 'nick_name';
$handler->display->display_options['fields']['nick_name_1']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['nick_name_1']['label'] = 'Nickname-no link';
$handler->display->display_options['fields']['nick_name_1']['exclude'] = TRUE;
/* Field: CiviCRM Contacts: Nickname */
$handler->display->display_options['fields']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['nick_name']['label'] = 'Client';
$handler->display->display_options['fields']['nick_name']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['nick_name']['alter']['path'] = '/civicrm/contact/view?reset=1&cid=[id]';
$handler->display->display_options['fields']['nick_name']['element_label_colon'] = 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'] = 'Contract';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* 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']['label'] = '';
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
/* Field: Content: Signed contract */
$handler->display->display_options['fields']['field_signed_contract']['id'] = 'field_signed_contract';
$handler->display->display_options['fields']['field_signed_contract']['table'] = 'field_data_field_signed_contract';
$handler->display->display_options['fields']['field_signed_contract']['field'] = 'field_signed_contract';
$handler->display->display_options['fields']['field_signed_contract']['label'] = 'Link to contract';
$handler->display->display_options['fields']['field_signed_contract']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_signed_contract']['click_sort_column'] = 'fid';
/* Field: Content: Contract Type */
$handler->display->display_options['fields']['field_contract_type']['id'] = 'field_contract_type';
$handler->display->display_options['fields']['field_contract_type']['table'] = 'field_data_field_contract_type';
$handler->display->display_options['fields']['field_contract_type']['field'] = 'field_contract_type';
$handler->display->display_options['fields']['field_contract_type']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_contract_type']['delta_offset'] = '0';
/* Field: Content: Date */
$handler->display->display_options['fields']['field_date']['id'] = 'field_date';
$handler->display->display_options['fields']['field_date']['table'] = 'field_data_field_date';
$handler->display->display_options['fields']['field_date']['field'] = 'field_date';
$handler->display->display_options['fields']['field_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_date']['settings'] = array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'show_remaining_days' => 0,
);
/* Field: Content: Notes */
$handler->display->display_options['fields']['field_notes']['id'] = 'field_notes';
$handler->display->display_options['fields']['field_notes']['table'] = 'field_data_field_notes';
$handler->display->display_options['fields']['field_notes']['field'] = 'field_notes';
$handler->display->display_options['fields']['field_notes']['element_label_colon'] = FALSE;
/* Field: Content: Version */
$handler->display->display_options['fields']['field_version']['id'] = 'field_version';
$handler->display->display_options['fields']['field_version']['table'] = 'field_data_field_version';
$handler->display->display_options['fields']['field_version']['field'] = 'field_version';
$handler->display->display_options['fields']['field_version']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_version']['settings'] = array(
'thousand_separator' => '',
'decimal_separator' => '.',
'scale' => '1',
'prefix_suffix' => 1,
);
/* Field: Content: Edit link */
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['label'] = '';
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
/* Field: Content: Delete link */
$handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
$handler->display->display_options['fields']['delete_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
$handler->display->display_options['fields']['delete_node']['label'] = '';
$handler->display->display_options['fields']['delete_node']['element_label_colon'] = FALSE;
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = 'Links';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<a href="/server-list?nick_name=[nick_name_1]">Servers</a>
<a href="/website-list?nick_name=[nick_name_1]">Websites</a> ';
/* Sort criterion: CiviCRM Contacts: Nickname */
$handler->display->display_options['sorts']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['sorts']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['sorts']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['sorts']['nick_name']['relationship'] = 'field_client_target_id';
/* Filter criterion: CiviCRM Contacts: Nickname */
$handler->display->display_options['filters']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['filters']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['relationship'] = 'field_client_target_id';
$handler->display->display_options['filters']['nick_name']['group'] = 1;
$handler->display->display_options['filters']['nick_name']['exposed'] = TRUE;
$handler->display->display_options['filters']['nick_name']['expose']['operator_id'] = 'nick_name_op';
$handler->display->display_options['filters']['nick_name']['expose']['label'] = 'Client';
$handler->display->display_options['filters']['nick_name']['expose']['operator'] = 'nick_name_op';
$handler->display->display_options['filters']['nick_name']['expose']['identifier'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* 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(
'contract' => 'contract',
);
$handler->display->display_options['filters']['type']['group'] = 1;
/* Filter criterion: Content: Active (field_active) */
$handler->display->display_options['filters']['field_active_value']['id'] = 'field_active_value';
$handler->display->display_options['filters']['field_active_value']['table'] = 'field_data_field_active';
$handler->display->display_options['filters']['field_active_value']['field'] = 'field_active_value';
$handler->display->display_options['filters']['field_active_value']['group'] = 1;
$handler->display->display_options['filters']['field_active_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_active_value']['expose']['operator_id'] = 'field_active_value_op';
$handler->display->display_options['filters']['field_active_value']['expose']['label'] = 'Active Contract?';
$handler->display->display_options['filters']['field_active_value']['expose']['operator'] = 'field_active_value_op';
$handler->display->display_options['filters']['field_active_value']['expose']['identifier'] = 'field_active_value';
$handler->display->display_options['filters']['field_active_value']['expose']['remember'] = TRUE;
$handler->display->display_options['filters']['field_active_value']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Filter criterion: Content: Contract Type (field_contract_type) */
$handler->display->display_options['filters']['field_contract_type_value']['id'] = 'field_contract_type_value';
$handler->display->display_options['filters']['field_contract_type_value']['table'] = 'field_data_field_contract_type';
$handler->display->display_options['filters']['field_contract_type_value']['field'] = 'field_contract_type_value';
$handler->display->display_options['filters']['field_contract_type_value']['group'] = 1;
$handler->display->display_options['filters']['field_contract_type_value']['exposed'] = TRUE;
$handler->display->display_options['filters']['field_contract_type_value']['expose']['operator_id'] = 'field_contract_type_value_op';
$handler->display->display_options['filters']['field_contract_type_value']['expose']['label'] = 'Contract Type(s)';
$handler->display->display_options['filters']['field_contract_type_value']['expose']['operator'] = 'field_contract_type_value_op';
$handler->display->display_options['filters']['field_contract_type_value']['expose']['identifier'] = 'field_contract_type_value';
$handler->display->display_options['filters']['field_contract_type_value']['expose']['remember'] = TRUE;
$handler->display->display_options['filters']['field_contract_type_value']['expose']['multiple'] = TRUE;
$handler->display->display_options['filters']['field_contract_type_value']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Filter criterion: Content: Title */
$handler->display->display_options['filters']['title']['id'] = 'title';
$handler->display->display_options['filters']['title']['table'] = 'node';
$handler->display->display_options['filters']['title']['field'] = 'title';
$handler->display->display_options['filters']['title']['exposed'] = TRUE;
$handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['label'] = 'Contract';
$handler->display->display_options['filters']['title']['expose']['description'] = 'For easily switching between different lsits';
$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
$handler->display->display_options['filters']['title']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'contract-list';
$export['contract_list'] = $view;
$view = new view();
$view->name = 'server_list';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Server List';
$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'] = 'Server List';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'nid' => 'nid',
'id' => 'id',
'nick_name' => 'nick_name',
'title' => 'title',
'field_contract' => 'field_contract',
'field_notes' => 'field_notes',
'field_operating_system' => 'field_operating_system',
'field_username' => 'field_username',
'field_ssh_port' => 'field_ssh_port',
'field_rsa_key_fingerprint' => 'field_rsa_key_fingerprint',
'field_hosting_company' => 'field_hosting_company',
'field_backup_method' => 'field_backup_method',
'edit_node' => 'edit_node',
'delete_node' => 'delete_node',
'nothing' => 'nothing',
'field_ansible' => 'field_ansible',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'nid' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'id' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nick_name' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'title' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_contract' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_notes' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_operating_system' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_username' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_ssh_port' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_rsa_key_fingerprint' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_hosting_company' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_backup_method' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'edit_node' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'delete_node' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nothing' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_ansible' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* Header: Global: Unfiltered text */
$handler->display->display_options['header']['area_text_custom']['id'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['table'] = 'views';
$handler->display->display_options['header']['area_text_custom']['field'] = 'area_text_custom';
$handler->display->display_options['header']['area_text_custom']['label'] = 'Server List Header';
$handler->display->display_options['header']['area_text_custom']['empty'] = TRUE;
$handler->display->display_options['header']['area_text_custom']['content'] = '<a href="/node/add/server?destination=server-list">New Server</a>';
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_client_target_id']['id'] = 'field_client_target_id';
$handler->display->display_options['relationships']['field_client_target_id']['table'] = 'field_data_field_client';
$handler->display->display_options['relationships']['field_client_target_id']['field'] = 'field_client_target_id';
/* 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']['exclude'] = TRUE;
/* Field: CiviCRM Contacts: Contact ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
/* Field: CiviCRM Contacts: Nickname */
$handler->display->display_options['fields']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['nick_name']['label'] = 'Client';
$handler->display->display_options['fields']['nick_name']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['nick_name']['alter']['path'] = '/civicrm/contact/view?reset=1&cid=[id]';
$handler->display->display_options['fields']['nick_name']['element_label_colon'] = 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'] = 'FQDN';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: Contract */
$handler->display->display_options['fields']['field_contract']['id'] = 'field_contract';
$handler->display->display_options['fields']['field_contract']['table'] = 'field_data_field_contract';
$handler->display->display_options['fields']['field_contract']['field'] = 'field_contract';
$handler->display->display_options['fields']['field_contract']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_contract']['alter']['path'] = '/contract-list?&title=[field_contract]';
$handler->display->display_options['fields']['field_contract']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_contract']['type'] = 'node_reference_plain';
/* Field: Content: Notes */
$handler->display->display_options['fields']['field_notes']['id'] = 'field_notes';
$handler->display->display_options['fields']['field_notes']['table'] = 'field_data_field_notes';
$handler->display->display_options['fields']['field_notes']['field'] = 'field_notes';
$handler->display->display_options['fields']['field_notes']['element_label_colon'] = FALSE;
/* Field: Content: Operating System */
$handler->display->display_options['fields']['field_operating_system']['id'] = 'field_operating_system';
$handler->display->display_options['fields']['field_operating_system']['table'] = 'field_data_field_operating_system';
$handler->display->display_options['fields']['field_operating_system']['field'] = 'field_operating_system';
$handler->display->display_options['fields']['field_operating_system']['element_label_colon'] = FALSE;
/* Field: Content: Username */
$handler->display->display_options['fields']['field_username']['id'] = 'field_username';
$handler->display->display_options['fields']['field_username']['table'] = 'field_data_field_username';
$handler->display->display_options['fields']['field_username']['field'] = 'field_username';
$handler->display->display_options['fields']['field_username']['element_label_colon'] = FALSE;
/* Field: Content: SSH port */
$handler->display->display_options['fields']['field_ssh_port']['id'] = 'field_ssh_port';
$handler->display->display_options['fields']['field_ssh_port']['table'] = 'field_data_field_ssh_port';
$handler->display->display_options['fields']['field_ssh_port']['field'] = 'field_ssh_port';
$handler->display->display_options['fields']['field_ssh_port']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ssh_port']['settings'] = array(
'thousand_separator' => '',
'prefix_suffix' => 1,
);
/* Field: Content: Hosting Company */
$handler->display->display_options['fields']['field_hosting_company']['id'] = 'field_hosting_company';
$handler->display->display_options['fields']['field_hosting_company']['table'] = 'field_data_field_hosting_company';
$handler->display->display_options['fields']['field_hosting_company']['field'] = 'field_hosting_company';
$handler->display->display_options['fields']['field_hosting_company']['element_label_colon'] = FALSE;
/* Field: Content: Backup Method */
$handler->display->display_options['fields']['field_backup_method']['id'] = 'field_backup_method';
$handler->display->display_options['fields']['field_backup_method']['table'] = 'field_data_field_backup_method';
$handler->display->display_options['fields']['field_backup_method']['field'] = 'field_backup_method';
$handler->display->display_options['fields']['field_backup_method']['element_label_colon'] = FALSE;
/* Field: Content: Edit link */
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
$handler->display->display_options['fields']['edit_node']['label'] = '';
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
/* Field: Content: Delete link */
$handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
$handler->display->display_options['fields']['delete_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
$handler->display->display_options['fields']['delete_node']['label'] = '';
$handler->display->display_options['fields']['delete_node']['element_label_colon'] = FALSE;
/* Field: Global: Custom text */
$handler->display->display_options['fields']['nothing']['id'] = 'nothing';
$handler->display->display_options['fields']['nothing']['table'] = 'views';
$handler->display->display_options['fields']['nothing']['field'] = 'nothing';
$handler->display->display_options['fields']['nothing']['label'] = 'Links';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<a href="/website-list?field_server_nid=[nid]">Websites</a> ';
/* Field: Content: Ansible */
$handler->display->display_options['fields']['field_ansible']['id'] = 'field_ansible';
$handler->display->display_options['fields']['field_ansible']['table'] = 'field_data_field_ansible';
$handler->display->display_options['fields']['field_ansible']['field'] = 'field_ansible';
/* Field: Content: Ansible Group */
$handler->display->display_options['fields']['field_groups']['id'] = 'field_groups';
$handler->display->display_options['fields']['field_groups']['table'] = 'field_data_field_groups';
$handler->display->display_options['fields']['field_groups']['field'] = 'field_groups';
$handler->display->display_options['fields']['field_groups']['label'] = 'group';
$handler->display->display_options['fields']['field_groups']['type'] = 'taxonomy_term_reference_plain';
/* Sort criterion: CiviCRM Contacts: Nickname */
$handler->display->display_options['sorts']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['sorts']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['sorts']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['sorts']['nick_name']['relationship'] = 'field_client_target_id';
/* Contextual filter: Content: Contract (field_contract) */
$handler->display->display_options['arguments']['field_contract_nid']['id'] = 'field_contract_nid';
$handler->display->display_options['arguments']['field_contract_nid']['table'] = 'field_data_field_contract';
$handler->display->display_options['arguments']['field_contract_nid']['field'] = 'field_contract_nid';
$handler->display->display_options['arguments']['field_contract_nid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['field_contract_nid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['field_contract_nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['field_contract_nid']['summary_options']['items_per_page'] = '25';
/* 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(
'server' => 'server',
);
/* Filter criterion: CiviCRM Contacts: Nickname */
$handler->display->display_options['filters']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['filters']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['relationship'] = 'field_client_target_id';
$handler->display->display_options['filters']['nick_name']['exposed'] = TRUE;
$handler->display->display_options['filters']['nick_name']['expose']['operator_id'] = 'nick_name_op';
$handler->display->display_options['filters']['nick_name']['expose']['label'] = 'Client';
$handler->display->display_options['filters']['nick_name']['expose']['operator'] = 'nick_name_op';
$handler->display->display_options['filters']['nick_name']['expose']['identifier'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Filter criterion: Content: Title */
$handler->display->display_options['filters']['title']['id'] = 'title';
$handler->display->display_options['filters']['title']['table'] = 'node';
$handler->display->display_options['filters']['title']['field'] = 'title';
$handler->display->display_options['filters']['title']['exposed'] = TRUE;
$handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['label'] = 'FQDN';
$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
$handler->display->display_options['filters']['title']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Filter criterion: Content: Active (field_active) */
$handler->display->display_options['filters']['field_active_value']['id'] = 'field_active_value';
$handler->display->display_options['filters']['field_active_value']['table'] = 'field_data_field_active';
$handler->display->display_options['filters']['field_active_value']['field'] = 'field_active_value';
$handler->display->display_options['filters']['field_active_value']['value'] = array(
1 => '1',
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'server-list';
/* Display: Ansible Servers */
$handler = $view->new_display('services', 'Ansible Servers', 'services_1');
$handler->display->display_options['display_description'] = 'A list to output to Ansible for dynamic inventory management';
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: CiviCRM Contacts: Contact ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
/* Field: CiviCRM Contacts: Nickname */
$handler->display->display_options['fields']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['nick_name']['label'] = 'Client';
$handler->display->display_options['fields']['nick_name']['alter']['path'] = '/civicrm/contact/view?reset=1&cid=[id]';
$handler->display->display_options['fields']['nick_name']['element_label_colon'] = 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'] = 'FQDN';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
/* Field: Content: Contract */
$handler->display->display_options['fields']['field_contract']['id'] = 'field_contract';
$handler->display->display_options['fields']['field_contract']['table'] = 'field_data_field_contract';
$handler->display->display_options['fields']['field_contract']['field'] = 'field_contract';
$handler->display->display_options['fields']['field_contract']['alter']['path'] = '/contract-list?&title=[field_contract]';
$handler->display->display_options['fields']['field_contract']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_contract']['type'] = 'node_reference_plain';
$handler->display->display_options['fields']['field_contract']['settings'] = array(
'data_element_key' => '',
'skip_safe' => 0,
'skip_empty_values' => 0,
);
/* Field: Content: Notes */
$handler->display->display_options['fields']['field_notes']['id'] = 'field_notes';
$handler->display->display_options['fields']['field_notes']['table'] = 'field_data_field_notes';
$handler->display->display_options['fields']['field_notes']['field'] = 'field_notes';
$handler->display->display_options['fields']['field_notes']['element_label_colon'] = FALSE;
/* Field: Content: Operating System */
$handler->display->display_options['fields']['field_operating_system']['id'] = 'field_operating_system';
$handler->display->display_options['fields']['field_operating_system']['table'] = 'field_data_field_operating_system';
$handler->display->display_options['fields']['field_operating_system']['field'] = 'field_operating_system';
$handler->display->display_options['fields']['field_operating_system']['element_label_colon'] = FALSE;
/* Field: Content: Username */
$handler->display->display_options['fields']['field_username']['id'] = 'field_username';
$handler->display->display_options['fields']['field_username']['table'] = 'field_data_field_username';
$handler->display->display_options['fields']['field_username']['field'] = 'field_username';
$handler->display->display_options['fields']['field_username']['element_label_colon'] = FALSE;
/* Field: Content: SSH port */
$handler->display->display_options['fields']['field_ssh_port']['id'] = 'field_ssh_port';
$handler->display->display_options['fields']['field_ssh_port']['table'] = 'field_data_field_ssh_port';
$handler->display->display_options['fields']['field_ssh_port']['field'] = 'field_ssh_port';
$handler->display->display_options['fields']['field_ssh_port']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_ssh_port']['settings'] = array(
'thousand_separator' => '',
'prefix_suffix' => 1,
);
/* Field: Content: Hosting Company */
$handler->display->display_options['fields']['field_hosting_company']['id'] = 'field_hosting_company';
$handler->display->display_options['fields']['field_hosting_company']['table'] = 'field_data_field_hosting_company';
$handler->display->display_options['fields']['field_hosting_company']['field'] = 'field_hosting_company';
$handler->display->display_options['fields']['field_hosting_company']['element_label_colon'] = FALSE;
/* Field: Content: Backup Method */
$handler->display->display_options['fields']['field_backup_method']['id'] = 'field_backup_method';
$handler->display->display_options['fields']['field_backup_method']['table'] = 'field_data_field_backup_method';
$handler->display->display_options['fields']['field_backup_method']['field'] = 'field_backup_method';
$handler->display->display_options['fields']['field_backup_method']['element_label_colon'] = FALSE;
/* Field: Content: Ansible Group */
$handler->display->display_options['fields']['field_groups']['id'] = 'field_groups';
$handler->display->display_options['fields']['field_groups']['table'] = 'field_data_field_groups';
$handler->display->display_options['fields']['field_groups']['field'] = 'field_groups';
$handler->display->display_options['fields']['field_groups']['label'] = 'Group';
$handler->display->display_options['fields']['field_groups']['type'] = 'taxonomy_term_reference_plain';
$handler->display->display_options['fields']['field_groups']['delta_offset'] = '0';
/* Field: Content: Ansible User */
$handler->display->display_options['fields']['field_ansible_user']['id'] = 'field_ansible_user';
$handler->display->display_options['fields']['field_ansible_user']['table'] = 'field_data_field_ansible_user';
$handler->display->display_options['fields']['field_ansible_user']['field'] = 'field_ansible_user';
$handler->display->display_options['fields']['field_ansible_user']['label'] = 'Ansible_User';
/* 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';
/* Field: Content: linode_id */
$handler->display->display_options['fields']['field_linode_id']['id'] = 'field_linode_id';
$handler->display->display_options['fields']['field_linode_id']['table'] = 'field_data_field_linode_id';
$handler->display->display_options['fields']['field_linode_id']['field'] = 'field_linode_id';
$handler->display->display_options['fields']['field_linode_id']['settings'] = array(
'thousand_separator' => '',
'prefix_suffix' => 1,
);
/* Field: Content: Linode Plan */
$handler->display->display_options['fields']['field_linode_plan']['id'] = 'field_linode_plan';
$handler->display->display_options['fields']['field_linode_plan']['table'] = 'field_data_field_linode_plan';
$handler->display->display_options['fields']['field_linode_plan']['field'] = 'field_linode_plan';
$handler->display->display_options['fields']['field_linode_plan']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['field_linode_plan']['alter']['text'] = '[field_linode_plan-value]';
/* Field: Content: IPv4 Address */
$handler->display->display_options['fields']['field_ipv4_address']['id'] = 'field_ipv4_address';
$handler->display->display_options['fields']['field_ipv4_address']['table'] = 'field_data_field_ipv4_address';
$handler->display->display_options['fields']['field_ipv4_address']['field'] = 'field_ipv4_address';
$handler->display->display_options['fields']['field_ipv4_address']['label'] = 'ansible_host';
$handler->display->display_options['fields']['field_ipv4_address']['click_sort_column'] = 'start';
$handler->display->display_options['fields']['field_ipv4_address']['type'] = 'field_ipaddress_shorthand';
/* Field: Content: hostname */
$handler->display->display_options['fields']['field_hostname']['id'] = 'field_hostname';
$handler->display->display_options['fields']['field_hostname']['table'] = 'field_data_field_hostname';
$handler->display->display_options['fields']['field_hostname']['field'] = 'field_hostname';
/* Field: Content: timezone */
$handler->display->display_options['fields']['field_timezone']['id'] = 'field_timezone';
$handler->display->display_options['fields']['field_timezone']['table'] = 'field_data_field_timezone';
$handler->display->display_options['fields']['field_timezone']['field'] = 'field_timezone';
/* Field: Content: Ansible User */
$handler->display->display_options['fields']['field_ansible_user_1']['id'] = 'field_ansible_user_1';
$handler->display->display_options['fields']['field_ansible_user_1']['table'] = 'field_data_field_ansible_user';
$handler->display->display_options['fields']['field_ansible_user_1']['field'] = 'field_ansible_user';
$handler->display->display_options['fields']['field_ansible_user_1']['label'] = 'ansible_user_2';
/* Field: Content: Incoming Email */
$handler->display->display_options['fields']['field_incoming_email']['id'] = 'field_incoming_email';
$handler->display->display_options['fields']['field_incoming_email']['table'] = 'field_data_field_incoming_email';
$handler->display->display_options['fields']['field_incoming_email']['field'] = 'field_incoming_email';
/* Field: Content: SSH Keys */
$handler->display->display_options['fields']['field_ssh_keys']['id'] = 'field_ssh_keys';
$handler->display->display_options['fields']['field_ssh_keys']['table'] = 'field_data_field_ssh_keys';
$handler->display->display_options['fields']['field_ssh_keys']['field'] = 'field_ssh_keys';
$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(
'server' => 'server',
);
/* Filter criterion: CiviCRM Contacts: Nickname */
$handler->display->display_options['filters']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['filters']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['relationship'] = 'field_client_target_id';
$handler->display->display_options['filters']['nick_name']['exposed'] = TRUE;
$handler->display->display_options['filters']['nick_name']['expose']['operator_id'] = 'nick_name_op';
$handler->display->display_options['filters']['nick_name']['expose']['label'] = 'Client';
$handler->display->display_options['filters']['nick_name']['expose']['operator'] = 'nick_name_op';
$handler->display->display_options['filters']['nick_name']['expose']['identifier'] = 'nick_name';
$handler->display->display_options['filters']['nick_name']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Filter criterion: Content: Title */
$handler->display->display_options['filters']['title']['id'] = 'title';
$handler->display->display_options['filters']['title']['table'] = 'node';
$handler->display->display_options['filters']['title']['field'] = 'title';
$handler->display->display_options['filters']['title']['exposed'] = TRUE;
$handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['label'] = 'FQDN';
$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
$handler->display->display_options['filters']['title']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
3 => 0,
);
/* Filter criterion: Content: Ansible (field_ansible) */
$handler->display->display_options['filters']['field_ansible_value']['id'] = 'field_ansible_value';
$handler->display->display_options['filters']['field_ansible_value']['table'] = 'field_data_field_ansible';
$handler->display->display_options['filters']['field_ansible_value']['field'] = 'field_ansible_value';
$handler->display->display_options['filters']['field_ansible_value']['value'] = array(
1 => '1',
);
$handler->display->display_options['path'] = 'servers';
$export['server_list'] = $view;
$view = new view();
$view->name = 'website_list';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Website List';
$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'] = 'Website List';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
/* 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']['label'] = 'Website List Header';
$handler->display->display_options['header']['area']['empty'] = TRUE;
$handler->display->display_options['header']['area']['content'] = '<a href="/node/add/website?destination=website-list">New Website</a>';
$handler->display->display_options['header']['area']['format'] = 'filtered_html';
/* Relationship: Content: Contract (field_contract) */
$handler->display->display_options['relationships']['field_contract_nid']['id'] = 'field_contract_nid';
$handler->display->display_options['relationships']['field_contract_nid']['table'] = 'field_data_field_contract';
$handler->display->display_options['relationships']['field_contract_nid']['field'] = 'field_contract_nid';
$handler->display->display_options['relationships']['field_contract_nid']['label'] = 'Contract';
$handler->display->display_options['relationships']['field_contract_nid']['delta'] = '-1';
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_client_target_id']['id'] = 'field_client_target_id';
$handler->display->display_options['relationships']['field_client_target_id']['table'] = 'field_data_field_client';
$handler->display->display_options['relationships']['field_client_target_id']['field'] = 'field_client_target_id';
$handler->display->display_options['relationships']['field_client_target_id']['relationship'] = 'field_contract_nid';
/* Relationship: Content: Server (field_server) */
$handler->display->display_options['relationships']['field_server_nid']['id'] = 'field_server_nid';
$handler->display->display_options['relationships']['field_server_nid']['table'] = 'field_data_field_server';
$handler->display->display_options['relationships']['field_server_nid']['field'] = 'field_server_nid';
$handler->display->display_options['relationships']['field_server_nid']['delta'] = '-1';
/* Relationship: Content: Canonical Website (field_canonical_website) */
$handler->display->display_options['relationships']['field_canonical_website_nid']['id'] = 'field_canonical_website_nid';
$handler->display->display_options['relationships']['field_canonical_website_nid']['table'] = 'field_data_field_canonical_website';
$handler->display->display_options['relationships']['field_canonical_website_nid']['field'] = 'field_canonical_website_nid';
$handler->display->display_options['relationships']['field_canonical_website_nid']['delta'] = '-1';
/* Relationship: Content: Server (field_server) */
$handler->display->display_options['relationships']['field_server_nid_1']['id'] = 'field_server_nid_1';
$handler->display->display_options['relationships']['field_server_nid_1']['table'] = 'field_data_field_server';
$handler->display->display_options['relationships']['field_server_nid_1']['field'] = 'field_server_nid';
$handler->display->display_options['relationships']['field_server_nid_1']['relationship'] = 'field_canonical_website_nid';
$handler->display->display_options['relationships']['field_server_nid_1']['label'] = 'canonical_server';
$handler->display->display_options['relationships']['field_server_nid_1']['delta'] = '-1';
/* Relationship: Entity Reference: Referenced Entity */
$handler->display->display_options['relationships']['field_client_target_id_1']['id'] = 'field_client_target_id_1';
$handler->display->display_options['relationships']['field_client_target_id_1']['table'] = 'field_data_field_client';
$handler->display->display_options['relationships']['field_client_target_id_1']['field'] = 'field_client_target_id';
$handler->display->display_options['relationships']['field_client_target_id_1']['relationship'] = 'field_server_nid_1';
$handler->display->display_options['relationships']['field_client_target_id_1']['label'] = 'Canonical Server Client';
/* Field: Content: Active */
$handler->display->display_options['fields']['field_active']['id'] = 'field_active';
$handler->display->display_options['fields']['field_active']['table'] = 'field_data_field_active';
$handler->display->display_options['fields']['field_active']['field'] = 'field_active';
$handler->display->display_options['fields']['field_active']['type'] = 'list_key';
/* Field: CiviCRM Contacts: Contact ID */
$handler->display->display_options['fields']['id']['id'] = 'id';
$handler->display->display_options['fields']['id']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['id']['field'] = 'id';
$handler->display->display_options['fields']['id']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['id']['exclude'] = TRUE;
/* Field: CiviCRM Contacts: Nickname */
$handler->display->display_options['fields']['nick_name']['id'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['table'] = 'civicrm_contact';
$handler->display->display_options['fields']['nick_name']['field'] = 'nick_name';
$handler->display->display_options['fields']['nick_name']['relationship'] = 'field_client_target_id';
$handler->display->display_options['fields']['nick_name']['label'] = 'Client';
$handler->display->display_options['fields']['nick_name']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['nick_name']['alter']['path'] = '/civicrm/contact/view?reset=1&cid=[id]';
$handler->display->display_options['fields']['nick_name']['element_label_colon'] = FALSE;
/* Field: Content: Deployment Environment */
$handler->display->display_options['fields']['field_deployment_environment']['id'] = 'field_deployment_environment';
$handler->display->display_options['fields']['field_deployment_environment']['table'] = 'field_data_field_deployment_environment';
$handler->display->display_options['fields']['field_deployment_environment']['field'] = 'field_deployment_environment';
$handler->display->display_options['fields']['field_deployment_environment']['label'] = 'Env';
$handler->display->display_options['fields']['field_deployment_environment']['element_label_colon'] = FALSE;
/* Field: Content: Primary URL */
$handler->display->display_options['fields']['field_primary_url_1']['id'] = 'field_primary_url_1';
$handler->display->display_options['fields']['field_primary_url_1']['table'] = 'field_data_field_primary_url';
$handler->display->display_options['fields']['field_primary_url_1']['field'] = 'field_primary_url';
$handler->display->display_options['fields']['field_primary_url_1']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_primary_url_1']['settings'] = array(
'trim_length' => '80',
'nofollow' => 0,
);
/* Field: Content: CMS */
$handler->display->display_options['fields']['field_cms']['id'] = 'field_cms';
$handler->display->display_options['fields']['field_cms']['table'] = 'field_data_field_cms';
$handler->display->display_options['fields']['field_cms']['field'] = 'field_cms';
$handler->display->display_options['fields']['field_cms']['element_label_colon'] = FALSE;
/* Field: Content: CiviCRM */
$handler->display->display_options['fields']['field_civicrm']['id'] = 'field_civicrm';
$handler->display->display_options['fields']['field_civicrm']['table'] = 'field_data_field_civicrm';
$handler->display->display_options['fields']['field_civicrm']['field'] = 'field_civicrm';
$handler->display->display_options['fields']['field_civicrm']['element_label_colon'] = FALSE;
/* Field: Content: Server */
$handler->display->display_options['fields']['field_server']['id'] = 'field_server';
$handler->display->display_options['fields']['field_server']['table'] = 'field_data_field_server';
$handler->display->display_options['fields']['field_server']['field'] = 'field_server';
$handler->display->display_options['fields']['field_server']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_server']['alter']['path'] = '/server-list?&title=[field_server]';
$handler->display->display_options['fields']['field_server']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_server']['type'] = 'node_reference_plain';
/* Field: Content: Contract */
$handler->display->display_options['fields']['field_contract']['id'] = 'field_contract';
$handler->display->display_options['fields']['field_contract']['table'] = 'field_data_field_contract';
$handler->display->display_options['fields']['field_contract']['field'] = 'field_contract';
$handler->display->display_options['fields']['field_contract']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_contract']['alter']['path'] = '/contract-list?&title=[field_contract]';
$handler->display->display_options['fields']['field_contract']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_contract']['type'] = 'node_reference_plain';
/* Field: Content: Description */
$handler->display->display_options['fields']['field_description']['id'] = 'field_description';
$handler->display->display_options['fields']['field_description']['table'] = 'field_data_field_description';
$handler->display->display_options['fields']['field_description']['field'] = 'field_description';
$handler->display->display_options['fields']['field_description']['element_label_colon'] = FALSE;
/* Field: Content: webroot */
$handler->display->display_options['fields']['field_webroot']['id'] = 'field_webroot';
$handler->display->display_options['fields']['field_webroot']['table'] = 'field_data_field_webroot';