-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_content.views_default.inc
144 lines (138 loc) · 9.69 KB
/
page_content.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
<?php
/**
* @file
* page_content.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function page_content_views_default_views() {
$export = array();
$view = new view();
$view->name = 'sidebar_content';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'eck_sidebar_content';
$view->human_name = 'Sidebar Content';
$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'] = 'Sidebar Content';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'none';
$handler->display->display_options['style_plugin'] = 'table';
/* Field: Broken/missing handler */
$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']['relationship'] = 'reverse_field_sidebar_blocks_node';
$handler->display->display_options['fields']['views_bulk_operations']['label'] = '';
$handler->display->display_options['fields']['views_bulk_operations']['element_label_colon'] = FALSE;
/* Field: Sidebar Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'eck_sidebar_content';
$handler->display->display_options['fields']['title']['field'] = 'title';
/* Field: Sidebar Content: Created */
$handler->display->display_options['fields']['created']['id'] = 'created';
$handler->display->display_options['fields']['created']['table'] = 'eck_sidebar_content';
$handler->display->display_options['fields']['created']['field'] = 'created';
$handler->display->display_options['fields']['created']['date_format'] = 'custom';
$handler->display->display_options['fields']['created']['custom_date_format'] = 'n/d/Y - g:i a';
/* Field: Content: Title */
$handler->display->display_options['fields']['title_1']['id'] = 'title_1';
$handler->display->display_options['fields']['title_1']['table'] = 'node';
$handler->display->display_options['fields']['title_1']['field'] = 'title';
$handler->display->display_options['fields']['title_1']['relationship'] = 'reverse_field_sidebar_blocks_node';
$handler->display->display_options['fields']['title_1']['label'] = 'Referenced Page';
/* Field: Sidebar Content: Delete link */
$handler->display->display_options['fields']['delete_link']['id'] = 'delete_link';
$handler->display->display_options['fields']['delete_link']['table'] = 'eck_sidebar_content';
$handler->display->display_options['fields']['delete_link']['field'] = 'delete_link';
$handler->display->display_options['fields']['delete_link']['exclude'] = TRUE;
/* Field: Sidebar Content: Edit link */
$handler->display->display_options['fields']['edit_link']['id'] = 'edit_link';
$handler->display->display_options['fields']['edit_link']['table'] = 'eck_sidebar_content';
$handler->display->display_options['fields']['edit_link']['field'] = 'edit_link';
$handler->display->display_options['fields']['edit_link']['label'] = 'Edit Link';
$handler->display->display_options['fields']['edit_link']['exclude'] = TRUE;
/* 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'] = 'Operations';
$handler->display->display_options['fields']['nothing']['alter']['text'] = '[edit_link] [delete_link]';
/* Sort criterion: Sidebar Content: Created */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'eck_sidebar_content';
$handler->display->display_options['sorts']['created']['field'] = 'created';
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['header'] = FALSE;
/* Header: Global: Text area */
$handler->display->display_options['header']['area']['id'] = 'area';
$handler->display->display_options['header']['area']['table'] = 'views';
$handler->display->display_options['header']['area']['field'] = 'area';
$handler->display->display_options['header']['area']['content'] = '<a href="/admin/structure/entity-type/sidebar_content/static_content/add?destination=admin/structure/entity-type/sidebar_content/static_content" title="Add Sidebar Block" class="button">+ Add Sidebar Content</a>';
$handler->display->display_options['header']['area']['format'] = 'full_html';
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Entity Reference: Referencing entity */
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['id'] = 'reverse_field_sidebar_blocks_node';
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['table'] = 'eck_sidebar_content';
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['field'] = 'reverse_field_sidebar_blocks_node';
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['required'] = TRUE;
$handler->display->display_options['path'] = 'admin/content/sidebar-content';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Sidebar Content';
$handler->display->display_options['menu']['name'] = 'management';
/* Display: Sidebar - Sidebar Block */
$handler = $view->new_display('block', 'Sidebar - Sidebar Block', 'block_1');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = '<none>';
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['relationships'] = FALSE;
/* Relationship: Entity Reference: Referencing entity */
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['id'] = 'reverse_field_sidebar_blocks_node';
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['table'] = 'eck_sidebar_content';
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['field'] = 'reverse_field_sidebar_blocks_node';
$handler->display->display_options['relationships']['reverse_field_sidebar_blocks_node']['required'] = TRUE;
$handler->display->display_options['defaults']['fields'] = FALSE;
/* Field: Sidebar Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'eck_sidebar_content';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['element_type'] = 'h3';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['element_wrapper_type'] = '0';
$handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
/* Field: Sidebar Content: Content Area */
$handler->display->display_options['fields']['field_content_area']['id'] = 'field_content_area';
$handler->display->display_options['fields']['field_content_area']['table'] = 'field_data_field_content_area';
$handler->display->display_options['fields']['field_content_area']['field'] = 'field_content_area';
$handler->display->display_options['fields']['field_content_area']['label'] = '';
$handler->display->display_options['fields']['field_content_area']['element_label_colon'] = FALSE;
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Content: Nid */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'node';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['relationship'] = 'reverse_field_sidebar_blocks_node';
$handler->display->display_options['arguments']['nid']['default_action'] = 'default';
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
$export['sidebar_content'] = $view;
return $export;
}