-
Notifications
You must be signed in to change notification settings - Fork 0
/
tournament_64.views_default.inc
275 lines (257 loc) · 15 KB
/
tournament_64.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
<?php
/**
* @file
* Tournament 64 Views
*
*/
/**
* Implements hook_views_default_views().
*/
function tournament_64_views_default_views() {
$view = new view();
$view->name = 'tournament_64_leagues';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'tour64_leagues';
$view->human_name = 'Tournament 64 Leagues';
$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'] = 'Tournament 64 Leagues';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'view tour64_leagues entities';
$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['style_plugin'] = 'table';
/* Field: Tournament 64 League: URL */
$handler->display->display_options['fields']['url']['id'] = 'url';
$handler->display->display_options['fields']['url']['table'] = 'views_entity_tour64_leagues';
$handler->display->display_options['fields']['url']['field'] = 'url';
$handler->display->display_options['fields']['url']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['url']['alter']['text'] = 'View';
$handler->display->display_options['fields']['url']['link_to_entity'] = 0;
/* Field: Tournament 64 League: Description */
$handler->display->display_options['fields']['description']['id'] = 'description';
$handler->display->display_options['fields']['description']['table'] = 'tour64_leagues';
$handler->display->display_options['fields']['description']['field'] = 'description';
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'tournament-64';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'Leagues';
$handler->display->display_options['menu']['description'] = 'Leagues';
$handler->display->display_options['menu']['weight'] = '0';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
$handler->display->display_options['tab_options']['type'] = 'tab';
$handler->display->display_options['tab_options']['title'] = 'Leagues';
$handler->display->display_options['tab_options']['description'] = 'Leagues';
$handler->display->display_options['tab_options']['weight'] = '0';
$views[$view->name] = $view;
$view = new view();
$view->name = 'tournament_64_entries';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'tour64_entries';
$view->human_name = 'Tournament 64 Entries';
$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'] = 'Entries';
$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'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '100';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'position' => 'position',
'league_id' => 'league_id',
'url' => 'url',
'nickname' => 'nickname',
'points' => 'points',
'total_points_possible' => 'total_points_possible',
'paid' => 'paid',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'position' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'league_id' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'url' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'nickname' => array(
'sortable' => 0,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'points' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'total_points_possible' => array(
'sortable' => 1,
'default_sort_order' => 'desc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'paid' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* Field: Tournament 64 Entry: Position */
$handler->display->display_options['fields']['position']['id'] = 'position';
$handler->display->display_options['fields']['position']['table'] = 'tour64_entries';
$handler->display->display_options['fields']['position']['field'] = 'position';
$handler->display->display_options['fields']['position']['separator'] = '';
/* Field: Tournament 64 Entry: League ID */
$handler->display->display_options['fields']['league_id']['id'] = 'league_id';
$handler->display->display_options['fields']['league_id']['table'] = 'tour64_entries';
$handler->display->display_options['fields']['league_id']['field'] = 'league_id';
$handler->display->display_options['fields']['league_id']['exclude'] = TRUE;
$handler->display->display_options['fields']['league_id']['separator'] = '';
/* Field: Tournament 64 Entry: URL */
$handler->display->display_options['fields']['url']['id'] = 'url';
$handler->display->display_options['fields']['url']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['url']['field'] = 'url';
$handler->display->display_options['fields']['url']['exclude'] = TRUE;
$handler->display->display_options['fields']['url']['alter']['text'] = '[nickname]';
$handler->display->display_options['fields']['url']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: Nickname */
$handler->display->display_options['fields']['nickname']['id'] = 'nickname';
$handler->display->display_options['fields']['nickname']['table'] = 'tour64_entries';
$handler->display->display_options['fields']['nickname']['field'] = 'nickname';
$handler->display->display_options['fields']['nickname']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['nickname']['alter']['path'] = '[url]/bracket';
/* Field: Tournament 64 Entry: Points */
$handler->display->display_options['fields']['points']['id'] = 'points';
$handler->display->display_options['fields']['points']['table'] = 'tour64_entries';
$handler->display->display_options['fields']['points']['field'] = 'points';
$handler->display->display_options['fields']['points']['separator'] = '';
/* Field: Tournament 64 Entry: Total Points Possible */
$handler->display->display_options['fields']['total_points_possible']['id'] = 'total_points_possible';
$handler->display->display_options['fields']['total_points_possible']['table'] = 'tour64_entries';
$handler->display->display_options['fields']['total_points_possible']['field'] = 'total_points_possible';
$handler->display->display_options['fields']['total_points_possible']['separator'] = '';
/* Field: Tournament 64 Entry: Paid */
$handler->display->display_options['fields']['paid']['id'] = 'paid';
$handler->display->display_options['fields']['paid']['table'] = 'tour64_entries';
$handler->display->display_options['fields']['paid']['field'] = 'paid';
$handler->display->display_options['fields']['paid']['alter']['make_link'] = TRUE;
$handler->display->display_options['fields']['paid']['alter']['path'] = '[url]/paid?destination=tournament-64/[league_id]/entries';
/* Field: Tournament 64 Entry: First Place CSS */
$handler->display->display_options['fields']['prediction_first_css']['id'] = 'prediction_first_css';
$handler->display->display_options['fields']['prediction_first_css']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_first_css']['field'] = 'prediction_first_css';
$handler->display->display_options['fields']['prediction_first_css']['exclude'] = TRUE;
$handler->display->display_options['fields']['prediction_first_css']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: Second Place CSS */
$handler->display->display_options['fields']['prediction_second_css']['id'] = 'prediction_second_css';
$handler->display->display_options['fields']['prediction_second_css']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_second_css']['field'] = 'prediction_second_css';
$handler->display->display_options['fields']['prediction_second_css']['exclude'] = TRUE;
$handler->display->display_options['fields']['prediction_second_css']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: Third Place CSS */
$handler->display->display_options['fields']['prediction_third_css']['id'] = 'prediction_third_css';
$handler->display->display_options['fields']['prediction_third_css']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_third_css']['field'] = 'prediction_third_css';
$handler->display->display_options['fields']['prediction_third_css']['exclude'] = TRUE;
$handler->display->display_options['fields']['prediction_third_css']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: Fourth Place CSS */
$handler->display->display_options['fields']['prediction_fourth_css']['id'] = 'prediction_fourth_css';
$handler->display->display_options['fields']['prediction_fourth_css']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_fourth_css']['field'] = 'prediction_fourth_css';
$handler->display->display_options['fields']['prediction_fourth_css']['exclude'] = TRUE;
$handler->display->display_options['fields']['prediction_fourth_css']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: First Place Name */
$handler->display->display_options['fields']['prediction_first_name']['id'] = 'prediction_first_name';
$handler->display->display_options['fields']['prediction_first_name']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_first_name']['field'] = 'prediction_first_name';
$handler->display->display_options['fields']['prediction_first_name']['element_class'] = '[prediction_first_css]';
$handler->display->display_options['fields']['prediction_first_name']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: Second Place Name */
$handler->display->display_options['fields']['prediction_second_name']['id'] = 'prediction_second_name';
$handler->display->display_options['fields']['prediction_second_name']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_second_name']['field'] = 'prediction_second_name';
$handler->display->display_options['fields']['prediction_second_name']['element_class'] = '[prediction_second_css]';
$handler->display->display_options['fields']['prediction_second_name']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: Tie Third Place Name */
$handler->display->display_options['fields']['prediction_third_name']['id'] = 'prediction_third_name';
$handler->display->display_options['fields']['prediction_third_name']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_third_name']['field'] = 'prediction_third_name';
$handler->display->display_options['fields']['prediction_third_name']['element_class'] = '[prediction_third_css]';
$handler->display->display_options['fields']['prediction_third_name']['link_to_entity'] = 0;
/* Field: Tournament 64 Entry: Tie Third Place Name */
$handler->display->display_options['fields']['prediction_fourth_name']['id'] = 'prediction_fourth_name';
$handler->display->display_options['fields']['prediction_fourth_name']['table'] = 'views_entity_tour64_entries';
$handler->display->display_options['fields']['prediction_fourth_name']['field'] = 'prediction_fourth_name';
$handler->display->display_options['fields']['prediction_fourth_name']['element_class'] = '[prediction_fourth_css]';
$handler->display->display_options['fields']['prediction_fourth_name']['link_to_entity'] = 0;
/* Sort criterion: Tournament 64 Entry: Position */
$handler->display->display_options['sorts']['position']['id'] = 'position';
$handler->display->display_options['sorts']['position']['table'] = 'tour64_entries';
$handler->display->display_options['sorts']['position']['field'] = 'position';
/* Sort criterion: Tournament 64 Entry: Total Points Possible */
$handler->display->display_options['sorts']['total_points_possible']['id'] = 'total_points_possible';
$handler->display->display_options['sorts']['total_points_possible']['table'] = 'tour64_entries';
$handler->display->display_options['sorts']['total_points_possible']['field'] = 'total_points_possible';
$handler->display->display_options['sorts']['total_points_possible']['order'] = 'DESC';
/* Sort criterion: Tournament 64 Entry: Nickname */
$handler->display->display_options['sorts']['nickname']['id'] = 'nickname';
$handler->display->display_options['sorts']['nickname']['table'] = 'tour64_entries';
$handler->display->display_options['sorts']['nickname']['field'] = 'nickname';
/* Contextual filter: Tournament 64 Entry: League ID */
$handler->display->display_options['arguments']['league_id']['id'] = 'league_id';
$handler->display->display_options['arguments']['league_id']['table'] = 'tour64_entries';
$handler->display->display_options['arguments']['league_id']['field'] = 'league_id';
$handler->display->display_options['arguments']['league_id']['default_action'] = 'access denied';
$handler->display->display_options['arguments']['league_id']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['league_id']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['league_id']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['league_id']['summary_options']['items_per_page'] = '25';
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'tournament-64/%/entries';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Entries';
$handler->display->display_options['menu']['description'] = 'Entries';
$handler->display->display_options['menu']['weight'] = '6';
$handler->display->display_options['menu']['context'] = 0;
$handler->display->display_options['menu']['context_only_inline'] = 0;
$views[$view->name] = $view;
return $views;
}