forked from SU-SWS/stanford_news
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstanford_news.views_default.inc
945 lines (931 loc) · 53.1 KB
/
stanford_news.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
<?php
/**
* @file
* stanford_news.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function stanford_news_views_default_views() {
$export = array();
$view = new view();
$view->name = 'admin_manage_stanford_news_item';
$view->description = 'View, edit, and delete your site\'s content.';
$view->tag = 'admin';
$view->base_table = 'node';
$view->human_name = 'News: Manage';
$view->core = 0;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->display->display_options['title'] = 'Stanford News Item Content';
$handler->display->display_options['css_class'] = 'admin-views-view';
$handler->display->display_options['use_ajax'] = TRUE;
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'administer nodes';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['distinct'] = TRUE;
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['submit_button'] = 'Filter';
$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = 50;
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'views_bulk_operations' => 'views_bulk_operations',
'field_s_image_info' => 'field_s_image_info',
'title' => 'title',
'timestamp' => 'title',
'changed' => 'changed',
'status' => 'status',
'field_s_news_date' => 'field_s_news_date',
'field_s_news_source' => 'field_s_news_source',
'term_node_tid' => 'term_node_tid',
'nid' => 'nid',
'edit_node' => 'edit_node',
'view_node' => 'edit_node',
'delete_node' => 'edit_node',
);
$handler->display->display_options['style_options']['default'] = 'changed';
$handler->display->display_options['style_options']['info'] = array(
'views_bulk_operations' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_s_image_info' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'title' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'timestamp' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'changed' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'status' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_s_news_date' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'field_s_news_source' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'term_node_tid' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nid' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'edit_node' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'view_node' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'delete_node' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
$handler->display->display_options['style_options']['sticky'] = TRUE;
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
/* Relationship: Content: Author */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'node';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
/* Relationship: Content: Taxonomy terms on node */
$handler->display->display_options['relationships']['term_node_tid']['id'] = 'term_node_tid';
$handler->display->display_options['relationships']['term_node_tid']['table'] = 'node';
$handler->display->display_options['relationships']['term_node_tid']['field'] = 'term_node_tid';
$handler->display->display_options['relationships']['term_node_tid']['vocabularies'] = array(
'forums' => 0,
'tags' => 0,
);
/* Field: Bulk operations: Content */
$handler->display->display_options['fields']['views_bulk_operations']['id'] = 'views_bulk_operations';
$handler->display->display_options['fields']['views_bulk_operations']['table'] = 'node';
$handler->display->display_options['fields']['views_bulk_operations']['field'] = 'views_bulk_operations';
$handler->display->display_options['fields']['views_bulk_operations']['label'] = '';
$handler->display->display_options['fields']['views_bulk_operations']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['views_bulk_operations']['hide_alter_empty'] = FALSE;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['entity_load_capacity'] = '10';
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['operations'] = array(
'action::node_assign_owner_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 1,
'override_label' => 1,
'label' => 'Change author',
),
'action::views_bulk_operations_delete_item' => array(
'selected' => 1,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 1,
'label' => 'Delete',
),
'action::system_message_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::views_bulk_operations_script_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::node_make_sticky_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 1,
'override_label' => 1,
'label' => 'Stick',
),
'action::node_make_unsticky_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 1,
'override_label' => 1,
'label' => 'Unstick',
),
'action::views_bulk_operations_modify_action' => array(
'selected' => 1,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 1,
'label' => 'Modify News Categories',
'settings' => array(
'show_all_tokens' => 0,
'display_values' => array(
'stanford_news_item::field_s_news_categories' => 'stanford_news_item::field_s_news_categories',
),
),
),
'action::views_bulk_operations_argument_selector_action' => array(
'selected' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
'settings' => array(
'url' => '',
),
),
'action::node_promote_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 1,
'override_label' => 1,
'label' => 'Promote to front page',
),
'action::node_publish_action' => array(
'selected' => 1,
'use_queue' => 0,
'skip_confirmation' => 1,
'override_label' => 1,
'label' => 'Publish',
),
'action::system_goto_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::node_unpromote_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 1,
'override_label' => 1,
'label' => 'Demote from front page',
),
'action::node_save_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::system_send_email_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::node_unpublish_action' => array(
'selected' => 1,
'use_queue' => 0,
'skip_confirmation' => 1,
'override_label' => 1,
'label' => 'Unpublish',
),
'action::node_unpublish_by_keyword_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
'action::pathauto_node_update_action' => array(
'selected' => 0,
'use_queue' => 0,
'skip_confirmation' => 0,
'override_label' => 0,
'label' => '',
),
);
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['enable_select_all_pages'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['display_type'] = '0';
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['display_result'] = 1;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['merge_single_action'] = 0;
$handler->display->display_options['fields']['views_bulk_operations']['vbo']['force_single'] = 0;
/* Field: Field: Image */
$handler->display->display_options['fields']['field_s_image_info']['id'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['table'] = 'field_data_field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['field'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['settings'] = array(
'edit' => '',
'delete' => '',
'add' => '',
'description' => 0,
'view_mode' => 'stanford_thumbnail_square',
);
/* 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';
/* Field: Content: Has new content */
$handler->display->display_options['fields']['timestamp']['id'] = 'timestamp';
$handler->display->display_options['fields']['timestamp']['table'] = 'history';
$handler->display->display_options['fields']['timestamp']['field'] = 'timestamp';
$handler->display->display_options['fields']['timestamp']['label'] = ' New';
$handler->display->display_options['fields']['timestamp']['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'] = 'Last Updated';
$handler->display->display_options['fields']['changed']['date_format'] = 'short';
/* Field: Content: Published */
$handler->display->display_options['fields']['status']['id'] = 'status';
$handler->display->display_options['fields']['status']['table'] = 'node';
$handler->display->display_options['fields']['status']['field'] = 'status';
$handler->display->display_options['fields']['status']['not'] = 0;
/* Field: Content: Date */
$handler->display->display_options['fields']['field_s_news_date']['id'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['table'] = 'field_data_field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['field'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['label'] = 'News Date';
$handler->display->display_options['fields']['field_s_news_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_date']['settings'] = array(
'format_type' => 'short',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Field: Content: Source */
$handler->display->display_options['fields']['field_s_news_source']['id'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['table'] = 'field_data_field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['field'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_source']['click_sort_column'] = 'url';
/* Field: Content: All taxonomy terms */
$handler->display->display_options['fields']['term_node_tid']['id'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['table'] = 'node';
$handler->display->display_options['fields']['term_node_tid']['field'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['label'] = 'News Categories';
$handler->display->display_options['fields']['term_node_tid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['term_node_tid']['type'] = 'ul';
$handler->display->display_options['fields']['term_node_tid']['link_to_taxonomy'] = FALSE;
$handler->display->display_options['fields']['term_node_tid']['vocabularies'] = array(
'news_categories' => 0,
'tags' => 0,
);
/* 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'] = 'NID';
$handler->display->display_options['fields']['nid']['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'] = 'Actions';
$handler->display->display_options['fields']['edit_node']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['edit_node']['alter']['text'] = '[edit_node] |';
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['edit_node']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['edit_node']['element_wrapper_class'] = 'edit-link';
$handler->display->display_options['fields']['edit_node']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['edit_node']['text'] = 'Edit';
/* Field: Content: Link */
$handler->display->display_options['fields']['view_node']['id'] = 'view_node';
$handler->display->display_options['fields']['view_node']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['view_node']['field'] = 'view_node';
$handler->display->display_options['fields']['view_node']['label'] = '';
$handler->display->display_options['fields']['view_node']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['view_node']['alter']['text'] = '[view_node] |';
$handler->display->display_options['fields']['view_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['view_node']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['view_node']['element_wrapper_class'] = 'edit-link';
$handler->display->display_options['fields']['view_node']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['view_node']['text'] = ' View';
/* 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;
$handler->display->display_options['fields']['delete_node']['text'] = ' Delete';
/* 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']['operator'] = 'contains';
$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'] = 'Title';
$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'] = TRUE;
/* 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'] = 'All';
$handler->display->display_options['filters']['status']['exposed'] = TRUE;
$handler->display->display_options['filters']['status']['expose']['operator_id'] = '';
$handler->display->display_options['filters']['status']['expose']['label'] = 'Published';
$handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
$handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
$handler->display->display_options['filters']['status']['expose']['remember'] = TRUE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type_1']['id'] = 'type_1';
$handler->display->display_options['filters']['type_1']['table'] = 'node';
$handler->display->display_options['filters']['type_1']['field'] = 'type';
$handler->display->display_options['filters']['type_1']['value'] = array(
'stanford_news_item' => 'stanford_news_item',
);
/* Filter criterion: Taxonomy term: Term */
$handler->display->display_options['filters']['tid']['id'] = 'tid';
$handler->display->display_options['filters']['tid']['table'] = 'taxonomy_term_data';
$handler->display->display_options['filters']['tid']['field'] = 'tid';
$handler->display->display_options['filters']['tid']['relationship'] = 'term_node_tid';
$handler->display->display_options['filters']['tid']['exposed'] = TRUE;
$handler->display->display_options['filters']['tid']['expose']['operator_id'] = 'tid_op';
$handler->display->display_options['filters']['tid']['expose']['label'] = 'News Category';
$handler->display->display_options['filters']['tid']['expose']['operator'] = 'tid_op';
$handler->display->display_options['filters']['tid']['expose']['identifier'] = 'tid';
$handler->display->display_options['filters']['tid']['type'] = 'select';
$handler->display->display_options['filters']['tid']['vocabulary'] = 'news_categories';
$handler->display->display_options['filters']['tid']['hierarchy'] = 1;
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['path'] = 'admin/manage/stanford_news_item';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Manage News';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['context'] = 0;
$export['admin_manage_stanford_news_item'] = $view;
$view = new view();
$view->name = 'stanford_news';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'News';
$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'] = TRUE;
$handler->display->display_options['use_more_text'] = 'See More News';
$handler->display->display_options['link_display'] = 'custom_url';
$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['query']['options']['distinct'] = TRUE;
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
$handler->display->display_options['empty']['area']['label'] = 'News Item - No Results';
$handler->display->display_options['empty']['area']['empty'] = TRUE;
$handler->display->display_options['empty']['area']['content'] = 'No news items listed.';
$handler->display->display_options['empty']['area']['format'] = 'content_editor_text_format';
/* 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: All taxonomy terms */
$handler->display->display_options['fields']['term_node_tid']['id'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['table'] = 'node';
$handler->display->display_options['fields']['term_node_tid']['field'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['label'] = '';
$handler->display->display_options['fields']['term_node_tid']['exclude'] = TRUE;
$handler->display->display_options['fields']['term_node_tid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['term_node_tid']['separator'] = '';
$handler->display->display_options['fields']['term_node_tid']['vocabularies'] = array(
's_destination' => 0,
'news_categories' => 0,
'publication_type' => 0,
'stanford_slide_category' => 0,
'stanford_event_audience' => 0,
'stanford_event_categories' => 0,
'stanford_faculty_type' => 0,
'stanford_interests' => 0,
'stanford_student_type' => 0,
'tags' => 0,
);
/* 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']['exclude'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Date */
$handler->display->display_options['fields']['field_s_news_date']['id'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['table'] = 'field_data_field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['field'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['label'] = '';
$handler->display->display_options['fields']['field_s_news_date']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_news_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_date']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_s_news_date']['element_wrapper_class'] = 'descriptor';
$handler->display->display_options['fields']['field_s_news_date']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_s_news_date']['settings'] = array(
'format_type' => 'short',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Field: Content: Source */
$handler->display->display_options['fields']['field_s_news_source']['id'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['table'] = 'field_data_field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['field'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['label'] = '';
$handler->display->display_options['fields']['field_s_news_source']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_news_source']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['field_s_news_source']['alter']['text'] = '| [field_s_news_source]';
$handler->display->display_options['fields']['field_s_news_source']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_source']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_s_news_source']['element_wrapper_class'] = 'descriptor';
$handler->display->display_options['fields']['field_s_news_source']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_s_news_source']['click_sort_column'] = 'url';
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = '';
$handler->display->display_options['fields']['body']['exclude'] = TRUE;
$handler->display->display_options['fields']['body']['alter']['max_length'] = '300';
$handler->display->display_options['fields']['body']['alter']['strip_tags'] = TRUE;
$handler->display->display_options['fields']['body']['alter']['trim'] = TRUE;
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['body']['type'] = 'text_summary_or_trimmed';
$handler->display->display_options['fields']['body']['settings'] = array(
'trim_length' => '600',
);
/* 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']['exclude'] = TRUE;
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['edit_node']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['edit_node']['element_wrapper_class'] = 'edit-link';
$handler->display->display_options['fields']['edit_node']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['edit_node']['text'] = 'Edit';
/* 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'] = '';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<div>[term_node_tid]</div>
<div class="postcard-left">
<div class="postcard-image">
<div class="news-image">[field_s_image_image]</div>
</div>
<div class="postcard-content">
<div><h3>[title]</h3></div>
<div class="descriptor">[field_s_news_date] [field_s_news_source]</div>
<div>[body]</div>
</div>
</div>
<div class="edit-link">[edit_node]</div>';
$handler->display->display_options['fields']['nothing']['element_type'] = 'div';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing']['empty'] = 'There are no news items to display.';
$handler->display->display_options['fields']['nothing']['hide_empty'] = TRUE;
$handler->display->display_options['fields']['nothing']['hide_alter_empty'] = TRUE;
/* Field: Field: Image */
$handler->display->display_options['fields']['field_s_image_info']['id'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['table'] = 'field_data_field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['field'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['label'] = '';
$handler->display->display_options['fields']['field_s_image_info']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_image_info']['settings'] = array(
'edit' => '',
'delete' => '',
'add' => '',
'description' => 0,
'view_mode' => 'stanford_large_square',
);
/* Sort criterion: Content: Date (field_s_news_date) */
$handler->display->display_options['sorts']['field_s_news_date_value']['id'] = 'field_s_news_date_value';
$handler->display->display_options['sorts']['field_s_news_date_value']['table'] = 'field_data_field_s_news_date';
$handler->display->display_options['sorts']['field_s_news_date_value']['field'] = 'field_s_news_date_value';
$handler->display->display_options['sorts']['field_s_news_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(
'stanford_news_item' => 'stanford_news_item',
);
/* Display: Feed */
$handler = $view->new_display('feed', 'Feed', 'feed');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['style_plugin'] = 'rss';
$handler->display->display_options['row_plugin'] = 'node_rss';
$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(
'stanford_news_item' => 'stanford_news_item',
);
$handler->display->display_options['path'] = 'news.xml';
$handler->display->display_options['displays'] = array(
'block_5_item_news_list_with_pager' => 'block_5_item_news_list_with_pager',
'default' => 0,
'block_2_item_recent_news_list' => 0,
);
$handler->display->display_options['sitename_title'] = 1;
/* Display: 2 Item Recent News List Block */
$handler = $view->new_display('block', '2 Item Recent News List Block', 'block_2_item_recent_news_list');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'Recent News';
$handler->display->display_options['display_description'] = 'Homepage block of two items';
$handler->display->display_options['defaults']['use_more'] = FALSE;
$handler->display->display_options['use_more'] = TRUE;
$handler->display->display_options['link_url'] = 'news';
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '2';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['defaults']['fields'] = 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: All taxonomy terms */
$handler->display->display_options['fields']['term_node_tid']['id'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['table'] = 'node';
$handler->display->display_options['fields']['term_node_tid']['field'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['label'] = '';
$handler->display->display_options['fields']['term_node_tid']['exclude'] = TRUE;
$handler->display->display_options['fields']['term_node_tid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['term_node_tid']['separator'] = '';
$handler->display->display_options['fields']['term_node_tid']['limit'] = TRUE;
$handler->display->display_options['fields']['term_node_tid']['vocabularies'] = array(
'news_categories' => 'news_categories',
's_destination' => 0,
'publication_type' => 0,
'stanford_slide_category' => 0,
'stanford_event_audience' => 0,
'stanford_event_categories' => 0,
'stanford_faculty_type' => 0,
'stanford_interests' => 0,
'stanford_student_type' => 0,
'tags' => 0,
);
/* Field: Field: Image */
$handler->display->display_options['fields']['field_s_image_info']['id'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['table'] = 'field_data_field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['field'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['label'] = '';
$handler->display->display_options['fields']['field_s_image_info']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_image_info']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_s_image_info']['alter']['path'] = 'node/[nid]';
$handler->display->display_options['fields']['field_s_image_info']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_image_info']['hide_empty'] = TRUE;
$handler->display->display_options['fields']['field_s_image_info']['settings'] = array(
'edit' => '',
'delete' => '',
'add' => '',
'description' => 0,
'view_mode' => 'stanford_thumbnail_square',
);
/* 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']['exclude'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Date */
$handler->display->display_options['fields']['field_s_news_date']['id'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['table'] = 'field_data_field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['field'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['label'] = '';
$handler->display->display_options['fields']['field_s_news_date']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_news_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_date']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_s_news_date']['element_wrapper_class'] = 'descriptor';
$handler->display->display_options['fields']['field_s_news_date']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_s_news_date']['settings'] = array(
'format_type' => 'short',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Field: Content: Source */
$handler->display->display_options['fields']['field_s_news_source']['id'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['table'] = 'field_data_field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['field'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['label'] = '';
$handler->display->display_options['fields']['field_s_news_source']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_news_source']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['field_s_news_source']['alter']['text'] = '| [field_s_news_source]';
$handler->display->display_options['fields']['field_s_news_source']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_source']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_s_news_source']['element_wrapper_class'] = 'descriptor';
$handler->display->display_options['fields']['field_s_news_source']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_s_news_source']['click_sort_column'] = 'url';
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = '';
$handler->display->display_options['fields']['body']['exclude'] = TRUE;
$handler->display->display_options['fields']['body']['alter']['max_length'] = '300';
$handler->display->display_options['fields']['body']['alter']['trim'] = TRUE;
$handler->display->display_options['fields']['body']['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']['exclude'] = TRUE;
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['edit_node']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['edit_node']['element_wrapper_class'] = 'edit-link';
$handler->display->display_options['fields']['edit_node']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['edit_node']['text'] = 'Edit';
/* 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'] = '';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<div class="descriptor">[field_s_news_date] [field_s_news_source]</div>
<div class="postcard-left">
<div class="postcard-image">
<div class="news-image">[field_s_image_info]</div>
</div>
<div class="postcard-content">
<div class="normal-link"><h3>[title]</h3></div>
</div>
</div>
<div class="edit-link">[edit_node]</div>';
$handler->display->display_options['fields']['nothing']['element_type'] = 'div';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing']['empty'] = 'There are no news items to display.';
$handler->display->display_options['fields']['nothing']['hide_empty'] = TRUE;
$handler->display->display_options['fields']['nothing']['hide_alter_empty'] = TRUE;
/* Display: 5 Item News List Block with Pager */
$handler = $view->new_display('block', '5 Item News List Block with Pager', 'block_5_item_news_list_with_pager');
$handler->display->display_options['defaults']['css_class'] = FALSE;
$handler->display->display_options['css_class'] = 'views-row-lines';
$handler->display->display_options['display_description'] = 'Recent News block for News Landing page';
$handler->display->display_options['defaults']['use_more'] = FALSE;
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['defaults']['fields'] = 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: All taxonomy terms */
$handler->display->display_options['fields']['term_node_tid']['id'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['table'] = 'node';
$handler->display->display_options['fields']['term_node_tid']['field'] = 'term_node_tid';
$handler->display->display_options['fields']['term_node_tid']['label'] = '';
$handler->display->display_options['fields']['term_node_tid']['exclude'] = TRUE;
$handler->display->display_options['fields']['term_node_tid']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['term_node_tid']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['term_node_tid']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['term_node_tid']['separator'] = '';
$handler->display->display_options['fields']['term_node_tid']['limit'] = TRUE;
$handler->display->display_options['fields']['term_node_tid']['vocabularies'] = array(
'news_categories' => 'news_categories',
's_destination' => 0,
'publication_type' => 0,
'stanford_slide_category' => 0,
'stanford_event_audience' => 0,
'stanford_event_categories' => 0,
'stanford_faculty_type' => 0,
'stanford_interests' => 0,
'stanford_student_type' => 0,
'tags' => 0,
);
/* Field: Field: Image */
$handler->display->display_options['fields']['field_s_image_info']['id'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['table'] = 'field_data_field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['field'] = 'field_s_image_info';
$handler->display->display_options['fields']['field_s_image_info']['label'] = '';
$handler->display->display_options['fields']['field_s_image_info']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_image_info']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['field_s_image_info']['alter']['path'] = 'node/[nid]';
$handler->display->display_options['fields']['field_s_image_info']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_image_info']['settings'] = array(
'edit' => '',
'delete' => '',
'add' => '',
'description' => 0,
'view_mode' => 'stanford_small_square',
);
/* 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']['exclude'] = TRUE;
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
/* Field: Content: Date */
$handler->display->display_options['fields']['field_s_news_date']['id'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['table'] = 'field_data_field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['field'] = 'field_s_news_date';
$handler->display->display_options['fields']['field_s_news_date']['label'] = '';
$handler->display->display_options['fields']['field_s_news_date']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_news_date']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_date']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_s_news_date']['element_wrapper_class'] = 'descriptor';
$handler->display->display_options['fields']['field_s_news_date']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_s_news_date']['settings'] = array(
'format_type' => 'short',
'fromto' => 'both',
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
);
/* Field: Content: Source */
$handler->display->display_options['fields']['field_s_news_source']['id'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['table'] = 'field_data_field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['field'] = 'field_s_news_source';
$handler->display->display_options['fields']['field_s_news_source']['label'] = '';
$handler->display->display_options['fields']['field_s_news_source']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_s_news_source']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['field_s_news_source']['alter']['text'] = '| [field_s_news_source]';
$handler->display->display_options['fields']['field_s_news_source']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_s_news_source']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['field_s_news_source']['element_wrapper_class'] = 'descriptor';
$handler->display->display_options['fields']['field_s_news_source']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['field_s_news_source']['click_sort_column'] = 'url';
/* Field: Content: Body */
$handler->display->display_options['fields']['body']['id'] = 'body';
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
$handler->display->display_options['fields']['body']['field'] = 'body';
$handler->display->display_options['fields']['body']['label'] = '';
$handler->display->display_options['fields']['body']['exclude'] = TRUE;
$handler->display->display_options['fields']['body']['alter']['max_length'] = '300';
$handler->display->display_options['fields']['body']['alter']['strip_tags'] = TRUE;
$handler->display->display_options['fields']['body']['alter']['trim'] = TRUE;
$handler->display->display_options['fields']['body']['alter']['html'] = TRUE;
$handler->display->display_options['fields']['body']['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']['exclude'] = TRUE;
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['edit_node']['element_wrapper_type'] = 'div';
$handler->display->display_options['fields']['edit_node']['element_wrapper_class'] = 'edit-link';
$handler->display->display_options['fields']['edit_node']['element_default_classes'] = FALSE;
$handler->display->display_options['fields']['edit_node']['text'] = 'Edit';
/* 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'] = '';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '<div class="postcard-left">
<div class="postcard-image">
<div class="news-image">[field_s_image_info]</div>
</div>
<div class="postcard-content">
<div class="descriptor">[field_s_news_date] [field_s_news_source]</div>
<div><h3>[title]</h3></div>
<div>[body]</div>
<div class="descriptor descriptor-btn">[term_node_tid]</div>
<div class="edit-link">[edit_node]</div>
</div>
</div>';
$handler->display->display_options['fields']['nothing']['element_type'] = 'div';
$handler->display->display_options['fields']['nothing']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['nothing']['empty'] = 'There are no news items to display';
$handler->display->display_options['fields']['nothing']['hide_empty'] = TRUE;
$handler->display->display_options['fields']['nothing']['hide_alter_empty'] = TRUE;
$export['stanford_news'] = $view;
return $export;
}