@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $view->base_table = 'node'; |
15 | 15 | $view->core = 6; |
16 | 16 | $view->api_version = '2'; |
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
17 | + $view->disabled = false; /* Edit this to true to make a default view disabled initially */ |
|
18 | 18 | $handler = $view->new_display('default', 'Defaults', 'default'); |
19 | 19 | $handler->override_option('relationships', array( |
20 | 20 | 'flag_content_rel' => array( |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | 'hide_empty' => 0, |
171 | 171 | 'empty_zero' => 0, |
172 | 172 | 'hide_alter_empty' => 1, |
173 | - 'set_precision' => FALSE, |
|
173 | + 'set_precision' => false, |
|
174 | 174 | 'precision' => 0, |
175 | 175 | 'decimal' => '.', |
176 | 176 | 'separator' => ',', |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | $handler->override_option('path', 'account/prefs/subscriptions'); |
449 | 449 | $handler->override_option('menu', array( |
450 | 450 | 'type' => 'tab', |
451 | - 'title' => bts('Subscriptions', array(), NULL, 'boinc:account-dashboard'), |
|
451 | + 'title' => bts('Subscriptions', array(), null, 'boinc:account-dashboard'), |
|
452 | 452 | 'description' => '', |
453 | 453 | 'weight' => '20', |
454 | 454 | 'name' => 'primary-links', |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | 'hide_empty' => 0, |
599 | 599 | 'empty_zero' => 0, |
600 | 600 | 'hide_alter_empty' => 1, |
601 | - 'set_precision' => FALSE, |
|
601 | + 'set_precision' => false, |
|
602 | 602 | 'precision' => 0, |
603 | 603 | 'decimal' => '.', |
604 | 604 | 'separator' => ',', |
@@ -778,7 +778,7 @@ discard block |
||
778 | 778 | 'relationship' => 'none', |
779 | 779 | ), |
780 | 780 | 'last_updated' => array( |
781 | - 'label' => bts('Updated', array(), NULL, 'boinc:account-dashboard'), |
|
781 | + 'label' => bts('Updated', array(), null, 'boinc:account-dashboard'), |
|
782 | 782 | 'alter' => array( |
783 | 783 | 'alter_text' => 0, |
784 | 784 | 'text' => '', |
@@ -895,15 +895,15 @@ discard block |
||
895 | 895 | 'weight' => 0, |
896 | 896 | )); |
897 | 897 | $handler->override_option('allow', array( |
898 | - 'use_pager' => FALSE, |
|
899 | - 'items_per_page' => FALSE, |
|
900 | - 'offset' => FALSE, |
|
901 | - 'link_to_view' => FALSE, |
|
902 | - 'more_link' => FALSE, |
|
903 | - 'path_override' => FALSE, |
|
904 | - 'title_override' => FALSE, |
|
905 | - 'exposed_form' => FALSE, |
|
906 | - 'fields_override' => FALSE, |
|
898 | + 'use_pager' => false, |
|
899 | + 'items_per_page' => false, |
|
900 | + 'offset' => false, |
|
901 | + 'link_to_view' => false, |
|
902 | + 'more_link' => false, |
|
903 | + 'path_override' => false, |
|
904 | + 'title_override' => false, |
|
905 | + 'exposed_form' => false, |
|
906 | + 'fields_override' => false, |
|
907 | 907 | )); |
908 | 908 | $handler->override_option('argument_input', array()); |
909 | 909 | $handler->override_option('link_to_view', 0); |
@@ -4,48 +4,48 @@ discard block |
||
4 | 4 | * Implementation of hook_views_default_views(). |
5 | 5 | */ |
6 | 6 | function user_preferences_views_default_views() { |
7 | - $views = array(); |
|
7 | + $views = array(); |
|
8 | 8 | |
9 | - // Exported view: subscriptions |
|
10 | - $view = new view; |
|
11 | - $view->name = 'subscriptions'; |
|
12 | - $view->description = ''; |
|
13 | - $view->tag = ''; |
|
14 | - $view->base_table = 'node'; |
|
15 | - $view->core = 6; |
|
16 | - $view->api_version = '2'; |
|
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | - $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | - $handler->override_option('relationships', array( |
|
9 | + // Exported view: subscriptions |
|
10 | + $view = new view; |
|
11 | + $view->name = 'subscriptions'; |
|
12 | + $view->description = ''; |
|
13 | + $view->tag = ''; |
|
14 | + $view->base_table = 'node'; |
|
15 | + $view->core = 6; |
|
16 | + $view->api_version = '2'; |
|
17 | + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | + $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | + $handler->override_option('relationships', array( |
|
20 | 20 | 'flag_content_rel' => array( |
21 | - 'label' => 'Subscription flag', |
|
22 | - 'required' => 1, |
|
23 | - 'flag' => 'subscriptions', |
|
24 | - 'user_scope' => 'current', |
|
25 | - 'id' => 'flag_content_rel', |
|
26 | - 'table' => 'node', |
|
27 | - 'field' => 'flag_content_rel', |
|
28 | - 'relationship' => 'none', |
|
21 | + 'label' => 'Subscription flag', |
|
22 | + 'required' => 1, |
|
23 | + 'flag' => 'subscriptions', |
|
24 | + 'user_scope' => 'current', |
|
25 | + 'id' => 'flag_content_rel', |
|
26 | + 'table' => 'node', |
|
27 | + 'field' => 'flag_content_rel', |
|
28 | + 'relationship' => 'none', |
|
29 | 29 | ), |
30 | 30 | 'flag_count_rel' => array( |
31 | - 'label' => 'counter', |
|
32 | - 'required' => 1, |
|
33 | - 'flag' => 'subscriptions', |
|
34 | - 'id' => 'flag_count_rel', |
|
35 | - 'table' => 'node', |
|
36 | - 'field' => 'flag_count_rel', |
|
37 | - 'relationship' => 'none', |
|
31 | + 'label' => 'counter', |
|
32 | + 'required' => 1, |
|
33 | + 'flag' => 'subscriptions', |
|
34 | + 'id' => 'flag_count_rel', |
|
35 | + 'table' => 'node', |
|
36 | + 'field' => 'flag_count_rel', |
|
37 | + 'relationship' => 'none', |
|
38 | 38 | ), |
39 | 39 | 'vid' => array( |
40 | - 'id' => 'vid', |
|
41 | - 'table' => 'term_node', |
|
42 | - 'field' => 'vid', |
|
40 | + 'id' => 'vid', |
|
41 | + 'table' => 'term_node', |
|
42 | + 'field' => 'vid', |
|
43 | 43 | ), |
44 | - )); |
|
45 | - $handler->override_option('fields', array( |
|
44 | + )); |
|
45 | + $handler->override_option('fields', array( |
|
46 | 46 | 'title' => array( |
47 | - 'label' => 'Page', |
|
48 | - 'alter' => array( |
|
47 | + 'label' => 'Page', |
|
48 | + 'alter' => array( |
|
49 | 49 | 'alter_text' => 0, |
50 | 50 | 'text' => '', |
51 | 51 | 'make_link' => 0, |
@@ -64,21 +64,21 @@ discard block |
||
64 | 64 | 'ellipsis' => 1, |
65 | 65 | 'html' => 0, |
66 | 66 | 'strip_tags' => 0, |
67 | - ), |
|
68 | - 'empty' => '', |
|
69 | - 'hide_empty' => 0, |
|
70 | - 'empty_zero' => 0, |
|
71 | - 'hide_alter_empty' => 1, |
|
72 | - 'link_to_node' => 0, |
|
73 | - 'exclude' => 1, |
|
74 | - 'id' => 'title', |
|
75 | - 'table' => 'node', |
|
76 | - 'field' => 'title', |
|
77 | - 'relationship' => 'none', |
|
67 | + ), |
|
68 | + 'empty' => '', |
|
69 | + 'hide_empty' => 0, |
|
70 | + 'empty_zero' => 0, |
|
71 | + 'hide_alter_empty' => 1, |
|
72 | + 'link_to_node' => 0, |
|
73 | + 'exclude' => 1, |
|
74 | + 'id' => 'title', |
|
75 | + 'table' => 'node', |
|
76 | + 'field' => 'title', |
|
77 | + 'relationship' => 'none', |
|
78 | 78 | ), |
79 | 79 | 'type' => array( |
80 | - 'label' => 'Type', |
|
81 | - 'alter' => array( |
|
80 | + 'label' => 'Type', |
|
81 | + 'alter' => array( |
|
82 | 82 | 'alter_text' => 0, |
83 | 83 | 'text' => '', |
84 | 84 | 'make_link' => 0, |
@@ -97,22 +97,22 @@ discard block |
||
97 | 97 | 'ellipsis' => 1, |
98 | 98 | 'html' => 0, |
99 | 99 | 'strip_tags' => 0, |
100 | - ), |
|
101 | - 'empty' => '', |
|
102 | - 'hide_empty' => 0, |
|
103 | - 'empty_zero' => 0, |
|
104 | - 'hide_alter_empty' => 1, |
|
105 | - 'link_to_node' => 0, |
|
106 | - 'machine_name' => 0, |
|
107 | - 'exclude' => 1, |
|
108 | - 'id' => 'type', |
|
109 | - 'table' => 'node', |
|
110 | - 'field' => 'type', |
|
111 | - 'relationship' => 'none', |
|
100 | + ), |
|
101 | + 'empty' => '', |
|
102 | + 'hide_empty' => 0, |
|
103 | + 'empty_zero' => 0, |
|
104 | + 'hide_alter_empty' => 1, |
|
105 | + 'link_to_node' => 0, |
|
106 | + 'machine_name' => 0, |
|
107 | + 'exclude' => 1, |
|
108 | + 'id' => 'type', |
|
109 | + 'table' => 'node', |
|
110 | + 'field' => 'type', |
|
111 | + 'relationship' => 'none', |
|
112 | 112 | ), |
113 | 113 | 'timestamp' => array( |
114 | - 'label' => 'Has new content', |
|
115 | - 'alter' => array( |
|
114 | + 'label' => 'Has new content', |
|
115 | + 'alter' => array( |
|
116 | 116 | 'alter_text' => 0, |
117 | 117 | 'text' => '', |
118 | 118 | 'make_link' => 0, |
@@ -131,22 +131,22 @@ discard block |
||
131 | 131 | 'ellipsis' => 1, |
132 | 132 | 'html' => 0, |
133 | 133 | 'strip_tags' => 0, |
134 | - ), |
|
135 | - 'empty' => '', |
|
136 | - 'hide_empty' => 0, |
|
137 | - 'empty_zero' => 0, |
|
138 | - 'hide_alter_empty' => 1, |
|
139 | - 'link_to_node' => 0, |
|
140 | - 'comments' => 1, |
|
141 | - 'exclude' => 1, |
|
142 | - 'id' => 'timestamp', |
|
143 | - 'table' => 'history_user', |
|
144 | - 'field' => 'timestamp', |
|
145 | - 'relationship' => 'none', |
|
134 | + ), |
|
135 | + 'empty' => '', |
|
136 | + 'hide_empty' => 0, |
|
137 | + 'empty_zero' => 0, |
|
138 | + 'hide_alter_empty' => 1, |
|
139 | + 'link_to_node' => 0, |
|
140 | + 'comments' => 1, |
|
141 | + 'exclude' => 1, |
|
142 | + 'id' => 'timestamp', |
|
143 | + 'table' => 'history_user', |
|
144 | + 'field' => 'timestamp', |
|
145 | + 'relationship' => 'none', |
|
146 | 146 | ), |
147 | 147 | 'new_comments' => array( |
148 | - 'label' => 'New comments', |
|
149 | - 'alter' => array( |
|
148 | + 'label' => 'New comments', |
|
149 | + 'alter' => array( |
|
150 | 150 | 'alter_text' => 0, |
151 | 151 | 'text' => '', |
152 | 152 | 'make_link' => 0, |
@@ -165,30 +165,30 @@ discard block |
||
165 | 165 | 'ellipsis' => 1, |
166 | 166 | 'html' => 0, |
167 | 167 | 'strip_tags' => 0, |
168 | - ), |
|
169 | - 'empty' => '', |
|
170 | - 'hide_empty' => 0, |
|
171 | - 'empty_zero' => 0, |
|
172 | - 'hide_alter_empty' => 1, |
|
173 | - 'set_precision' => FALSE, |
|
174 | - 'precision' => 0, |
|
175 | - 'decimal' => '.', |
|
176 | - 'separator' => ',', |
|
177 | - 'format_plural' => 0, |
|
178 | - 'format_plural_singular' => '1', |
|
179 | - 'format_plural_plural' => '@count', |
|
180 | - 'prefix' => '', |
|
181 | - 'suffix' => '', |
|
182 | - 'link_to_comment' => 1, |
|
183 | - 'exclude' => 1, |
|
184 | - 'id' => 'new_comments', |
|
185 | - 'table' => 'node', |
|
186 | - 'field' => 'new_comments', |
|
187 | - 'relationship' => 'none', |
|
168 | + ), |
|
169 | + 'empty' => '', |
|
170 | + 'hide_empty' => 0, |
|
171 | + 'empty_zero' => 0, |
|
172 | + 'hide_alter_empty' => 1, |
|
173 | + 'set_precision' => FALSE, |
|
174 | + 'precision' => 0, |
|
175 | + 'decimal' => '.', |
|
176 | + 'separator' => ',', |
|
177 | + 'format_plural' => 0, |
|
178 | + 'format_plural_singular' => '1', |
|
179 | + 'format_plural_plural' => '@count', |
|
180 | + 'prefix' => '', |
|
181 | + 'suffix' => '', |
|
182 | + 'link_to_comment' => 1, |
|
183 | + 'exclude' => 1, |
|
184 | + 'id' => 'new_comments', |
|
185 | + 'table' => 'node', |
|
186 | + 'field' => 'new_comments', |
|
187 | + 'relationship' => 'none', |
|
188 | 188 | ), |
189 | 189 | 'name' => array( |
190 | - 'label' => 'Term', |
|
191 | - 'alter' => array( |
|
190 | + 'label' => 'Term', |
|
191 | + 'alter' => array( |
|
192 | 192 | 'alter_text' => 0, |
193 | 193 | 'text' => '', |
194 | 194 | 'make_link' => 0, |
@@ -207,21 +207,21 @@ discard block |
||
207 | 207 | 'ellipsis' => 1, |
208 | 208 | 'html' => 0, |
209 | 209 | 'strip_tags' => 0, |
210 | - ), |
|
211 | - 'empty' => '', |
|
212 | - 'hide_empty' => 0, |
|
213 | - 'empty_zero' => 0, |
|
214 | - 'hide_alter_empty' => 1, |
|
215 | - 'link_to_taxonomy' => 0, |
|
216 | - 'exclude' => 1, |
|
217 | - 'id' => 'name', |
|
218 | - 'table' => 'term_data', |
|
219 | - 'field' => 'name', |
|
220 | - 'relationship' => 'none', |
|
210 | + ), |
|
211 | + 'empty' => '', |
|
212 | + 'hide_empty' => 0, |
|
213 | + 'empty_zero' => 0, |
|
214 | + 'hide_alter_empty' => 1, |
|
215 | + 'link_to_taxonomy' => 0, |
|
216 | + 'exclude' => 1, |
|
217 | + 'id' => 'name', |
|
218 | + 'table' => 'term_data', |
|
219 | + 'field' => 'name', |
|
220 | + 'relationship' => 'none', |
|
221 | 221 | ), |
222 | 222 | 'name_1' => array( |
223 | - 'label' => 'Vocabulary name', |
|
224 | - 'alter' => array( |
|
223 | + 'label' => 'Vocabulary name', |
|
224 | + 'alter' => array( |
|
225 | 225 | 'alter_text' => 0, |
226 | 226 | 'text' => '', |
227 | 227 | 'make_link' => 0, |
@@ -240,20 +240,20 @@ discard block |
||
240 | 240 | 'ellipsis' => 1, |
241 | 241 | 'html' => 0, |
242 | 242 | 'strip_tags' => 0, |
243 | - ), |
|
244 | - 'empty' => '', |
|
245 | - 'hide_empty' => 0, |
|
246 | - 'empty_zero' => 0, |
|
247 | - 'hide_alter_empty' => 1, |
|
248 | - 'exclude' => 1, |
|
249 | - 'id' => 'name_1', |
|
250 | - 'table' => 'vocabulary', |
|
251 | - 'field' => 'name', |
|
252 | - 'relationship' => 'none', |
|
243 | + ), |
|
244 | + 'empty' => '', |
|
245 | + 'hide_empty' => 0, |
|
246 | + 'empty_zero' => 0, |
|
247 | + 'hide_alter_empty' => 1, |
|
248 | + 'exclude' => 1, |
|
249 | + 'id' => 'name_1', |
|
250 | + 'table' => 'vocabulary', |
|
251 | + 'field' => 'name', |
|
252 | + 'relationship' => 'none', |
|
253 | 253 | ), |
254 | 254 | 'phpcode' => array( |
255 | - 'label' => 'Page', |
|
256 | - 'alter' => array( |
|
255 | + 'label' => 'Page', |
|
256 | + 'alter' => array( |
|
257 | 257 | 'alter_text' => 0, |
258 | 258 | 'text' => '', |
259 | 259 | 'make_link' => 0, |
@@ -272,12 +272,12 @@ discard block |
||
272 | 272 | 'ellipsis' => 1, |
273 | 273 | 'html' => 0, |
274 | 274 | 'strip_tags' => 0, |
275 | - ), |
|
276 | - 'empty' => '', |
|
277 | - 'hide_empty' => 0, |
|
278 | - 'empty_zero' => 0, |
|
279 | - 'hide_alter_empty' => 1, |
|
280 | - 'value' => '<?php |
|
275 | + ), |
|
276 | + 'empty' => '', |
|
277 | + 'hide_empty' => 0, |
|
278 | + 'empty_zero' => 0, |
|
279 | + 'hide_alter_empty' => 1, |
|
280 | + 'value' => '<?php |
|
281 | 281 | $updated = ($data->node_comment_statistics_last_updated > $data->history_user_timestamp) ? TRUE : FALSE; |
282 | 282 | $url = "node/{$data->nid}"; |
283 | 283 | if ($data->node_new_comments) { |
@@ -288,15 +288,15 @@ discard block |
||
288 | 288 | print l($data->node_title, $url); |
289 | 289 | print \'</span>\'; |
290 | 290 | ?>', |
291 | - 'exclude' => 0, |
|
292 | - 'id' => 'phpcode', |
|
293 | - 'table' => 'customfield', |
|
294 | - 'field' => 'phpcode', |
|
295 | - 'relationship' => 'none', |
|
291 | + 'exclude' => 0, |
|
292 | + 'id' => 'phpcode', |
|
293 | + 'table' => 'customfield', |
|
294 | + 'field' => 'phpcode', |
|
295 | + 'relationship' => 'none', |
|
296 | 296 | ), |
297 | 297 | 'phpcode_1' => array( |
298 | - 'label' => '', |
|
299 | - 'alter' => array( |
|
298 | + 'label' => '', |
|
299 | + 'alter' => array( |
|
300 | 300 | 'alter_text' => 0, |
301 | 301 | 'text' => '', |
302 | 302 | 'make_link' => 0, |
@@ -315,12 +315,12 @@ discard block |
||
315 | 315 | 'ellipsis' => 1, |
316 | 316 | 'html' => 0, |
317 | 317 | 'strip_tags' => 0, |
318 | - ), |
|
319 | - 'empty' => '', |
|
320 | - 'hide_empty' => 0, |
|
321 | - 'empty_zero' => 0, |
|
322 | - 'hide_alter_empty' => 1, |
|
323 | - 'value' => '<?php |
|
318 | + ), |
|
319 | + 'empty' => '', |
|
320 | + 'hide_empty' => 0, |
|
321 | + 'empty_zero' => 0, |
|
322 | + 'hide_alter_empty' => 1, |
|
323 | + 'value' => '<?php |
|
324 | 324 | if ($data->node_type == \'forum\') { |
325 | 325 | print $data->vocabulary_name . \' › \' . $data->term_data_name; |
326 | 326 | } |
@@ -328,15 +328,15 @@ discard block |
||
328 | 328 | print bts(\'News\', array(), NULL, \'boinc:menu-link\'); |
329 | 329 | } |
330 | 330 | ?>', |
331 | - 'exclude' => 0, |
|
332 | - 'id' => 'phpcode_1', |
|
333 | - 'table' => 'customfield', |
|
334 | - 'field' => 'phpcode', |
|
335 | - 'relationship' => 'none', |
|
331 | + 'exclude' => 0, |
|
332 | + 'id' => 'phpcode_1', |
|
333 | + 'table' => 'customfield', |
|
334 | + 'field' => 'phpcode', |
|
335 | + 'relationship' => 'none', |
|
336 | 336 | ), |
337 | 337 | 'last_updated' => array( |
338 | - 'label' => 'Updated', |
|
339 | - 'alter' => array( |
|
338 | + 'label' => 'Updated', |
|
339 | + 'alter' => array( |
|
340 | 340 | 'alter_text' => 0, |
341 | 341 | 'text' => '', |
342 | 342 | 'make_link' => 0, |
@@ -355,25 +355,25 @@ discard block |
||
355 | 355 | 'ellipsis' => 1, |
356 | 356 | 'html' => 0, |
357 | 357 | 'strip_tags' => 0, |
358 | - ), |
|
359 | - 'empty' => '', |
|
360 | - 'hide_empty' => 0, |
|
361 | - 'empty_zero' => 0, |
|
362 | - 'hide_alter_empty' => 1, |
|
363 | - 'date_format' => 'time ago', |
|
364 | - 'custom_date_format' => '', |
|
365 | - 'exclude' => 0, |
|
366 | - 'id' => 'last_updated', |
|
367 | - 'table' => 'node_comment_statistics', |
|
368 | - 'field' => 'last_updated', |
|
369 | - 'override' => array( |
|
358 | + ), |
|
359 | + 'empty' => '', |
|
360 | + 'hide_empty' => 0, |
|
361 | + 'empty_zero' => 0, |
|
362 | + 'hide_alter_empty' => 1, |
|
363 | + 'date_format' => 'time ago', |
|
364 | + 'custom_date_format' => '', |
|
365 | + 'exclude' => 0, |
|
366 | + 'id' => 'last_updated', |
|
367 | + 'table' => 'node_comment_statistics', |
|
368 | + 'field' => 'last_updated', |
|
369 | + 'override' => array( |
|
370 | 370 | 'button' => 'Override', |
371 | - ), |
|
372 | - 'relationship' => 'none', |
|
371 | + ), |
|
372 | + 'relationship' => 'none', |
|
373 | 373 | ), |
374 | 374 | 'ops' => array( |
375 | - 'label' => '', |
|
376 | - 'alter' => array( |
|
375 | + 'label' => '', |
|
376 | + 'alter' => array( |
|
377 | 377 | 'alter_text' => 0, |
378 | 378 | 'text' => '', |
379 | 379 | 'make_link' => 0, |
@@ -392,79 +392,79 @@ discard block |
||
392 | 392 | 'ellipsis' => 1, |
393 | 393 | 'html' => 0, |
394 | 394 | 'strip_tags' => 0, |
395 | - ), |
|
396 | - 'empty' => '', |
|
397 | - 'hide_empty' => 0, |
|
398 | - 'empty_zero' => 0, |
|
399 | - 'hide_alter_empty' => 1, |
|
400 | - 'link_type' => '', |
|
401 | - 'exclude' => 0, |
|
402 | - 'id' => 'ops', |
|
403 | - 'table' => 'flag_content', |
|
404 | - 'field' => 'ops', |
|
405 | - 'relationship' => 'flag_content_rel', |
|
395 | + ), |
|
396 | + 'empty' => '', |
|
397 | + 'hide_empty' => 0, |
|
398 | + 'empty_zero' => 0, |
|
399 | + 'hide_alter_empty' => 1, |
|
400 | + 'link_type' => '', |
|
401 | + 'exclude' => 0, |
|
402 | + 'id' => 'ops', |
|
403 | + 'table' => 'flag_content', |
|
404 | + 'field' => 'ops', |
|
405 | + 'relationship' => 'flag_content_rel', |
|
406 | 406 | ), |
407 | - )); |
|
408 | - $handler->override_option('access', array( |
|
407 | + )); |
|
408 | + $handler->override_option('access', array( |
|
409 | 409 | 'type' => 'none', |
410 | - )); |
|
411 | - $handler->override_option('cache', array( |
|
410 | + )); |
|
411 | + $handler->override_option('cache', array( |
|
412 | 412 | 'type' => 'none', |
413 | - )); |
|
414 | - $handler->override_option('use_pager', '1'); |
|
415 | - $handler = $view->new_display('page', 'Page', 'page_1'); |
|
416 | - $handler->override_option('style_plugin', 'table'); |
|
417 | - $handler->override_option('style_options', array( |
|
413 | + )); |
|
414 | + $handler->override_option('use_pager', '1'); |
|
415 | + $handler = $view->new_display('page', 'Page', 'page_1'); |
|
416 | + $handler->override_option('style_plugin', 'table'); |
|
417 | + $handler->override_option('style_options', array( |
|
418 | 418 | 'grouping' => '', |
419 | 419 | 'override' => 1, |
420 | 420 | 'sticky' => 0, |
421 | 421 | 'order' => 'desc', |
422 | 422 | 'summary' => '', |
423 | 423 | 'columns' => array( |
424 | - 'ops' => 'ops', |
|
425 | - 'title' => 'title', |
|
426 | - 'type' => 'type', |
|
427 | - 'last_updated' => 'last_updated', |
|
424 | + 'ops' => 'ops', |
|
425 | + 'title' => 'title', |
|
426 | + 'type' => 'type', |
|
427 | + 'last_updated' => 'last_updated', |
|
428 | 428 | ), |
429 | 429 | 'info' => array( |
430 | - 'ops' => array( |
|
430 | + 'ops' => array( |
|
431 | 431 | 'separator' => '', |
432 | - ), |
|
433 | - 'title' => array( |
|
432 | + ), |
|
433 | + 'title' => array( |
|
434 | 434 | 'sortable' => 0, |
435 | 435 | 'separator' => '', |
436 | - ), |
|
437 | - 'type' => array( |
|
436 | + ), |
|
437 | + 'type' => array( |
|
438 | 438 | 'sortable' => 0, |
439 | 439 | 'separator' => '', |
440 | - ), |
|
441 | - 'last_updated' => array( |
|
440 | + ), |
|
441 | + 'last_updated' => array( |
|
442 | 442 | 'sortable' => 0, |
443 | 443 | 'separator' => '', |
444 | - ), |
|
444 | + ), |
|
445 | 445 | ), |
446 | 446 | 'default' => 'last_updated', |
447 | - )); |
|
448 | - $handler->override_option('path', 'account/prefs/subscriptions'); |
|
449 | - $handler->override_option('menu', array( |
|
447 | + )); |
|
448 | + $handler->override_option('path', 'account/prefs/subscriptions'); |
|
449 | + $handler->override_option('menu', array( |
|
450 | 450 | 'type' => 'tab', |
451 | 451 | 'title' => bts('Subscriptions', array(), NULL, 'boinc:account-dashboard'), |
452 | 452 | 'description' => '', |
453 | 453 | 'weight' => '20', |
454 | 454 | 'name' => 'primary-links', |
455 | - )); |
|
456 | - $handler->override_option('tab_options', array( |
|
455 | + )); |
|
456 | + $handler->override_option('tab_options', array( |
|
457 | 457 | 'type' => 'none', |
458 | 458 | 'title' => '', |
459 | 459 | 'description' => '', |
460 | 460 | 'weight' => 0, |
461 | 461 | 'name' => 'navigation', |
462 | - )); |
|
463 | - $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); |
|
464 | - $handler->override_option('fields', array( |
|
462 | + )); |
|
463 | + $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); |
|
464 | + $handler->override_option('fields', array( |
|
465 | 465 | 'title' => array( |
466 | - 'label' => 'Page', |
|
467 | - 'alter' => array( |
|
466 | + 'label' => 'Page', |
|
467 | + 'alter' => array( |
|
468 | 468 | 'alter_text' => 0, |
469 | 469 | 'text' => '', |
470 | 470 | 'make_link' => 0, |
@@ -483,24 +483,24 @@ discard block |
||
483 | 483 | 'ellipsis' => 1, |
484 | 484 | 'html' => 0, |
485 | 485 | 'strip_tags' => 0, |
486 | - ), |
|
487 | - 'empty' => '', |
|
488 | - 'hide_empty' => 0, |
|
489 | - 'empty_zero' => 0, |
|
490 | - 'hide_alter_empty' => 1, |
|
491 | - 'link_to_node' => 1, |
|
492 | - 'exclude' => 1, |
|
493 | - 'id' => 'title', |
|
494 | - 'table' => 'node', |
|
495 | - 'field' => 'title', |
|
496 | - 'relationship' => 'none', |
|
497 | - 'override' => array( |
|
486 | + ), |
|
487 | + 'empty' => '', |
|
488 | + 'hide_empty' => 0, |
|
489 | + 'empty_zero' => 0, |
|
490 | + 'hide_alter_empty' => 1, |
|
491 | + 'link_to_node' => 1, |
|
492 | + 'exclude' => 1, |
|
493 | + 'id' => 'title', |
|
494 | + 'table' => 'node', |
|
495 | + 'field' => 'title', |
|
496 | + 'relationship' => 'none', |
|
497 | + 'override' => array( |
|
498 | 498 | 'button' => 'Use default', |
499 | - ), |
|
499 | + ), |
|
500 | 500 | ), |
501 | 501 | 'type' => array( |
502 | - 'label' => 'Type', |
|
503 | - 'alter' => array( |
|
502 | + 'label' => 'Type', |
|
503 | + 'alter' => array( |
|
504 | 504 | 'alter_text' => 0, |
505 | 505 | 'text' => '', |
506 | 506 | 'make_link' => 0, |
@@ -519,25 +519,25 @@ discard block |
||
519 | 519 | 'ellipsis' => 1, |
520 | 520 | 'html' => 0, |
521 | 521 | 'strip_tags' => 0, |
522 | - ), |
|
523 | - 'empty' => '', |
|
524 | - 'hide_empty' => 0, |
|
525 | - 'empty_zero' => 0, |
|
526 | - 'hide_alter_empty' => 1, |
|
527 | - 'link_to_node' => 0, |
|
528 | - 'machine_name' => 0, |
|
529 | - 'exclude' => 1, |
|
530 | - 'id' => 'type', |
|
531 | - 'table' => 'node', |
|
532 | - 'field' => 'type', |
|
533 | - 'override' => array( |
|
522 | + ), |
|
523 | + 'empty' => '', |
|
524 | + 'hide_empty' => 0, |
|
525 | + 'empty_zero' => 0, |
|
526 | + 'hide_alter_empty' => 1, |
|
527 | + 'link_to_node' => 0, |
|
528 | + 'machine_name' => 0, |
|
529 | + 'exclude' => 1, |
|
530 | + 'id' => 'type', |
|
531 | + 'table' => 'node', |
|
532 | + 'field' => 'type', |
|
533 | + 'override' => array( |
|
534 | 534 | 'button' => 'Use default', |
535 | - ), |
|
536 | - 'relationship' => 'none', |
|
535 | + ), |
|
536 | + 'relationship' => 'none', |
|
537 | 537 | ), |
538 | 538 | 'timestamp' => array( |
539 | - 'label' => 'Has new content', |
|
540 | - 'alter' => array( |
|
539 | + 'label' => 'Has new content', |
|
540 | + 'alter' => array( |
|
541 | 541 | 'alter_text' => 0, |
542 | 542 | 'text' => '', |
543 | 543 | 'make_link' => 0, |
@@ -556,25 +556,25 @@ discard block |
||
556 | 556 | 'ellipsis' => 1, |
557 | 557 | 'html' => 0, |
558 | 558 | 'strip_tags' => 0, |
559 | - ), |
|
560 | - 'empty' => '', |
|
561 | - 'hide_empty' => 0, |
|
562 | - 'empty_zero' => 0, |
|
563 | - 'hide_alter_empty' => 1, |
|
564 | - 'link_to_node' => 0, |
|
565 | - 'comments' => 1, |
|
566 | - 'exclude' => 1, |
|
567 | - 'id' => 'timestamp', |
|
568 | - 'table' => 'history_user', |
|
569 | - 'field' => 'timestamp', |
|
570 | - 'relationship' => 'none', |
|
571 | - 'override' => array( |
|
559 | + ), |
|
560 | + 'empty' => '', |
|
561 | + 'hide_empty' => 0, |
|
562 | + 'empty_zero' => 0, |
|
563 | + 'hide_alter_empty' => 1, |
|
564 | + 'link_to_node' => 0, |
|
565 | + 'comments' => 1, |
|
566 | + 'exclude' => 1, |
|
567 | + 'id' => 'timestamp', |
|
568 | + 'table' => 'history_user', |
|
569 | + 'field' => 'timestamp', |
|
570 | + 'relationship' => 'none', |
|
571 | + 'override' => array( |
|
572 | 572 | 'button' => 'Use default', |
573 | - ), |
|
573 | + ), |
|
574 | 574 | ), |
575 | 575 | 'new_comments' => array( |
576 | - 'label' => 'New comments', |
|
577 | - 'alter' => array( |
|
576 | + 'label' => 'New comments', |
|
577 | + 'alter' => array( |
|
578 | 578 | 'alter_text' => 0, |
579 | 579 | 'text' => '', |
580 | 580 | 'make_link' => 0, |
@@ -593,33 +593,33 @@ discard block |
||
593 | 593 | 'ellipsis' => 1, |
594 | 594 | 'html' => 0, |
595 | 595 | 'strip_tags' => 0, |
596 | - ), |
|
597 | - 'empty' => '', |
|
598 | - 'hide_empty' => 0, |
|
599 | - 'empty_zero' => 0, |
|
600 | - 'hide_alter_empty' => 1, |
|
601 | - 'set_precision' => FALSE, |
|
602 | - 'precision' => 0, |
|
603 | - 'decimal' => '.', |
|
604 | - 'separator' => ',', |
|
605 | - 'format_plural' => 0, |
|
606 | - 'format_plural_singular' => '1', |
|
607 | - 'format_plural_plural' => '@count', |
|
608 | - 'prefix' => '', |
|
609 | - 'suffix' => '', |
|
610 | - 'link_to_comment' => 1, |
|
611 | - 'exclude' => 1, |
|
612 | - 'id' => 'new_comments', |
|
613 | - 'table' => 'node', |
|
614 | - 'field' => 'new_comments', |
|
615 | - 'relationship' => 'none', |
|
616 | - 'override' => array( |
|
596 | + ), |
|
597 | + 'empty' => '', |
|
598 | + 'hide_empty' => 0, |
|
599 | + 'empty_zero' => 0, |
|
600 | + 'hide_alter_empty' => 1, |
|
601 | + 'set_precision' => FALSE, |
|
602 | + 'precision' => 0, |
|
603 | + 'decimal' => '.', |
|
604 | + 'separator' => ',', |
|
605 | + 'format_plural' => 0, |
|
606 | + 'format_plural_singular' => '1', |
|
607 | + 'format_plural_plural' => '@count', |
|
608 | + 'prefix' => '', |
|
609 | + 'suffix' => '', |
|
610 | + 'link_to_comment' => 1, |
|
611 | + 'exclude' => 1, |
|
612 | + 'id' => 'new_comments', |
|
613 | + 'table' => 'node', |
|
614 | + 'field' => 'new_comments', |
|
615 | + 'relationship' => 'none', |
|
616 | + 'override' => array( |
|
617 | 617 | 'button' => 'Use default', |
618 | - ), |
|
618 | + ), |
|
619 | 619 | ), |
620 | 620 | 'name' => array( |
621 | - 'label' => 'Term', |
|
622 | - 'alter' => array( |
|
621 | + 'label' => 'Term', |
|
622 | + 'alter' => array( |
|
623 | 623 | 'alter_text' => 0, |
624 | 624 | 'text' => '', |
625 | 625 | 'make_link' => 0, |
@@ -638,24 +638,24 @@ discard block |
||
638 | 638 | 'ellipsis' => 1, |
639 | 639 | 'html' => 0, |
640 | 640 | 'strip_tags' => 0, |
641 | - ), |
|
642 | - 'empty' => '', |
|
643 | - 'hide_empty' => 0, |
|
644 | - 'empty_zero' => 0, |
|
645 | - 'hide_alter_empty' => 1, |
|
646 | - 'link_to_taxonomy' => 0, |
|
647 | - 'exclude' => 1, |
|
648 | - 'id' => 'name', |
|
649 | - 'table' => 'term_data', |
|
650 | - 'field' => 'name', |
|
651 | - 'override' => array( |
|
641 | + ), |
|
642 | + 'empty' => '', |
|
643 | + 'hide_empty' => 0, |
|
644 | + 'empty_zero' => 0, |
|
645 | + 'hide_alter_empty' => 1, |
|
646 | + 'link_to_taxonomy' => 0, |
|
647 | + 'exclude' => 1, |
|
648 | + 'id' => 'name', |
|
649 | + 'table' => 'term_data', |
|
650 | + 'field' => 'name', |
|
651 | + 'override' => array( |
|
652 | 652 | 'button' => 'Use default', |
653 | - ), |
|
654 | - 'relationship' => 'none', |
|
653 | + ), |
|
654 | + 'relationship' => 'none', |
|
655 | 655 | ), |
656 | 656 | 'name_1' => array( |
657 | - 'label' => 'Vocabulary name', |
|
658 | - 'alter' => array( |
|
657 | + 'label' => 'Vocabulary name', |
|
658 | + 'alter' => array( |
|
659 | 659 | 'alter_text' => 0, |
660 | 660 | 'text' => '', |
661 | 661 | 'make_link' => 0, |
@@ -674,23 +674,23 @@ discard block |
||
674 | 674 | 'ellipsis' => 1, |
675 | 675 | 'html' => 0, |
676 | 676 | 'strip_tags' => 0, |
677 | - ), |
|
678 | - 'empty' => '', |
|
679 | - 'hide_empty' => 0, |
|
680 | - 'empty_zero' => 0, |
|
681 | - 'hide_alter_empty' => 1, |
|
682 | - 'exclude' => 1, |
|
683 | - 'id' => 'name_1', |
|
684 | - 'table' => 'vocabulary', |
|
685 | - 'field' => 'name', |
|
686 | - 'override' => array( |
|
677 | + ), |
|
678 | + 'empty' => '', |
|
679 | + 'hide_empty' => 0, |
|
680 | + 'empty_zero' => 0, |
|
681 | + 'hide_alter_empty' => 1, |
|
682 | + 'exclude' => 1, |
|
683 | + 'id' => 'name_1', |
|
684 | + 'table' => 'vocabulary', |
|
685 | + 'field' => 'name', |
|
686 | + 'override' => array( |
|
687 | 687 | 'button' => 'Use default', |
688 | - ), |
|
689 | - 'relationship' => 'none', |
|
688 | + ), |
|
689 | + 'relationship' => 'none', |
|
690 | 690 | ), |
691 | 691 | 'phpcode' => array( |
692 | - 'label' => 'Page', |
|
693 | - 'alter' => array( |
|
692 | + 'label' => 'Page', |
|
693 | + 'alter' => array( |
|
694 | 694 | 'alter_text' => 0, |
695 | 695 | 'text' => '', |
696 | 696 | 'make_link' => 0, |
@@ -709,12 +709,12 @@ discard block |
||
709 | 709 | 'ellipsis' => 1, |
710 | 710 | 'html' => 0, |
711 | 711 | 'strip_tags' => 0, |
712 | - ), |
|
713 | - 'empty' => '', |
|
714 | - 'hide_empty' => 0, |
|
715 | - 'empty_zero' => 0, |
|
716 | - 'hide_alter_empty' => 1, |
|
717 | - 'value' => '<?php |
|
712 | + ), |
|
713 | + 'empty' => '', |
|
714 | + 'hide_empty' => 0, |
|
715 | + 'empty_zero' => 0, |
|
716 | + 'hide_alter_empty' => 1, |
|
717 | + 'value' => '<?php |
|
718 | 718 | $updated = ($data->node_comment_statistics_last_updated > $data->history_user_timestamp) ? TRUE : FALSE; |
719 | 719 | $url = "node/{$data->nid}"; |
720 | 720 | if ($data->node_new_comments) { |
@@ -725,18 +725,18 @@ discard block |
||
725 | 725 | print l($data->node_title, $url); |
726 | 726 | print \'</span>\'; |
727 | 727 | ?>', |
728 | - 'exclude' => 0, |
|
729 | - 'id' => 'phpcode', |
|
730 | - 'table' => 'customfield', |
|
731 | - 'field' => 'phpcode', |
|
732 | - 'override' => array( |
|
728 | + 'exclude' => 0, |
|
729 | + 'id' => 'phpcode', |
|
730 | + 'table' => 'customfield', |
|
731 | + 'field' => 'phpcode', |
|
732 | + 'override' => array( |
|
733 | 733 | 'button' => 'Use default', |
734 | - ), |
|
735 | - 'relationship' => 'none', |
|
734 | + ), |
|
735 | + 'relationship' => 'none', |
|
736 | 736 | ), |
737 | 737 | 'phpcode_1' => array( |
738 | - 'label' => '', |
|
739 | - 'alter' => array( |
|
738 | + 'label' => '', |
|
739 | + 'alter' => array( |
|
740 | 740 | 'alter_text' => 0, |
741 | 741 | 'text' => '', |
742 | 742 | 'make_link' => 0, |
@@ -755,12 +755,12 @@ discard block |
||
755 | 755 | 'ellipsis' => 1, |
756 | 756 | 'html' => 0, |
757 | 757 | 'strip_tags' => 0, |
758 | - ), |
|
759 | - 'empty' => '', |
|
760 | - 'hide_empty' => 0, |
|
761 | - 'empty_zero' => 0, |
|
762 | - 'hide_alter_empty' => 1, |
|
763 | - 'value' => '<?php |
|
758 | + ), |
|
759 | + 'empty' => '', |
|
760 | + 'hide_empty' => 0, |
|
761 | + 'empty_zero' => 0, |
|
762 | + 'hide_alter_empty' => 1, |
|
763 | + 'value' => '<?php |
|
764 | 764 | if ($data->node_type == \'forum\') { |
765 | 765 | print $data->vocabulary_name . \' › \' . $data->term_data_name; |
766 | 766 | } |
@@ -768,18 +768,18 @@ discard block |
||
768 | 768 | print bts(\'News\', array(), NULL, \'boinc:menu-link\'); |
769 | 769 | } |
770 | 770 | ?>', |
771 | - 'exclude' => 0, |
|
772 | - 'id' => 'phpcode_1', |
|
773 | - 'table' => 'customfield', |
|
774 | - 'field' => 'phpcode', |
|
775 | - 'override' => array( |
|
771 | + 'exclude' => 0, |
|
772 | + 'id' => 'phpcode_1', |
|
773 | + 'table' => 'customfield', |
|
774 | + 'field' => 'phpcode', |
|
775 | + 'override' => array( |
|
776 | 776 | 'button' => 'Use default', |
777 | - ), |
|
778 | - 'relationship' => 'none', |
|
777 | + ), |
|
778 | + 'relationship' => 'none', |
|
779 | 779 | ), |
780 | 780 | 'last_updated' => array( |
781 | - 'label' => bts('Updated', array(), NULL, 'boinc:account-dashboard'), |
|
782 | - 'alter' => array( |
|
781 | + 'label' => bts('Updated', array(), NULL, 'boinc:account-dashboard'), |
|
782 | + 'alter' => array( |
|
783 | 783 | 'alter_text' => 0, |
784 | 784 | 'text' => '', |
785 | 785 | 'make_link' => 0, |
@@ -798,25 +798,25 @@ discard block |
||
798 | 798 | 'ellipsis' => 1, |
799 | 799 | 'html' => 0, |
800 | 800 | 'strip_tags' => 0, |
801 | - ), |
|
802 | - 'empty' => '', |
|
803 | - 'hide_empty' => 0, |
|
804 | - 'empty_zero' => 0, |
|
805 | - 'hide_alter_empty' => 1, |
|
806 | - 'date_format' => 'time ago', |
|
807 | - 'custom_date_format' => '', |
|
808 | - 'exclude' => 0, |
|
809 | - 'id' => 'last_updated', |
|
810 | - 'table' => 'node_comment_statistics', |
|
811 | - 'field' => 'last_updated', |
|
812 | - 'override' => array( |
|
801 | + ), |
|
802 | + 'empty' => '', |
|
803 | + 'hide_empty' => 0, |
|
804 | + 'empty_zero' => 0, |
|
805 | + 'hide_alter_empty' => 1, |
|
806 | + 'date_format' => 'time ago', |
|
807 | + 'custom_date_format' => '', |
|
808 | + 'exclude' => 0, |
|
809 | + 'id' => 'last_updated', |
|
810 | + 'table' => 'node_comment_statistics', |
|
811 | + 'field' => 'last_updated', |
|
812 | + 'override' => array( |
|
813 | 813 | 'button' => 'Use default', |
814 | - ), |
|
815 | - 'relationship' => 'none', |
|
814 | + ), |
|
815 | + 'relationship' => 'none', |
|
816 | 816 | ), |
817 | 817 | 'ops' => array( |
818 | - 'label' => '', |
|
819 | - 'alter' => array( |
|
818 | + 'label' => '', |
|
819 | + 'alter' => array( |
|
820 | 820 | 'alter_text' => 0, |
821 | 821 | 'text' => '', |
822 | 822 | 'make_link' => 0, |
@@ -835,66 +835,66 @@ discard block |
||
835 | 835 | 'ellipsis' => 1, |
836 | 836 | 'html' => 0, |
837 | 837 | 'strip_tags' => 0, |
838 | - ), |
|
839 | - 'empty' => '', |
|
840 | - 'hide_empty' => 0, |
|
841 | - 'empty_zero' => 0, |
|
842 | - 'hide_alter_empty' => 1, |
|
843 | - 'link_type' => '', |
|
844 | - 'exclude' => 1, |
|
845 | - 'id' => 'ops', |
|
846 | - 'table' => 'flag_content', |
|
847 | - 'field' => 'ops', |
|
848 | - 'relationship' => 'flag_content_rel', |
|
849 | - 'override' => array( |
|
838 | + ), |
|
839 | + 'empty' => '', |
|
840 | + 'hide_empty' => 0, |
|
841 | + 'empty_zero' => 0, |
|
842 | + 'hide_alter_empty' => 1, |
|
843 | + 'link_type' => '', |
|
844 | + 'exclude' => 1, |
|
845 | + 'id' => 'ops', |
|
846 | + 'table' => 'flag_content', |
|
847 | + 'field' => 'ops', |
|
848 | + 'relationship' => 'flag_content_rel', |
|
849 | + 'override' => array( |
|
850 | 850 | 'button' => 'Use default', |
851 | - ), |
|
851 | + ), |
|
852 | 852 | ), |
853 | - )); |
|
854 | - $handler->override_option('title', 'Subscriptions'); |
|
855 | - $handler->override_option('items_per_page', 5); |
|
856 | - $handler->override_option('use_pager', '0'); |
|
857 | - $handler->override_option('use_more', 1); |
|
858 | - $handler->override_option('use_more_always', 1); |
|
859 | - $handler->override_option('style_plugin', 'table'); |
|
860 | - $handler->override_option('style_options', array( |
|
853 | + )); |
|
854 | + $handler->override_option('title', 'Subscriptions'); |
|
855 | + $handler->override_option('items_per_page', 5); |
|
856 | + $handler->override_option('use_pager', '0'); |
|
857 | + $handler->override_option('use_more', 1); |
|
858 | + $handler->override_option('use_more_always', 1); |
|
859 | + $handler->override_option('style_plugin', 'table'); |
|
860 | + $handler->override_option('style_options', array( |
|
861 | 861 | 'grouping' => '', |
862 | 862 | 'override' => 1, |
863 | 863 | 'sticky' => 0, |
864 | 864 | 'order' => 'desc', |
865 | 865 | 'summary' => '', |
866 | 866 | 'columns' => array( |
867 | - 'title' => 'title', |
|
868 | - 'type' => 'type', |
|
869 | - 'ops' => 'ops', |
|
870 | - 'last_updated' => 'last_updated', |
|
867 | + 'title' => 'title', |
|
868 | + 'type' => 'type', |
|
869 | + 'ops' => 'ops', |
|
870 | + 'last_updated' => 'last_updated', |
|
871 | 871 | ), |
872 | 872 | 'info' => array( |
873 | - 'title' => array( |
|
873 | + 'title' => array( |
|
874 | 874 | 'sortable' => 0, |
875 | 875 | 'separator' => '', |
876 | - ), |
|
877 | - 'type' => array( |
|
876 | + ), |
|
877 | + 'type' => array( |
|
878 | 878 | 'sortable' => 0, |
879 | 879 | 'separator' => '', |
880 | - ), |
|
881 | - 'ops' => array( |
|
880 | + ), |
|
881 | + 'ops' => array( |
|
882 | 882 | 'separator' => '', |
883 | - ), |
|
884 | - 'last_updated' => array( |
|
883 | + ), |
|
884 | + 'last_updated' => array( |
|
885 | 885 | 'sortable' => 0, |
886 | 886 | 'separator' => '', |
887 | - ), |
|
887 | + ), |
|
888 | 888 | ), |
889 | 889 | 'default' => 'last_updated', |
890 | - )); |
|
891 | - $handler->override_option('pane_title', ''); |
|
892 | - $handler->override_option('pane_description', ''); |
|
893 | - $handler->override_option('pane_category', array( |
|
890 | + )); |
|
891 | + $handler->override_option('pane_title', ''); |
|
892 | + $handler->override_option('pane_description', ''); |
|
893 | + $handler->override_option('pane_category', array( |
|
894 | 894 | 'name' => 'View panes', |
895 | 895 | 'weight' => 0, |
896 | - )); |
|
897 | - $handler->override_option('allow', array( |
|
896 | + )); |
|
897 | + $handler->override_option('allow', array( |
|
898 | 898 | 'use_pager' => FALSE, |
899 | 899 | 'items_per_page' => FALSE, |
900 | 900 | 'offset' => FALSE, |
@@ -904,12 +904,12 @@ discard block |
||
904 | 904 | 'title_override' => FALSE, |
905 | 905 | 'exposed_form' => FALSE, |
906 | 906 | 'fields_override' => FALSE, |
907 | - )); |
|
908 | - $handler->override_option('argument_input', array()); |
|
909 | - $handler->override_option('link_to_view', 0); |
|
910 | - $handler->override_option('inherit_panels_path', 0); |
|
907 | + )); |
|
908 | + $handler->override_option('argument_input', array()); |
|
909 | + $handler->override_option('link_to_view', 0); |
|
910 | + $handler->override_option('inherit_panels_path', 0); |
|
911 | 911 | |
912 | - $views[$view->name] = $view; |
|
912 | + $views[$view->name] = $view; |
|
913 | 913 | |
914 | - return $views; |
|
914 | + return $views; |
|
915 | 915 | } |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | $export = array(); |
8 | 8 | |
9 | 9 | $mini = new stdClass; |
10 | - $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */ |
|
10 | + $mini->disabled = false; /* Edit this to true to make a default mini disabled initially */ |
|
11 | 11 | $mini->api_version = 1; |
12 | 12 | $mini->name = 'user_mail_summary'; |
13 | 13 | $mini->category = 'BOINC'; |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | $display->layout_settings = array(); |
22 | 22 | $display->panel_settings = array( |
23 | 23 | 'style_settings' => array( |
24 | - 'default' => NULL, |
|
25 | - 'middle' => NULL, |
|
24 | + 'default' => null, |
|
25 | + 'middle' => null, |
|
26 | 26 | ), |
27 | 27 | ); |
28 | 28 | $display->cache = array(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $pane->panel = 'middle'; |
35 | 35 | $pane->type = 'custom'; |
36 | 36 | $pane->subtype = 'custom'; |
37 | - $pane->shown = TRUE; |
|
37 | + $pane->shown = true; |
|
38 | 38 | $pane->access = array(); |
39 | 39 | $pane->configuration = array( |
40 | 40 | 'admin_title' => 'Mail summary', |
@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | <li class="last tab"><a href="<?php echo $l2?>"><?php print bts(\'Compose new\', array(), NULL, \'boinc:account-dashboard\'); ?></a></li> |
51 | 51 | </ul>', |
52 | 52 | 'format' => '3', |
53 | - 'substitute' => TRUE, |
|
53 | + 'substitute' => true, |
|
54 | 54 | ); |
55 | 55 | $pane->cache = array(); |
56 | 56 | $pane->style = array( |
57 | - 'settings' => NULL, |
|
57 | + 'settings' => null, |
|
58 | 58 | ); |
59 | 59 | $pane->css = array(); |
60 | 60 | $pane->extras = array(); |
@@ -4,33 +4,33 @@ discard block |
||
4 | 4 | * Implementation of hook_default_panels_mini(). |
5 | 5 | */ |
6 | 6 | function private_messages_default_panels_mini() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $mini = new stdClass; |
|
10 | - $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */ |
|
11 | - $mini->api_version = 1; |
|
12 | - $mini->name = 'user_mail_summary'; |
|
13 | - $mini->category = 'BOINC'; |
|
14 | - $mini->admin_title = 'User mail summary'; |
|
15 | - $mini->admin_description = 'Mail widget for user dashboard'; |
|
16 | - $mini->requiredcontexts = array(); |
|
17 | - $mini->contexts = array(); |
|
18 | - $mini->relationships = array(); |
|
19 | - $display = new panels_display; |
|
20 | - $display->layout = 'onecol'; |
|
21 | - $display->layout_settings = array(); |
|
22 | - $display->panel_settings = array( |
|
9 | + $mini = new stdClass; |
|
10 | + $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */ |
|
11 | + $mini->api_version = 1; |
|
12 | + $mini->name = 'user_mail_summary'; |
|
13 | + $mini->category = 'BOINC'; |
|
14 | + $mini->admin_title = 'User mail summary'; |
|
15 | + $mini->admin_description = 'Mail widget for user dashboard'; |
|
16 | + $mini->requiredcontexts = array(); |
|
17 | + $mini->contexts = array(); |
|
18 | + $mini->relationships = array(); |
|
19 | + $display = new panels_display; |
|
20 | + $display->layout = 'onecol'; |
|
21 | + $display->layout_settings = array(); |
|
22 | + $display->panel_settings = array( |
|
23 | 23 | 'style_settings' => array( |
24 | - 'default' => NULL, |
|
25 | - 'middle' => NULL, |
|
24 | + 'default' => NULL, |
|
25 | + 'middle' => NULL, |
|
26 | 26 | ), |
27 | - ); |
|
28 | - $display->cache = array(); |
|
29 | - $display->title = 'Messages'; |
|
30 | - $display->storage_type = 'panels_mini'; |
|
31 | - $display->storage_id = 'user_mail_summary'; |
|
32 | - $display->content = array(); |
|
33 | - $display->panels = array(); |
|
27 | + ); |
|
28 | + $display->cache = array(); |
|
29 | + $display->title = 'Messages'; |
|
30 | + $display->storage_type = 'panels_mini'; |
|
31 | + $display->storage_id = 'user_mail_summary'; |
|
32 | + $display->content = array(); |
|
33 | + $display->panels = array(); |
|
34 | 34 | $pane = new stdClass; |
35 | 35 | $pane->pid = 'new-1'; |
36 | 36 | $pane->panel = 'middle'; |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | $pane->shown = TRUE; |
40 | 40 | $pane->access = array(); |
41 | 41 | $pane->configuration = array( |
42 | - 'admin_title' => 'Mail summary', |
|
43 | - 'title' => 'Messages', |
|
44 | - 'body' => '<?php |
|
42 | + 'admin_title' => 'Mail summary', |
|
43 | + 'title' => 'Messages', |
|
44 | + 'body' => '<?php |
|
45 | 45 | $l1 = url(\'messages\'); |
46 | 46 | $l2 = url(\'messages/new\'); |
47 | 47 | ?> |
@@ -51,22 +51,22 @@ discard block |
||
51 | 51 | </li> |
52 | 52 | <li class="last tab"><a href="<?php echo $l2?>"><?php print bts(\'Compose new\', array(), NULL, \'boinc:account-dashboard\'); ?></a></li> |
53 | 53 | </ul>', |
54 | - 'format' => '3', |
|
55 | - 'substitute' => TRUE, |
|
54 | + 'format' => '3', |
|
55 | + 'substitute' => TRUE, |
|
56 | 56 | ); |
57 | 57 | $pane->cache = array(); |
58 | 58 | $pane->style = array( |
59 | - 'settings' => NULL, |
|
59 | + 'settings' => NULL, |
|
60 | 60 | ); |
61 | 61 | $pane->css = array(); |
62 | 62 | $pane->extras = array(); |
63 | 63 | $pane->position = 0; |
64 | 64 | $display->content['new-1'] = $pane; |
65 | 65 | $display->panels['middle'][0] = 'new-1'; |
66 | - $display->hide_title = PANELS_TITLE_NONE; |
|
67 | - $display->title_pane = 'new-1'; |
|
68 | - $mini->display = $display; |
|
69 | - $export['user_mail_summary'] = $mini; |
|
66 | + $display->hide_title = PANELS_TITLE_NONE; |
|
67 | + $display->title_pane = 'new-1'; |
|
68 | + $mini->display = $display; |
|
69 | + $export['user_mail_summary'] = $mini; |
|
70 | 70 | |
71 | - return $export; |
|
71 | + return $export; |
|
72 | 72 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $view->base_table = 'host'; |
15 | 15 | $view->core = 0; |
16 | 16 | $view->api_version = '2'; |
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
17 | + $view->disabled = false; /* Edit this to true to make a default view disabled initially */ |
|
18 | 18 | $handler = $view->new_display('default', 'Defaults', 'default'); |
19 | 19 | $handler->override_option('relationships', array( |
20 | 20 | 'userid' => array( |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | 'empty' => '', |
48 | 48 | 'hide_empty' => 0, |
49 | 49 | 'empty_zero' => 0, |
50 | - 'set_precision' => FALSE, |
|
50 | + 'set_precision' => false, |
|
51 | 51 | 'precision' => 0, |
52 | 52 | 'decimal' => '.', |
53 | 53 | 'separator' => '', |
@@ -830,7 +830,7 @@ discard block |
||
830 | 830 | $handler->override_option('path', 'account/computers/all'); |
831 | 831 | $handler->override_option('menu', array( |
832 | 832 | 'type' => 'tab', |
833 | - 'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'), |
|
833 | + 'title' => bts('All computers', array(), null, 'boinc:account-host-list'), |
|
834 | 834 | 'description' => 'Show all computers associated with the account', |
835 | 835 | 'weight' => '1', |
836 | 836 | 'name' => 'navigation', |
@@ -853,9 +853,9 @@ discard block |
||
853 | 853 | 'max' => '', |
854 | 854 | ), |
855 | 855 | 'group' => '0', |
856 | - 'exposed' => FALSE, |
|
856 | + 'exposed' => false, |
|
857 | 857 | 'expose' => array( |
858 | - 'operator' => FALSE, |
|
858 | + 'operator' => false, |
|
859 | 859 | 'label' => '', |
860 | 860 | ), |
861 | 861 | 'id' => 'rpc_time', |
@@ -870,7 +870,7 @@ discard block |
||
870 | 870 | $handler->override_option('path', 'account/computers/active'); |
871 | 871 | $handler->override_option('menu', array( |
872 | 872 | 'type' => 'default tab', |
873 | - 'title' => bts('Computers active in past 30 days', array(), NULL, 'boinc:account-host-list'), |
|
873 | + 'title' => bts('Computers active in past 30 days', array(), null, 'boinc:account-host-list'), |
|
874 | 874 | 'description' => '', |
875 | 875 | 'weight' => '0', |
876 | 876 | 'name' => 'navigation', |
@@ -910,7 +910,7 @@ discard block |
||
910 | 910 | 'hide_empty' => 0, |
911 | 911 | 'empty_zero' => 0, |
912 | 912 | 'hide_alter_empty' => 1, |
913 | - 'set_precision' => FALSE, |
|
913 | + 'set_precision' => false, |
|
914 | 914 | 'precision' => 0, |
915 | 915 | 'decimal' => '.', |
916 | 916 | 'separator' => '', |
@@ -1101,7 +1101,7 @@ discard block |
||
1101 | 1101 | )); |
1102 | 1102 | $handler->override_option('title', 'Computers'); |
1103 | 1103 | $handler->override_option('items_per_page', 7); |
1104 | - $handler->override_option('use_pager', FALSE); |
|
1104 | + $handler->override_option('use_pager', false); |
|
1105 | 1105 | $handler->override_option('use_more', 0); |
1106 | 1106 | $handler->override_option('use_more_always', 1); |
1107 | 1107 | $handler->override_option('style_options', array( |
@@ -1147,15 +1147,15 @@ discard block |
||
1147 | 1147 | 'weight' => 0, |
1148 | 1148 | )); |
1149 | 1149 | $handler->override_option('allow', array( |
1150 | - 'use_pager' => FALSE, |
|
1151 | - 'items_per_page' => FALSE, |
|
1152 | - 'offset' => FALSE, |
|
1153 | - 'link_to_view' => FALSE, |
|
1154 | - 'more_link' => FALSE, |
|
1155 | - 'path_override' => FALSE, |
|
1156 | - 'title_override' => FALSE, |
|
1157 | - 'exposed_form' => FALSE, |
|
1158 | - 'fields_override' => FALSE, |
|
1150 | + 'use_pager' => false, |
|
1151 | + 'items_per_page' => false, |
|
1152 | + 'offset' => false, |
|
1153 | + 'link_to_view' => false, |
|
1154 | + 'more_link' => false, |
|
1155 | + 'path_override' => false, |
|
1156 | + 'title_override' => false, |
|
1157 | + 'exposed_form' => false, |
|
1158 | + 'fields_override' => false, |
|
1159 | 1159 | )); |
1160 | 1160 | $handler->override_option('argument_input', array()); |
1161 | 1161 | $handler->override_option('link_to_view', 0); |
@@ -1188,7 +1188,7 @@ discard block |
||
1188 | 1188 | 'hide_empty' => 0, |
1189 | 1189 | 'empty_zero' => 0, |
1190 | 1190 | 'hide_alter_empty' => 1, |
1191 | - 'set_precision' => FALSE, |
|
1191 | + 'set_precision' => false, |
|
1192 | 1192 | 'precision' => 0, |
1193 | 1193 | 'decimal' => '.', |
1194 | 1194 | 'separator' => '', |
@@ -1497,7 +1497,7 @@ discard block |
||
1497 | 1497 | ), |
1498 | 1498 | )); |
1499 | 1499 | $handler->override_option('items_per_page', 9); |
1500 | - $handler->override_option('use_pager', FALSE); |
|
1500 | + $handler->override_option('use_pager', false); |
|
1501 | 1501 | $handler->override_option('use_more', 1); |
1502 | 1502 | $handler->override_option('use_more_always', 1); |
1503 | 1503 | $handler->override_option('style_options', array( |
@@ -4,29 +4,29 @@ discard block |
||
4 | 4 | * Implementation of hook_views_default_views(). |
5 | 5 | */ |
6 | 6 | function user_account_host_list_views_default_views() { |
7 | - $views = array(); |
|
7 | + $views = array(); |
|
8 | 8 | |
9 | - // Exported view: boinc_account_computers |
|
10 | - $view = new view; |
|
11 | - $view->name = 'boinc_account_computers'; |
|
12 | - $view->description = 'A list of computers associated with the current account'; |
|
13 | - $view->tag = ''; |
|
14 | - $view->base_table = 'host'; |
|
15 | - $view->core = 0; |
|
16 | - $view->api_version = '2'; |
|
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | - $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | - $handler->override_option('relationships', array( |
|
9 | + // Exported view: boinc_account_computers |
|
10 | + $view = new view; |
|
11 | + $view->name = 'boinc_account_computers'; |
|
12 | + $view->description = 'A list of computers associated with the current account'; |
|
13 | + $view->tag = ''; |
|
14 | + $view->base_table = 'host'; |
|
15 | + $view->core = 0; |
|
16 | + $view->api_version = '2'; |
|
17 | + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | + $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | + $handler->override_option('relationships', array( |
|
20 | 20 | 'userid' => array( |
21 | - 'id' => 'userid', |
|
22 | - 'table' => 'host', |
|
23 | - 'field' => 'userid', |
|
21 | + 'id' => 'userid', |
|
22 | + 'table' => 'host', |
|
23 | + 'field' => 'userid', |
|
24 | 24 | ), |
25 | - )); |
|
26 | - $handler->override_option('fields', array( |
|
25 | + )); |
|
26 | + $handler->override_option('fields', array( |
|
27 | 27 | 'id' => array( |
28 | - 'label' => 'Computer ID', |
|
29 | - 'alter' => array( |
|
28 | + 'label' => 'Computer ID', |
|
29 | + 'alter' => array( |
|
30 | 30 | 'alter_text' => 0, |
31 | 31 | 'text' => '', |
32 | 32 | 'make_link' => 0, |
@@ -43,28 +43,28 @@ discard block |
||
43 | 43 | 'ellipsis' => 1, |
44 | 44 | 'html' => 0, |
45 | 45 | 'strip_tags' => 0, |
46 | - ), |
|
47 | - 'empty' => '', |
|
48 | - 'hide_empty' => 0, |
|
49 | - 'empty_zero' => 0, |
|
50 | - 'set_precision' => FALSE, |
|
51 | - 'precision' => 0, |
|
52 | - 'decimal' => '.', |
|
53 | - 'separator' => '', |
|
54 | - 'prefix' => 'ID: ', |
|
55 | - 'suffix' => '', |
|
56 | - 'exclude' => 0, |
|
57 | - 'id' => 'id', |
|
58 | - 'table' => 'host', |
|
59 | - 'field' => 'id', |
|
60 | - 'relationship' => 'none', |
|
61 | - 'override' => array( |
|
46 | + ), |
|
47 | + 'empty' => '', |
|
48 | + 'hide_empty' => 0, |
|
49 | + 'empty_zero' => 0, |
|
50 | + 'set_precision' => FALSE, |
|
51 | + 'precision' => 0, |
|
52 | + 'decimal' => '.', |
|
53 | + 'separator' => '', |
|
54 | + 'prefix' => 'ID: ', |
|
55 | + 'suffix' => '', |
|
56 | + 'exclude' => 0, |
|
57 | + 'id' => 'id', |
|
58 | + 'table' => 'host', |
|
59 | + 'field' => 'id', |
|
60 | + 'relationship' => 'none', |
|
61 | + 'override' => array( |
|
62 | 62 | 'button' => 'Override', |
63 | - ), |
|
63 | + ), |
|
64 | 64 | ), |
65 | 65 | 'phpcode_3' => array( |
66 | - 'label' => 'Computer links', |
|
67 | - 'alter' => array( |
|
66 | + 'label' => 'Computer links', |
|
67 | + 'alter' => array( |
|
68 | 68 | 'alter_text' => 0, |
69 | 69 | 'text' => '', |
70 | 70 | 'make_link' => 0, |
@@ -83,26 +83,26 @@ discard block |
||
83 | 83 | 'ellipsis' => 1, |
84 | 84 | 'html' => 0, |
85 | 85 | 'strip_tags' => 0, |
86 | - ), |
|
87 | - 'empty' => '', |
|
88 | - 'hide_empty' => 0, |
|
89 | - 'empty_zero' => 0, |
|
90 | - 'hide_alter_empty' => 1, |
|
91 | - 'value' => '<?php |
|
86 | + ), |
|
87 | + 'empty' => '', |
|
88 | + 'hide_empty' => 0, |
|
89 | + 'empty_zero' => 0, |
|
90 | + 'hide_alter_empty' => 1, |
|
91 | + 'value' => '<?php |
|
92 | 92 | echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \' | \' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0"); |
93 | 93 | ?>', |
94 | - 'exclude' => 0, |
|
95 | - 'id' => 'phpcode_3', |
|
96 | - 'table' => 'customfield', |
|
97 | - 'field' => 'phpcode', |
|
98 | - 'override' => array( |
|
94 | + 'exclude' => 0, |
|
95 | + 'id' => 'phpcode_3', |
|
96 | + 'table' => 'customfield', |
|
97 | + 'field' => 'phpcode', |
|
98 | + 'override' => array( |
|
99 | 99 | 'button' => 'Override', |
100 | - ), |
|
101 | - 'relationship' => 'none', |
|
100 | + ), |
|
101 | + 'relationship' => 'none', |
|
102 | 102 | ), |
103 | 103 | 'host_cpid' => array( |
104 | - 'label' => 'Cross project ID', |
|
105 | - 'alter' => array( |
|
104 | + 'label' => 'Cross project ID', |
|
105 | + 'alter' => array( |
|
106 | 106 | 'alter_text' => 0, |
107 | 107 | 'text' => '', |
108 | 108 | 'make_link' => 0, |
@@ -119,19 +119,19 @@ discard block |
||
119 | 119 | 'ellipsis' => 1, |
120 | 120 | 'html' => 0, |
121 | 121 | 'strip_tags' => 0, |
122 | - ), |
|
123 | - 'empty' => '', |
|
124 | - 'hide_empty' => 0, |
|
125 | - 'empty_zero' => 0, |
|
126 | - 'exclude' => 1, |
|
127 | - 'id' => 'host_cpid', |
|
128 | - 'table' => 'host', |
|
129 | - 'field' => 'host_cpid', |
|
130 | - 'relationship' => 'none', |
|
122 | + ), |
|
123 | + 'empty' => '', |
|
124 | + 'hide_empty' => 0, |
|
125 | + 'empty_zero' => 0, |
|
126 | + 'exclude' => 1, |
|
127 | + 'id' => 'host_cpid', |
|
128 | + 'table' => 'host', |
|
129 | + 'field' => 'host_cpid', |
|
130 | + 'relationship' => 'none', |
|
131 | 131 | ), |
132 | 132 | 'phpcode_4' => array( |
133 | - 'label' => 'Cross-project statistics', |
|
134 | - 'alter' => array( |
|
133 | + 'label' => 'Cross-project statistics', |
|
134 | + 'alter' => array( |
|
135 | 135 | 'alter_text' => 0, |
136 | 136 | 'text' => '', |
137 | 137 | 'make_link' => 0, |
@@ -148,11 +148,11 @@ discard block |
||
148 | 148 | 'ellipsis' => 1, |
149 | 149 | 'html' => 0, |
150 | 150 | 'strip_tags' => 0, |
151 | - ), |
|
152 | - 'empty' => '', |
|
153 | - 'hide_empty' => 0, |
|
154 | - 'empty_zero' => 0, |
|
155 | - 'value' => '<?php |
|
151 | + ), |
|
152 | + 'empty' => '', |
|
153 | + 'hide_empty' => 0, |
|
154 | + 'empty_zero' => 0, |
|
155 | + 'value' => '<?php |
|
156 | 156 | require_boinc(\'stats_sites\'); |
157 | 157 | global $host_sites; |
158 | 158 | $x = ""; |
@@ -165,18 +165,18 @@ discard block |
||
165 | 165 | } |
166 | 166 | echo "Cross-project stats: {$x}"; |
167 | 167 | ?>', |
168 | - 'exclude' => 0, |
|
169 | - 'id' => 'phpcode_4', |
|
170 | - 'table' => 'customfield', |
|
171 | - 'field' => 'phpcode', |
|
172 | - 'override' => array( |
|
168 | + 'exclude' => 0, |
|
169 | + 'id' => 'phpcode_4', |
|
170 | + 'table' => 'customfield', |
|
171 | + 'field' => 'phpcode', |
|
172 | + 'override' => array( |
|
173 | 173 | 'button' => 'Override', |
174 | - ), |
|
175 | - 'relationship' => 'none', |
|
174 | + ), |
|
175 | + 'relationship' => 'none', |
|
176 | 176 | ), |
177 | 177 | 'domain_name' => array( |
178 | - 'label' => 'Name', |
|
179 | - 'alter' => array( |
|
178 | + 'label' => 'Name', |
|
179 | + 'alter' => array( |
|
180 | 180 | 'alter_text' => 0, |
181 | 181 | 'text' => '', |
182 | 182 | 'make_link' => 0, |
@@ -195,23 +195,23 @@ discard block |
||
195 | 195 | 'ellipsis' => 1, |
196 | 196 | 'html' => 0, |
197 | 197 | 'strip_tags' => 0, |
198 | - ), |
|
199 | - 'empty' => '', |
|
200 | - 'hide_empty' => 0, |
|
201 | - 'empty_zero' => 0, |
|
202 | - 'hide_alter_empty' => 1, |
|
203 | - 'exclude' => 0, |
|
204 | - 'id' => 'domain_name', |
|
205 | - 'table' => 'host', |
|
206 | - 'field' => 'domain_name', |
|
207 | - 'relationship' => 'none', |
|
208 | - 'override' => array( |
|
198 | + ), |
|
199 | + 'empty' => '', |
|
200 | + 'hide_empty' => 0, |
|
201 | + 'empty_zero' => 0, |
|
202 | + 'hide_alter_empty' => 1, |
|
203 | + 'exclude' => 0, |
|
204 | + 'id' => 'domain_name', |
|
205 | + 'table' => 'host', |
|
206 | + 'field' => 'domain_name', |
|
207 | + 'relationship' => 'none', |
|
208 | + 'override' => array( |
|
209 | 209 | 'button' => 'Override', |
210 | - ), |
|
210 | + ), |
|
211 | 211 | ), |
212 | 212 | 'venue' => array( |
213 | - 'label' => 'Location', |
|
214 | - 'alter' => array( |
|
213 | + 'label' => 'Location', |
|
214 | + 'alter' => array( |
|
215 | 215 | 'alter_text' => 0, |
216 | 216 | 'text' => '', |
217 | 217 | 'make_link' => 0, |
@@ -230,20 +230,20 @@ discard block |
||
230 | 230 | 'ellipsis' => 1, |
231 | 231 | 'html' => 0, |
232 | 232 | 'strip_tags' => 0, |
233 | - ), |
|
234 | - 'empty' => '', |
|
235 | - 'hide_empty' => 0, |
|
236 | - 'empty_zero' => 0, |
|
237 | - 'hide_alter_empty' => 1, |
|
238 | - 'exclude' => 0, |
|
239 | - 'id' => 'venue', |
|
240 | - 'table' => 'host', |
|
241 | - 'field' => 'venue', |
|
242 | - 'relationship' => 'none', |
|
233 | + ), |
|
234 | + 'empty' => '', |
|
235 | + 'hide_empty' => 0, |
|
236 | + 'empty_zero' => 0, |
|
237 | + 'hide_alter_empty' => 1, |
|
238 | + 'exclude' => 0, |
|
239 | + 'id' => 'venue', |
|
240 | + 'table' => 'host', |
|
241 | + 'field' => 'venue', |
|
242 | + 'relationship' => 'none', |
|
243 | 243 | ), |
244 | 244 | 'expavg_credit' => array( |
245 | - 'label' => 'Avg. credit', |
|
246 | - 'alter' => array( |
|
245 | + 'label' => 'Avg. credit', |
|
246 | + 'alter' => array( |
|
247 | 247 | 'alter_text' => 0, |
248 | 248 | 'text' => '', |
249 | 249 | 'make_link' => 0, |
@@ -260,25 +260,25 @@ discard block |
||
260 | 260 | 'ellipsis' => 1, |
261 | 261 | 'html' => 0, |
262 | 262 | 'strip_tags' => 0, |
263 | - ), |
|
264 | - 'empty' => '', |
|
265 | - 'hide_empty' => 0, |
|
266 | - 'empty_zero' => 0, |
|
267 | - 'set_precision' => 1, |
|
268 | - 'precision' => '2', |
|
269 | - 'decimal' => '.', |
|
270 | - 'separator' => ',', |
|
271 | - 'prefix' => '', |
|
272 | - 'suffix' => '', |
|
273 | - 'exclude' => 0, |
|
274 | - 'id' => 'expavg_credit', |
|
275 | - 'table' => 'host', |
|
276 | - 'field' => 'expavg_credit', |
|
277 | - 'relationship' => 'none', |
|
263 | + ), |
|
264 | + 'empty' => '', |
|
265 | + 'hide_empty' => 0, |
|
266 | + 'empty_zero' => 0, |
|
267 | + 'set_precision' => 1, |
|
268 | + 'precision' => '2', |
|
269 | + 'decimal' => '.', |
|
270 | + 'separator' => ',', |
|
271 | + 'prefix' => '', |
|
272 | + 'suffix' => '', |
|
273 | + 'exclude' => 0, |
|
274 | + 'id' => 'expavg_credit', |
|
275 | + 'table' => 'host', |
|
276 | + 'field' => 'expavg_credit', |
|
277 | + 'relationship' => 'none', |
|
278 | 278 | ), |
279 | 279 | 'total_credit' => array( |
280 | - 'label' => 'Total credit', |
|
281 | - 'alter' => array( |
|
280 | + 'label' => 'Total credit', |
|
281 | + 'alter' => array( |
|
282 | 282 | 'alter_text' => 0, |
283 | 283 | 'text' => '', |
284 | 284 | 'make_link' => 0, |
@@ -295,25 +295,25 @@ discard block |
||
295 | 295 | 'ellipsis' => 1, |
296 | 296 | 'html' => 0, |
297 | 297 | 'strip_tags' => 0, |
298 | - ), |
|
299 | - 'empty' => '', |
|
300 | - 'hide_empty' => 0, |
|
301 | - 'empty_zero' => 0, |
|
302 | - 'set_precision' => 1, |
|
303 | - 'precision' => '0', |
|
304 | - 'decimal' => '.', |
|
305 | - 'separator' => ',', |
|
306 | - 'prefix' => '', |
|
307 | - 'suffix' => '', |
|
308 | - 'exclude' => 0, |
|
309 | - 'id' => 'total_credit', |
|
310 | - 'table' => 'host', |
|
311 | - 'field' => 'total_credit', |
|
312 | - 'relationship' => 'none', |
|
298 | + ), |
|
299 | + 'empty' => '', |
|
300 | + 'hide_empty' => 0, |
|
301 | + 'empty_zero' => 0, |
|
302 | + 'set_precision' => 1, |
|
303 | + 'precision' => '0', |
|
304 | + 'decimal' => '.', |
|
305 | + 'separator' => ',', |
|
306 | + 'prefix' => '', |
|
307 | + 'suffix' => '', |
|
308 | + 'exclude' => 0, |
|
309 | + 'id' => 'total_credit', |
|
310 | + 'table' => 'host', |
|
311 | + 'field' => 'total_credit', |
|
312 | + 'relationship' => 'none', |
|
313 | 313 | ), |
314 | 314 | 'serialnum' => array( |
315 | - 'label' => 'Serial Number', |
|
316 | - 'alter' => array( |
|
315 | + 'label' => 'Serial Number', |
|
316 | + 'alter' => array( |
|
317 | 317 | 'alter_text' => 0, |
318 | 318 | 'text' => '', |
319 | 319 | 'make_link' => 0, |
@@ -332,20 +332,20 @@ discard block |
||
332 | 332 | 'ellipsis' => 1, |
333 | 333 | 'html' => 0, |
334 | 334 | 'strip_tags' => 0, |
335 | - ), |
|
336 | - 'empty' => '', |
|
337 | - 'hide_empty' => 0, |
|
338 | - 'empty_zero' => 0, |
|
339 | - 'hide_alter_empty' => 1, |
|
340 | - 'exclude' => 1, |
|
341 | - 'id' => 'serialnum', |
|
342 | - 'table' => 'host', |
|
343 | - 'field' => 'serialnum', |
|
344 | - 'relationship' => 'none', |
|
335 | + ), |
|
336 | + 'empty' => '', |
|
337 | + 'hide_empty' => 0, |
|
338 | + 'empty_zero' => 0, |
|
339 | + 'hide_alter_empty' => 1, |
|
340 | + 'exclude' => 1, |
|
341 | + 'id' => 'serialnum', |
|
342 | + 'table' => 'host', |
|
343 | + 'field' => 'serialnum', |
|
344 | + 'relationship' => 'none', |
|
345 | 345 | ), |
346 | 346 | 'phpcode' => array( |
347 | - 'label' => 'BOINC version', |
|
348 | - 'alter' => array( |
|
347 | + 'label' => 'BOINC version', |
|
348 | + 'alter' => array( |
|
349 | 349 | 'alter_text' => 0, |
350 | 350 | 'text' => '', |
351 | 351 | 'make_link' => 0, |
@@ -362,23 +362,23 @@ discard block |
||
362 | 362 | 'ellipsis' => 1, |
363 | 363 | 'html' => 0, |
364 | 364 | 'strip_tags' => 0, |
365 | - ), |
|
366 | - 'empty' => '', |
|
367 | - 'hide_empty' => 0, |
|
368 | - 'empty_zero' => 0, |
|
369 | - 'value' => '<?php |
|
365 | + ), |
|
366 | + 'empty' => '', |
|
367 | + 'hide_empty' => 0, |
|
368 | + 'empty_zero' => 0, |
|
369 | + 'value' => '<?php |
|
370 | 370 | require_boinc(\'host\'); |
371 | 371 | echo boinc_version($data->host_serialnum); |
372 | 372 | ?>', |
373 | - 'exclude' => 0, |
|
374 | - 'id' => 'phpcode', |
|
375 | - 'table' => 'customfield', |
|
376 | - 'field' => 'phpcode', |
|
377 | - 'relationship' => 'none', |
|
373 | + 'exclude' => 0, |
|
374 | + 'id' => 'phpcode', |
|
375 | + 'table' => 'customfield', |
|
376 | + 'field' => 'phpcode', |
|
377 | + 'relationship' => 'none', |
|
378 | 378 | ), |
379 | 379 | 'p_vendor' => array( |
380 | - 'label' => 'CPU', |
|
381 | - 'alter' => array( |
|
380 | + 'label' => 'CPU', |
|
381 | + 'alter' => array( |
|
382 | 382 | 'alter_text' => 0, |
383 | 383 | 'text' => '', |
384 | 384 | 'make_link' => 0, |
@@ -395,19 +395,19 @@ discard block |
||
395 | 395 | 'ellipsis' => 1, |
396 | 396 | 'html' => 0, |
397 | 397 | 'strip_tags' => 0, |
398 | - ), |
|
399 | - 'empty' => '', |
|
400 | - 'hide_empty' => 0, |
|
401 | - 'empty_zero' => 0, |
|
402 | - 'exclude' => 0, |
|
403 | - 'id' => 'p_vendor', |
|
404 | - 'table' => 'host', |
|
405 | - 'field' => 'p_vendor', |
|
406 | - 'relationship' => 'none', |
|
398 | + ), |
|
399 | + 'empty' => '', |
|
400 | + 'hide_empty' => 0, |
|
401 | + 'empty_zero' => 0, |
|
402 | + 'exclude' => 0, |
|
403 | + 'id' => 'p_vendor', |
|
404 | + 'table' => 'host', |
|
405 | + 'field' => 'p_vendor', |
|
406 | + 'relationship' => 'none', |
|
407 | 407 | ), |
408 | 408 | 'p_model' => array( |
409 | - 'label' => 'CPU model', |
|
410 | - 'alter' => array( |
|
409 | + 'label' => 'CPU model', |
|
410 | + 'alter' => array( |
|
411 | 411 | 'alter_text' => 0, |
412 | 412 | 'text' => '', |
413 | 413 | 'make_link' => 0, |
@@ -424,19 +424,19 @@ discard block |
||
424 | 424 | 'ellipsis' => 1, |
425 | 425 | 'html' => 0, |
426 | 426 | 'strip_tags' => 0, |
427 | - ), |
|
428 | - 'empty' => '', |
|
429 | - 'hide_empty' => 0, |
|
430 | - 'empty_zero' => 0, |
|
431 | - 'exclude' => 0, |
|
432 | - 'id' => 'p_model', |
|
433 | - 'table' => 'host', |
|
434 | - 'field' => 'p_model', |
|
435 | - 'relationship' => 'none', |
|
427 | + ), |
|
428 | + 'empty' => '', |
|
429 | + 'hide_empty' => 0, |
|
430 | + 'empty_zero' => 0, |
|
431 | + 'exclude' => 0, |
|
432 | + 'id' => 'p_model', |
|
433 | + 'table' => 'host', |
|
434 | + 'field' => 'p_model', |
|
435 | + 'relationship' => 'none', |
|
436 | 436 | ), |
437 | 437 | 'p_ncpus' => array( |
438 | - 'label' => 'Number of CPUs', |
|
439 | - 'alter' => array( |
|
438 | + 'label' => 'Number of CPUs', |
|
439 | + 'alter' => array( |
|
440 | 440 | 'alter_text' => 1, |
441 | 441 | 'text' => '([p_ncpus] processors)', |
442 | 442 | 'make_link' => 0, |
@@ -453,19 +453,19 @@ discard block |
||
453 | 453 | 'ellipsis' => 1, |
454 | 454 | 'html' => 0, |
455 | 455 | 'strip_tags' => 0, |
456 | - ), |
|
457 | - 'empty' => '', |
|
458 | - 'hide_empty' => 0, |
|
459 | - 'empty_zero' => 0, |
|
460 | - 'exclude' => 0, |
|
461 | - 'id' => 'p_ncpus', |
|
462 | - 'table' => 'host', |
|
463 | - 'field' => 'p_ncpus', |
|
464 | - 'relationship' => 'none', |
|
456 | + ), |
|
457 | + 'empty' => '', |
|
458 | + 'hide_empty' => 0, |
|
459 | + 'empty_zero' => 0, |
|
460 | + 'exclude' => 0, |
|
461 | + 'id' => 'p_ncpus', |
|
462 | + 'table' => 'host', |
|
463 | + 'field' => 'p_ncpus', |
|
464 | + 'relationship' => 'none', |
|
465 | 465 | ), |
466 | 466 | 'phpcode_1' => array( |
467 | - 'label' => 'GPU', |
|
468 | - 'alter' => array( |
|
467 | + 'label' => 'GPU', |
|
468 | + 'alter' => array( |
|
469 | 469 | 'alter_text' => 0, |
470 | 470 | 'text' => '', |
471 | 471 | 'make_link' => 0, |
@@ -482,23 +482,23 @@ discard block |
||
482 | 482 | 'ellipsis' => 1, |
483 | 483 | 'html' => 0, |
484 | 484 | 'strip_tags' => 0, |
485 | - ), |
|
486 | - 'empty' => '', |
|
487 | - 'hide_empty' => 0, |
|
488 | - 'empty_zero' => 0, |
|
489 | - 'value' => '<?php |
|
485 | + ), |
|
486 | + 'empty' => '', |
|
487 | + 'hide_empty' => 0, |
|
488 | + 'empty_zero' => 0, |
|
489 | + 'value' => '<?php |
|
490 | 490 | require_boinc(\'host\'); |
491 | 491 | echo gpu_desc($data->host_serialnum); |
492 | 492 | ?>', |
493 | - 'exclude' => 0, |
|
494 | - 'id' => 'phpcode_1', |
|
495 | - 'table' => 'customfield', |
|
496 | - 'field' => 'phpcode', |
|
497 | - 'relationship' => 'none', |
|
493 | + 'exclude' => 0, |
|
494 | + 'id' => 'phpcode_1', |
|
495 | + 'table' => 'customfield', |
|
496 | + 'field' => 'phpcode', |
|
497 | + 'relationship' => 'none', |
|
498 | 498 | ), |
499 | 499 | 'os_name' => array( |
500 | - 'label' => 'Operating system', |
|
501 | - 'alter' => array( |
|
500 | + 'label' => 'Operating system', |
|
501 | + 'alter' => array( |
|
502 | 502 | 'alter_text' => 0, |
503 | 503 | 'text' => '', |
504 | 504 | 'make_link' => 0, |
@@ -515,19 +515,19 @@ discard block |
||
515 | 515 | 'ellipsis' => 1, |
516 | 516 | 'html' => 0, |
517 | 517 | 'strip_tags' => 0, |
518 | - ), |
|
519 | - 'empty' => '', |
|
520 | - 'hide_empty' => 0, |
|
521 | - 'empty_zero' => 0, |
|
522 | - 'exclude' => 0, |
|
523 | - 'id' => 'os_name', |
|
524 | - 'table' => 'host', |
|
525 | - 'field' => 'os_name', |
|
526 | - 'relationship' => 'none', |
|
518 | + ), |
|
519 | + 'empty' => '', |
|
520 | + 'hide_empty' => 0, |
|
521 | + 'empty_zero' => 0, |
|
522 | + 'exclude' => 0, |
|
523 | + 'id' => 'os_name', |
|
524 | + 'table' => 'host', |
|
525 | + 'field' => 'os_name', |
|
526 | + 'relationship' => 'none', |
|
527 | 527 | ), |
528 | 528 | 'os_version' => array( |
529 | - 'label' => 'Operating system version', |
|
530 | - 'alter' => array( |
|
529 | + 'label' => 'Operating system version', |
|
530 | + 'alter' => array( |
|
531 | 531 | 'alter_text' => 0, |
532 | 532 | 'text' => '', |
533 | 533 | 'make_link' => 0, |
@@ -544,19 +544,19 @@ discard block |
||
544 | 544 | 'ellipsis' => 1, |
545 | 545 | 'html' => 0, |
546 | 546 | 'strip_tags' => 0, |
547 | - ), |
|
548 | - 'empty' => '', |
|
549 | - 'hide_empty' => 0, |
|
550 | - 'empty_zero' => 0, |
|
551 | - 'exclude' => 0, |
|
552 | - 'id' => 'os_version', |
|
553 | - 'table' => 'host', |
|
554 | - 'field' => 'os_version', |
|
555 | - 'relationship' => 'none', |
|
547 | + ), |
|
548 | + 'empty' => '', |
|
549 | + 'hide_empty' => 0, |
|
550 | + 'empty_zero' => 0, |
|
551 | + 'exclude' => 0, |
|
552 | + 'id' => 'os_version', |
|
553 | + 'table' => 'host', |
|
554 | + 'field' => 'os_version', |
|
555 | + 'relationship' => 'none', |
|
556 | 556 | ), |
557 | 557 | 'rpc_time' => array( |
558 | - 'label' => 'Last contact', |
|
559 | - 'alter' => array( |
|
558 | + 'label' => 'Last contact', |
|
559 | + 'alter' => array( |
|
560 | 560 | 'alter_text' => 0, |
561 | 561 | 'text' => '', |
562 | 562 | 'make_link' => 0, |
@@ -575,22 +575,22 @@ discard block |
||
575 | 575 | 'ellipsis' => 1, |
576 | 576 | 'html' => 0, |
577 | 577 | 'strip_tags' => 0, |
578 | - ), |
|
579 | - 'empty' => '', |
|
580 | - 'hide_empty' => 0, |
|
581 | - 'empty_zero' => 0, |
|
582 | - 'hide_alter_empty' => 1, |
|
583 | - 'date_format' => 'custom', |
|
584 | - 'custom_date_format' => 'j M Y G:i:s T', |
|
585 | - 'exclude' => 1, |
|
586 | - 'id' => 'rpc_time', |
|
587 | - 'table' => 'host', |
|
588 | - 'field' => 'rpc_time', |
|
589 | - 'relationship' => 'none', |
|
578 | + ), |
|
579 | + 'empty' => '', |
|
580 | + 'hide_empty' => 0, |
|
581 | + 'empty_zero' => 0, |
|
582 | + 'hide_alter_empty' => 1, |
|
583 | + 'date_format' => 'custom', |
|
584 | + 'custom_date_format' => 'j M Y G:i:s T', |
|
585 | + 'exclude' => 1, |
|
586 | + 'id' => 'rpc_time', |
|
587 | + 'table' => 'host', |
|
588 | + 'field' => 'rpc_time', |
|
589 | + 'relationship' => 'none', |
|
590 | 590 | ), |
591 | 591 | 'phpcode_2' => array( |
592 | - 'label' => 'Last contact', |
|
593 | - 'alter' => array( |
|
592 | + 'label' => 'Last contact', |
|
593 | + 'alter' => array( |
|
594 | 594 | 'alter_text' => 0, |
595 | 595 | 'text' => '', |
596 | 596 | 'make_link' => 0, |
@@ -609,44 +609,44 @@ discard block |
||
609 | 609 | 'ellipsis' => 1, |
610 | 610 | 'html' => 0, |
611 | 611 | 'strip_tags' => 0, |
612 | - ), |
|
613 | - 'empty' => '', |
|
614 | - 'hide_empty' => 0, |
|
615 | - 'empty_zero' => 0, |
|
616 | - 'hide_alter_empty' => 1, |
|
617 | - 'value' => '<?php |
|
612 | + ), |
|
613 | + 'empty' => '', |
|
614 | + 'hide_empty' => 0, |
|
615 | + 'empty_zero' => 0, |
|
616 | + 'hide_alter_empty' => 1, |
|
617 | + 'value' => '<?php |
|
618 | 618 | echo boincwork_host_last_contact($data->host_rpc_time, $data->id); |
619 | 619 | ?>', |
620 | - 'exclude' => 0, |
|
621 | - 'id' => 'phpcode_2', |
|
622 | - 'table' => 'customfield', |
|
623 | - 'field' => 'phpcode', |
|
624 | - 'relationship' => 'none', |
|
625 | - 'override' => array( |
|
620 | + 'exclude' => 0, |
|
621 | + 'id' => 'phpcode_2', |
|
622 | + 'table' => 'customfield', |
|
623 | + 'field' => 'phpcode', |
|
624 | + 'relationship' => 'none', |
|
625 | + 'override' => array( |
|
626 | 626 | 'button' => 'Override', |
627 | - ), |
|
627 | + ), |
|
628 | 628 | ), |
629 | - )); |
|
630 | - $handler->override_option('arguments', array( |
|
629 | + )); |
|
630 | + $handler->override_option('arguments', array( |
|
631 | 631 | 'userid' => array( |
632 | - 'default_action' => 'default', |
|
633 | - 'style_plugin' => 'default_summary', |
|
634 | - 'style_options' => array(), |
|
635 | - 'wildcard' => 'all', |
|
636 | - 'wildcard_substitution' => 'All', |
|
637 | - 'title' => '', |
|
638 | - 'breadcrumb' => '', |
|
639 | - 'default_argument_type' => 'current_user', |
|
640 | - 'default_argument' => '', |
|
641 | - 'validate_type' => 'php', |
|
642 | - 'validate_fail' => 'empty', |
|
643 | - 'break_phrase' => 0, |
|
644 | - 'not' => 0, |
|
645 | - 'id' => 'userid', |
|
646 | - 'table' => 'host', |
|
647 | - 'field' => 'userid', |
|
648 | - 'validate_user_argument_type' => 'uid', |
|
649 | - 'validate_user_roles' => array( |
|
632 | + 'default_action' => 'default', |
|
633 | + 'style_plugin' => 'default_summary', |
|
634 | + 'style_options' => array(), |
|
635 | + 'wildcard' => 'all', |
|
636 | + 'wildcard_substitution' => 'All', |
|
637 | + 'title' => '', |
|
638 | + 'breadcrumb' => '', |
|
639 | + 'default_argument_type' => 'current_user', |
|
640 | + 'default_argument' => '', |
|
641 | + 'validate_type' => 'php', |
|
642 | + 'validate_fail' => 'empty', |
|
643 | + 'break_phrase' => 0, |
|
644 | + 'not' => 0, |
|
645 | + 'id' => 'userid', |
|
646 | + 'table' => 'host', |
|
647 | + 'field' => 'userid', |
|
648 | + 'validate_user_argument_type' => 'uid', |
|
649 | + 'validate_user_roles' => array( |
|
650 | 650 | 2 => 0, |
651 | 651 | 3519698132 => 0, |
652 | 652 | 1110965548 => 0, |
@@ -655,13 +655,13 @@ discard block |
||
655 | 655 | 268174006 => 0, |
656 | 656 | 1271379760 => 0, |
657 | 657 | 933038561 => 0, |
658 | - ), |
|
659 | - 'relationship' => 'none', |
|
660 | - 'default_options_div_prefix' => '', |
|
661 | - 'default_argument_fixed' => '', |
|
662 | - 'default_argument_user' => 0, |
|
663 | - 'default_argument_php' => '', |
|
664 | - 'validate_argument_node_type' => array( |
|
658 | + ), |
|
659 | + 'relationship' => 'none', |
|
660 | + 'default_options_div_prefix' => '', |
|
661 | + 'default_argument_fixed' => '', |
|
662 | + 'default_argument_user' => 0, |
|
663 | + 'default_argument_php' => '', |
|
664 | + 'validate_argument_node_type' => array( |
|
665 | 665 | 'page' => 0, |
666 | 666 | 'news' => 0, |
667 | 667 | 'team' => 0, |
@@ -670,21 +670,21 @@ discard block |
||
670 | 670 | 'forum' => 0, |
671 | 671 | 'panel' => 0, |
672 | 672 | 'story' => 0, |
673 | - ), |
|
674 | - 'validate_argument_node_access' => 0, |
|
675 | - 'validate_argument_nid_type' => 'nid', |
|
676 | - 'validate_argument_vocabulary' => array( |
|
673 | + ), |
|
674 | + 'validate_argument_node_access' => 0, |
|
675 | + 'validate_argument_nid_type' => 'nid', |
|
676 | + 'validate_argument_vocabulary' => array( |
|
677 | 677 | 1 => 0, |
678 | 678 | 2 => 0, |
679 | - ), |
|
680 | - 'validate_argument_type' => 'tid', |
|
681 | - 'validate_argument_transform' => 0, |
|
682 | - 'validate_user_restrict_roles' => 0, |
|
683 | - 'validate_argument_php' => 'return is_current_boinc_user($argument); |
|
679 | + ), |
|
680 | + 'validate_argument_type' => 'tid', |
|
681 | + 'validate_argument_transform' => 0, |
|
682 | + 'validate_user_restrict_roles' => 0, |
|
683 | + 'validate_argument_php' => 'return is_current_boinc_user($argument); |
|
684 | 684 | //return ($argument == $GLOBALS[\'user\']->uid) or ($argument == 60);', |
685 | - 'me_redirect' => 0, |
|
686 | - 'me_validate_user_argument_type' => 'uid', |
|
687 | - 'me_validate_user_roles' => array( |
|
685 | + 'me_redirect' => 0, |
|
686 | + 'me_validate_user_argument_type' => 'uid', |
|
687 | + 'me_validate_user_roles' => array( |
|
688 | 688 | 2 => 0, |
689 | 689 | 3519698132 => 0, |
690 | 690 | 1110965548 => 0, |
@@ -693,200 +693,200 @@ discard block |
||
693 | 693 | 268174006 => 0, |
694 | 694 | 1271379760 => 0, |
695 | 695 | 933038561 => 0, |
696 | - ), |
|
697 | - 'default_taxonomy_tid_term_page' => 0, |
|
698 | - 'default_taxonomy_tid_node' => 0, |
|
699 | - 'default_taxonomy_tid_limit' => 0, |
|
700 | - 'default_taxonomy_tid_vids' => array( |
|
696 | + ), |
|
697 | + 'default_taxonomy_tid_term_page' => 0, |
|
698 | + 'default_taxonomy_tid_node' => 0, |
|
699 | + 'default_taxonomy_tid_limit' => 0, |
|
700 | + 'default_taxonomy_tid_vids' => array( |
|
701 | 701 | 1 => 0, |
702 | 702 | 2 => 0, |
703 | - ), |
|
704 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
705 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
706 | - 'validate_argument_node_flag_id_type' => 'id', |
|
707 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
708 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
709 | - 'validate_argument_user_flag_id_type' => 'id', |
|
710 | - 'me_validate_user_restrict_roles' => 0, |
|
703 | + ), |
|
704 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
705 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
706 | + 'validate_argument_node_flag_id_type' => 'id', |
|
707 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
708 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
709 | + 'validate_argument_user_flag_id_type' => 'id', |
|
710 | + 'me_validate_user_restrict_roles' => 0, |
|
711 | 711 | ), |
712 | - )); |
|
713 | - $handler->override_option('access', array( |
|
712 | + )); |
|
713 | + $handler->override_option('access', array( |
|
714 | 714 | 'type' => 'none', |
715 | - )); |
|
716 | - $handler->override_option('cache', array( |
|
715 | + )); |
|
716 | + $handler->override_option('cache', array( |
|
717 | 717 | 'type' => 'none', |
718 | - )); |
|
719 | - $handler->override_option('empty', '<?php |
|
718 | + )); |
|
719 | + $handler->override_option('empty', '<?php |
|
720 | 720 | if (!user_is_logged_in()) { |
721 | 721 | drupal_goto(\'user/login\', drupal_get_destination()); |
722 | 722 | } |
723 | 723 | ?>'); |
724 | - $handler->override_option('empty_format', '3'); |
|
725 | - $handler->override_option('items_per_page', 20); |
|
726 | - $handler->override_option('use_pager', '1'); |
|
727 | - $handler->override_option('style_plugin', 'table'); |
|
728 | - $handler->override_option('style_options', array( |
|
724 | + $handler->override_option('empty_format', '3'); |
|
725 | + $handler->override_option('items_per_page', 20); |
|
726 | + $handler->override_option('use_pager', '1'); |
|
727 | + $handler->override_option('style_plugin', 'table'); |
|
728 | + $handler->override_option('style_options', array( |
|
729 | 729 | 'grouping' => '', |
730 | 730 | 'override' => 1, |
731 | 731 | 'sticky' => 1, |
732 | 732 | 'order' => 'desc', |
733 | 733 | 'summary' => '', |
734 | 734 | 'columns' => array( |
735 | - 'id' => 'id', |
|
736 | - 'phpcode_3' => 'id', |
|
737 | - 'host_cpid' => 'host_cpid', |
|
738 | - 'phpcode_4' => 'id', |
|
739 | - 'rownumber' => 'rownumber', |
|
740 | - 'domain_name' => 'domain_name', |
|
741 | - 'venue' => 'venue', |
|
742 | - 'expavg_credit' => 'expavg_credit', |
|
743 | - 'total_credit' => 'total_credit', |
|
744 | - 'serialnum' => 'serialnum', |
|
745 | - 'phpcode' => 'phpcode', |
|
746 | - 'p_vendor' => 'p_vendor', |
|
747 | - 'p_model' => 'p_vendor', |
|
748 | - 'p_ncpus' => 'p_vendor', |
|
749 | - 'phpcode_1' => 'phpcode_1', |
|
750 | - 'os_name' => 'os_name', |
|
751 | - 'os_version' => 'os_name', |
|
752 | - 'rpc_time' => 'rpc_time', |
|
753 | - 'phpcode_2' => 'phpcode_2', |
|
735 | + 'id' => 'id', |
|
736 | + 'phpcode_3' => 'id', |
|
737 | + 'host_cpid' => 'host_cpid', |
|
738 | + 'phpcode_4' => 'id', |
|
739 | + 'rownumber' => 'rownumber', |
|
740 | + 'domain_name' => 'domain_name', |
|
741 | + 'venue' => 'venue', |
|
742 | + 'expavg_credit' => 'expavg_credit', |
|
743 | + 'total_credit' => 'total_credit', |
|
744 | + 'serialnum' => 'serialnum', |
|
745 | + 'phpcode' => 'phpcode', |
|
746 | + 'p_vendor' => 'p_vendor', |
|
747 | + 'p_model' => 'p_vendor', |
|
748 | + 'p_ncpus' => 'p_vendor', |
|
749 | + 'phpcode_1' => 'phpcode_1', |
|
750 | + 'os_name' => 'os_name', |
|
751 | + 'os_version' => 'os_name', |
|
752 | + 'rpc_time' => 'rpc_time', |
|
753 | + 'phpcode_2' => 'phpcode_2', |
|
754 | 754 | ), |
755 | 755 | 'info' => array( |
756 | - 'id' => array( |
|
756 | + 'id' => array( |
|
757 | 757 | 'sortable' => 1, |
758 | 758 | 'separator' => '<br/>', |
759 | - ), |
|
760 | - 'phpcode_3' => array( |
|
759 | + ), |
|
760 | + 'phpcode_3' => array( |
|
761 | 761 | 'separator' => '', |
762 | - ), |
|
763 | - 'host_cpid' => array( |
|
762 | + ), |
|
763 | + 'host_cpid' => array( |
|
764 | 764 | 'sortable' => 0, |
765 | 765 | 'separator' => '', |
766 | - ), |
|
767 | - 'phpcode_4' => array( |
|
766 | + ), |
|
767 | + 'phpcode_4' => array( |
|
768 | 768 | 'separator' => '', |
769 | - ), |
|
770 | - 'rownumber' => array( |
|
769 | + ), |
|
770 | + 'rownumber' => array( |
|
771 | 771 | 'separator' => '', |
772 | - ), |
|
773 | - 'domain_name' => array( |
|
772 | + ), |
|
773 | + 'domain_name' => array( |
|
774 | 774 | 'sortable' => 1, |
775 | 775 | 'separator' => '', |
776 | - ), |
|
777 | - 'venue' => array( |
|
776 | + ), |
|
777 | + 'venue' => array( |
|
778 | 778 | 'sortable' => 1, |
779 | 779 | 'separator' => '', |
780 | - ), |
|
781 | - 'expavg_credit' => array( |
|
780 | + ), |
|
781 | + 'expavg_credit' => array( |
|
782 | 782 | 'sortable' => 1, |
783 | 783 | 'separator' => '', |
784 | - ), |
|
785 | - 'total_credit' => array( |
|
784 | + ), |
|
785 | + 'total_credit' => array( |
|
786 | 786 | 'sortable' => 1, |
787 | 787 | 'separator' => '', |
788 | - ), |
|
789 | - 'serialnum' => array( |
|
788 | + ), |
|
789 | + 'serialnum' => array( |
|
790 | 790 | 'sortable' => 0, |
791 | 791 | 'separator' => '', |
792 | - ), |
|
793 | - 'phpcode' => array( |
|
792 | + ), |
|
793 | + 'phpcode' => array( |
|
794 | 794 | 'separator' => '', |
795 | - ), |
|
796 | - 'p_vendor' => array( |
|
795 | + ), |
|
796 | + 'p_vendor' => array( |
|
797 | 797 | 'sortable' => 1, |
798 | 798 | 'separator' => '<br/>', |
799 | - ), |
|
800 | - 'p_model' => array( |
|
799 | + ), |
|
800 | + 'p_model' => array( |
|
801 | 801 | 'sortable' => 0, |
802 | 802 | 'separator' => '', |
803 | - ), |
|
804 | - 'p_ncpus' => array( |
|
803 | + ), |
|
804 | + 'p_ncpus' => array( |
|
805 | 805 | 'sortable' => 0, |
806 | 806 | 'separator' => '', |
807 | - ), |
|
808 | - 'phpcode_1' => array( |
|
807 | + ), |
|
808 | + 'phpcode_1' => array( |
|
809 | 809 | 'separator' => '', |
810 | - ), |
|
811 | - 'os_name' => array( |
|
810 | + ), |
|
811 | + 'os_name' => array( |
|
812 | 812 | 'sortable' => 1, |
813 | 813 | 'separator' => '<br/>', |
814 | - ), |
|
815 | - 'os_version' => array( |
|
814 | + ), |
|
815 | + 'os_version' => array( |
|
816 | 816 | 'sortable' => 0, |
817 | 817 | 'separator' => '', |
818 | - ), |
|
819 | - 'rpc_time' => array( |
|
818 | + ), |
|
819 | + 'rpc_time' => array( |
|
820 | 820 | 'sortable' => 1, |
821 | 821 | 'separator' => '', |
822 | - ), |
|
823 | - 'phpcode_2' => array( |
|
822 | + ), |
|
823 | + 'phpcode_2' => array( |
|
824 | 824 | 'separator' => '', |
825 | - ), |
|
825 | + ), |
|
826 | 826 | ), |
827 | 827 | 'default' => 'rpc_time', |
828 | - )); |
|
829 | - $handler = $view->new_display('page', 'All computers', 'page_1'); |
|
830 | - $handler->override_option('path', 'account/computers/all'); |
|
831 | - $handler->override_option('menu', array( |
|
828 | + )); |
|
829 | + $handler = $view->new_display('page', 'All computers', 'page_1'); |
|
830 | + $handler->override_option('path', 'account/computers/all'); |
|
831 | + $handler->override_option('menu', array( |
|
832 | 832 | 'type' => 'tab', |
833 | 833 | 'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'), |
834 | 834 | 'description' => 'Show all computers associated with the account', |
835 | 835 | 'weight' => '1', |
836 | 836 | 'name' => 'navigation', |
837 | - )); |
|
838 | - $handler->override_option('tab_options', array( |
|
837 | + )); |
|
838 | + $handler->override_option('tab_options', array( |
|
839 | 839 | 'type' => 'none', |
840 | 840 | 'title' => '', |
841 | 841 | 'description' => '', |
842 | 842 | 'weight' => 0, |
843 | 843 | 'name' => 'navigation', |
844 | - )); |
|
845 | - $handler = $view->new_display('page', 'Active computers', 'page_2'); |
|
846 | - $handler->override_option('filters', array( |
|
844 | + )); |
|
845 | + $handler = $view->new_display('page', 'Active computers', 'page_2'); |
|
846 | + $handler->override_option('filters', array( |
|
847 | 847 | 'rpc_time' => array( |
848 | - 'operator' => '>', |
|
849 | - 'value' => array( |
|
848 | + 'operator' => '>', |
|
849 | + 'value' => array( |
|
850 | 850 | 'type' => 'offset', |
851 | 851 | 'value' => '-30 days', |
852 | 852 | 'min' => '', |
853 | 853 | 'max' => '', |
854 | - ), |
|
855 | - 'group' => '0', |
|
856 | - 'exposed' => FALSE, |
|
857 | - 'expose' => array( |
|
854 | + ), |
|
855 | + 'group' => '0', |
|
856 | + 'exposed' => FALSE, |
|
857 | + 'expose' => array( |
|
858 | 858 | 'operator' => FALSE, |
859 | 859 | 'label' => '', |
860 | - ), |
|
861 | - 'id' => 'rpc_time', |
|
862 | - 'table' => 'host', |
|
863 | - 'field' => 'rpc_time', |
|
864 | - 'override' => array( |
|
860 | + ), |
|
861 | + 'id' => 'rpc_time', |
|
862 | + 'table' => 'host', |
|
863 | + 'field' => 'rpc_time', |
|
864 | + 'override' => array( |
|
865 | 865 | 'button' => 'Use default', |
866 | - ), |
|
867 | - 'relationship' => 'none', |
|
866 | + ), |
|
867 | + 'relationship' => 'none', |
|
868 | 868 | ), |
869 | - )); |
|
870 | - $handler->override_option('path', 'account/computers/active'); |
|
871 | - $handler->override_option('menu', array( |
|
869 | + )); |
|
870 | + $handler->override_option('path', 'account/computers/active'); |
|
871 | + $handler->override_option('menu', array( |
|
872 | 872 | 'type' => 'default tab', |
873 | 873 | 'title' => bts('Computers active in past 30 days', array(), NULL, 'boinc:account-host-list'), |
874 | 874 | 'description' => '', |
875 | 875 | 'weight' => '0', |
876 | 876 | 'name' => 'navigation', |
877 | - )); |
|
878 | - $handler->override_option('tab_options', array( |
|
877 | + )); |
|
878 | + $handler->override_option('tab_options', array( |
|
879 | 879 | 'type' => 'normal', |
880 | 880 | 'title' => 'Computers', |
881 | 881 | 'description' => '', |
882 | 882 | 'weight' => '0', |
883 | 883 | 'name' => 'navigation', |
884 | - )); |
|
885 | - $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); |
|
886 | - $handler->override_option('fields', array( |
|
884 | + )); |
|
885 | + $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1'); |
|
886 | + $handler->override_option('fields', array( |
|
887 | 887 | 'id' => array( |
888 | - 'label' => 'Computer ID', |
|
889 | - 'alter' => array( |
|
888 | + 'label' => 'Computer ID', |
|
889 | + 'alter' => array( |
|
890 | 890 | 'alter_text' => 0, |
891 | 891 | 'text' => '', |
892 | 892 | 'make_link' => 0, |
@@ -905,32 +905,32 @@ discard block |
||
905 | 905 | 'ellipsis' => 1, |
906 | 906 | 'html' => 0, |
907 | 907 | 'strip_tags' => 0, |
908 | - ), |
|
909 | - 'empty' => '', |
|
910 | - 'hide_empty' => 0, |
|
911 | - 'empty_zero' => 0, |
|
912 | - 'hide_alter_empty' => 1, |
|
913 | - 'set_precision' => FALSE, |
|
914 | - 'precision' => 0, |
|
915 | - 'decimal' => '.', |
|
916 | - 'separator' => '', |
|
917 | - 'format_plural' => 0, |
|
918 | - 'format_plural_singular' => '1', |
|
919 | - 'format_plural_plural' => '@count', |
|
920 | - 'prefix' => '', |
|
921 | - 'suffix' => '', |
|
922 | - 'exclude' => 0, |
|
923 | - 'id' => 'id', |
|
924 | - 'table' => 'host', |
|
925 | - 'field' => 'id', |
|
926 | - 'relationship' => 'none', |
|
927 | - 'override' => array( |
|
908 | + ), |
|
909 | + 'empty' => '', |
|
910 | + 'hide_empty' => 0, |
|
911 | + 'empty_zero' => 0, |
|
912 | + 'hide_alter_empty' => 1, |
|
913 | + 'set_precision' => FALSE, |
|
914 | + 'precision' => 0, |
|
915 | + 'decimal' => '.', |
|
916 | + 'separator' => '', |
|
917 | + 'format_plural' => 0, |
|
918 | + 'format_plural_singular' => '1', |
|
919 | + 'format_plural_plural' => '@count', |
|
920 | + 'prefix' => '', |
|
921 | + 'suffix' => '', |
|
922 | + 'exclude' => 0, |
|
923 | + 'id' => 'id', |
|
924 | + 'table' => 'host', |
|
925 | + 'field' => 'id', |
|
926 | + 'relationship' => 'none', |
|
927 | + 'override' => array( |
|
928 | 928 | 'button' => 'Use default', |
929 | - ), |
|
929 | + ), |
|
930 | 930 | ), |
931 | 931 | 'domain_name' => array( |
932 | - 'label' => 'Name', |
|
933 | - 'alter' => array( |
|
932 | + 'label' => 'Name', |
|
933 | + 'alter' => array( |
|
934 | 934 | 'alter_text' => 0, |
935 | 935 | 'text' => '', |
936 | 936 | 'make_link' => 0, |
@@ -949,23 +949,23 @@ discard block |
||
949 | 949 | 'ellipsis' => 1, |
950 | 950 | 'html' => 0, |
951 | 951 | 'strip_tags' => 0, |
952 | - ), |
|
953 | - 'empty' => '', |
|
954 | - 'hide_empty' => 0, |
|
955 | - 'empty_zero' => 0, |
|
956 | - 'hide_alter_empty' => 1, |
|
957 | - 'exclude' => 0, |
|
958 | - 'id' => 'domain_name', |
|
959 | - 'table' => 'host', |
|
960 | - 'field' => 'domain_name', |
|
961 | - 'override' => array( |
|
952 | + ), |
|
953 | + 'empty' => '', |
|
954 | + 'hide_empty' => 0, |
|
955 | + 'empty_zero' => 0, |
|
956 | + 'hide_alter_empty' => 1, |
|
957 | + 'exclude' => 0, |
|
958 | + 'id' => 'domain_name', |
|
959 | + 'table' => 'host', |
|
960 | + 'field' => 'domain_name', |
|
961 | + 'override' => array( |
|
962 | 962 | 'button' => 'Use default', |
963 | - ), |
|
964 | - 'relationship' => 'none', |
|
963 | + ), |
|
964 | + 'relationship' => 'none', |
|
965 | 965 | ), |
966 | 966 | 'expavg_credit' => array( |
967 | - 'label' => 'Avg credit', |
|
968 | - 'alter' => array( |
|
967 | + 'label' => 'Avg credit', |
|
968 | + 'alter' => array( |
|
969 | 969 | 'alter_text' => 0, |
970 | 970 | 'text' => '', |
971 | 971 | 'make_link' => 0, |
@@ -984,32 +984,32 @@ discard block |
||
984 | 984 | 'ellipsis' => 1, |
985 | 985 | 'html' => 0, |
986 | 986 | 'strip_tags' => 0, |
987 | - ), |
|
988 | - 'empty' => '', |
|
989 | - 'hide_empty' => 0, |
|
990 | - 'empty_zero' => 0, |
|
991 | - 'hide_alter_empty' => 0, |
|
992 | - 'set_precision' => 1, |
|
993 | - 'precision' => '2', |
|
994 | - 'decimal' => '.', |
|
995 | - 'separator' => ',', |
|
996 | - 'format_plural' => 0, |
|
997 | - 'format_plural_singular' => '1', |
|
998 | - 'format_plural_plural' => '@count', |
|
999 | - 'prefix' => '', |
|
1000 | - 'suffix' => '', |
|
1001 | - 'exclude' => 0, |
|
1002 | - 'id' => 'expavg_credit', |
|
1003 | - 'table' => 'host', |
|
1004 | - 'field' => 'expavg_credit', |
|
1005 | - 'relationship' => 'none', |
|
1006 | - 'override' => array( |
|
987 | + ), |
|
988 | + 'empty' => '', |
|
989 | + 'hide_empty' => 0, |
|
990 | + 'empty_zero' => 0, |
|
991 | + 'hide_alter_empty' => 0, |
|
992 | + 'set_precision' => 1, |
|
993 | + 'precision' => '2', |
|
994 | + 'decimal' => '.', |
|
995 | + 'separator' => ',', |
|
996 | + 'format_plural' => 0, |
|
997 | + 'format_plural_singular' => '1', |
|
998 | + 'format_plural_plural' => '@count', |
|
999 | + 'prefix' => '', |
|
1000 | + 'suffix' => '', |
|
1001 | + 'exclude' => 0, |
|
1002 | + 'id' => 'expavg_credit', |
|
1003 | + 'table' => 'host', |
|
1004 | + 'field' => 'expavg_credit', |
|
1005 | + 'relationship' => 'none', |
|
1006 | + 'override' => array( |
|
1007 | 1007 | 'button' => 'Use default', |
1008 | - ), |
|
1008 | + ), |
|
1009 | 1009 | ), |
1010 | 1010 | 'total_credit' => array( |
1011 | - 'label' => 'Total credit', |
|
1012 | - 'alter' => array( |
|
1011 | + 'label' => 'Total credit', |
|
1012 | + 'alter' => array( |
|
1013 | 1013 | 'alter_text' => 0, |
1014 | 1014 | 'text' => '', |
1015 | 1015 | 'make_link' => 0, |
@@ -1028,32 +1028,32 @@ discard block |
||
1028 | 1028 | 'ellipsis' => 1, |
1029 | 1029 | 'html' => 0, |
1030 | 1030 | 'strip_tags' => 0, |
1031 | - ), |
|
1032 | - 'empty' => '', |
|
1033 | - 'hide_empty' => 0, |
|
1034 | - 'empty_zero' => 0, |
|
1035 | - 'hide_alter_empty' => 0, |
|
1036 | - 'set_precision' => 1, |
|
1037 | - 'precision' => '0', |
|
1038 | - 'decimal' => '.', |
|
1039 | - 'separator' => ',', |
|
1040 | - 'format_plural' => 0, |
|
1041 | - 'format_plural_singular' => '1', |
|
1042 | - 'format_plural_plural' => '@count', |
|
1043 | - 'prefix' => '', |
|
1044 | - 'suffix' => '', |
|
1045 | - 'exclude' => 0, |
|
1046 | - 'id' => 'total_credit', |
|
1047 | - 'table' => 'host', |
|
1048 | - 'field' => 'total_credit', |
|
1049 | - 'relationship' => 'none', |
|
1050 | - 'override' => array( |
|
1031 | + ), |
|
1032 | + 'empty' => '', |
|
1033 | + 'hide_empty' => 0, |
|
1034 | + 'empty_zero' => 0, |
|
1035 | + 'hide_alter_empty' => 0, |
|
1036 | + 'set_precision' => 1, |
|
1037 | + 'precision' => '0', |
|
1038 | + 'decimal' => '.', |
|
1039 | + 'separator' => ',', |
|
1040 | + 'format_plural' => 0, |
|
1041 | + 'format_plural_singular' => '1', |
|
1042 | + 'format_plural_plural' => '@count', |
|
1043 | + 'prefix' => '', |
|
1044 | + 'suffix' => '', |
|
1045 | + 'exclude' => 0, |
|
1046 | + 'id' => 'total_credit', |
|
1047 | + 'table' => 'host', |
|
1048 | + 'field' => 'total_credit', |
|
1049 | + 'relationship' => 'none', |
|
1050 | + 'override' => array( |
|
1051 | 1051 | 'button' => 'Use default', |
1052 | - ), |
|
1052 | + ), |
|
1053 | 1053 | ), |
1054 | 1054 | 'rpc_time' => array( |
1055 | - 'label' => 'Last contact', |
|
1056 | - 'alter' => array( |
|
1055 | + 'label' => 'Last contact', |
|
1056 | + 'alter' => array( |
|
1057 | 1057 | 'alter_text' => 0, |
1058 | 1058 | 'text' => '', |
1059 | 1059 | 'make_link' => 0, |
@@ -1070,83 +1070,83 @@ discard block |
||
1070 | 1070 | 'ellipsis' => 1, |
1071 | 1071 | 'html' => 0, |
1072 | 1072 | 'strip_tags' => 0, |
1073 | - ), |
|
1074 | - 'empty' => '', |
|
1075 | - 'hide_empty' => 0, |
|
1076 | - 'empty_zero' => 0, |
|
1077 | - 'date_format' => 'custom', |
|
1078 | - 'custom_date_format' => 'U', |
|
1079 | - 'exclude' => 0, |
|
1080 | - 'id' => 'rpc_time', |
|
1081 | - 'table' => 'host', |
|
1082 | - 'field' => 'rpc_time', |
|
1083 | - 'override' => array( |
|
1073 | + ), |
|
1074 | + 'empty' => '', |
|
1075 | + 'hide_empty' => 0, |
|
1076 | + 'empty_zero' => 0, |
|
1077 | + 'date_format' => 'custom', |
|
1078 | + 'custom_date_format' => 'U', |
|
1079 | + 'exclude' => 0, |
|
1080 | + 'id' => 'rpc_time', |
|
1081 | + 'table' => 'host', |
|
1082 | + 'field' => 'rpc_time', |
|
1083 | + 'override' => array( |
|
1084 | 1084 | 'button' => 'Use default', |
1085 | - ), |
|
1086 | - 'relationship' => 'none', |
|
1085 | + ), |
|
1086 | + 'relationship' => 'none', |
|
1087 | 1087 | ), |
1088 | - )); |
|
1089 | - $handler->override_option('sorts', array( |
|
1088 | + )); |
|
1089 | + $handler->override_option('sorts', array( |
|
1090 | 1090 | 'rpc_time' => array( |
1091 | - 'order' => 'DESC', |
|
1092 | - 'granularity' => 'second', |
|
1093 | - 'id' => 'rpc_time', |
|
1094 | - 'table' => 'host', |
|
1095 | - 'field' => 'rpc_time', |
|
1096 | - 'override' => array( |
|
1091 | + 'order' => 'DESC', |
|
1092 | + 'granularity' => 'second', |
|
1093 | + 'id' => 'rpc_time', |
|
1094 | + 'table' => 'host', |
|
1095 | + 'field' => 'rpc_time', |
|
1096 | + 'override' => array( |
|
1097 | 1097 | 'button' => 'Use default', |
1098 | - ), |
|
1099 | - 'relationship' => 'none', |
|
1098 | + ), |
|
1099 | + 'relationship' => 'none', |
|
1100 | 1100 | ), |
1101 | - )); |
|
1102 | - $handler->override_option('title', 'Computers'); |
|
1103 | - $handler->override_option('items_per_page', 7); |
|
1104 | - $handler->override_option('use_pager', FALSE); |
|
1105 | - $handler->override_option('use_more', 0); |
|
1106 | - $handler->override_option('use_more_always', 1); |
|
1107 | - $handler->override_option('style_options', array( |
|
1101 | + )); |
|
1102 | + $handler->override_option('title', 'Computers'); |
|
1103 | + $handler->override_option('items_per_page', 7); |
|
1104 | + $handler->override_option('use_pager', FALSE); |
|
1105 | + $handler->override_option('use_more', 0); |
|
1106 | + $handler->override_option('use_more_always', 1); |
|
1107 | + $handler->override_option('style_options', array( |
|
1108 | 1108 | 'grouping' => '', |
1109 | 1109 | 'override' => 1, |
1110 | 1110 | 'sticky' => 0, |
1111 | 1111 | 'order' => 'desc', |
1112 | 1112 | 'columns' => array( |
1113 | - 'id' => 'id', |
|
1114 | - 'domain_name' => 'domain_name', |
|
1115 | - 'expavg_credit' => 'expavg_credit', |
|
1116 | - 'total_credit' => 'total_credit', |
|
1117 | - 'rpc_time' => 'rpc_time', |
|
1113 | + 'id' => 'id', |
|
1114 | + 'domain_name' => 'domain_name', |
|
1115 | + 'expavg_credit' => 'expavg_credit', |
|
1116 | + 'total_credit' => 'total_credit', |
|
1117 | + 'rpc_time' => 'rpc_time', |
|
1118 | 1118 | ), |
1119 | 1119 | 'info' => array( |
1120 | - 'id' => array( |
|
1120 | + 'id' => array( |
|
1121 | 1121 | 'sortable' => 0, |
1122 | 1122 | 'separator' => '', |
1123 | - ), |
|
1124 | - 'domain_name' => array( |
|
1123 | + ), |
|
1124 | + 'domain_name' => array( |
|
1125 | 1125 | 'sortable' => 0, |
1126 | 1126 | 'separator' => '', |
1127 | - ), |
|
1128 | - 'expavg_credit' => array( |
|
1127 | + ), |
|
1128 | + 'expavg_credit' => array( |
|
1129 | 1129 | 'sortable' => 0, |
1130 | 1130 | 'separator' => '', |
1131 | - ), |
|
1132 | - 'total_credit' => array( |
|
1131 | + ), |
|
1132 | + 'total_credit' => array( |
|
1133 | 1133 | 'sortable' => 0, |
1134 | 1134 | 'separator' => '', |
1135 | - ), |
|
1136 | - 'rpc_time' => array( |
|
1135 | + ), |
|
1136 | + 'rpc_time' => array( |
|
1137 | 1137 | 'sortable' => 0, |
1138 | 1138 | 'separator' => '', |
1139 | - ), |
|
1139 | + ), |
|
1140 | 1140 | ), |
1141 | 1141 | 'default' => 'rpc_time', |
1142 | - )); |
|
1143 | - $handler->override_option('pane_title', ''); |
|
1144 | - $handler->override_option('pane_description', ''); |
|
1145 | - $handler->override_option('pane_category', array( |
|
1142 | + )); |
|
1143 | + $handler->override_option('pane_title', ''); |
|
1144 | + $handler->override_option('pane_description', ''); |
|
1145 | + $handler->override_option('pane_category', array( |
|
1146 | 1146 | 'name' => 'View panes', |
1147 | 1147 | 'weight' => 0, |
1148 | - )); |
|
1149 | - $handler->override_option('allow', array( |
|
1148 | + )); |
|
1149 | + $handler->override_option('allow', array( |
|
1150 | 1150 | 'use_pager' => FALSE, |
1151 | 1151 | 'items_per_page' => FALSE, |
1152 | 1152 | 'offset' => FALSE, |
@@ -1156,15 +1156,15 @@ discard block |
||
1156 | 1156 | 'title_override' => FALSE, |
1157 | 1157 | 'exposed_form' => FALSE, |
1158 | 1158 | 'fields_override' => FALSE, |
1159 | - )); |
|
1160 | - $handler->override_option('argument_input', array()); |
|
1161 | - $handler->override_option('link_to_view', 0); |
|
1162 | - $handler->override_option('inherit_panels_path', 0); |
|
1163 | - $handler = $view->new_display('block', 'Block', 'block_1'); |
|
1164 | - $handler->override_option('fields', array( |
|
1159 | + )); |
|
1160 | + $handler->override_option('argument_input', array()); |
|
1161 | + $handler->override_option('link_to_view', 0); |
|
1162 | + $handler->override_option('inherit_panels_path', 0); |
|
1163 | + $handler = $view->new_display('block', 'Block', 'block_1'); |
|
1164 | + $handler->override_option('fields', array( |
|
1165 | 1165 | 'id' => array( |
1166 | - 'label' => 'Computer ID', |
|
1167 | - 'alter' => array( |
|
1166 | + 'label' => 'Computer ID', |
|
1167 | + 'alter' => array( |
|
1168 | 1168 | 'alter_text' => 0, |
1169 | 1169 | 'text' => '', |
1170 | 1170 | 'make_link' => 0, |
@@ -1183,32 +1183,32 @@ discard block |
||
1183 | 1183 | 'ellipsis' => 1, |
1184 | 1184 | 'html' => 0, |
1185 | 1185 | 'strip_tags' => 0, |
1186 | - ), |
|
1187 | - 'empty' => '', |
|
1188 | - 'hide_empty' => 0, |
|
1189 | - 'empty_zero' => 0, |
|
1190 | - 'hide_alter_empty' => 1, |
|
1191 | - 'set_precision' => FALSE, |
|
1192 | - 'precision' => 0, |
|
1193 | - 'decimal' => '.', |
|
1194 | - 'separator' => '', |
|
1195 | - 'format_plural' => 0, |
|
1196 | - 'format_plural_singular' => '1', |
|
1197 | - 'format_plural_plural' => '@count', |
|
1198 | - 'prefix' => '', |
|
1199 | - 'suffix' => '', |
|
1200 | - 'exclude' => 1, |
|
1201 | - 'id' => 'id', |
|
1202 | - 'table' => 'host', |
|
1203 | - 'field' => 'id', |
|
1204 | - 'relationship' => 'none', |
|
1205 | - 'override' => array( |
|
1186 | + ), |
|
1187 | + 'empty' => '', |
|
1188 | + 'hide_empty' => 0, |
|
1189 | + 'empty_zero' => 0, |
|
1190 | + 'hide_alter_empty' => 1, |
|
1191 | + 'set_precision' => FALSE, |
|
1192 | + 'precision' => 0, |
|
1193 | + 'decimal' => '.', |
|
1194 | + 'separator' => '', |
|
1195 | + 'format_plural' => 0, |
|
1196 | + 'format_plural_singular' => '1', |
|
1197 | + 'format_plural_plural' => '@count', |
|
1198 | + 'prefix' => '', |
|
1199 | + 'suffix' => '', |
|
1200 | + 'exclude' => 1, |
|
1201 | + 'id' => 'id', |
|
1202 | + 'table' => 'host', |
|
1203 | + 'field' => 'id', |
|
1204 | + 'relationship' => 'none', |
|
1205 | + 'override' => array( |
|
1206 | 1206 | 'button' => 'Use default', |
1207 | - ), |
|
1207 | + ), |
|
1208 | 1208 | ), |
1209 | 1209 | 'domain_name' => array( |
1210 | - 'label' => 'Name', |
|
1211 | - 'alter' => array( |
|
1210 | + 'label' => 'Name', |
|
1211 | + 'alter' => array( |
|
1212 | 1212 | 'alter_text' => 0, |
1213 | 1213 | 'text' => '', |
1214 | 1214 | 'make_link' => 0, |
@@ -1227,23 +1227,23 @@ discard block |
||
1227 | 1227 | 'ellipsis' => 1, |
1228 | 1228 | 'html' => 0, |
1229 | 1229 | 'strip_tags' => 0, |
1230 | - ), |
|
1231 | - 'empty' => '', |
|
1232 | - 'hide_empty' => 0, |
|
1233 | - 'empty_zero' => 0, |
|
1234 | - 'hide_alter_empty' => 1, |
|
1235 | - 'exclude' => 0, |
|
1236 | - 'id' => 'domain_name', |
|
1237 | - 'table' => 'host', |
|
1238 | - 'field' => 'domain_name', |
|
1239 | - 'override' => array( |
|
1230 | + ), |
|
1231 | + 'empty' => '', |
|
1232 | + 'hide_empty' => 0, |
|
1233 | + 'empty_zero' => 0, |
|
1234 | + 'hide_alter_empty' => 1, |
|
1235 | + 'exclude' => 0, |
|
1236 | + 'id' => 'domain_name', |
|
1237 | + 'table' => 'host', |
|
1238 | + 'field' => 'domain_name', |
|
1239 | + 'override' => array( |
|
1240 | 1240 | 'button' => 'Use default', |
1241 | - ), |
|
1242 | - 'relationship' => 'none', |
|
1241 | + ), |
|
1242 | + 'relationship' => 'none', |
|
1243 | 1243 | ), |
1244 | 1244 | 'expavg_credit' => array( |
1245 | - 'label' => 'Avg credit', |
|
1246 | - 'alter' => array( |
|
1245 | + 'label' => 'Avg credit', |
|
1246 | + 'alter' => array( |
|
1247 | 1247 | 'alter_text' => 0, |
1248 | 1248 | 'text' => '', |
1249 | 1249 | 'make_link' => 0, |
@@ -1262,32 +1262,32 @@ discard block |
||
1262 | 1262 | 'ellipsis' => 1, |
1263 | 1263 | 'html' => 0, |
1264 | 1264 | 'strip_tags' => 0, |
1265 | - ), |
|
1266 | - 'empty' => '', |
|
1267 | - 'hide_empty' => 0, |
|
1268 | - 'empty_zero' => 0, |
|
1269 | - 'hide_alter_empty' => 1, |
|
1270 | - 'set_precision' => 1, |
|
1271 | - 'precision' => '2', |
|
1272 | - 'decimal' => '.', |
|
1273 | - 'separator' => ',', |
|
1274 | - 'format_plural' => 0, |
|
1275 | - 'format_plural_singular' => '1', |
|
1276 | - 'format_plural_plural' => '@count', |
|
1277 | - 'prefix' => '', |
|
1278 | - 'suffix' => '', |
|
1279 | - 'exclude' => 0, |
|
1280 | - 'id' => 'expavg_credit', |
|
1281 | - 'table' => 'host', |
|
1282 | - 'field' => 'expavg_credit', |
|
1283 | - 'relationship' => 'none', |
|
1284 | - 'override' => array( |
|
1265 | + ), |
|
1266 | + 'empty' => '', |
|
1267 | + 'hide_empty' => 0, |
|
1268 | + 'empty_zero' => 0, |
|
1269 | + 'hide_alter_empty' => 1, |
|
1270 | + 'set_precision' => 1, |
|
1271 | + 'precision' => '2', |
|
1272 | + 'decimal' => '.', |
|
1273 | + 'separator' => ',', |
|
1274 | + 'format_plural' => 0, |
|
1275 | + 'format_plural_singular' => '1', |
|
1276 | + 'format_plural_plural' => '@count', |
|
1277 | + 'prefix' => '', |
|
1278 | + 'suffix' => '', |
|
1279 | + 'exclude' => 0, |
|
1280 | + 'id' => 'expavg_credit', |
|
1281 | + 'table' => 'host', |
|
1282 | + 'field' => 'expavg_credit', |
|
1283 | + 'relationship' => 'none', |
|
1284 | + 'override' => array( |
|
1285 | 1285 | 'button' => 'Use default', |
1286 | - ), |
|
1286 | + ), |
|
1287 | 1287 | ), |
1288 | 1288 | 'total_credit' => array( |
1289 | - 'label' => 'Total credit', |
|
1290 | - 'alter' => array( |
|
1289 | + 'label' => 'Total credit', |
|
1290 | + 'alter' => array( |
|
1291 | 1291 | 'alter_text' => 0, |
1292 | 1292 | 'text' => '', |
1293 | 1293 | 'make_link' => 0, |
@@ -1304,25 +1304,25 @@ discard block |
||
1304 | 1304 | 'ellipsis' => 1, |
1305 | 1305 | 'html' => 0, |
1306 | 1306 | 'strip_tags' => 0, |
1307 | - ), |
|
1308 | - 'empty' => '', |
|
1309 | - 'hide_empty' => 0, |
|
1310 | - 'empty_zero' => 0, |
|
1311 | - 'set_precision' => 1, |
|
1312 | - 'precision' => '0', |
|
1313 | - 'decimal' => '.', |
|
1314 | - 'separator' => ',', |
|
1315 | - 'prefix' => '', |
|
1316 | - 'suffix' => '', |
|
1317 | - 'exclude' => 0, |
|
1318 | - 'id' => 'total_credit', |
|
1319 | - 'table' => 'host', |
|
1320 | - 'field' => 'total_credit', |
|
1321 | - 'relationship' => 'none', |
|
1307 | + ), |
|
1308 | + 'empty' => '', |
|
1309 | + 'hide_empty' => 0, |
|
1310 | + 'empty_zero' => 0, |
|
1311 | + 'set_precision' => 1, |
|
1312 | + 'precision' => '0', |
|
1313 | + 'decimal' => '.', |
|
1314 | + 'separator' => ',', |
|
1315 | + 'prefix' => '', |
|
1316 | + 'suffix' => '', |
|
1317 | + 'exclude' => 0, |
|
1318 | + 'id' => 'total_credit', |
|
1319 | + 'table' => 'host', |
|
1320 | + 'field' => 'total_credit', |
|
1321 | + 'relationship' => 'none', |
|
1322 | 1322 | ), |
1323 | 1323 | 'rpc_time' => array( |
1324 | - 'label' => 'Last contact', |
|
1325 | - 'alter' => array( |
|
1324 | + 'label' => 'Last contact', |
|
1325 | + 'alter' => array( |
|
1326 | 1326 | 'alter_text' => 0, |
1327 | 1327 | 'text' => '', |
1328 | 1328 | 'make_link' => 0, |
@@ -1341,65 +1341,65 @@ discard block |
||
1341 | 1341 | 'ellipsis' => 1, |
1342 | 1342 | 'html' => 0, |
1343 | 1343 | 'strip_tags' => 0, |
1344 | - ), |
|
1345 | - 'empty' => '', |
|
1346 | - 'hide_empty' => 0, |
|
1347 | - 'empty_zero' => 0, |
|
1348 | - 'hide_alter_empty' => 1, |
|
1349 | - 'date_format' => 'custom', |
|
1350 | - 'custom_date_format' => 'U', |
|
1351 | - 'exclude' => 1, |
|
1352 | - 'id' => 'rpc_time', |
|
1353 | - 'table' => 'host', |
|
1354 | - 'field' => 'rpc_time', |
|
1355 | - 'relationship' => 'none', |
|
1356 | - 'override' => array( |
|
1344 | + ), |
|
1345 | + 'empty' => '', |
|
1346 | + 'hide_empty' => 0, |
|
1347 | + 'empty_zero' => 0, |
|
1348 | + 'hide_alter_empty' => 1, |
|
1349 | + 'date_format' => 'custom', |
|
1350 | + 'custom_date_format' => 'U', |
|
1351 | + 'exclude' => 1, |
|
1352 | + 'id' => 'rpc_time', |
|
1353 | + 'table' => 'host', |
|
1354 | + 'field' => 'rpc_time', |
|
1355 | + 'relationship' => 'none', |
|
1356 | + 'override' => array( |
|
1357 | 1357 | 'button' => 'Use default', |
1358 | - ), |
|
1358 | + ), |
|
1359 | 1359 | ), |
1360 | - )); |
|
1361 | - $handler->override_option('sorts', array( |
|
1360 | + )); |
|
1361 | + $handler->override_option('sorts', array( |
|
1362 | 1362 | 'rpc_time' => array( |
1363 | - 'order' => 'DESC', |
|
1364 | - 'granularity' => 'second', |
|
1365 | - 'id' => 'rpc_time', |
|
1366 | - 'table' => 'host', |
|
1367 | - 'field' => 'rpc_time', |
|
1368 | - 'override' => array( |
|
1363 | + 'order' => 'DESC', |
|
1364 | + 'granularity' => 'second', |
|
1365 | + 'id' => 'rpc_time', |
|
1366 | + 'table' => 'host', |
|
1367 | + 'field' => 'rpc_time', |
|
1368 | + 'override' => array( |
|
1369 | 1369 | 'button' => 'Use default', |
1370 | - ), |
|
1371 | - 'relationship' => 'none', |
|
1370 | + ), |
|
1371 | + 'relationship' => 'none', |
|
1372 | 1372 | ), |
1373 | - )); |
|
1374 | - $handler->override_option('arguments', array( |
|
1373 | + )); |
|
1374 | + $handler->override_option('arguments', array( |
|
1375 | 1375 | 'userid' => array( |
1376 | - 'default_action' => 'default', |
|
1377 | - 'style_plugin' => 'default_summary', |
|
1378 | - 'style_options' => array(), |
|
1379 | - 'wildcard' => 'all', |
|
1380 | - 'wildcard_substitution' => 'All', |
|
1381 | - 'title' => '', |
|
1382 | - 'breadcrumb' => '', |
|
1383 | - 'default_argument_type' => 'current_user', |
|
1384 | - 'default_argument' => '', |
|
1385 | - 'validate_type' => 'numeric', |
|
1386 | - 'validate_fail' => 'not found', |
|
1387 | - 'break_phrase' => 0, |
|
1388 | - 'not' => 0, |
|
1389 | - 'id' => 'userid', |
|
1390 | - 'table' => 'host', |
|
1391 | - 'field' => 'userid', |
|
1392 | - 'validate_user_argument_type' => 'uid', |
|
1393 | - 'validate_user_roles' => array( |
|
1376 | + 'default_action' => 'default', |
|
1377 | + 'style_plugin' => 'default_summary', |
|
1378 | + 'style_options' => array(), |
|
1379 | + 'wildcard' => 'all', |
|
1380 | + 'wildcard_substitution' => 'All', |
|
1381 | + 'title' => '', |
|
1382 | + 'breadcrumb' => '', |
|
1383 | + 'default_argument_type' => 'current_user', |
|
1384 | + 'default_argument' => '', |
|
1385 | + 'validate_type' => 'numeric', |
|
1386 | + 'validate_fail' => 'not found', |
|
1387 | + 'break_phrase' => 0, |
|
1388 | + 'not' => 0, |
|
1389 | + 'id' => 'userid', |
|
1390 | + 'table' => 'host', |
|
1391 | + 'field' => 'userid', |
|
1392 | + 'validate_user_argument_type' => 'uid', |
|
1393 | + 'validate_user_roles' => array( |
|
1394 | 1394 | 2 => 0, |
1395 | 1395 | 3 => 0, |
1396 | - ), |
|
1397 | - 'relationship' => 'none', |
|
1398 | - 'default_options_div_prefix' => '', |
|
1399 | - 'default_argument_fixed' => '', |
|
1400 | - 'default_argument_user' => 0, |
|
1401 | - 'default_argument_php' => '', |
|
1402 | - 'validate_argument_node_type' => array( |
|
1396 | + ), |
|
1397 | + 'relationship' => 'none', |
|
1398 | + 'default_options_div_prefix' => '', |
|
1399 | + 'default_argument_fixed' => '', |
|
1400 | + 'default_argument_user' => 0, |
|
1401 | + 'default_argument_php' => '', |
|
1402 | + 'validate_argument_node_type' => array( |
|
1403 | 1403 | 'forum' => 0, |
1404 | 1404 | 'job_post' => 0, |
1405 | 1405 | 'news' => 0, |
@@ -1407,63 +1407,63 @@ discard block |
||
1407 | 1407 | 'profile' => 0, |
1408 | 1408 | 'story' => 0, |
1409 | 1409 | 'team' => 0, |
1410 | - ), |
|
1411 | - 'validate_argument_node_access' => 0, |
|
1412 | - 'validate_argument_nid_type' => 'nid', |
|
1413 | - 'validate_argument_vocabulary' => array( |
|
1410 | + ), |
|
1411 | + 'validate_argument_node_access' => 0, |
|
1412 | + 'validate_argument_nid_type' => 'nid', |
|
1413 | + 'validate_argument_vocabulary' => array( |
|
1414 | 1414 | 1 => 0, |
1415 | - ), |
|
1416 | - 'validate_argument_type' => 'tid', |
|
1417 | - 'validate_argument_transform' => 0, |
|
1418 | - 'validate_user_restrict_roles' => 0, |
|
1419 | - 'validate_argument_php' => '', |
|
1415 | + ), |
|
1416 | + 'validate_argument_type' => 'tid', |
|
1417 | + 'validate_argument_transform' => 0, |
|
1418 | + 'validate_user_restrict_roles' => 0, |
|
1419 | + 'validate_argument_php' => '', |
|
1420 | 1420 | ), |
1421 | 1421 | 'venue' => array( |
1422 | - 'default_action' => 'default', |
|
1423 | - 'style_plugin' => 'default_summary', |
|
1424 | - 'style_options' => array(), |
|
1425 | - 'wildcard' => 'all', |
|
1426 | - 'wildcard_substitution' => 'All', |
|
1427 | - 'title' => '', |
|
1428 | - 'breadcrumb' => '', |
|
1429 | - 'default_argument_type' => 'php', |
|
1430 | - 'default_argument' => '', |
|
1431 | - 'validate_type' => 'none', |
|
1432 | - 'validate_fail' => 'ignore', |
|
1433 | - 'id' => 'venue', |
|
1434 | - 'table' => 'host', |
|
1435 | - 'field' => 'venue', |
|
1436 | - 'validate_user_argument_type' => 'uid', |
|
1437 | - 'validate_user_roles' => array( |
|
1422 | + 'default_action' => 'default', |
|
1423 | + 'style_plugin' => 'default_summary', |
|
1424 | + 'style_options' => array(), |
|
1425 | + 'wildcard' => 'all', |
|
1426 | + 'wildcard_substitution' => 'All', |
|
1427 | + 'title' => '', |
|
1428 | + 'breadcrumb' => '', |
|
1429 | + 'default_argument_type' => 'php', |
|
1430 | + 'default_argument' => '', |
|
1431 | + 'validate_type' => 'none', |
|
1432 | + 'validate_fail' => 'ignore', |
|
1433 | + 'id' => 'venue', |
|
1434 | + 'table' => 'host', |
|
1435 | + 'field' => 'venue', |
|
1436 | + 'validate_user_argument_type' => 'uid', |
|
1437 | + 'validate_user_roles' => array( |
|
1438 | 1438 | 2 => 0, |
1439 | 1439 | 3 => 0, |
1440 | - ), |
|
1441 | - 'me_redirect' => 0, |
|
1442 | - 'me_validate_user_argument_type' => 'uid', |
|
1443 | - 'me_validate_user_roles' => array( |
|
1440 | + ), |
|
1441 | + 'me_redirect' => 0, |
|
1442 | + 'me_validate_user_argument_type' => 'uid', |
|
1443 | + 'me_validate_user_roles' => array( |
|
1444 | 1444 | 2 => 0, |
1445 | 1445 | 3 => 0, |
1446 | - ), |
|
1447 | - 'override' => array( |
|
1446 | + ), |
|
1447 | + 'override' => array( |
|
1448 | 1448 | 'button' => 'Use default', |
1449 | - ), |
|
1450 | - 'relationship' => 'none', |
|
1451 | - 'default_options_div_prefix' => '', |
|
1452 | - 'default_taxonomy_tid_term_page' => 0, |
|
1453 | - 'default_taxonomy_tid_node' => 0, |
|
1454 | - 'default_taxonomy_tid_limit' => 0, |
|
1455 | - 'default_taxonomy_tid_vids' => array( |
|
1449 | + ), |
|
1450 | + 'relationship' => 'none', |
|
1451 | + 'default_options_div_prefix' => '', |
|
1452 | + 'default_taxonomy_tid_term_page' => 0, |
|
1453 | + 'default_taxonomy_tid_node' => 0, |
|
1454 | + 'default_taxonomy_tid_limit' => 0, |
|
1455 | + 'default_taxonomy_tid_vids' => array( |
|
1456 | 1456 | 1 => 0, |
1457 | 1457 | 3 => 0, |
1458 | - ), |
|
1459 | - 'default_argument_user' => 0, |
|
1460 | - 'default_argument_fixed' => '', |
|
1461 | - 'default_argument_php' => 'if (arg(0) == \'account\' AND arg(1) == \'prefs\') { |
|
1458 | + ), |
|
1459 | + 'default_argument_user' => 0, |
|
1460 | + 'default_argument_fixed' => '', |
|
1461 | + 'default_argument_php' => 'if (arg(0) == \'account\' AND arg(1) == \'prefs\') { |
|
1462 | 1462 | $venue = arg(4); |
1463 | 1463 | if ($venue == \'default\') $venue = null; |
1464 | 1464 | } |
1465 | 1465 | return $venue;', |
1466 | - 'validate_argument_node_type' => array( |
|
1466 | + 'validate_argument_node_type' => array( |
|
1467 | 1467 | 'forum' => 0, |
1468 | 1468 | 'panel' => 0, |
1469 | 1469 | 'job_post' => 0, |
@@ -1472,75 +1472,75 @@ discard block |
||
1472 | 1472 | 'profile' => 0, |
1473 | 1473 | 'story' => 0, |
1474 | 1474 | 'team' => 0, |
1475 | - ), |
|
1476 | - 'validate_argument_node_access' => 0, |
|
1477 | - 'validate_argument_nid_type' => 'nid', |
|
1478 | - 'validate_argument_vocabulary' => array( |
|
1475 | + ), |
|
1476 | + 'validate_argument_node_access' => 0, |
|
1477 | + 'validate_argument_nid_type' => 'nid', |
|
1478 | + 'validate_argument_vocabulary' => array( |
|
1479 | 1479 | 1 => 0, |
1480 | 1480 | 3 => 0, |
1481 | - ), |
|
1482 | - 'validate_argument_type' => 'tid', |
|
1483 | - 'validate_argument_transform' => 0, |
|
1484 | - 'validate_user_restrict_roles' => 0, |
|
1485 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
1486 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
1487 | - 'validate_argument_node_flag_id_type' => 'id', |
|
1488 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
1489 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
1490 | - 'validate_argument_user_flag_id_type' => 'id', |
|
1491 | - 'validate_argument_is_member' => 'OG_VIEWS_DO_NOT_VALIDATE_MEMBERSHIP', |
|
1492 | - 'validate_argument_group_node_type' => array( |
|
1481 | + ), |
|
1482 | + 'validate_argument_type' => 'tid', |
|
1483 | + 'validate_argument_transform' => 0, |
|
1484 | + 'validate_user_restrict_roles' => 0, |
|
1485 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
1486 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
1487 | + 'validate_argument_node_flag_id_type' => 'id', |
|
1488 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
1489 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
1490 | + 'validate_argument_user_flag_id_type' => 'id', |
|
1491 | + 'validate_argument_is_member' => 'OG_VIEWS_DO_NOT_VALIDATE_MEMBERSHIP', |
|
1492 | + 'validate_argument_group_node_type' => array( |
|
1493 | 1493 | 'team' => 0, |
1494 | - ), |
|
1495 | - 'validate_argument_php' => '', |
|
1496 | - 'me_validate_user_restrict_roles' => 0, |
|
1494 | + ), |
|
1495 | + 'validate_argument_php' => '', |
|
1496 | + 'me_validate_user_restrict_roles' => 0, |
|
1497 | 1497 | ), |
1498 | - )); |
|
1499 | - $handler->override_option('items_per_page', 9); |
|
1500 | - $handler->override_option('use_pager', FALSE); |
|
1501 | - $handler->override_option('use_more', 1); |
|
1502 | - $handler->override_option('use_more_always', 1); |
|
1503 | - $handler->override_option('style_options', array( |
|
1498 | + )); |
|
1499 | + $handler->override_option('items_per_page', 9); |
|
1500 | + $handler->override_option('use_pager', FALSE); |
|
1501 | + $handler->override_option('use_more', 1); |
|
1502 | + $handler->override_option('use_more_always', 1); |
|
1503 | + $handler->override_option('style_options', array( |
|
1504 | 1504 | 'grouping' => '', |
1505 | 1505 | 'override' => 1, |
1506 | 1506 | 'sticky' => 0, |
1507 | 1507 | 'order' => 'desc', |
1508 | 1508 | 'summary' => '', |
1509 | 1509 | 'columns' => array( |
1510 | - 'id' => 'id', |
|
1511 | - 'domain_name' => 'domain_name', |
|
1512 | - 'expavg_credit' => 'expavg_credit', |
|
1513 | - 'total_credit' => 'total_credit', |
|
1514 | - 'rpc_time' => 'rpc_time', |
|
1510 | + 'id' => 'id', |
|
1511 | + 'domain_name' => 'domain_name', |
|
1512 | + 'expavg_credit' => 'expavg_credit', |
|
1513 | + 'total_credit' => 'total_credit', |
|
1514 | + 'rpc_time' => 'rpc_time', |
|
1515 | 1515 | ), |
1516 | 1516 | 'info' => array( |
1517 | - 'id' => array( |
|
1517 | + 'id' => array( |
|
1518 | 1518 | 'sortable' => 0, |
1519 | 1519 | 'separator' => '', |
1520 | - ), |
|
1521 | - 'domain_name' => array( |
|
1520 | + ), |
|
1521 | + 'domain_name' => array( |
|
1522 | 1522 | 'sortable' => 0, |
1523 | 1523 | 'separator' => '', |
1524 | - ), |
|
1525 | - 'expavg_credit' => array( |
|
1524 | + ), |
|
1525 | + 'expavg_credit' => array( |
|
1526 | 1526 | 'sortable' => 0, |
1527 | 1527 | 'separator' => '', |
1528 | - ), |
|
1529 | - 'total_credit' => array( |
|
1528 | + ), |
|
1529 | + 'total_credit' => array( |
|
1530 | 1530 | 'sortable' => 0, |
1531 | 1531 | 'separator' => '', |
1532 | - ), |
|
1533 | - 'rpc_time' => array( |
|
1532 | + ), |
|
1533 | + 'rpc_time' => array( |
|
1534 | 1534 | 'sortable' => 0, |
1535 | 1535 | 'separator' => '', |
1536 | - ), |
|
1536 | + ), |
|
1537 | 1537 | ), |
1538 | 1538 | 'default' => 'rpc_time', |
1539 | - )); |
|
1540 | - $handler->override_option('block_description', ''); |
|
1541 | - $handler->override_option('block_caching', -1); |
|
1539 | + )); |
|
1540 | + $handler->override_option('block_description', ''); |
|
1541 | + $handler->override_option('block_caching', -1); |
|
1542 | 1542 | |
1543 | - $views[$view->name] = $view; |
|
1543 | + $views[$view->name] = $view; |
|
1544 | 1544 | |
1545 | - return $views; |
|
1545 | + return $views; |
|
1546 | 1546 | } |
@@ -4,18 +4,18 @@ discard block |
||
4 | 4 | * Implementation of hook_apachesolr_search_default_searchers(). |
5 | 5 | */ |
6 | 6 | function global_search_solr_apachesolr_search_default_searchers() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $searcher = new stdClass; |
|
10 | - $searcher->disabled = FALSE; /* Edit this to true to make a default searcher disabled initially */ |
|
11 | - $searcher->api_version = 3; |
|
12 | - $searcher->page_id = 'core_search'; |
|
13 | - $searcher->label = 'Core Search'; |
|
14 | - $searcher->description = 'Core Search'; |
|
15 | - $searcher->search_path = 'search/site'; |
|
16 | - $searcher->page_title = bts('Search site', array(), NULL, 'boinc:search-page'); |
|
17 | - $searcher->env_id = 'solr'; |
|
18 | - $searcher->settings = array( |
|
9 | + $searcher = new stdClass; |
|
10 | + $searcher->disabled = FALSE; /* Edit this to true to make a default searcher disabled initially */ |
|
11 | + $searcher->api_version = 3; |
|
12 | + $searcher->page_id = 'core_search'; |
|
13 | + $searcher->label = 'Core Search'; |
|
14 | + $searcher->description = 'Core Search'; |
|
15 | + $searcher->search_path = 'search/site'; |
|
16 | + $searcher->page_title = bts('Search site', array(), NULL, 'boinc:search-page'); |
|
17 | + $searcher->env_id = 'solr'; |
|
18 | + $searcher->settings = array( |
|
19 | 19 | 'fq' => array(), |
20 | 20 | 'apachesolr_search_custom_enable' => 0, |
21 | 21 | 'apachesolr_search_search_type' => 'custom', |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | 'apachesolr_search_browse' => 'none', |
25 | 25 | 'apachesolr_search_spellcheck' => 1, |
26 | 26 | 'apachesolr_search_allow_user_input' => 0, |
27 | - ); |
|
28 | - $export['core_search'] = $searcher; |
|
27 | + ); |
|
28 | + $export['core_search'] = $searcher; |
|
29 | 29 | |
30 | - return $export; |
|
30 | + return $export; |
|
31 | 31 | } |
@@ -7,19 +7,19 @@ |
||
7 | 7 | $export = array(); |
8 | 8 | |
9 | 9 | $searcher = new stdClass; |
10 | - $searcher->disabled = FALSE; /* Edit this to true to make a default searcher disabled initially */ |
|
10 | + $searcher->disabled = false; /* Edit this to true to make a default searcher disabled initially */ |
|
11 | 11 | $searcher->api_version = 3; |
12 | 12 | $searcher->page_id = 'core_search'; |
13 | 13 | $searcher->label = 'Core Search'; |
14 | 14 | $searcher->description = 'Core Search'; |
15 | 15 | $searcher->search_path = 'search/site'; |
16 | - $searcher->page_title = bts('Search site', array(), NULL, 'boinc:search-page'); |
|
16 | + $searcher->page_title = bts('Search site', array(), null, 'boinc:search-page'); |
|
17 | 17 | $searcher->env_id = 'solr'; |
18 | 18 | $searcher->settings = array( |
19 | 19 | 'fq' => array(), |
20 | 20 | 'apachesolr_search_custom_enable' => 0, |
21 | 21 | 'apachesolr_search_search_type' => 'custom', |
22 | - 'apachesolr_search_search_box' => TRUE, |
|
22 | + 'apachesolr_search_search_box' => true, |
|
23 | 23 | 'apachesolr_search_per_page' => '10', |
24 | 24 | 'apachesolr_search_browse' => 'none', |
25 | 25 | 'apachesolr_search_spellcheck' => 1, |
@@ -4,22 +4,22 @@ discard block |
||
4 | 4 | * Implementation of hook_views_default_views(). |
5 | 5 | */ |
6 | 6 | function stats_charts_views_default_views() { |
7 | - $views = array(); |
|
7 | + $views = array(); |
|
8 | 8 | |
9 | - // Exported view: boinc_account_stats |
|
10 | - $view = new view; |
|
11 | - $view->name = 'boinc_account_stats'; |
|
12 | - $view->description = 'BOINC user stats information'; |
|
13 | - $view->tag = ''; |
|
14 | - $view->base_table = 'user'; |
|
15 | - $view->core = 0; |
|
16 | - $view->api_version = '2'; |
|
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | - $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | - $handler->override_option('fields', array( |
|
9 | + // Exported view: boinc_account_stats |
|
10 | + $view = new view; |
|
11 | + $view->name = 'boinc_account_stats'; |
|
12 | + $view->description = 'BOINC user stats information'; |
|
13 | + $view->tag = ''; |
|
14 | + $view->base_table = 'user'; |
|
15 | + $view->core = 0; |
|
16 | + $view->api_version = '2'; |
|
17 | + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
18 | + $handler = $view->new_display('default', 'Defaults', 'default'); |
|
19 | + $handler->override_option('fields', array( |
|
20 | 20 | 'id' => array( |
21 | - 'label' => 'User ID', |
|
22 | - 'alter' => array( |
|
21 | + 'label' => 'User ID', |
|
22 | + 'alter' => array( |
|
23 | 23 | 'alter_text' => 0, |
24 | 24 | 'text' => '', |
25 | 25 | 'make_link' => 0, |
@@ -36,25 +36,25 @@ discard block |
||
36 | 36 | 'ellipsis' => 1, |
37 | 37 | 'html' => 0, |
38 | 38 | 'strip_tags' => 0, |
39 | - ), |
|
40 | - 'empty' => '', |
|
41 | - 'hide_empty' => 0, |
|
42 | - 'empty_zero' => 0, |
|
43 | - 'set_precision' => FALSE, |
|
44 | - 'precision' => 0, |
|
45 | - 'decimal' => '.', |
|
46 | - 'separator' => '', |
|
47 | - 'prefix' => '', |
|
48 | - 'suffix' => '', |
|
49 | - 'exclude' => 0, |
|
50 | - 'id' => 'id', |
|
51 | - 'table' => 'user', |
|
52 | - 'field' => 'id', |
|
53 | - 'relationship' => 'none', |
|
39 | + ), |
|
40 | + 'empty' => '', |
|
41 | + 'hide_empty' => 0, |
|
42 | + 'empty_zero' => 0, |
|
43 | + 'set_precision' => FALSE, |
|
44 | + 'precision' => 0, |
|
45 | + 'decimal' => '.', |
|
46 | + 'separator' => '', |
|
47 | + 'prefix' => '', |
|
48 | + 'suffix' => '', |
|
49 | + 'exclude' => 0, |
|
50 | + 'id' => 'id', |
|
51 | + 'table' => 'user', |
|
52 | + 'field' => 'id', |
|
53 | + 'relationship' => 'none', |
|
54 | 54 | ), |
55 | 55 | 'total_credit' => array( |
56 | - 'label' => 'Total credit', |
|
57 | - 'alter' => array( |
|
56 | + 'label' => 'Total credit', |
|
57 | + 'alter' => array( |
|
58 | 58 | 'alter_text' => 0, |
59 | 59 | 'text' => '', |
60 | 60 | 'make_link' => 0, |
@@ -71,25 +71,25 @@ discard block |
||
71 | 71 | 'ellipsis' => 1, |
72 | 72 | 'html' => 0, |
73 | 73 | 'strip_tags' => 0, |
74 | - ), |
|
75 | - 'empty' => '', |
|
76 | - 'hide_empty' => 0, |
|
77 | - 'empty_zero' => 0, |
|
78 | - 'set_precision' => 1, |
|
79 | - 'precision' => '0', |
|
80 | - 'decimal' => '.', |
|
81 | - 'separator' => ',', |
|
82 | - 'prefix' => '', |
|
83 | - 'suffix' => '', |
|
84 | - 'exclude' => 0, |
|
85 | - 'id' => 'total_credit', |
|
86 | - 'table' => 'user', |
|
87 | - 'field' => 'total_credit', |
|
88 | - 'relationship' => 'none', |
|
74 | + ), |
|
75 | + 'empty' => '', |
|
76 | + 'hide_empty' => 0, |
|
77 | + 'empty_zero' => 0, |
|
78 | + 'set_precision' => 1, |
|
79 | + 'precision' => '0', |
|
80 | + 'decimal' => '.', |
|
81 | + 'separator' => ',', |
|
82 | + 'prefix' => '', |
|
83 | + 'suffix' => '', |
|
84 | + 'exclude' => 0, |
|
85 | + 'id' => 'total_credit', |
|
86 | + 'table' => 'user', |
|
87 | + 'field' => 'total_credit', |
|
88 | + 'relationship' => 'none', |
|
89 | 89 | ), |
90 | 90 | 'expavg_credit' => array( |
91 | - 'label' => 'Recent average credit', |
|
92 | - 'alter' => array( |
|
91 | + 'label' => 'Recent average credit', |
|
92 | + 'alter' => array( |
|
93 | 93 | 'alter_text' => 0, |
94 | 94 | 'text' => '', |
95 | 95 | 'make_link' => 0, |
@@ -106,25 +106,25 @@ discard block |
||
106 | 106 | 'ellipsis' => 1, |
107 | 107 | 'html' => 0, |
108 | 108 | 'strip_tags' => 0, |
109 | - ), |
|
110 | - 'empty' => '', |
|
111 | - 'hide_empty' => 0, |
|
112 | - 'empty_zero' => 0, |
|
113 | - 'set_precision' => 1, |
|
114 | - 'precision' => '2', |
|
115 | - 'decimal' => '.', |
|
116 | - 'separator' => ',', |
|
117 | - 'prefix' => '', |
|
118 | - 'suffix' => '', |
|
119 | - 'exclude' => 0, |
|
120 | - 'id' => 'expavg_credit', |
|
121 | - 'table' => 'user', |
|
122 | - 'field' => 'expavg_credit', |
|
123 | - 'relationship' => 'none', |
|
109 | + ), |
|
110 | + 'empty' => '', |
|
111 | + 'hide_empty' => 0, |
|
112 | + 'empty_zero' => 0, |
|
113 | + 'set_precision' => 1, |
|
114 | + 'precision' => '2', |
|
115 | + 'decimal' => '.', |
|
116 | + 'separator' => ',', |
|
117 | + 'prefix' => '', |
|
118 | + 'suffix' => '', |
|
119 | + 'exclude' => 0, |
|
120 | + 'id' => 'expavg_credit', |
|
121 | + 'table' => 'user', |
|
122 | + 'field' => 'expavg_credit', |
|
123 | + 'relationship' => 'none', |
|
124 | 124 | ), |
125 | 125 | 'nothing_4' => array( |
126 | - 'label' => 'Pending credit', |
|
127 | - 'alter' => array( |
|
126 | + 'label' => 'Pending credit', |
|
127 | + 'alter' => array( |
|
128 | 128 | 'text' => 'View', |
129 | 129 | 'make_link' => 1, |
130 | 130 | 'path' => 'account/credit/pending', |
@@ -142,20 +142,20 @@ discard block |
||
142 | 142 | 'ellipsis' => 1, |
143 | 143 | 'html' => 0, |
144 | 144 | 'strip_tags' => 0, |
145 | - ), |
|
146 | - 'empty' => '', |
|
147 | - 'hide_empty' => 0, |
|
148 | - 'empty_zero' => 0, |
|
149 | - 'hide_alter_empty' => 1, |
|
150 | - 'exclude' => 1, |
|
151 | - 'id' => 'nothing_4', |
|
152 | - 'table' => 'views', |
|
153 | - 'field' => 'nothing', |
|
154 | - 'relationship' => 'none', |
|
145 | + ), |
|
146 | + 'empty' => '', |
|
147 | + 'hide_empty' => 0, |
|
148 | + 'empty_zero' => 0, |
|
149 | + 'hide_alter_empty' => 1, |
|
150 | + 'exclude' => 1, |
|
151 | + 'id' => 'nothing_4', |
|
152 | + 'table' => 'views', |
|
153 | + 'field' => 'nothing', |
|
154 | + 'relationship' => 'none', |
|
155 | 155 | ), |
156 | 156 | 'nothing_5' => array( |
157 | - 'label' => 'Computers on this account', |
|
158 | - 'alter' => array( |
|
157 | + 'label' => 'Computers on this account', |
|
158 | + 'alter' => array( |
|
159 | 159 | 'text' => 'View', |
160 | 160 | 'make_link' => 1, |
161 | 161 | 'path' => 'account/computers', |
@@ -171,19 +171,19 @@ discard block |
||
171 | 171 | 'ellipsis' => 1, |
172 | 172 | 'html' => 0, |
173 | 173 | 'strip_tags' => 0, |
174 | - ), |
|
175 | - 'empty' => '', |
|
176 | - 'hide_empty' => 0, |
|
177 | - 'empty_zero' => 0, |
|
178 | - 'exclude' => 0, |
|
179 | - 'id' => 'nothing_5', |
|
180 | - 'table' => 'views', |
|
181 | - 'field' => 'nothing', |
|
182 | - 'relationship' => 'none', |
|
174 | + ), |
|
175 | + 'empty' => '', |
|
176 | + 'hide_empty' => 0, |
|
177 | + 'empty_zero' => 0, |
|
178 | + 'exclude' => 0, |
|
179 | + 'id' => 'nothing_5', |
|
180 | + 'table' => 'views', |
|
181 | + 'field' => 'nothing', |
|
182 | + 'relationship' => 'none', |
|
183 | 183 | ), |
184 | 184 | 'nothing_6' => array( |
185 | - 'label' => 'Tasks', |
|
186 | - 'alter' => array( |
|
185 | + 'label' => 'Tasks', |
|
186 | + 'alter' => array( |
|
187 | 187 | 'text' => 'View', |
188 | 188 | 'make_link' => 1, |
189 | 189 | 'path' => 'account/tasks', |
@@ -199,19 +199,19 @@ discard block |
||
199 | 199 | 'ellipsis' => 1, |
200 | 200 | 'html' => 0, |
201 | 201 | 'strip_tags' => 0, |
202 | - ), |
|
203 | - 'empty' => '', |
|
204 | - 'hide_empty' => 0, |
|
205 | - 'empty_zero' => 0, |
|
206 | - 'exclude' => 0, |
|
207 | - 'id' => 'nothing_6', |
|
208 | - 'table' => 'views', |
|
209 | - 'field' => 'nothing', |
|
210 | - 'relationship' => 'none', |
|
202 | + ), |
|
203 | + 'empty' => '', |
|
204 | + 'hide_empty' => 0, |
|
205 | + 'empty_zero' => 0, |
|
206 | + 'exclude' => 0, |
|
207 | + 'id' => 'nothing_6', |
|
208 | + 'table' => 'views', |
|
209 | + 'field' => 'nothing', |
|
210 | + 'relationship' => 'none', |
|
211 | 211 | ), |
212 | 212 | 'cross_project_id' => array( |
213 | - 'label' => 'Cross-project statistics', |
|
214 | - 'alter' => array( |
|
213 | + 'label' => 'Cross-project statistics', |
|
214 | + 'alter' => array( |
|
215 | 215 | 'alter_text' => 0, |
216 | 216 | 'text' => '', |
217 | 217 | 'make_link' => 0, |
@@ -228,22 +228,22 @@ discard block |
||
228 | 228 | 'ellipsis' => 1, |
229 | 229 | 'html' => 0, |
230 | 230 | 'strip_tags' => 0, |
231 | - ), |
|
232 | - 'empty' => '', |
|
233 | - 'hide_empty' => 0, |
|
234 | - 'empty_zero' => 0, |
|
235 | - 'exclude' => 1, |
|
236 | - 'id' => 'cross_project_id', |
|
237 | - 'table' => 'user', |
|
238 | - 'field' => 'cross_project_id', |
|
239 | - 'relationship' => 'none', |
|
240 | - 'override' => array( |
|
231 | + ), |
|
232 | + 'empty' => '', |
|
233 | + 'hide_empty' => 0, |
|
234 | + 'empty_zero' => 0, |
|
235 | + 'exclude' => 1, |
|
236 | + 'id' => 'cross_project_id', |
|
237 | + 'table' => 'user', |
|
238 | + 'field' => 'cross_project_id', |
|
239 | + 'relationship' => 'none', |
|
240 | + 'override' => array( |
|
241 | 241 | 'button' => 'Override', |
242 | - ), |
|
242 | + ), |
|
243 | 243 | ), |
244 | 244 | 'nothing_8' => array( |
245 | - 'label' => 'Certificate', |
|
246 | - 'alter' => array( |
|
245 | + 'label' => 'Certificate', |
|
246 | + 'alter' => array( |
|
247 | 247 | 'text' => '<a href="account/certs">Account</a> | <a href="account/certs/all">Cross-project</a>', |
248 | 248 | 'make_link' => 0, |
249 | 249 | 'path' => '', |
@@ -259,129 +259,129 @@ discard block |
||
259 | 259 | 'ellipsis' => 1, |
260 | 260 | 'html' => 0, |
261 | 261 | 'strip_tags' => 0, |
262 | - ), |
|
263 | - 'empty' => '', |
|
264 | - 'hide_empty' => 0, |
|
265 | - 'empty_zero' => 0, |
|
266 | - 'exclude' => 0, |
|
267 | - 'id' => 'nothing_8', |
|
268 | - 'table' => 'views', |
|
269 | - 'field' => 'nothing', |
|
270 | - 'relationship' => 'none', |
|
262 | + ), |
|
263 | + 'empty' => '', |
|
264 | + 'hide_empty' => 0, |
|
265 | + 'empty_zero' => 0, |
|
266 | + 'exclude' => 0, |
|
267 | + 'id' => 'nothing_8', |
|
268 | + 'table' => 'views', |
|
269 | + 'field' => 'nothing', |
|
270 | + 'relationship' => 'none', |
|
271 | 271 | ), |
272 | - )); |
|
273 | - $handler->override_option('arguments', array( |
|
272 | + )); |
|
273 | + $handler->override_option('arguments', array( |
|
274 | 274 | 'id' => array( |
275 | - 'default_action' => 'default', |
|
276 | - 'style_plugin' => 'default_summary', |
|
277 | - 'style_options' => array(), |
|
278 | - 'wildcard' => 'all', |
|
279 | - 'wildcard_substitution' => 'All', |
|
280 | - 'title' => '', |
|
281 | - 'breadcrumb' => '', |
|
282 | - 'default_argument_type' => 'current_user', |
|
283 | - 'default_argument' => '', |
|
284 | - 'validate_type' => 'numeric', |
|
285 | - 'validate_fail' => 'not found', |
|
286 | - 'break_phrase' => 0, |
|
287 | - 'not' => 0, |
|
288 | - 'id' => 'id', |
|
289 | - 'table' => 'user', |
|
290 | - 'field' => 'id', |
|
291 | - 'validate_user_argument_type' => 'uid', |
|
292 | - 'validate_user_roles' => array( |
|
275 | + 'default_action' => 'default', |
|
276 | + 'style_plugin' => 'default_summary', |
|
277 | + 'style_options' => array(), |
|
278 | + 'wildcard' => 'all', |
|
279 | + 'wildcard_substitution' => 'All', |
|
280 | + 'title' => '', |
|
281 | + 'breadcrumb' => '', |
|
282 | + 'default_argument_type' => 'current_user', |
|
283 | + 'default_argument' => '', |
|
284 | + 'validate_type' => 'numeric', |
|
285 | + 'validate_fail' => 'not found', |
|
286 | + 'break_phrase' => 0, |
|
287 | + 'not' => 0, |
|
288 | + 'id' => 'id', |
|
289 | + 'table' => 'user', |
|
290 | + 'field' => 'id', |
|
291 | + 'validate_user_argument_type' => 'uid', |
|
292 | + 'validate_user_roles' => array( |
|
293 | 293 | 2 => 0, |
294 | 294 | 4 => 0, |
295 | 295 | 7 => 0, |
296 | 296 | 5 => 0, |
297 | 297 | 3 => 0, |
298 | 298 | 6 => 0, |
299 | - ), |
|
300 | - 'relationship' => 'none', |
|
301 | - 'default_options_div_prefix' => '', |
|
302 | - 'default_argument_fixed' => '', |
|
303 | - 'default_argument_user' => 0, |
|
304 | - 'default_argument_php' => '', |
|
305 | - 'validate_argument_node_type' => array( |
|
299 | + ), |
|
300 | + 'relationship' => 'none', |
|
301 | + 'default_options_div_prefix' => '', |
|
302 | + 'default_argument_fixed' => '', |
|
303 | + 'default_argument_user' => 0, |
|
304 | + 'default_argument_php' => '', |
|
305 | + 'validate_argument_node_type' => array( |
|
306 | 306 | 'page' => 0, |
307 | 307 | 'news' => 0, |
308 | 308 | 'profile' => 0, |
309 | 309 | 'forum' => 0, |
310 | 310 | 'panel' => 0, |
311 | 311 | 'story' => 0, |
312 | - ), |
|
313 | - 'validate_argument_node_access' => 0, |
|
314 | - 'validate_argument_nid_type' => 'nid', |
|
315 | - 'validate_argument_vocabulary' => array( |
|
312 | + ), |
|
313 | + 'validate_argument_node_access' => 0, |
|
314 | + 'validate_argument_nid_type' => 'nid', |
|
315 | + 'validate_argument_vocabulary' => array( |
|
316 | 316 | 1 => 0, |
317 | 317 | 2 => 0, |
318 | - ), |
|
319 | - 'validate_argument_type' => 'tid', |
|
320 | - 'validate_argument_transform' => 0, |
|
321 | - 'validate_user_restrict_roles' => 0, |
|
322 | - 'validate_argument_php' => '', |
|
323 | - 'override' => array( |
|
318 | + ), |
|
319 | + 'validate_argument_type' => 'tid', |
|
320 | + 'validate_argument_transform' => 0, |
|
321 | + 'validate_user_restrict_roles' => 0, |
|
322 | + 'validate_argument_php' => '', |
|
323 | + 'override' => array( |
|
324 | 324 | 'button' => 'Override', |
325 | - ), |
|
326 | - 'me_redirect' => 0, |
|
327 | - 'me_validate_user_argument_type' => 'uid', |
|
328 | - 'me_validate_user_roles' => array( |
|
325 | + ), |
|
326 | + 'me_redirect' => 0, |
|
327 | + 'me_validate_user_argument_type' => 'uid', |
|
328 | + 'me_validate_user_roles' => array( |
|
329 | 329 | 2 => 0, |
330 | 330 | 4 => 0, |
331 | 331 | 7 => 0, |
332 | 332 | 5 => 0, |
333 | 333 | 3 => 0, |
334 | 334 | 6 => 0, |
335 | - ), |
|
336 | - 'default_taxonomy_tid_term_page' => 0, |
|
337 | - 'default_taxonomy_tid_node' => 0, |
|
338 | - 'default_taxonomy_tid_limit' => 0, |
|
339 | - 'default_taxonomy_tid_vids' => array( |
|
335 | + ), |
|
336 | + 'default_taxonomy_tid_term_page' => 0, |
|
337 | + 'default_taxonomy_tid_node' => 0, |
|
338 | + 'default_taxonomy_tid_limit' => 0, |
|
339 | + 'default_taxonomy_tid_vids' => array( |
|
340 | 340 | 1 => 0, |
341 | 341 | 2 => 0, |
342 | - ), |
|
343 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
344 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
345 | - 'validate_argument_node_flag_id_type' => 'id', |
|
346 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
347 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
348 | - 'validate_argument_user_flag_id_type' => 'id', |
|
349 | - 'me_validate_user_restrict_roles' => 0, |
|
342 | + ), |
|
343 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
344 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
345 | + 'validate_argument_node_flag_id_type' => 'id', |
|
346 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
347 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
348 | + 'validate_argument_user_flag_id_type' => 'id', |
|
349 | + 'me_validate_user_restrict_roles' => 0, |
|
350 | 350 | ), |
351 | - )); |
|
352 | - $handler->override_option('access', array( |
|
351 | + )); |
|
352 | + $handler->override_option('access', array( |
|
353 | 353 | 'type' => 'none', |
354 | - )); |
|
355 | - $handler->override_option('cache', array( |
|
354 | + )); |
|
355 | + $handler->override_option('cache', array( |
|
356 | 356 | 'type' => 'none', |
357 | - )); |
|
358 | - $handler->override_option('css_class', 'stats'); |
|
359 | - $handler->override_option('header_format', '1'); |
|
360 | - $handler->override_option('header_empty', 0); |
|
361 | - $handler->override_option('style_options', array( |
|
357 | + )); |
|
358 | + $handler->override_option('css_class', 'stats'); |
|
359 | + $handler->override_option('header_format', '1'); |
|
360 | + $handler->override_option('header_empty', 0); |
|
361 | + $handler->override_option('style_options', array( |
|
362 | 362 | 'grouping' => '', |
363 | - )); |
|
364 | - $handler = $view->new_display('page', 'Page', 'page_1'); |
|
365 | - $handler->override_option('path', 'account/obsolete'); |
|
366 | - $handler->override_option('menu', array( |
|
363 | + )); |
|
364 | + $handler = $view->new_display('page', 'Page', 'page_1'); |
|
365 | + $handler->override_option('path', 'account/obsolete'); |
|
366 | + $handler->override_option('menu', array( |
|
367 | 367 | 'type' => 'tab', |
368 | 368 | 'title' => 'Obsolete', |
369 | 369 | 'description' => '', |
370 | 370 | 'weight' => '0', |
371 | 371 | 'name' => 'navigation', |
372 | - )); |
|
373 | - $handler->override_option('tab_options', array( |
|
372 | + )); |
|
373 | + $handler->override_option('tab_options', array( |
|
374 | 374 | 'type' => 'none', |
375 | 375 | 'title' => '', |
376 | 376 | 'description' => '', |
377 | 377 | 'weight' => 0, |
378 | 378 | 'name' => 'navigation', |
379 | - )); |
|
380 | - $handler = $view->new_display('panel_pane', 'Credit status', 'panel_pane_1'); |
|
381 | - $handler->override_option('fields', array( |
|
379 | + )); |
|
380 | + $handler = $view->new_display('panel_pane', 'Credit status', 'panel_pane_1'); |
|
381 | + $handler->override_option('fields', array( |
|
382 | 382 | 'id' => array( |
383 | - 'label' => 'User ID', |
|
384 | - 'alter' => array( |
|
383 | + 'label' => 'User ID', |
|
384 | + 'alter' => array( |
|
385 | 385 | 'alter_text' => 0, |
386 | 386 | 'text' => '', |
387 | 387 | 'make_link' => 0, |
@@ -398,28 +398,28 @@ discard block |
||
398 | 398 | 'ellipsis' => 1, |
399 | 399 | 'html' => 0, |
400 | 400 | 'strip_tags' => 0, |
401 | - ), |
|
402 | - 'empty' => '', |
|
403 | - 'hide_empty' => 0, |
|
404 | - 'empty_zero' => 0, |
|
405 | - 'set_precision' => FALSE, |
|
406 | - 'precision' => 0, |
|
407 | - 'decimal' => '.', |
|
408 | - 'separator' => '', |
|
409 | - 'prefix' => '', |
|
410 | - 'suffix' => '', |
|
411 | - 'exclude' => 1, |
|
412 | - 'id' => 'id', |
|
413 | - 'table' => 'user', |
|
414 | - 'field' => 'id', |
|
415 | - 'relationship' => 'none', |
|
416 | - 'override' => array( |
|
401 | + ), |
|
402 | + 'empty' => '', |
|
403 | + 'hide_empty' => 0, |
|
404 | + 'empty_zero' => 0, |
|
405 | + 'set_precision' => FALSE, |
|
406 | + 'precision' => 0, |
|
407 | + 'decimal' => '.', |
|
408 | + 'separator' => '', |
|
409 | + 'prefix' => '', |
|
410 | + 'suffix' => '', |
|
411 | + 'exclude' => 1, |
|
412 | + 'id' => 'id', |
|
413 | + 'table' => 'user', |
|
414 | + 'field' => 'id', |
|
415 | + 'relationship' => 'none', |
|
416 | + 'override' => array( |
|
417 | 417 | 'button' => 'Use default', |
418 | - ), |
|
418 | + ), |
|
419 | 419 | ), |
420 | 420 | 'total_credit' => array( |
421 | - 'label' => 'Total credit', |
|
422 | - 'alter' => array( |
|
421 | + 'label' => 'Total credit', |
|
422 | + 'alter' => array( |
|
423 | 423 | 'alter_text' => 0, |
424 | 424 | 'text' => '', |
425 | 425 | 'make_link' => 0, |
@@ -436,25 +436,25 @@ discard block |
||
436 | 436 | 'ellipsis' => 1, |
437 | 437 | 'html' => 0, |
438 | 438 | 'strip_tags' => 0, |
439 | - ), |
|
440 | - 'empty' => '', |
|
441 | - 'hide_empty' => 0, |
|
442 | - 'empty_zero' => 0, |
|
443 | - 'set_precision' => 1, |
|
444 | - 'precision' => '0', |
|
445 | - 'decimal' => '.', |
|
446 | - 'separator' => ',', |
|
447 | - 'prefix' => '', |
|
448 | - 'suffix' => '', |
|
449 | - 'exclude' => 0, |
|
450 | - 'id' => 'total_credit', |
|
451 | - 'table' => 'user', |
|
452 | - 'field' => 'total_credit', |
|
453 | - 'relationship' => 'none', |
|
439 | + ), |
|
440 | + 'empty' => '', |
|
441 | + 'hide_empty' => 0, |
|
442 | + 'empty_zero' => 0, |
|
443 | + 'set_precision' => 1, |
|
444 | + 'precision' => '0', |
|
445 | + 'decimal' => '.', |
|
446 | + 'separator' => ',', |
|
447 | + 'prefix' => '', |
|
448 | + 'suffix' => '', |
|
449 | + 'exclude' => 0, |
|
450 | + 'id' => 'total_credit', |
|
451 | + 'table' => 'user', |
|
452 | + 'field' => 'total_credit', |
|
453 | + 'relationship' => 'none', |
|
454 | 454 | ), |
455 | 455 | 'expavg_credit' => array( |
456 | - 'label' => 'Recent avg', |
|
457 | - 'alter' => array( |
|
456 | + 'label' => 'Recent avg', |
|
457 | + 'alter' => array( |
|
458 | 458 | 'alter_text' => 0, |
459 | 459 | 'text' => '', |
460 | 460 | 'make_link' => 0, |
@@ -471,28 +471,28 @@ discard block |
||
471 | 471 | 'ellipsis' => 1, |
472 | 472 | 'html' => 0, |
473 | 473 | 'strip_tags' => 0, |
474 | - ), |
|
475 | - 'empty' => '', |
|
476 | - 'hide_empty' => 0, |
|
477 | - 'empty_zero' => 0, |
|
478 | - 'set_precision' => 1, |
|
479 | - 'precision' => '2', |
|
480 | - 'decimal' => '.', |
|
481 | - 'separator' => ',', |
|
482 | - 'prefix' => '', |
|
483 | - 'suffix' => '', |
|
484 | - 'exclude' => 0, |
|
485 | - 'id' => 'expavg_credit', |
|
486 | - 'table' => 'user', |
|
487 | - 'field' => 'expavg_credit', |
|
488 | - 'relationship' => 'none', |
|
489 | - 'override' => array( |
|
474 | + ), |
|
475 | + 'empty' => '', |
|
476 | + 'hide_empty' => 0, |
|
477 | + 'empty_zero' => 0, |
|
478 | + 'set_precision' => 1, |
|
479 | + 'precision' => '2', |
|
480 | + 'decimal' => '.', |
|
481 | + 'separator' => ',', |
|
482 | + 'prefix' => '', |
|
483 | + 'suffix' => '', |
|
484 | + 'exclude' => 0, |
|
485 | + 'id' => 'expavg_credit', |
|
486 | + 'table' => 'user', |
|
487 | + 'field' => 'expavg_credit', |
|
488 | + 'relationship' => 'none', |
|
489 | + 'override' => array( |
|
490 | 490 | 'button' => 'Use default', |
491 | - ), |
|
491 | + ), |
|
492 | 492 | ), |
493 | 493 | 'nothing_4' => array( |
494 | - 'label' => '', |
|
495 | - 'alter' => array( |
|
494 | + 'label' => '', |
|
495 | + 'alter' => array( |
|
496 | 496 | 'text' => 'Pending', |
497 | 497 | 'make_link' => 1, |
498 | 498 | 'path' => 'account/tasks/pending', |
@@ -510,23 +510,23 @@ discard block |
||
510 | 510 | 'ellipsis' => 1, |
511 | 511 | 'html' => 0, |
512 | 512 | 'strip_tags' => 0, |
513 | - ), |
|
514 | - 'empty' => '', |
|
515 | - 'hide_empty' => 0, |
|
516 | - 'empty_zero' => 0, |
|
517 | - 'hide_alter_empty' => 1, |
|
518 | - 'exclude' => 1, |
|
519 | - 'id' => 'nothing_4', |
|
520 | - 'table' => 'views', |
|
521 | - 'field' => 'nothing', |
|
522 | - 'relationship' => 'none', |
|
523 | - 'override' => array( |
|
513 | + ), |
|
514 | + 'empty' => '', |
|
515 | + 'hide_empty' => 0, |
|
516 | + 'empty_zero' => 0, |
|
517 | + 'hide_alter_empty' => 1, |
|
518 | + 'exclude' => 1, |
|
519 | + 'id' => 'nothing_4', |
|
520 | + 'table' => 'views', |
|
521 | + 'field' => 'nothing', |
|
522 | + 'relationship' => 'none', |
|
523 | + 'override' => array( |
|
524 | 524 | 'button' => 'Use default', |
525 | - ), |
|
525 | + ), |
|
526 | 526 | ), |
527 | 527 | 'nothing' => array( |
528 | - 'label' => '', |
|
529 | - 'alter' => array( |
|
528 | + 'label' => '', |
|
529 | + 'alter' => array( |
|
530 | 530 | 'text' => bts('Certificates', array(), NULL, 'boinc:account-dashboard'), |
531 | 531 | 'make_link' => 1, |
532 | 532 | 'path' => 'account/certs', |
@@ -544,23 +544,23 @@ discard block |
||
544 | 544 | 'ellipsis' => 1, |
545 | 545 | 'html' => 0, |
546 | 546 | 'strip_tags' => 0, |
547 | - ), |
|
548 | - 'empty' => '', |
|
549 | - 'hide_empty' => 0, |
|
550 | - 'empty_zero' => 0, |
|
551 | - 'hide_alter_empty' => 1, |
|
552 | - 'exclude' => 0, |
|
553 | - 'id' => 'nothing', |
|
554 | - 'table' => 'views', |
|
555 | - 'field' => 'nothing', |
|
556 | - 'override' => array( |
|
547 | + ), |
|
548 | + 'empty' => '', |
|
549 | + 'hide_empty' => 0, |
|
550 | + 'empty_zero' => 0, |
|
551 | + 'hide_alter_empty' => 1, |
|
552 | + 'exclude' => 0, |
|
553 | + 'id' => 'nothing', |
|
554 | + 'table' => 'views', |
|
555 | + 'field' => 'nothing', |
|
556 | + 'override' => array( |
|
557 | 557 | 'button' => 'Use default', |
558 | - ), |
|
559 | - 'relationship' => 'none', |
|
558 | + ), |
|
559 | + 'relationship' => 'none', |
|
560 | 560 | ), |
561 | 561 | 'nothing_1' => array( |
562 | - 'label' => '', |
|
563 | - 'alter' => array( |
|
562 | + 'label' => '', |
|
563 | + 'alter' => array( |
|
564 | 564 | 'text' => 'Cross-project', |
565 | 565 | 'make_link' => 1, |
566 | 566 | 'path' => 'account/certs/all', |
@@ -576,22 +576,22 @@ discard block |
||
576 | 576 | 'ellipsis' => 1, |
577 | 577 | 'html' => 0, |
578 | 578 | 'strip_tags' => 0, |
579 | - ), |
|
580 | - 'empty' => '', |
|
581 | - 'hide_empty' => 0, |
|
582 | - 'empty_zero' => 0, |
|
583 | - 'exclude' => 1, |
|
584 | - 'id' => 'nothing_1', |
|
585 | - 'table' => 'views', |
|
586 | - 'field' => 'nothing', |
|
587 | - 'override' => array( |
|
579 | + ), |
|
580 | + 'empty' => '', |
|
581 | + 'hide_empty' => 0, |
|
582 | + 'empty_zero' => 0, |
|
583 | + 'exclude' => 1, |
|
584 | + 'id' => 'nothing_1', |
|
585 | + 'table' => 'views', |
|
586 | + 'field' => 'nothing', |
|
587 | + 'override' => array( |
|
588 | 588 | 'button' => 'Use default', |
589 | - ), |
|
590 | - 'relationship' => 'none', |
|
589 | + ), |
|
590 | + 'relationship' => 'none', |
|
591 | 591 | ), |
592 | 592 | 'cross_project_id' => array( |
593 | - 'label' => '', |
|
594 | - 'alter' => array( |
|
593 | + 'label' => '', |
|
594 | + 'alter' => array( |
|
595 | 595 | 'alter_text' => 0, |
596 | 596 | 'text' => '<div class="chart"><img src="charts/user/[cross_project_id]" /></div>', |
597 | 597 | 'make_link' => 0, |
@@ -608,22 +608,22 @@ discard block |
||
608 | 608 | 'ellipsis' => 1, |
609 | 609 | 'html' => 0, |
610 | 610 | 'strip_tags' => 0, |
611 | - ), |
|
612 | - 'empty' => '', |
|
613 | - 'hide_empty' => 0, |
|
614 | - 'empty_zero' => 0, |
|
615 | - 'exclude' => 1, |
|
616 | - 'id' => 'cross_project_id', |
|
617 | - 'table' => 'user', |
|
618 | - 'field' => 'cross_project_id', |
|
619 | - 'relationship' => 'none', |
|
620 | - 'override' => array( |
|
611 | + ), |
|
612 | + 'empty' => '', |
|
613 | + 'hide_empty' => 0, |
|
614 | + 'empty_zero' => 0, |
|
615 | + 'exclude' => 1, |
|
616 | + 'id' => 'cross_project_id', |
|
617 | + 'table' => 'user', |
|
618 | + 'field' => 'cross_project_id', |
|
619 | + 'relationship' => 'none', |
|
620 | + 'override' => array( |
|
621 | 621 | 'button' => 'Use default', |
622 | - ), |
|
622 | + ), |
|
623 | 623 | ), |
624 | 624 | 'phpcode' => array( |
625 | - 'label' => '', |
|
626 | - 'alter' => array( |
|
625 | + 'label' => '', |
|
626 | + 'alter' => array( |
|
627 | 627 | 'alter_text' => 0, |
628 | 628 | 'text' => '', |
629 | 629 | 'make_link' => 0, |
@@ -642,32 +642,32 @@ discard block |
||
642 | 642 | 'ellipsis' => 1, |
643 | 643 | 'html' => 0, |
644 | 644 | 'strip_tags' => 0, |
645 | - ), |
|
646 | - 'empty' => '', |
|
647 | - 'hide_empty' => 0, |
|
648 | - 'empty_zero' => 0, |
|
649 | - 'hide_alter_empty' => 1, |
|
650 | - 'value' => '<?php global $base_path; ?> |
|
645 | + ), |
|
646 | + 'empty' => '', |
|
647 | + 'hide_empty' => 0, |
|
648 | + 'empty_zero' => 0, |
|
649 | + 'hide_alter_empty' => 1, |
|
650 | + 'value' => '<?php global $base_path; ?> |
|
651 | 651 | <?php $account = user_load(get_drupal_id($data->id)); ?> |
652 | 652 | <div class="chart"><img src="<?php echo "{$base_path}charts/user/{$account->boincuser_cpid}"; ?>" /></div>', |
653 | - 'exclude' => 0, |
|
654 | - 'id' => 'phpcode', |
|
655 | - 'table' => 'customfield', |
|
656 | - 'field' => 'phpcode', |
|
657 | - 'override' => array( |
|
653 | + 'exclude' => 0, |
|
654 | + 'id' => 'phpcode', |
|
655 | + 'table' => 'customfield', |
|
656 | + 'field' => 'phpcode', |
|
657 | + 'override' => array( |
|
658 | 658 | 'button' => 'Use default', |
659 | - ), |
|
660 | - 'relationship' => 'none', |
|
659 | + ), |
|
660 | + 'relationship' => 'none', |
|
661 | 661 | ), |
662 | - )); |
|
663 | - $handler->override_option('style_options', array()); |
|
664 | - $handler->override_option('pane_title', 'BOINC account stats detail'); |
|
665 | - $handler->override_option('pane_description', ''); |
|
666 | - $handler->override_option('pane_category', array( |
|
662 | + )); |
|
663 | + $handler->override_option('style_options', array()); |
|
664 | + $handler->override_option('pane_title', 'BOINC account stats detail'); |
|
665 | + $handler->override_option('pane_description', ''); |
|
666 | + $handler->override_option('pane_category', array( |
|
667 | 667 | 'name' => 'View panes', |
668 | 668 | 'weight' => 0, |
669 | - )); |
|
670 | - $handler->override_option('allow', array( |
|
669 | + )); |
|
670 | + $handler->override_option('allow', array( |
|
671 | 671 | 'use_pager' => FALSE, |
672 | 672 | 'items_per_page' => FALSE, |
673 | 673 | 'offset' => FALSE, |
@@ -677,15 +677,15 @@ discard block |
||
677 | 677 | 'title_override' => FALSE, |
678 | 678 | 'exposed_form' => FALSE, |
679 | 679 | 'fields_override' => FALSE, |
680 | - )); |
|
681 | - $handler->override_option('argument_input', array()); |
|
682 | - $handler->override_option('link_to_view', 0); |
|
683 | - $handler->override_option('inherit_panels_path', 0); |
|
684 | - $handler = $view->new_display('panel_pane', 'User overview', 'panel_pane_2'); |
|
685 | - $handler->override_option('fields', array( |
|
680 | + )); |
|
681 | + $handler->override_option('argument_input', array()); |
|
682 | + $handler->override_option('link_to_view', 0); |
|
683 | + $handler->override_option('inherit_panels_path', 0); |
|
684 | + $handler = $view->new_display('panel_pane', 'User overview', 'panel_pane_2'); |
|
685 | + $handler->override_option('fields', array( |
|
686 | 686 | 'id' => array( |
687 | - 'label' => 'User ID', |
|
688 | - 'alter' => array( |
|
687 | + 'label' => 'User ID', |
|
688 | + 'alter' => array( |
|
689 | 689 | 'alter_text' => 0, |
690 | 690 | 'text' => '', |
691 | 691 | 'make_link' => 0, |
@@ -704,32 +704,32 @@ discard block |
||
704 | 704 | 'ellipsis' => 1, |
705 | 705 | 'html' => 0, |
706 | 706 | 'strip_tags' => 0, |
707 | - ), |
|
708 | - 'empty' => '', |
|
709 | - 'hide_empty' => 0, |
|
710 | - 'empty_zero' => 0, |
|
711 | - 'hide_alter_empty' => 1, |
|
712 | - 'set_precision' => FALSE, |
|
713 | - 'precision' => 0, |
|
714 | - 'decimal' => '.', |
|
715 | - 'separator' => '', |
|
716 | - 'format_plural' => 0, |
|
717 | - 'format_plural_singular' => '1', |
|
718 | - 'format_plural_plural' => '@count', |
|
719 | - 'prefix' => '', |
|
720 | - 'suffix' => '', |
|
721 | - 'exclude' => 1, |
|
722 | - 'id' => 'id', |
|
723 | - 'table' => 'user', |
|
724 | - 'field' => 'id', |
|
725 | - 'relationship' => 'none', |
|
726 | - 'override' => array( |
|
707 | + ), |
|
708 | + 'empty' => '', |
|
709 | + 'hide_empty' => 0, |
|
710 | + 'empty_zero' => 0, |
|
711 | + 'hide_alter_empty' => 1, |
|
712 | + 'set_precision' => FALSE, |
|
713 | + 'precision' => 0, |
|
714 | + 'decimal' => '.', |
|
715 | + 'separator' => '', |
|
716 | + 'format_plural' => 0, |
|
717 | + 'format_plural_singular' => '1', |
|
718 | + 'format_plural_plural' => '@count', |
|
719 | + 'prefix' => '', |
|
720 | + 'suffix' => '', |
|
721 | + 'exclude' => 1, |
|
722 | + 'id' => 'id', |
|
723 | + 'table' => 'user', |
|
724 | + 'field' => 'id', |
|
725 | + 'relationship' => 'none', |
|
726 | + 'override' => array( |
|
727 | 727 | 'button' => 'Use default', |
728 | - ), |
|
728 | + ), |
|
729 | 729 | ), |
730 | 730 | 'total_credit' => array( |
731 | - 'label' => 'Total credit', |
|
732 | - 'alter' => array( |
|
731 | + 'label' => 'Total credit', |
|
732 | + 'alter' => array( |
|
733 | 733 | 'alter_text' => 0, |
734 | 734 | 'text' => '', |
735 | 735 | 'make_link' => 0, |
@@ -746,25 +746,25 @@ discard block |
||
746 | 746 | 'ellipsis' => 1, |
747 | 747 | 'html' => 0, |
748 | 748 | 'strip_tags' => 0, |
749 | - ), |
|
750 | - 'empty' => '', |
|
751 | - 'hide_empty' => 0, |
|
752 | - 'empty_zero' => 0, |
|
753 | - 'set_precision' => 1, |
|
754 | - 'precision' => '0', |
|
755 | - 'decimal' => '.', |
|
756 | - 'separator' => ',', |
|
757 | - 'prefix' => '', |
|
758 | - 'suffix' => '', |
|
759 | - 'exclude' => 0, |
|
760 | - 'id' => 'total_credit', |
|
761 | - 'table' => 'user', |
|
762 | - 'field' => 'total_credit', |
|
763 | - 'relationship' => 'none', |
|
749 | + ), |
|
750 | + 'empty' => '', |
|
751 | + 'hide_empty' => 0, |
|
752 | + 'empty_zero' => 0, |
|
753 | + 'set_precision' => 1, |
|
754 | + 'precision' => '0', |
|
755 | + 'decimal' => '.', |
|
756 | + 'separator' => ',', |
|
757 | + 'prefix' => '', |
|
758 | + 'suffix' => '', |
|
759 | + 'exclude' => 0, |
|
760 | + 'id' => 'total_credit', |
|
761 | + 'table' => 'user', |
|
762 | + 'field' => 'total_credit', |
|
763 | + 'relationship' => 'none', |
|
764 | 764 | ), |
765 | 765 | 'expavg_credit' => array( |
766 | - 'label' => 'Avg credit', |
|
767 | - 'alter' => array( |
|
766 | + 'label' => 'Avg credit', |
|
767 | + 'alter' => array( |
|
768 | 768 | 'alter_text' => 0, |
769 | 769 | 'text' => '', |
770 | 770 | 'make_link' => 0, |
@@ -783,32 +783,32 @@ discard block |
||
783 | 783 | 'ellipsis' => 1, |
784 | 784 | 'html' => 0, |
785 | 785 | 'strip_tags' => 0, |
786 | - ), |
|
787 | - 'empty' => '', |
|
788 | - 'hide_empty' => 0, |
|
789 | - 'empty_zero' => 0, |
|
790 | - 'hide_alter_empty' => 1, |
|
791 | - 'set_precision' => 1, |
|
792 | - 'precision' => '2', |
|
793 | - 'decimal' => '.', |
|
794 | - 'separator' => ',', |
|
795 | - 'format_plural' => 0, |
|
796 | - 'format_plural_singular' => '1', |
|
797 | - 'format_plural_plural' => '@count', |
|
798 | - 'prefix' => '', |
|
799 | - 'suffix' => '', |
|
800 | - 'exclude' => 0, |
|
801 | - 'id' => 'expavg_credit', |
|
802 | - 'table' => 'user', |
|
803 | - 'field' => 'expavg_credit', |
|
804 | - 'relationship' => 'none', |
|
805 | - 'override' => array( |
|
786 | + ), |
|
787 | + 'empty' => '', |
|
788 | + 'hide_empty' => 0, |
|
789 | + 'empty_zero' => 0, |
|
790 | + 'hide_alter_empty' => 1, |
|
791 | + 'set_precision' => 1, |
|
792 | + 'precision' => '2', |
|
793 | + 'decimal' => '.', |
|
794 | + 'separator' => ',', |
|
795 | + 'format_plural' => 0, |
|
796 | + 'format_plural_singular' => '1', |
|
797 | + 'format_plural_plural' => '@count', |
|
798 | + 'prefix' => '', |
|
799 | + 'suffix' => '', |
|
800 | + 'exclude' => 0, |
|
801 | + 'id' => 'expavg_credit', |
|
802 | + 'table' => 'user', |
|
803 | + 'field' => 'expavg_credit', |
|
804 | + 'relationship' => 'none', |
|
805 | + 'override' => array( |
|
806 | 806 | 'button' => 'Use default', |
807 | - ), |
|
807 | + ), |
|
808 | 808 | ), |
809 | 809 | 'phpcode_1' => array( |
810 | - 'label' => '', |
|
811 | - 'alter' => array( |
|
810 | + 'label' => '', |
|
811 | + 'alter' => array( |
|
812 | 812 | 'alter_text' => 0, |
813 | 813 | 'text' => '', |
814 | 814 | 'make_link' => 0, |
@@ -827,28 +827,28 @@ discard block |
||
827 | 827 | 'ellipsis' => 1, |
828 | 828 | 'html' => 0, |
829 | 829 | 'strip_tags' => 0, |
830 | - ), |
|
831 | - 'empty' => '', |
|
832 | - 'hide_empty' => 0, |
|
833 | - 'empty_zero' => 0, |
|
834 | - 'hide_alter_empty' => 1, |
|
835 | - 'value' => '<?php |
|
830 | + ), |
|
831 | + 'empty' => '', |
|
832 | + 'hide_empty' => 0, |
|
833 | + 'empty_zero' => 0, |
|
834 | + 'hide_alter_empty' => 1, |
|
835 | + 'value' => '<?php |
|
836 | 836 | |
837 | 837 | echo l(bts(\'Show computers\', array(), NULL, \'boinc:accountpage\'), \'account/\' . get_drupal_id($data->id) . \'/computers\'); |
838 | 838 | |
839 | 839 | ?>', |
840 | - 'exclude' => 0, |
|
841 | - 'id' => 'phpcode_1', |
|
842 | - 'table' => 'customfield', |
|
843 | - 'field' => 'phpcode', |
|
844 | - 'override' => array( |
|
840 | + 'exclude' => 0, |
|
841 | + 'id' => 'phpcode_1', |
|
842 | + 'table' => 'customfield', |
|
843 | + 'field' => 'phpcode', |
|
844 | + 'override' => array( |
|
845 | 845 | 'button' => 'Use default', |
846 | - ), |
|
847 | - 'relationship' => 'none', |
|
846 | + ), |
|
847 | + 'relationship' => 'none', |
|
848 | 848 | ), |
849 | 849 | 'cross_project_id' => array( |
850 | - 'label' => 'Cross-project statistics', |
|
851 | - 'alter' => array( |
|
850 | + 'label' => 'Cross-project statistics', |
|
851 | + 'alter' => array( |
|
852 | 852 | 'alter_text' => 0, |
853 | 853 | 'text' => '', |
854 | 854 | 'make_link' => 0, |
@@ -865,22 +865,22 @@ discard block |
||
865 | 865 | 'ellipsis' => 1, |
866 | 866 | 'html' => 0, |
867 | 867 | 'strip_tags' => 0, |
868 | - ), |
|
869 | - 'empty' => '', |
|
870 | - 'hide_empty' => 0, |
|
871 | - 'empty_zero' => 0, |
|
872 | - 'exclude' => 1, |
|
873 | - 'id' => 'cross_project_id', |
|
874 | - 'table' => 'user', |
|
875 | - 'field' => 'cross_project_id', |
|
876 | - 'relationship' => 'none', |
|
877 | - 'override' => array( |
|
868 | + ), |
|
869 | + 'empty' => '', |
|
870 | + 'hide_empty' => 0, |
|
871 | + 'empty_zero' => 0, |
|
872 | + 'exclude' => 1, |
|
873 | + 'id' => 'cross_project_id', |
|
874 | + 'table' => 'user', |
|
875 | + 'field' => 'cross_project_id', |
|
876 | + 'relationship' => 'none', |
|
877 | + 'override' => array( |
|
878 | 878 | 'button' => 'Override', |
879 | - ), |
|
879 | + ), |
|
880 | 880 | ), |
881 | 881 | 'phpcode' => array( |
882 | - 'label' => '', |
|
883 | - 'alter' => array( |
|
882 | + 'label' => '', |
|
883 | + 'alter' => array( |
|
884 | 884 | 'alter_text' => 0, |
885 | 885 | 'text' => '', |
886 | 886 | 'make_link' => 0, |
@@ -899,39 +899,39 @@ discard block |
||
899 | 899 | 'ellipsis' => 1, |
900 | 900 | 'html' => 0, |
901 | 901 | 'strip_tags' => 0, |
902 | - ), |
|
903 | - 'empty' => '', |
|
904 | - 'hide_empty' => 0, |
|
905 | - 'empty_zero' => 0, |
|
906 | - 'hide_alter_empty' => 1, |
|
907 | - 'value' => '<?php global $base_path; ?> |
|
902 | + ), |
|
903 | + 'empty' => '', |
|
904 | + 'hide_empty' => 0, |
|
905 | + 'empty_zero' => 0, |
|
906 | + 'hide_alter_empty' => 1, |
|
907 | + 'value' => '<?php global $base_path; ?> |
|
908 | 908 | <?php $account = user_load(get_drupal_id($data->id)); ?> |
909 | 909 | <div class="chart"><img src="<?php echo "{$base_path}charts/user/{$account->boincuser_cpid}/small"; ?>" /></div>', |
910 | - 'exclude' => 0, |
|
911 | - 'id' => 'phpcode', |
|
912 | - 'table' => 'customfield', |
|
913 | - 'field' => 'phpcode', |
|
914 | - 'override' => array( |
|
910 | + 'exclude' => 0, |
|
911 | + 'id' => 'phpcode', |
|
912 | + 'table' => 'customfield', |
|
913 | + 'field' => 'phpcode', |
|
914 | + 'override' => array( |
|
915 | 915 | 'button' => 'Use default', |
916 | - ), |
|
917 | - 'relationship' => 'none', |
|
916 | + ), |
|
917 | + 'relationship' => 'none', |
|
918 | 918 | ), |
919 | - )); |
|
920 | - $handler->override_option('title', 'Statistics'); |
|
921 | - $handler->override_option('empty', 'empty...'); |
|
922 | - $handler->override_option('empty_format', '5'); |
|
923 | - $handler->override_option('row_options', array( |
|
919 | + )); |
|
920 | + $handler->override_option('title', 'Statistics'); |
|
921 | + $handler->override_option('empty', 'empty...'); |
|
922 | + $handler->override_option('empty_format', '5'); |
|
923 | + $handler->override_option('row_options', array( |
|
924 | 924 | 'inline' => array(), |
925 | 925 | 'separator' => '', |
926 | 926 | 'hide_empty' => 0, |
927 | - )); |
|
928 | - $handler->override_option('pane_title', 'BOINC account stats overview'); |
|
929 | - $handler->override_option('pane_description', ''); |
|
930 | - $handler->override_option('pane_category', array( |
|
927 | + )); |
|
928 | + $handler->override_option('pane_title', 'BOINC account stats overview'); |
|
929 | + $handler->override_option('pane_description', ''); |
|
930 | + $handler->override_option('pane_category', array( |
|
931 | 931 | 'name' => 'View panes', |
932 | 932 | 'weight' => 0, |
933 | - )); |
|
934 | - $handler->override_option('allow', array( |
|
933 | + )); |
|
934 | + $handler->override_option('allow', array( |
|
935 | 935 | 'use_pager' => 0, |
936 | 936 | 'items_per_page' => 0, |
937 | 937 | 'offset' => 0, |
@@ -941,21 +941,21 @@ discard block |
||
941 | 941 | 'title_override' => 'title_override', |
942 | 942 | 'exposed_form' => 0, |
943 | 943 | 'fields_override' => 0, |
944 | - )); |
|
945 | - $handler->override_option('argument_input', array( |
|
944 | + )); |
|
945 | + $handler->override_option('argument_input', array( |
|
946 | 946 | 'id' => array( |
947 | - 'type' => 'panel', |
|
948 | - 'context' => 'node_edit_form.author-mail-raw', |
|
949 | - 'context_optional' => 0, |
|
950 | - 'panel' => '0', |
|
951 | - 'fixed' => '', |
|
952 | - 'label' => 'BOINC: Id', |
|
947 | + 'type' => 'panel', |
|
948 | + 'context' => 'node_edit_form.author-mail-raw', |
|
949 | + 'context_optional' => 0, |
|
950 | + 'panel' => '0', |
|
951 | + 'fixed' => '', |
|
952 | + 'label' => 'BOINC: Id', |
|
953 | 953 | ), |
954 | - )); |
|
955 | - $handler->override_option('link_to_view', 0); |
|
956 | - $handler->override_option('inherit_panels_path', 0); |
|
954 | + )); |
|
955 | + $handler->override_option('link_to_view', 0); |
|
956 | + $handler->override_option('inherit_panels_path', 0); |
|
957 | 957 | |
958 | - $views[$view->name] = $view; |
|
958 | + $views[$view->name] = $view; |
|
959 | 959 | |
960 | - return $views; |
|
960 | + return $views; |
|
961 | 961 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $view->base_table = 'user'; |
15 | 15 | $view->core = 0; |
16 | 16 | $view->api_version = '2'; |
17 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
17 | + $view->disabled = false; /* Edit this to true to make a default view disabled initially */ |
|
18 | 18 | $handler = $view->new_display('default', 'Defaults', 'default'); |
19 | 19 | $handler->override_option('fields', array( |
20 | 20 | 'id' => array( |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'empty' => '', |
41 | 41 | 'hide_empty' => 0, |
42 | 42 | 'empty_zero' => 0, |
43 | - 'set_precision' => FALSE, |
|
43 | + 'set_precision' => false, |
|
44 | 44 | 'precision' => 0, |
45 | 45 | 'decimal' => '.', |
46 | 46 | 'separator' => '', |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | 'empty' => '', |
403 | 403 | 'hide_empty' => 0, |
404 | 404 | 'empty_zero' => 0, |
405 | - 'set_precision' => FALSE, |
|
405 | + 'set_precision' => false, |
|
406 | 406 | 'precision' => 0, |
407 | 407 | 'decimal' => '.', |
408 | 408 | 'separator' => '', |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | 'nothing' => array( |
528 | 528 | 'label' => '', |
529 | 529 | 'alter' => array( |
530 | - 'text' => bts('Certificates', array(), NULL, 'boinc:account-dashboard'), |
|
530 | + 'text' => bts('Certificates', array(), null, 'boinc:account-dashboard'), |
|
531 | 531 | 'make_link' => 1, |
532 | 532 | 'path' => 'account/certs', |
533 | 533 | 'absolute' => 0, |
@@ -668,15 +668,15 @@ discard block |
||
668 | 668 | 'weight' => 0, |
669 | 669 | )); |
670 | 670 | $handler->override_option('allow', array( |
671 | - 'use_pager' => FALSE, |
|
672 | - 'items_per_page' => FALSE, |
|
673 | - 'offset' => FALSE, |
|
674 | - 'link_to_view' => FALSE, |
|
675 | - 'more_link' => FALSE, |
|
676 | - 'path_override' => FALSE, |
|
677 | - 'title_override' => FALSE, |
|
678 | - 'exposed_form' => FALSE, |
|
679 | - 'fields_override' => FALSE, |
|
671 | + 'use_pager' => false, |
|
672 | + 'items_per_page' => false, |
|
673 | + 'offset' => false, |
|
674 | + 'link_to_view' => false, |
|
675 | + 'more_link' => false, |
|
676 | + 'path_override' => false, |
|
677 | + 'title_override' => false, |
|
678 | + 'exposed_form' => false, |
|
679 | + 'fields_override' => false, |
|
680 | 680 | )); |
681 | 681 | $handler->override_option('argument_input', array()); |
682 | 682 | $handler->override_option('link_to_view', 0); |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | 'hide_empty' => 0, |
710 | 710 | 'empty_zero' => 0, |
711 | 711 | 'hide_alter_empty' => 1, |
712 | - 'set_precision' => FALSE, |
|
712 | + 'set_precision' => false, |
|
713 | 713 | 'precision' => 0, |
714 | 714 | 'decimal' => '.', |
715 | 715 | 'separator' => '', |
@@ -4,19 +4,19 @@ |
||
4 | 4 | * Implementation of hook_menu_default_menu_custom(). |
5 | 5 | */ |
6 | 6 | function boinc_standard_menu_default_menu_custom() { |
7 | - $menus = array(); |
|
7 | + $menus = array(); |
|
8 | 8 | |
9 | - // Exported menu: menu-footer-links |
|
10 | - $menus['menu-footer-links'] = array( |
|
9 | + // Exported menu: menu-footer-links |
|
10 | + $menus['menu-footer-links'] = array( |
|
11 | 11 | 'menu_name' => 'menu-footer-links', |
12 | 12 | 'title' => 'Footer links', |
13 | 13 | 'description' => 'Auxiliary menu, typically at the bottom of the page in the footer, that includes links to content such as "about us" or "privacy policy" etc.', |
14 | - ); |
|
15 | - // Translatables |
|
16 | - // Title and description for footer menu appears in admin menu: Admin> Site Building> Menus |
|
17 | - t('Auxiliary menu, typically at the bottom of the page in the footer, that includes links to content such as "about us" or "privacy policy" etc.'); |
|
18 | - t('Footer links'); |
|
14 | + ); |
|
15 | + // Translatables |
|
16 | + // Title and description for footer menu appears in admin menu: Admin> Site Building> Menus |
|
17 | + t('Auxiliary menu, typically at the bottom of the page in the footer, that includes links to content such as "about us" or "privacy policy" etc.'); |
|
18 | + t('Footer links'); |
|
19 | 19 | |
20 | 20 | |
21 | - return $menus; |
|
21 | + return $menus; |
|
22 | 22 | } |
@@ -4,18 +4,18 @@ discard block |
||
4 | 4 | * Implementation of hook_menu_default_menu_links(). |
5 | 5 | */ |
6 | 6 | function user_profiles_menu_default_menu_links() { |
7 | - $menu_links = array(); |
|
7 | + $menu_links = array(); |
|
8 | 8 | |
9 | - // Exported menu link: primary-links:account/profile |
|
10 | - $menu_links['primary-links:account/profile'] = array( |
|
9 | + // Exported menu link: primary-links:account/profile |
|
10 | + $menu_links['primary-links:account/profile'] = array( |
|
11 | 11 | 'menu_name' => 'primary-links', |
12 | 12 | 'link_path' => 'account/profile', |
13 | 13 | 'router_path' => 'account/profile', |
14 | 14 | 'link_title' => 'Profile', |
15 | 15 | 'options' => array( |
16 | - 'attributes' => array( |
|
16 | + 'attributes' => array( |
|
17 | 17 | 'title' => '', |
18 | - ), |
|
18 | + ), |
|
19 | 19 | ), |
20 | 20 | 'module' => 'menu', |
21 | 21 | 'hidden' => '0', |
@@ -24,17 +24,17 @@ discard block |
||
24 | 24 | 'expanded' => '0', |
25 | 25 | 'weight' => '-49', |
26 | 26 | 'parent_path' => 'dashboard', |
27 | - ); |
|
28 | - // Exported menu link: primary-links:moderate/profiles |
|
29 | - $menu_links['primary-links:moderate/profiles'] = array( |
|
27 | + ); |
|
28 | + // Exported menu link: primary-links:moderate/profiles |
|
29 | + $menu_links['primary-links:moderate/profiles'] = array( |
|
30 | 30 | 'menu_name' => 'primary-links', |
31 | 31 | 'link_path' => 'moderate/profiles', |
32 | 32 | 'router_path' => 'moderate/profiles', |
33 | 33 | 'link_title' => 'Queue', |
34 | 34 | 'options' => array( |
35 | - 'attributes' => array( |
|
35 | + 'attributes' => array( |
|
36 | 36 | 'title' => '', |
37 | - ), |
|
37 | + ), |
|
38 | 38 | ), |
39 | 39 | 'module' => 'menu', |
40 | 40 | 'hidden' => '0', |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | 'expanded' => '0', |
44 | 44 | 'weight' => '-50', |
45 | 45 | 'parent_path' => 'moderate', |
46 | - ); |
|
47 | - // Translatables |
|
48 | - // Use bts() function to translate additional strings. |
|
49 | - bts('Queue', array(), NULL, 'boinc:menu-link'); |
|
50 | - bts('Profile', array(), NULL, 'boinc:menu-link'); |
|
46 | + ); |
|
47 | + // Translatables |
|
48 | + // Use bts() function to translate additional strings. |
|
49 | + bts('Queue', array(), NULL, 'boinc:menu-link'); |
|
50 | + bts('Profile', array(), NULL, 'boinc:menu-link'); |
|
51 | 51 | |
52 | - return $menu_links; |
|
52 | + return $menu_links; |
|
53 | 53 | } |
@@ -46,8 +46,8 @@ |
||
46 | 46 | ); |
47 | 47 | // Translatables |
48 | 48 | // Use bts() function to translate additional strings. |
49 | - bts('Queue', array(), NULL, 'boinc:menu-link'); |
|
50 | - bts('Profile', array(), NULL, 'boinc:menu-link'); |
|
49 | + bts('Queue', array(), null, 'boinc:menu-link'); |
|
50 | + bts('Profile', array(), null, 'boinc:menu-link'); |
|
51 | 51 | |
52 | 52 | return $menu_links; |
53 | 53 | } |
@@ -4,19 +4,19 @@ discard block |
||
4 | 4 | * Implementation of hook_menu_default_menu_links(). |
5 | 5 | */ |
6 | 6 | function news_menu_default_menu_links() { |
7 | - $menu_links = array(); |
|
7 | + $menu_links = array(); |
|
8 | 8 | |
9 | - // Exported menu link: primary-links:news |
|
10 | - $menu_links['primary-links:news'] = array( |
|
9 | + // Exported menu link: primary-links:news |
|
10 | + $menu_links['primary-links:news'] = array( |
|
11 | 11 | 'menu_name' => 'primary-links', |
12 | 12 | 'link_path' => 'news', |
13 | 13 | 'router_path' => 'news', |
14 | 14 | 'link_title' => 'News', |
15 | 15 | 'options' => array( |
16 | - 'attributes' => array( |
|
16 | + 'attributes' => array( |
|
17 | 17 | 'title' => '', |
18 | - ), |
|
19 | - 'alter' => TRUE, |
|
18 | + ), |
|
19 | + 'alter' => TRUE, |
|
20 | 20 | ), |
21 | 21 | 'module' => 'menu', |
22 | 22 | 'hidden' => '0', |
@@ -24,11 +24,11 @@ discard block |
||
24 | 24 | 'has_children' => '0', |
25 | 25 | 'expanded' => '1', |
26 | 26 | 'weight' => '-48', |
27 | - ); |
|
28 | - // Translatables |
|
29 | - // Use bts() function to translate additional strings. |
|
30 | - bts('News', array(), NULL, 'boinc:menu-link'); |
|
27 | + ); |
|
28 | + // Translatables |
|
29 | + // Use bts() function to translate additional strings. |
|
30 | + bts('News', array(), NULL, 'boinc:menu-link'); |
|
31 | 31 | |
32 | 32 | |
33 | - return $menu_links; |
|
33 | + return $menu_links; |
|
34 | 34 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | 'attributes' => array( |
17 | 17 | 'title' => '', |
18 | 18 | ), |
19 | - 'alter' => TRUE, |
|
19 | + 'alter' => true, |
|
20 | 20 | ), |
21 | 21 | 'module' => 'menu', |
22 | 22 | 'hidden' => '0', |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | ); |
28 | 28 | // Translatables |
29 | 29 | // Use bts() function to translate additional strings. |
30 | - bts('News', array(), NULL, 'boinc:menu-link'); |
|
30 | + bts('News', array(), null, 'boinc:menu-link'); |
|
31 | 31 | |
32 | 32 | |
33 | 33 | return $menu_links; |
@@ -104,8 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | if ($myCache->isInCache($cache_name)) { |
106 | 106 | $myCache->strokeFromCache($cache_name); |
107 | - } |
|
108 | - else { |
|
107 | + } else { |
|
109 | 108 | // Initialize dataset |
110 | 109 | $dataset = array(); |
111 | 110 | $stats_xml = boincstats_get_project_stats('daily', $cpid); |
@@ -114,9 +113,10 @@ discard block |
||
114 | 113 | for ($j = 30; $j < 90; $j++) { |
115 | 114 | $dataset[] = (int) $stats_xml->records->record[$j]; |
116 | 115 | } |
117 | - } |
|
118 | - else { |
|
119 | - for ($i = 0; $i <= $dataset_size; $i++) $dataset[] = 0; |
|
116 | + } else { |
|
117 | + for ($i = 0; $i <= $dataset_size; $i++) { |
|
118 | + $dataset[] = 0; |
|
119 | + } |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | // Get color configuration |
@@ -226,8 +226,7 @@ discard block |
||
226 | 226 | |
227 | 227 | if ($myCache->isInCache($cache_name)) { |
228 | 228 | $myCache->strokeFromCache($cache_name); |
229 | - } |
|
230 | - else { |
|
229 | + } else { |
|
231 | 230 | // Initialize dataset |
232 | 231 | $dataset = array(); |
233 | 232 | $stats_xml = boincstats_get_project_stats('daily'); |
@@ -236,9 +235,10 @@ discard block |
||
236 | 235 | for ($j = 30; $j < 90; $j++) { |
237 | 236 | $dataset[] = (int) $stats_xml->records->record[$j]; |
238 | 237 | } |
239 | - } |
|
240 | - else { |
|
241 | - for ($i = 0; $i <= 30; $i++) $dataset[] = 0; |
|
238 | + } else { |
|
239 | + for ($i = 0; $i <= 30; $i++) { |
|
240 | + $dataset[] = 0; |
|
241 | + } |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | // Create and populate the pData object |
@@ -316,8 +316,7 @@ discard block |
||
316 | 316 | directory must be writeable by the web server.', |
317 | 317 | array('@parent_dir' => dirname($cache_dir)), WATCHDOG_ERROR); |
318 | 318 | return FALSE; |
319 | - } |
|
320 | - else { |
|
319 | + } else { |
|
321 | 320 | // Create the cache dir |
322 | 321 | if (!mkdir($cache_dir, 0775)) { |
323 | 322 | watchdog('boincstats', 'Failed to create @cache_dir directory. Check |
@@ -326,8 +325,7 @@ discard block |
||
326 | 325 | return FALSE; |
327 | 326 | } |
328 | 327 | } |
329 | - } |
|
330 | - else { |
|
328 | + } else { |
|
331 | 329 | watchdog('boincstats', 'Cache directory at @cache_dir is not writeable. |
332 | 330 | Please allow webserver write access.', |
333 | 331 | array('@cache_dir' => $cache_dir), WATCHDOG_ERROR); |
@@ -370,8 +368,7 @@ discard block |
||
370 | 368 | foreach ($get as $arg => $value) { |
371 | 369 | if ($value !== NULL) { |
372 | 370 | $args[] = "{$arg}=" . rawurlencode($value); |
373 | - } |
|
374 | - else { |
|
371 | + } else { |
|
375 | 372 | $args[] = $arg; |
376 | 373 | } |
377 | 374 | } |
@@ -467,8 +464,7 @@ discard block |
||
467 | 464 | drupal_set_message(t('The BOINC stats system is not configured. Please |
468 | 465 | !configure_it', array('!configure_it' => l(t('configure it now'), |
469 | 466 | 'admin/boinc/stats'))), 'error', FALSE); |
470 | - } |
|
471 | - else { |
|
467 | + } else { |
|
472 | 468 | drupal_set_message(t('There is a problem with the site. Please contact |
473 | 469 | the system administrator.'), 'error', FALSE); |
474 | 470 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | $stats_xml = NULL; |
75 | 75 | |
76 | - switch($chart_size) { |
|
76 | + switch ($chart_size) { |
|
77 | 77 | case 'small': |
78 | 78 | $cache_name .= "{$cpid}_small"; |
79 | 79 | $dataset_size = 30; |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | } |
100 | 100 | |
101 | 101 | // Initialize the cache object and flush stale images |
102 | - $myCache = new pCache(array('CacheFolder' => realpath('.') . '/' . conf_path() . '/files/cache')); |
|
102 | + $myCache = new pCache(array('CacheFolder' => realpath('.').'/'.conf_path().'/files/cache')); |
|
103 | 103 | $myCache->removeOlderThan(60*60*24); |
104 | 104 | |
105 | 105 | if ($myCache->isInCache($cache_name)) { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | if ($stats_xml) { |
113 | 113 | // Get the last 60 days of stats for the chart |
114 | 114 | for ($j = 30; $j < 90; $j++) { |
115 | - $dataset[] = (int) $stats_xml->records->record[$j]; |
|
115 | + $dataset[] = (int)$stats_xml->records->record[$j]; |
|
116 | 116 | } |
117 | 117 | } |
118 | 118 | else { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | |
132 | 132 | $MyData->addPoints($dataset, 'series1'); |
133 | 133 | $MyData->setPalette('series1', $palette_color); |
134 | - $MyData->setAxisPosition(0,AXIS_POSITION_RIGHT); |
|
134 | + $MyData->setAxisPosition(0, AXIS_POSITION_RIGHT); |
|
135 | 135 | |
136 | 136 | // Create the pChart object |
137 | 137 | $myPicture = new pImage($chart_width, $chart_height, $MyData); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | if ($label_x_axis) { |
177 | 177 | for ($i = 5; $i >= 0; $i--) { |
178 | 178 | $label = ($i) ? -10*$i : 'Today'; |
179 | - $myPicture->drawText(589-587*($i/6)-5, 2, $label, array('Align' => TEXT_ALIGN_TOPRIGHT)); |
|
179 | + $myPicture->drawText(589 - 587*($i/6) - 5, 2, $label, array('Align' => TEXT_ALIGN_TOPRIGHT)); |
|
180 | 180 | } |
181 | 181 | } |
182 | 182 | |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | } |
222 | 222 | |
223 | 223 | // Initialize the cache object and flush stale images |
224 | - $myCache = new pCache(array('CacheFolder' => realpath('.') . '/' . conf_path() . '/files/cache')); |
|
224 | + $myCache = new pCache(array('CacheFolder' => realpath('.').'/'.conf_path().'/files/cache')); |
|
225 | 225 | $myCache->removeOlderThan(60*60*24); |
226 | 226 | |
227 | 227 | if ($myCache->isInCache($cache_name)) { |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | if ($stats_xml) { |
235 | 235 | // Get the last 60 days of stats for the chart |
236 | 236 | for ($j = 30; $j < 90; $j++) { |
237 | - $dataset[] = (int) $stats_xml->records->record[$j]; |
|
237 | + $dataset[] = (int)$stats_xml->records->record[$j]; |
|
238 | 238 | } |
239 | 239 | } |
240 | 240 | else { |
@@ -246,10 +246,10 @@ discard block |
||
246 | 246 | |
247 | 247 | $MyData->addPoints($dataset, 'series1'); |
248 | 248 | $MyData->setPalette('series1', $palette_color); |
249 | - $MyData->setAxisPosition(0,AXIS_POSITION_RIGHT); |
|
249 | + $MyData->setAxisPosition(0, AXIS_POSITION_RIGHT); |
|
250 | 250 | |
251 | 251 | // Create the pChart object |
252 | - $myPicture = new pImage(266,80,$MyData); |
|
252 | + $myPicture = new pImage(266, 80, $MyData); |
|
253 | 253 | |
254 | 254 | // Turn on Antialiasing |
255 | 255 | $myPicture->Antialias = true; |
@@ -258,8 +258,8 @@ discard block |
||
258 | 258 | //$myPicture->setFontProperties(array('FontName' => '../fonts/pf_arma_five.ttf','FontSize' => 6)); |
259 | 259 | |
260 | 260 | // Define the chart area |
261 | - $myPicture->setGraphArea(0,0,266,80); |
|
262 | - $myPicture->drawFilledRectangle(0,0,266,80,$backdrop_color); |
|
261 | + $myPicture->setGraphArea(0, 0, 266, 80); |
|
262 | + $myPicture->drawFilledRectangle(0, 0, 266, 80, $backdrop_color); |
|
263 | 263 | |
264 | 264 | // Draw the scale |
265 | 265 | $scaleSettings = array( |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | * |
308 | 308 | */ |
309 | 309 | function boincstats_check_cache_dir($cache_path = 'files/cache') { |
310 | - $cache_dir = realpath('.') . '/' . conf_path() . '/' . $cache_path; |
|
310 | + $cache_dir = realpath('.').'/'.conf_path().'/'.$cache_path; |
|
311 | 311 | if (!is_writeable($cache_dir)) { |
312 | 312 | if (!is_dir($cache_dir)) { |
313 | 313 | if (!is_writeable(dirname($cache_dir))) { |
@@ -369,13 +369,13 @@ discard block |
||
369 | 369 | $args = array(); |
370 | 370 | foreach ($get as $arg => $value) { |
371 | 371 | if ($value !== NULL) { |
372 | - $args[] = "{$arg}=" . rawurlencode($value); |
|
372 | + $args[] = "{$arg}=".rawurlencode($value); |
|
373 | 373 | } |
374 | 374 | else { |
375 | 375 | $args[] = $arg; |
376 | 376 | } |
377 | 377 | } |
378 | - $query = '?' . implode('&', $args); |
|
378 | + $query = '?'.implode('&', $args); |
|
379 | 379 | |
380 | 380 | // Load XML from RPC |
381 | 381 | $stats_xml = NULL; |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | function boincstats_get_project_total_credit() { |
395 | 395 | $stats_xml = boincstats_get_project_stats(); |
396 | 396 | $last_record = end($stats_xml->records->record); |
397 | - return ($last_record) ? (int) $last_record : 0; |
|
397 | + return ($last_record) ? (int)$last_record : 0; |
|
398 | 398 | } |
399 | 399 | |
400 | 400 | /* |
@@ -409,7 +409,7 @@ discard block |
||
409 | 409 | * |
410 | 410 | */ |
411 | 411 | function boincstats_credit_to_ghours($credit) { |
412 | - return $credit / (100 * 365); |
|
412 | + return $credit/(100*365); |
|
413 | 413 | } |
414 | 414 | |
415 | 415 | /* |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | 't' => 6, |
423 | 423 | 'p' => 9 |
424 | 424 | ); |
425 | - return $credit / (pow(10, (int) $factor[$prefix]) / 10); |
|
425 | + return $credit/(pow(10, (int)$factor[$prefix])/10); |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | |
@@ -435,14 +435,14 @@ discard block |
||
435 | 435 | $output = ''; |
436 | 436 | switch ($type) { |
437 | 437 | case 'basic': |
438 | - $output .= '<div class="overlay"><span>(' . bts('Credits per day', array(), NULL, 'boinc:front-page') . ')</span></div>' . "\n"; |
|
439 | - $output .= '<div class="chart"><img src="' . $base_path . 'charts/project" /></div>' . "\n"; |
|
438 | + $output .= '<div class="overlay"><span>('.bts('Credits per day', array(), NULL, 'boinc:front-page').')</span></div>'."\n"; |
|
439 | + $output .= '<div class="chart"><img src="'.$base_path.'charts/project" /></div>'."\n"; |
|
440 | 440 | break; |
441 | 441 | case 'detailed': |
442 | - $output .= '<div class="stats"><label>' . bts('Total G-hours', array(), NULL, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_ghours(boincstats_get_project_total_credit())) . '</span></div>' . "\n"; |
|
443 | - $output .= '<div class="stats"><label>' . bts('Avg TFlops', array(), NULL, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_flops(boincstats_get_project_avg_credit(), 't')) . '</span></div>' . "\n"; |
|
442 | + $output .= '<div class="stats"><label>'.bts('Total G-hours', array(), NULL, 'boinc:front-page').': </label><span>'.number_format(boincstats_credit_to_ghours(boincstats_get_project_total_credit())).'</span></div>'."\n"; |
|
443 | + $output .= '<div class="stats"><label>'.bts('Avg TFlops', array(), NULL, 'boinc:front-page').': </label><span>'.number_format(boincstats_credit_to_flops(boincstats_get_project_avg_credit(), 't')).'</span></div>'."\n"; |
|
444 | 444 | //$output .= '<div class="stats"><a href="#">' . bts('Pending credits', array(), NULL, 'boinc:front-page') . '</a></div>' . "\n"; |
445 | - $output .= '<div class="chart"><img src="' . $base_path . 'charts/project" /></div>' . "\n"; |
|
445 | + $output .= '<div class="chart"><img src="'.$base_path.'charts/project" /></div>'."\n"; |
|
446 | 446 | break; |
447 | 447 | default: |
448 | 448 | } |
@@ -68,10 +68,10 @@ discard block |
||
68 | 68 | $dataset_size = 0; |
69 | 69 | $chart_height = 0; |
70 | 70 | $chart_width = 0; |
71 | - $draw_x_lines = FALSE; |
|
72 | - $label_x_axis = FALSE; |
|
71 | + $draw_x_lines = false; |
|
72 | + $label_x_axis = false; |
|
73 | 73 | |
74 | - $stats_xml = NULL; |
|
74 | + $stats_xml = null; |
|
75 | 75 | |
76 | 76 | switch($chart_size) { |
77 | 77 | case 'small': |
@@ -80,8 +80,8 @@ discard block |
||
80 | 80 | $chart_height = 80; |
81 | 81 | $chart_width = 266; |
82 | 82 | //$backdrop_color = array('R'=>238,'G'=>238,'B'=>238); |
83 | - $draw_x_lines = FALSE; |
|
84 | - $label_x_axis = FALSE; |
|
83 | + $draw_x_lines = false; |
|
84 | + $label_x_axis = false; |
|
85 | 85 | break; |
86 | 86 | case 'medium': |
87 | 87 | default: |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | $dataset_size = 60; |
90 | 90 | $chart_height = 155; |
91 | 91 | $chart_width = 589; |
92 | - $draw_x_lines = TRUE; |
|
93 | - $label_x_axis = TRUE; |
|
92 | + $draw_x_lines = true; |
|
93 | + $label_x_axis = true; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | // Sanity check for cache directory |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | 'OuterTickWidth' => 0, |
164 | 164 | 'XMargin' => 1, |
165 | 165 | 'YMargin' => 0, |
166 | - 'Floating' => TRUE, |
|
166 | + 'Floating' => true, |
|
167 | 167 | 'GridR' => 200, |
168 | 168 | 'GridG' => 200, |
169 | 169 | 'GridB' => 200, |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | 'OuterTickWidth' => 0, |
277 | 277 | 'XMargin' => 1, |
278 | 278 | 'YMargin' => 0, |
279 | - 'Floating' => TRUE, |
|
279 | + 'Floating' => true, |
|
280 | 280 | 'GridR' => 200, |
281 | 281 | 'GridG' => 200, |
282 | 282 | 'GridB' => 200, |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | watchdog('boincstats', '@parent_dir directory is not writeable. This |
316 | 316 | directory must be writeable by the web server.', |
317 | 317 | array('@parent_dir' => dirname($cache_dir)), WATCHDOG_ERROR); |
318 | - return FALSE; |
|
318 | + return false; |
|
319 | 319 | } |
320 | 320 | else { |
321 | 321 | // Create the cache dir |
@@ -323,7 +323,7 @@ discard block |
||
323 | 323 | watchdog('boincstats', 'Failed to create @cache_dir directory. Check |
324 | 324 | filesystem permissions...?', |
325 | 325 | array('@cache_dir' => $cache_dir), WATCHDOG_ERROR); |
326 | - return FALSE; |
|
326 | + return false; |
|
327 | 327 | } |
328 | 328 | } |
329 | 329 | } |
@@ -331,16 +331,16 @@ discard block |
||
331 | 331 | watchdog('boincstats', 'Cache directory at @cache_dir is not writeable. |
332 | 332 | Please allow webserver write access.', |
333 | 333 | array('@cache_dir' => $cache_dir), WATCHDOG_ERROR); |
334 | - return FALSE; |
|
334 | + return false; |
|
335 | 335 | } |
336 | 336 | } |
337 | - return TRUE; |
|
337 | + return true; |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | /* |
341 | 341 | * |
342 | 342 | */ |
343 | -function boincstats_get_project_stats($type = 'total', $cpid = NULL) { |
|
343 | +function boincstats_get_project_stats($type = 'total', $cpid = null) { |
|
344 | 344 | |
345 | 345 | // Determine the stats environment |
346 | 346 | boincstats_check_configuration(); |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | ); |
354 | 354 | switch ($type) { |
355 | 355 | case 'daily': |
356 | - $get['daily'] = NULL; |
|
356 | + $get['daily'] = null; |
|
357 | 357 | break; |
358 | 358 | case 'total': |
359 | 359 | default: |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | // Construct query string |
369 | 369 | $args = array(); |
370 | 370 | foreach ($get as $arg => $value) { |
371 | - if ($value !== NULL) { |
|
371 | + if ($value !== null) { |
|
372 | 372 | $args[] = "{$arg}=" . rawurlencode($value); |
373 | 373 | } |
374 | 374 | else { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | $query = '?' . implode('&', $args); |
379 | 379 | |
380 | 380 | // Load XML from RPC |
381 | - $stats_xml = NULL; |
|
381 | + $stats_xml = null; |
|
382 | 382 | $target_url = "http://{$stats_server}/{$stats_rpc}{$query}"; |
383 | 383 | $result = drupal_http_request($target_url); |
384 | 384 | if (in_array($result->code, array(200, 304)) || in_array($result->redirect_code, array(200, 304))) { |
@@ -435,12 +435,12 @@ discard block |
||
435 | 435 | $output = ''; |
436 | 436 | switch ($type) { |
437 | 437 | case 'basic': |
438 | - $output .= '<div class="overlay"><span>(' . bts('Credits per day', array(), NULL, 'boinc:front-page') . ')</span></div>' . "\n"; |
|
438 | + $output .= '<div class="overlay"><span>(' . bts('Credits per day', array(), null, 'boinc:front-page') . ')</span></div>' . "\n"; |
|
439 | 439 | $output .= '<div class="chart"><img src="' . $base_path . 'charts/project" /></div>' . "\n"; |
440 | 440 | break; |
441 | 441 | case 'detailed': |
442 | - $output .= '<div class="stats"><label>' . bts('Total G-hours', array(), NULL, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_ghours(boincstats_get_project_total_credit())) . '</span></div>' . "\n"; |
|
443 | - $output .= '<div class="stats"><label>' . bts('Avg TFlops', array(), NULL, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_flops(boincstats_get_project_avg_credit(), 't')) . '</span></div>' . "\n"; |
|
442 | + $output .= '<div class="stats"><label>' . bts('Total G-hours', array(), null, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_ghours(boincstats_get_project_total_credit())) . '</span></div>' . "\n"; |
|
443 | + $output .= '<div class="stats"><label>' . bts('Avg TFlops', array(), null, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_flops(boincstats_get_project_avg_credit(), 't')) . '</span></div>' . "\n"; |
|
444 | 444 | //$output .= '<div class="stats"><a href="#">' . bts('Pending credits', array(), NULL, 'boinc:front-page') . '</a></div>' . "\n"; |
445 | 445 | $output .= '<div class="chart"><img src="' . $base_path . 'charts/project" /></div>' . "\n"; |
446 | 446 | break; |
@@ -466,11 +466,11 @@ discard block |
||
466 | 466 | if (user_access('administer site configuration')) { |
467 | 467 | drupal_set_message(t('The BOINC stats system is not configured. Please |
468 | 468 | !configure_it', array('!configure_it' => l(t('configure it now'), |
469 | - 'admin/boinc/stats'))), 'error', FALSE); |
|
469 | + 'admin/boinc/stats'))), 'error', false); |
|
470 | 470 | } |
471 | 471 | else { |
472 | 472 | drupal_set_message(t('There is a problem with the site. Please contact |
473 | - the system administrator.'), 'error', FALSE); |
|
473 | + the system administrator.'), 'error', false); |
|
474 | 474 | } |
475 | 475 | } |
476 | 476 | } |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | // $Id$ |
3 | 3 | |
4 | 4 | /** |
5 | - * @file |
|
6 | - * Enable BOINC charting features for statistics |
|
7 | - */ |
|
5 | + * @file |
|
6 | + * Enable BOINC charting features for statistics |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | |
10 | 10 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * |
@@ -18,10 +18,10 @@ discard block |
||
18 | 18 | * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
19 | 19 | |
20 | 20 | /** |
21 | - * Implementation of hook_menu(). |
|
22 | - */ |
|
21 | + * Implementation of hook_menu(). |
|
22 | + */ |
|
23 | 23 | function boincstats_menu() { |
24 | - $items['admin/boinc/stats'] = array( |
|
24 | + $items['admin/boinc/stats'] = array( |
|
25 | 25 | 'title' => 'Environment: Statistics setup', |
26 | 26 | 'description' => 'Configure the stats system for generating charts and |
27 | 27 | providing cross project data.', |
@@ -30,18 +30,18 @@ discard block |
||
30 | 30 | 'access arguments' => array('administer site configuration'), |
31 | 31 | 'type' => MENU_NORMAL_ITEM, |
32 | 32 | 'file' => 'boincstats.admin.inc' |
33 | - ); |
|
34 | - $items['charts/user'] = array( |
|
33 | + ); |
|
34 | + $items['charts/user'] = array( |
|
35 | 35 | 'page callback' => 'boincstats_get_user_stats_chart', |
36 | 36 | 'access arguments' => array('access content'), |
37 | 37 | 'type' => MENU_CALLBACK |
38 | - ); |
|
39 | - $items['charts/project'] = array( |
|
38 | + ); |
|
39 | + $items['charts/project'] = array( |
|
40 | 40 | 'page callback' => 'boincstats_get_project_stats_chart', |
41 | 41 | 'access arguments' => array('access content'), |
42 | 42 | 'type' => MENU_CALLBACK |
43 | - ); |
|
44 | - return $items; |
|
43 | + ); |
|
44 | + return $items; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | |
@@ -50,31 +50,31 @@ discard block |
||
50 | 50 | * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
51 | 51 | |
52 | 52 | /** |
53 | - * User stats chart menu callback |
|
54 | - * Called to generate the daily credit status chart for a user (dashboard) |
|
55 | - */ |
|
53 | + * User stats chart menu callback |
|
54 | + * Called to generate the daily credit status chart for a user (dashboard) |
|
55 | + */ |
|
56 | 56 | function boincstats_get_user_stats_chart($cpid = null, $chart_size = 'medium') { |
57 | 57 | |
58 | - // pChart library inclusions |
|
59 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pData.class'); |
|
60 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pDraw.class'); |
|
61 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pImage.class'); |
|
62 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pCache.class'); |
|
58 | + // pChart library inclusions |
|
59 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pData.class'); |
|
60 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pDraw.class'); |
|
61 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pImage.class'); |
|
62 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pCache.class'); |
|
63 | 63 | |
64 | - init_theme(); |
|
65 | - global $theme_key; |
|
66 | - $cache_name = "{$theme_key}_"; |
|
64 | + init_theme(); |
|
65 | + global $theme_key; |
|
66 | + $cache_name = "{$theme_key}_"; |
|
67 | 67 | |
68 | - $dataset_size = 0; |
|
69 | - $chart_height = 0; |
|
70 | - $chart_width = 0; |
|
71 | - $draw_x_lines = FALSE; |
|
72 | - $label_x_axis = FALSE; |
|
68 | + $dataset_size = 0; |
|
69 | + $chart_height = 0; |
|
70 | + $chart_width = 0; |
|
71 | + $draw_x_lines = FALSE; |
|
72 | + $label_x_axis = FALSE; |
|
73 | 73 | |
74 | - $stats_xml = NULL; |
|
74 | + $stats_xml = NULL; |
|
75 | 75 | |
76 | - switch($chart_size) { |
|
77 | - case 'small': |
|
76 | + switch($chart_size) { |
|
77 | + case 'small': |
|
78 | 78 | $cache_name .= "{$cpid}_small"; |
79 | 79 | $dataset_size = 30; |
80 | 80 | $chart_height = 80; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $draw_x_lines = FALSE; |
84 | 84 | $label_x_axis = FALSE; |
85 | 85 | break; |
86 | - case 'medium': |
|
86 | + case 'medium': |
|
87 | 87 | default: |
88 | 88 | $cache_name .= $cpid; |
89 | 89 | $dataset_size = 60; |
@@ -91,32 +91,32 @@ discard block |
||
91 | 91 | $chart_width = 589; |
92 | 92 | $draw_x_lines = TRUE; |
93 | 93 | $label_x_axis = TRUE; |
94 | - } |
|
94 | + } |
|
95 | 95 | |
96 | - // Sanity check for cache directory |
|
97 | - if (!boincstats_check_cache_dir()) { |
|
96 | + // Sanity check for cache directory |
|
97 | + if (!boincstats_check_cache_dir()) { |
|
98 | 98 | return; |
99 | - } |
|
99 | + } |
|
100 | 100 | |
101 | - // Initialize the cache object and flush stale images |
|
102 | - $myCache = new pCache(array('CacheFolder' => realpath('.') . '/' . conf_path() . '/files/cache')); |
|
103 | - $myCache->removeOlderThan(60*60*24); |
|
101 | + // Initialize the cache object and flush stale images |
|
102 | + $myCache = new pCache(array('CacheFolder' => realpath('.') . '/' . conf_path() . '/files/cache')); |
|
103 | + $myCache->removeOlderThan(60*60*24); |
|
104 | 104 | |
105 | - if ($myCache->isInCache($cache_name)) { |
|
105 | + if ($myCache->isInCache($cache_name)) { |
|
106 | 106 | $myCache->strokeFromCache($cache_name); |
107 | - } |
|
108 | - else { |
|
107 | + } |
|
108 | + else { |
|
109 | 109 | // Initialize dataset |
110 | 110 | $dataset = array(); |
111 | 111 | $stats_xml = boincstats_get_project_stats('daily', $cpid); |
112 | 112 | if ($stats_xml) { |
113 | - // Get the last 60 days of stats for the chart |
|
114 | - for ($j = 30; $j < 90; $j++) { |
|
113 | + // Get the last 60 days of stats for the chart |
|
114 | + for ($j = 30; $j < 90; $j++) { |
|
115 | 115 | $dataset[] = (int) $stats_xml->records->record[$j]; |
116 | - } |
|
116 | + } |
|
117 | 117 | } |
118 | 118 | else { |
119 | - for ($i = 0; $i <= $dataset_size; $i++) $dataset[] = 0; |
|
119 | + for ($i = 0; $i <= $dataset_size; $i++) $dataset[] = 0; |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | // Get color configuration |
@@ -145,39 +145,39 @@ discard block |
||
145 | 145 | // Define the chart area |
146 | 146 | $myPicture->setGraphArea(0, 3, $chart_width, $chart_height); |
147 | 147 | if ($backdrop_color) { |
148 | - $myPicture->drawFilledRectangle(0, 0, $chart_width, $chart_height, $backdrop_color); |
|
148 | + $myPicture->drawFilledRectangle(0, 0, $chart_width, $chart_height, $backdrop_color); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | // Draw the scale |
152 | 152 | $scaleSettings = array( |
153 | - 'Mode' => SCALE_MODE_START0, |
|
154 | - 'DrawYLines' => false, |
|
155 | - 'DrawXLines' => $draw_x_lines, |
|
156 | - 'GridTicks' => 2, |
|
157 | - 'LabelSkip' => 9, |
|
158 | - 'SkippedAxisAlpha' => 0, |
|
159 | - 'SkippedInnerTickWidth' => 0, |
|
160 | - 'SkippedOuterTickWidth' => 0, |
|
161 | - 'AxisAlpha' => 0, |
|
162 | - 'InnerTickWidth' => 0, |
|
163 | - 'OuterTickWidth' => 0, |
|
164 | - 'XMargin' => 1, |
|
165 | - 'YMargin' => 0, |
|
166 | - 'Floating' => TRUE, |
|
167 | - 'GridR' => 200, |
|
168 | - 'GridG' => 200, |
|
169 | - 'GridB' => 200, |
|
170 | - 'DrawSubTicks' => false, |
|
171 | - 'CycleBackground' => false |
|
153 | + 'Mode' => SCALE_MODE_START0, |
|
154 | + 'DrawYLines' => false, |
|
155 | + 'DrawXLines' => $draw_x_lines, |
|
156 | + 'GridTicks' => 2, |
|
157 | + 'LabelSkip' => 9, |
|
158 | + 'SkippedAxisAlpha' => 0, |
|
159 | + 'SkippedInnerTickWidth' => 0, |
|
160 | + 'SkippedOuterTickWidth' => 0, |
|
161 | + 'AxisAlpha' => 0, |
|
162 | + 'InnerTickWidth' => 0, |
|
163 | + 'OuterTickWidth' => 0, |
|
164 | + 'XMargin' => 1, |
|
165 | + 'YMargin' => 0, |
|
166 | + 'Floating' => TRUE, |
|
167 | + 'GridR' => 200, |
|
168 | + 'GridG' => 200, |
|
169 | + 'GridB' => 200, |
|
170 | + 'DrawSubTicks' => false, |
|
171 | + 'CycleBackground' => false |
|
172 | 172 | ); |
173 | 173 | $myPicture->setFontProperties(array('FontSize' => 10)); |
174 | 174 | $myPicture->drawScale($scaleSettings); |
175 | 175 | |
176 | 176 | if ($label_x_axis) { |
177 | - for ($i = 5; $i >= 0; $i--) { |
|
177 | + for ($i = 5; $i >= 0; $i--) { |
|
178 | 178 | $label = ($i) ? -10*$i : 'Today'; |
179 | 179 | $myPicture->drawText(589-587*($i/6)-5, 2, $label, array('Align' => TEXT_ALIGN_TOPRIGHT)); |
180 | - } |
|
180 | + } |
|
181 | 181 | } |
182 | 182 | |
183 | 183 | // Draw the area chart |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | // Render the picture (choose the best way) |
190 | 190 | //$myPicture->autoOutput('pictures/example.drawAreaChart.simple.png'); |
191 | 191 | $myPicture->stroke(); |
192 | - } |
|
192 | + } |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | /** |
@@ -197,48 +197,48 @@ discard block |
||
197 | 197 | * Called to generate the daily credit status chart for the whole project |
198 | 198 | */ |
199 | 199 | function boincstats_get_project_stats_chart() { |
200 | - // pChart library inclusions |
|
201 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pData.class'); |
|
202 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pDraw.class'); |
|
203 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pImage.class'); |
|
204 | - module_load_include('php', 'boincstats', 'includes/pchart/class/pCache.class'); |
|
205 | - |
|
206 | - init_theme(); |
|
207 | - global $theme_key; |
|
208 | - $cache_name = "{$theme_key}_project_chart"; |
|
209 | - |
|
210 | - $color_keys = array('R', 'G', 'B'); |
|
211 | - |
|
212 | - // Get color configuration |
|
213 | - $palette_color_hex = theme_get_setting('boinc_stats_chart_color'); |
|
214 | - $palette_color = array_combine($color_keys, sscanf($palette_color_hex, "#%02x%02x%02x")); |
|
215 | - $backdrop_color_hex = theme_get_setting('boinc_stats_chart_bcolor'); |
|
216 | - $backdrop_color = array_combine($color_keys, sscanf($backdrop_color_hex, "#%02x%02x%02x")); |
|
217 | - |
|
218 | - // Sanity check for cache directory |
|
219 | - if (!boincstats_check_cache_dir()) { |
|
200 | + // pChart library inclusions |
|
201 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pData.class'); |
|
202 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pDraw.class'); |
|
203 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pImage.class'); |
|
204 | + module_load_include('php', 'boincstats', 'includes/pchart/class/pCache.class'); |
|
205 | + |
|
206 | + init_theme(); |
|
207 | + global $theme_key; |
|
208 | + $cache_name = "{$theme_key}_project_chart"; |
|
209 | + |
|
210 | + $color_keys = array('R', 'G', 'B'); |
|
211 | + |
|
212 | + // Get color configuration |
|
213 | + $palette_color_hex = theme_get_setting('boinc_stats_chart_color'); |
|
214 | + $palette_color = array_combine($color_keys, sscanf($palette_color_hex, "#%02x%02x%02x")); |
|
215 | + $backdrop_color_hex = theme_get_setting('boinc_stats_chart_bcolor'); |
|
216 | + $backdrop_color = array_combine($color_keys, sscanf($backdrop_color_hex, "#%02x%02x%02x")); |
|
217 | + |
|
218 | + // Sanity check for cache directory |
|
219 | + if (!boincstats_check_cache_dir()) { |
|
220 | 220 | return; |
221 | - } |
|
221 | + } |
|
222 | 222 | |
223 | - // Initialize the cache object and flush stale images |
|
224 | - $myCache = new pCache(array('CacheFolder' => realpath('.') . '/' . conf_path() . '/files/cache')); |
|
225 | - $myCache->removeOlderThan(60*60*24); |
|
223 | + // Initialize the cache object and flush stale images |
|
224 | + $myCache = new pCache(array('CacheFolder' => realpath('.') . '/' . conf_path() . '/files/cache')); |
|
225 | + $myCache->removeOlderThan(60*60*24); |
|
226 | 226 | |
227 | - if ($myCache->isInCache($cache_name)) { |
|
227 | + if ($myCache->isInCache($cache_name)) { |
|
228 | 228 | $myCache->strokeFromCache($cache_name); |
229 | - } |
|
230 | - else { |
|
229 | + } |
|
230 | + else { |
|
231 | 231 | // Initialize dataset |
232 | 232 | $dataset = array(); |
233 | 233 | $stats_xml = boincstats_get_project_stats('daily'); |
234 | 234 | if ($stats_xml) { |
235 | - // Get the last 60 days of stats for the chart |
|
236 | - for ($j = 30; $j < 90; $j++) { |
|
235 | + // Get the last 60 days of stats for the chart |
|
236 | + for ($j = 30; $j < 90; $j++) { |
|
237 | 237 | $dataset[] = (int) $stats_xml->records->record[$j]; |
238 | - } |
|
238 | + } |
|
239 | 239 | } |
240 | 240 | else { |
241 | - for ($i = 0; $i <= 30; $i++) $dataset[] = 0; |
|
241 | + for ($i = 0; $i <= 30; $i++) $dataset[] = 0; |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | // Create and populate the pData object |
@@ -263,25 +263,25 @@ discard block |
||
263 | 263 | |
264 | 264 | // Draw the scale |
265 | 265 | $scaleSettings = array( |
266 | - 'Mode' => SCALE_MODE_START0, |
|
267 | - 'DrawYLines' => false, |
|
268 | - 'DrawXLines' => false, |
|
269 | - 'GridTicks' => 2, |
|
270 | - 'LabelSkip' => 9, |
|
271 | - 'SkippedAxisAlpha' => 0, |
|
272 | - 'SkippedInnerTickWidth' => 0, |
|
273 | - 'SkippedOuterTickWidth' => 0, |
|
274 | - 'AxisAlpha' => 0, |
|
275 | - 'InnerTickWidth' => 0, |
|
276 | - 'OuterTickWidth' => 0, |
|
277 | - 'XMargin' => 1, |
|
278 | - 'YMargin' => 0, |
|
279 | - 'Floating' => TRUE, |
|
280 | - 'GridR' => 200, |
|
281 | - 'GridG' => 200, |
|
282 | - 'GridB' => 200, |
|
283 | - 'DrawSubTicks' => false, |
|
284 | - 'CycleBackground' => false |
|
266 | + 'Mode' => SCALE_MODE_START0, |
|
267 | + 'DrawYLines' => false, |
|
268 | + 'DrawXLines' => false, |
|
269 | + 'GridTicks' => 2, |
|
270 | + 'LabelSkip' => 9, |
|
271 | + 'SkippedAxisAlpha' => 0, |
|
272 | + 'SkippedInnerTickWidth' => 0, |
|
273 | + 'SkippedOuterTickWidth' => 0, |
|
274 | + 'AxisAlpha' => 0, |
|
275 | + 'InnerTickWidth' => 0, |
|
276 | + 'OuterTickWidth' => 0, |
|
277 | + 'XMargin' => 1, |
|
278 | + 'YMargin' => 0, |
|
279 | + 'Floating' => TRUE, |
|
280 | + 'GridR' => 200, |
|
281 | + 'GridG' => 200, |
|
282 | + 'GridB' => 200, |
|
283 | + 'DrawSubTicks' => false, |
|
284 | + 'CycleBackground' => false |
|
285 | 285 | ); |
286 | 286 | $myPicture->setFontProperties(array('FontSize' => 10)); |
287 | 287 | $myPicture->drawScale($scaleSettings); |
@@ -300,41 +300,41 @@ discard block |
||
300 | 300 | // Render the picture (choose the best way) |
301 | 301 | //$myPicture->autoOutput('pictures/example.drawAreaChart.simple.png'); |
302 | 302 | $myPicture->stroke(); |
303 | - } |
|
303 | + } |
|
304 | 304 | } |
305 | 305 | |
306 | 306 | /* |
307 | 307 | * |
308 | 308 | */ |
309 | 309 | function boincstats_check_cache_dir($cache_path = 'files/cache') { |
310 | - $cache_dir = realpath('.') . '/' . conf_path() . '/' . $cache_path; |
|
311 | - if (!is_writeable($cache_dir)) { |
|
310 | + $cache_dir = realpath('.') . '/' . conf_path() . '/' . $cache_path; |
|
311 | + if (!is_writeable($cache_dir)) { |
|
312 | 312 | if (!is_dir($cache_dir)) { |
313 | - if (!is_writeable(dirname($cache_dir))) { |
|
313 | + if (!is_writeable(dirname($cache_dir))) { |
|
314 | 314 | // If the parent "files" dir isn't even writeable... |
315 | 315 | watchdog('boincstats', '@parent_dir directory is not writeable. This |
316 | 316 | directory must be writeable by the web server.', |
317 | - array('@parent_dir' => dirname($cache_dir)), WATCHDOG_ERROR); |
|
317 | + array('@parent_dir' => dirname($cache_dir)), WATCHDOG_ERROR); |
|
318 | 318 | return FALSE; |
319 | - } |
|
320 | - else { |
|
319 | + } |
|
320 | + else { |
|
321 | 321 | // Create the cache dir |
322 | 322 | if (!mkdir($cache_dir, 0775)) { |
323 | - watchdog('boincstats', 'Failed to create @cache_dir directory. Check |
|
323 | + watchdog('boincstats', 'Failed to create @cache_dir directory. Check |
|
324 | 324 | filesystem permissions...?', |
325 | 325 | array('@cache_dir' => $cache_dir), WATCHDOG_ERROR); |
326 | - return FALSE; |
|
326 | + return FALSE; |
|
327 | + } |
|
327 | 328 | } |
328 | - } |
|
329 | 329 | } |
330 | 330 | else { |
331 | - watchdog('boincstats', 'Cache directory at @cache_dir is not writeable. |
|
331 | + watchdog('boincstats', 'Cache directory at @cache_dir is not writeable. |
|
332 | 332 | Please allow webserver write access.', |
333 | 333 | array('@cache_dir' => $cache_dir), WATCHDOG_ERROR); |
334 | - return FALSE; |
|
334 | + return FALSE; |
|
335 | 335 | } |
336 | - } |
|
337 | - return TRUE; |
|
336 | + } |
|
337 | + return TRUE; |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | /* |
@@ -342,87 +342,87 @@ discard block |
||
342 | 342 | */ |
343 | 343 | function boincstats_get_project_stats($type = 'total', $cpid = NULL) { |
344 | 344 | |
345 | - // Determine the stats environment |
|
346 | - boincstats_check_configuration(); |
|
347 | - $stats_server = variable_get('boinc_stats_server', ''); |
|
348 | - $stats_rpc = variable_get('boinc_stats_project_credit_history_rpc', ''); |
|
349 | - $project_id = variable_get('boinc_stats_remote_project_id', ''); |
|
345 | + // Determine the stats environment |
|
346 | + boincstats_check_configuration(); |
|
347 | + $stats_server = variable_get('boinc_stats_server', ''); |
|
348 | + $stats_rpc = variable_get('boinc_stats_project_credit_history_rpc', ''); |
|
349 | + $project_id = variable_get('boinc_stats_remote_project_id', ''); |
|
350 | 350 | |
351 | - $get = array( |
|
351 | + $get = array( |
|
352 | 352 | 'id' => $project_id |
353 | - ); |
|
354 | - switch ($type) { |
|
355 | - case 'daily': |
|
353 | + ); |
|
354 | + switch ($type) { |
|
355 | + case 'daily': |
|
356 | 356 | $get['daily'] = NULL; |
357 | 357 | break; |
358 | - case 'total': |
|
358 | + case 'total': |
|
359 | 359 | default: |
360 | 360 | } |
361 | 361 | |
362 | - if ($cpid) { |
|
362 | + if ($cpid) { |
|
363 | 363 | // If a user CPID has been provided, limit scope to that user |
364 | 364 | $stats_rpc = variable_get('boinc_stats_user_credit_history_rpc', ''); |
365 | 365 | $get['cpid'] = $cpid; |
366 | - } |
|
366 | + } |
|
367 | 367 | |
368 | - // Construct query string |
|
369 | - $args = array(); |
|
370 | - foreach ($get as $arg => $value) { |
|
368 | + // Construct query string |
|
369 | + $args = array(); |
|
370 | + foreach ($get as $arg => $value) { |
|
371 | 371 | if ($value !== NULL) { |
372 | - $args[] = "{$arg}=" . rawurlencode($value); |
|
372 | + $args[] = "{$arg}=" . rawurlencode($value); |
|
373 | 373 | } |
374 | 374 | else { |
375 | - $args[] = $arg; |
|
375 | + $args[] = $arg; |
|
376 | 376 | } |
377 | - } |
|
378 | - $query = '?' . implode('&', $args); |
|
377 | + } |
|
378 | + $query = '?' . implode('&', $args); |
|
379 | 379 | |
380 | - // Load XML from RPC |
|
381 | - $stats_xml = NULL; |
|
382 | - $target_url = "http://{$stats_server}/{$stats_rpc}{$query}"; |
|
383 | - $result = drupal_http_request($target_url); |
|
384 | - if (in_array($result->code, array(200, 304)) || in_array($result->redirect_code, array(200, 304))) { |
|
380 | + // Load XML from RPC |
|
381 | + $stats_xml = NULL; |
|
382 | + $target_url = "http://{$stats_server}/{$stats_rpc}{$query}"; |
|
383 | + $result = drupal_http_request($target_url); |
|
384 | + if (in_array($result->code, array(200, 304)) || in_array($result->redirect_code, array(200, 304))) { |
|
385 | 385 | $stats_xml = simplexml_load_string($result->data); |
386 | - } |
|
387 | - watchdog('boincstats', $target_url); |
|
388 | - return $stats_xml; |
|
386 | + } |
|
387 | + watchdog('boincstats', $target_url); |
|
388 | + return $stats_xml; |
|
389 | 389 | } |
390 | 390 | |
391 | 391 | /* |
392 | 392 | * |
393 | 393 | */ |
394 | 394 | function boincstats_get_project_total_credit() { |
395 | - $stats_xml = boincstats_get_project_stats(); |
|
396 | - $last_record = end($stats_xml->records->record); |
|
397 | - return ($last_record) ? (int) $last_record : 0; |
|
395 | + $stats_xml = boincstats_get_project_stats(); |
|
396 | + $last_record = end($stats_xml->records->record); |
|
397 | + return ($last_record) ? (int) $last_record : 0; |
|
398 | 398 | } |
399 | 399 | |
400 | 400 | /* |
401 | 401 | * |
402 | 402 | */ |
403 | 403 | function boincstats_get_project_avg_credit() { |
404 | - $stats_xml = boincstats_get_project_stats(); |
|
405 | - return (isset($stats_xml->recent_avg)) ? $stats_xml->recent_avg : 0; |
|
404 | + $stats_xml = boincstats_get_project_stats(); |
|
405 | + return (isset($stats_xml->recent_avg)) ? $stats_xml->recent_avg : 0; |
|
406 | 406 | } |
407 | 407 | |
408 | 408 | /* |
409 | 409 | * |
410 | 410 | */ |
411 | 411 | function boincstats_credit_to_ghours($credit) { |
412 | - return $credit / (100 * 365); |
|
412 | + return $credit / (100 * 365); |
|
413 | 413 | } |
414 | 414 | |
415 | 415 | /* |
416 | 416 | * |
417 | 417 | */ |
418 | 418 | function boincstats_credit_to_flops($credit, $prefix = 0) { |
419 | - $factor = array( |
|
419 | + $factor = array( |
|
420 | 420 | '0' => 0, |
421 | 421 | 'g' => 3, |
422 | 422 | 't' => 6, |
423 | 423 | 'p' => 9 |
424 | - ); |
|
425 | - return $credit / (pow(10, (int) $factor[$prefix]) / 10); |
|
424 | + ); |
|
425 | + return $credit / (pow(10, (int) $factor[$prefix]) / 10); |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | |
@@ -431,22 +431,22 @@ discard block |
||
431 | 431 | * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
432 | 432 | |
433 | 433 | function boincstats_get_project_stats_overview($type = 'basic') { |
434 | - global $base_path; |
|
435 | - $output = ''; |
|
436 | - switch ($type) { |
|
437 | - case 'basic': |
|
434 | + global $base_path; |
|
435 | + $output = ''; |
|
436 | + switch ($type) { |
|
437 | + case 'basic': |
|
438 | 438 | $output .= '<div class="overlay"><span>(' . bts('Credits per day', array(), NULL, 'boinc:front-page') . ')</span></div>' . "\n"; |
439 | 439 | $output .= '<div class="chart"><img src="' . $base_path . 'charts/project" /></div>' . "\n"; |
440 | 440 | break; |
441 | - case 'detailed': |
|
441 | + case 'detailed': |
|
442 | 442 | $output .= '<div class="stats"><label>' . bts('Total G-hours', array(), NULL, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_ghours(boincstats_get_project_total_credit())) . '</span></div>' . "\n"; |
443 | 443 | $output .= '<div class="stats"><label>' . bts('Avg TFlops', array(), NULL, 'boinc:front-page') . ': </label><span>' . number_format(boincstats_credit_to_flops(boincstats_get_project_avg_credit(), 't')) . '</span></div>' . "\n"; |
444 | 444 | //$output .= '<div class="stats"><a href="#">' . bts('Pending credits', array(), NULL, 'boinc:front-page') . '</a></div>' . "\n"; |
445 | 445 | $output .= '<div class="chart"><img src="' . $base_path . 'charts/project" /></div>' . "\n"; |
446 | 446 | break; |
447 | - default: |
|
447 | + default: |
|
448 | 448 | } |
449 | - return $output; |
|
449 | + return $output; |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | |
@@ -458,19 +458,19 @@ discard block |
||
458 | 458 | * Check that the stats system is configured, report if it isn't |
459 | 459 | */ |
460 | 460 | function boincstats_check_configuration() { |
461 | - $project_id = variable_get('boinc_stats_remote_project_id', ''); |
|
462 | - if (!$project_id) { |
|
461 | + $project_id = variable_get('boinc_stats_remote_project_id', ''); |
|
462 | + if (!$project_id) { |
|
463 | 463 | watchdog('boincstats', 'The BOINC stats system is not configured. Please |
464 | 464 | !configure_it', array('!configure_it' => l(t('configure it now'), |
465 | - 'admin/boinc/stats')), WATCHDOG_ERROR); |
|
465 | + 'admin/boinc/stats')), WATCHDOG_ERROR); |
|
466 | 466 | if (user_access('administer site configuration')) { |
467 | - drupal_set_message(t('The BOINC stats system is not configured. Please |
|
467 | + drupal_set_message(t('The BOINC stats system is not configured. Please |
|
468 | 468 | !configure_it', array('!configure_it' => l(t('configure it now'), |
469 | - 'admin/boinc/stats'))), 'error', FALSE); |
|
469 | + 'admin/boinc/stats'))), 'error', FALSE); |
|
470 | 470 | } |
471 | 471 | else { |
472 | - drupal_set_message(t('There is a problem with the site. Please contact |
|
472 | + drupal_set_message(t('There is a problem with the site. Please contact |
|
473 | 473 | the system administrator.'), 'error', FALSE); |
474 | 474 | } |
475 | - } |
|
475 | + } |
|
476 | 476 | } |