@@ -62,15 +62,15 @@ |
||
62 | 62 | start_table(""); |
63 | 63 | table_header( |
64 | 64 | "ID #<br><small>click for details</small>", |
65 | - "Application<br><small>click for details</small>", |
|
66 | - "Version", |
|
67 | - "Platform", |
|
68 | - "Plan class", |
|
69 | - "minimum<br>client version", |
|
70 | - "maximum<br>client version", |
|
71 | - "beta?", |
|
72 | - "deprecated?", |
|
73 | - "" |
|
65 | + "Application<br><small>click for details</small>", |
|
66 | + "Version", |
|
67 | + "Platform", |
|
68 | + "Plan class", |
|
69 | + "minimum<br>client version", |
|
70 | + "maximum<br>client version", |
|
71 | + "beta?", |
|
72 | + "deprecated?", |
|
73 | + "" |
|
74 | 74 | ); |
75 | 75 | $clause = $all?"true":"deprecated = 0"; |
76 | 76 | $avs = BoincAppVersion::enum( |
@@ -4,12 +4,12 @@ discard block |
||
4 | 4 | * Implementation of hook_default_fe_block_settings(). |
5 | 5 | */ |
6 | 6 | function global_search_solr_default_fe_block_settings() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - // boinc |
|
10 | - $theme = array(); |
|
9 | + // boinc |
|
10 | + $theme = array(); |
|
11 | 11 | |
12 | - $theme['apachesolr_search-sort'] = array( |
|
12 | + $theme['apachesolr_search-sort'] = array( |
|
13 | 13 | 'module' => 'apachesolr_search', |
14 | 14 | 'delta' => 'sort', |
15 | 15 | 'theme' => 'boinc', |
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | 'pages' => 'search/team/*', |
23 | 23 | 'title' => '', |
24 | 24 | 'cache' => '-1', |
25 | - ); |
|
25 | + ); |
|
26 | 26 | |
27 | - $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
27 | + $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
28 | 28 | 'module' => 'facetapi', |
29 | 29 | 'delta' => '7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J', |
30 | 30 | 'theme' => 'boinc', |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | 'pages' => '', |
38 | 38 | 'title' => '', |
39 | 39 | 'cache' => '-1', |
40 | - ); |
|
40 | + ); |
|
41 | 41 | |
42 | - $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
42 | + $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
43 | 43 | 'module' => 'facetapi', |
44 | 44 | 'delta' => 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', |
45 | 45 | 'theme' => 'boinc', |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | 'pages' => 'search/team/*', |
53 | 53 | 'title' => '', |
54 | 54 | 'cache' => '-1', |
55 | - ); |
|
55 | + ); |
|
56 | 56 | |
57 | - $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
57 | + $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
58 | 58 | 'module' => 'facetapi', |
59 | 59 | 'delta' => 'WtseAVugB1EhxGslwR3XIwoa0sVTttYt', |
60 | 60 | 'theme' => 'boinc', |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | 'pages' => 'search/team/*', |
68 | 68 | 'title' => '', |
69 | 69 | 'cache' => '-1', |
70 | - ); |
|
70 | + ); |
|
71 | 71 | |
72 | - $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
72 | + $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
73 | 73 | 'module' => 'facetapi', |
74 | 74 | 'delta' => 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', |
75 | 75 | 'theme' => 'boinc', |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | 'pages' => '', |
83 | 83 | 'title' => '', |
84 | 84 | 'cache' => '-1', |
85 | - ); |
|
85 | + ); |
|
86 | 86 | |
87 | - $theme['boinc_solr_search-boinc_solr_search_0'] = array( |
|
87 | + $theme['boinc_solr_search-boinc_solr_search_0'] = array( |
|
88 | 88 | 'module' => 'boinc_solr_search', |
89 | 89 | 'delta' => 'boinc_solr_search_0', |
90 | 90 | 'theme' => 'boinc', |
@@ -97,14 +97,14 @@ discard block |
||
97 | 97 | 'pages' => 'search/*', |
98 | 98 | 'title' => '', |
99 | 99 | 'cache' => '1', |
100 | - ); |
|
100 | + ); |
|
101 | 101 | |
102 | - $export['boinc'] = $theme; |
|
102 | + $export['boinc'] = $theme; |
|
103 | 103 | |
104 | - // einstein |
|
105 | - $theme = array(); |
|
104 | + // einstein |
|
105 | + $theme = array(); |
|
106 | 106 | |
107 | - $theme['apachesolr_search-sort'] = array( |
|
107 | + $theme['apachesolr_search-sort'] = array( |
|
108 | 108 | 'module' => 'apachesolr_search', |
109 | 109 | 'delta' => 'sort', |
110 | 110 | 'theme' => 'einstein', |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | 'pages' => 'search/team/*', |
118 | 118 | 'title' => '', |
119 | 119 | 'cache' => '-1', |
120 | - ); |
|
120 | + ); |
|
121 | 121 | |
122 | - $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
122 | + $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
123 | 123 | 'module' => 'facetapi', |
124 | 124 | 'delta' => '7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J', |
125 | 125 | 'theme' => 'einstein', |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | 'pages' => '', |
133 | 133 | 'title' => '', |
134 | 134 | 'cache' => '-1', |
135 | - ); |
|
135 | + ); |
|
136 | 136 | |
137 | - $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
137 | + $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
138 | 138 | 'module' => 'facetapi', |
139 | 139 | 'delta' => 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', |
140 | 140 | 'theme' => 'einstein', |
@@ -147,9 +147,9 @@ discard block |
||
147 | 147 | 'pages' => 'search/team/*', |
148 | 148 | 'title' => '', |
149 | 149 | 'cache' => '-1', |
150 | - ); |
|
150 | + ); |
|
151 | 151 | |
152 | - $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
152 | + $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
153 | 153 | 'module' => 'facetapi', |
154 | 154 | 'delta' => 'WtseAVugB1EhxGslwR3XIwoa0sVTttYt', |
155 | 155 | 'theme' => 'einstein', |
@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | 'pages' => 'search/team/*', |
163 | 163 | 'title' => '', |
164 | 164 | 'cache' => '-1', |
165 | - ); |
|
165 | + ); |
|
166 | 166 | |
167 | - $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
167 | + $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
168 | 168 | 'module' => 'facetapi', |
169 | 169 | 'delta' => 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', |
170 | 170 | 'theme' => 'einstein', |
@@ -177,9 +177,9 @@ discard block |
||
177 | 177 | 'pages' => '', |
178 | 178 | 'title' => '', |
179 | 179 | 'cache' => '-1', |
180 | - ); |
|
180 | + ); |
|
181 | 181 | |
182 | - $theme['boinc_solr_search-boinc_solr_search_0'] = array( |
|
182 | + $theme['boinc_solr_search-boinc_solr_search_0'] = array( |
|
183 | 183 | 'module' => 'boinc_solr_search', |
184 | 184 | 'delta' => 'boinc_solr_search_0', |
185 | 185 | 'theme' => 'einstein', |
@@ -192,14 +192,14 @@ discard block |
||
192 | 192 | 'pages' => 'search/*', |
193 | 193 | 'title' => '', |
194 | 194 | 'cache' => '1', |
195 | - ); |
|
195 | + ); |
|
196 | 196 | |
197 | - $export['einstein'] = $theme; |
|
197 | + $export['einstein'] = $theme; |
|
198 | 198 | |
199 | - // garland |
|
200 | - $theme = array(); |
|
199 | + // garland |
|
200 | + $theme = array(); |
|
201 | 201 | |
202 | - $theme['apachesolr_search-sort'] = array( |
|
202 | + $theme['apachesolr_search-sort'] = array( |
|
203 | 203 | 'module' => 'apachesolr_search', |
204 | 204 | 'delta' => 'sort', |
205 | 205 | 'theme' => 'garland', |
@@ -212,9 +212,9 @@ discard block |
||
212 | 212 | 'pages' => 'search/team/*', |
213 | 213 | 'title' => '', |
214 | 214 | 'cache' => '-1', |
215 | - ); |
|
215 | + ); |
|
216 | 216 | |
217 | - $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
217 | + $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
218 | 218 | 'module' => 'facetapi', |
219 | 219 | 'delta' => '7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J', |
220 | 220 | 'theme' => 'garland', |
@@ -227,9 +227,9 @@ discard block |
||
227 | 227 | 'pages' => '', |
228 | 228 | 'title' => '', |
229 | 229 | 'cache' => '-1', |
230 | - ); |
|
230 | + ); |
|
231 | 231 | |
232 | - $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
232 | + $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
233 | 233 | 'module' => 'facetapi', |
234 | 234 | 'delta' => 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', |
235 | 235 | 'theme' => 'garland', |
@@ -242,9 +242,9 @@ discard block |
||
242 | 242 | 'pages' => 'search/team/*', |
243 | 243 | 'title' => '', |
244 | 244 | 'cache' => '-1', |
245 | - ); |
|
245 | + ); |
|
246 | 246 | |
247 | - $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
247 | + $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
248 | 248 | 'module' => 'facetapi', |
249 | 249 | 'delta' => 'WtseAVugB1EhxGslwR3XIwoa0sVTttYt', |
250 | 250 | 'theme' => 'garland', |
@@ -257,9 +257,9 @@ discard block |
||
257 | 257 | 'pages' => 'search/team/*', |
258 | 258 | 'title' => '', |
259 | 259 | 'cache' => '-1', |
260 | - ); |
|
260 | + ); |
|
261 | 261 | |
262 | - $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
262 | + $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
263 | 263 | 'module' => 'facetapi', |
264 | 264 | 'delta' => 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', |
265 | 265 | 'theme' => 'garland', |
@@ -272,9 +272,9 @@ discard block |
||
272 | 272 | 'pages' => '', |
273 | 273 | 'title' => '', |
274 | 274 | 'cache' => '-1', |
275 | - ); |
|
275 | + ); |
|
276 | 276 | |
277 | - $theme['boinc_solr_search-boinc_solr_search_0'] = array( |
|
277 | + $theme['boinc_solr_search-boinc_solr_search_0'] = array( |
|
278 | 278 | 'module' => 'boinc_solr_search', |
279 | 279 | 'delta' => 'boinc_solr_search_0', |
280 | 280 | 'theme' => 'garland', |
@@ -287,16 +287,16 @@ discard block |
||
287 | 287 | 'pages' => 'search/*', |
288 | 288 | 'title' => '', |
289 | 289 | 'cache' => '1', |
290 | - ); |
|
290 | + ); |
|
291 | 291 | |
292 | - $export['garland'] = $theme; |
|
292 | + $export['garland'] = $theme; |
|
293 | 293 | |
294 | - $theme_default = variable_get('theme_default', 'garland'); |
|
295 | - $themes = list_themes(); |
|
296 | - foreach ($export as $theme_key => $settings) { |
|
294 | + $theme_default = variable_get('theme_default', 'garland'); |
|
295 | + $themes = list_themes(); |
|
296 | + foreach ($export as $theme_key => $settings) { |
|
297 | 297 | if ($theme_key != $theme_default && empty($themes[$theme_key]->status)) { |
298 | - unset($export[$theme_key]); |
|
298 | + unset($export[$theme_key]); |
|
299 | 299 | } |
300 | - } |
|
301 | - return $export; |
|
300 | + } |
|
301 | + return $export; |
|
302 | 302 | } |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | * Functions are forward compatible with Drupal 7 hooks. |
18 | 18 | */ |
19 | 19 | function boinc_solr_search_block($op = 'list', $delta = 0, $edit = array()) { |
20 | - switch ($op) { |
|
20 | + switch ($op) { |
|
21 | 21 | case 'list': |
22 | 22 | return boinc_solr_search_block_info(); |
23 | - break; |
|
23 | + break; |
|
24 | 24 | case 'view': |
25 | 25 | return boinc_solr_search_block_view($delta); |
26 | - break; |
|
26 | + break; |
|
27 | 27 | case 'configure': |
28 | 28 | case 'save': |
29 | 29 | default: |
@@ -37,11 +37,11 @@ discard block |
||
37 | 37 | * (somewhat) forward compatible. |
38 | 38 | */ |
39 | 39 | function boinc_solr_search_block_info() { |
40 | - $blocks = array(); |
|
41 | - $blocks['boinc_solr_search_0'] = array( |
|
40 | + $blocks = array(); |
|
41 | + $blocks['boinc_solr_search_0'] = array( |
|
42 | 42 | 'info' => t('BOINC Search Help'), |
43 | - ); |
|
44 | - return $blocks; |
|
43 | + ); |
|
44 | + return $blocks; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -51,28 +51,28 @@ discard block |
||
51 | 51 | * (somewhat) forward compatible. |
52 | 52 | */ |
53 | 53 | function boinc_solr_search_block_view($delta = 0) { |
54 | - $block = array(); |
|
55 | - switch($delta) { |
|
54 | + $block = array(); |
|
55 | + switch($delta) { |
|
56 | 56 | case 'boinc_solr_search_0': |
57 | 57 | $items = array( |
58 | - bts('By default a search matches ANY search term. Results with more than one term will be presented higher in the search results.', array(), NULL, 'boinc:search-help-sidebar-block'), |
|
59 | - bts('You may use \'AND\' to have the search engine return results with ALL search terms.', array(), NULL, 'boinc:search-help-sidebar-block'), |
|
60 | - bts('For example, searching for \'boinc AND client\' will only contain results with words boinc and client.', array(), NULL, 'boinc:search-help-sidebar-block') |
|
61 | - ); |
|
58 | + bts('By default a search matches ANY search term. Results with more than one term will be presented higher in the search results.', array(), NULL, 'boinc:search-help-sidebar-block'), |
|
59 | + bts('You may use \'AND\' to have the search engine return results with ALL search terms.', array(), NULL, 'boinc:search-help-sidebar-block'), |
|
60 | + bts('For example, searching for \'boinc AND client\' will only contain results with words boinc and client.', array(), NULL, 'boinc:search-help-sidebar-block') |
|
61 | + ); |
|
62 | 62 | |
63 | - drupal_add_js('misc/collapse.js'); |
|
64 | - // For Drupal 7 the format of the array changes, see https://api.drupal.org/api/drupal/includes%21form.inc/function/theme_fieldset/7.x for details. |
|
65 | - $collapsible_item = array( |
|
63 | + drupal_add_js('misc/collapse.js'); |
|
64 | + // For Drupal 7 the format of the array changes, see https://api.drupal.org/api/drupal/includes%21form.inc/function/theme_fieldset/7.x for details. |
|
65 | + $collapsible_item = array( |
|
66 | 66 | '#title' => bts('Search Help', array(), NULL, 'boinc:search-help-sidebar-block'), |
67 | 67 | '#description' => theme_item_list($items), |
68 | 68 | '#collapsible' => TRUE, |
69 | 69 | '#collapsed' => TRUE, |
70 | 70 | '#attributes' => array( |
71 | - 'class' => 'search-help-block', |
|
71 | + 'class' => 'search-help-block', |
|
72 | 72 | ), |
73 | - ); |
|
74 | - $block['content'] = theme('fieldset', $collapsible_item); |
|
75 | - break; |
|
76 | - } |
|
77 | - return $block; |
|
73 | + ); |
|
74 | + $block['content'] = theme('fieldset', $collapsible_item); |
|
75 | + break; |
|
76 | + } |
|
77 | + return $block; |
|
78 | 78 | } |
@@ -10,38 +10,38 @@ |
||
10 | 10 | * separate text for user profiles. |
11 | 11 | */ |
12 | 12 | function boinccore_delete_confirm(&$form_state, $node) { |
13 | - $form = array(); |
|
14 | - $form['nid'] = array( |
|
13 | + $form = array(); |
|
14 | + $form['nid'] = array( |
|
15 | 15 | '#type' => 'value', |
16 | 16 | '#value' => $node->nid, |
17 | - ); |
|
17 | + ); |
|
18 | 18 | |
19 | - // Build confirm form from elements, depending on node type. |
|
20 | - $description = bts('This action cannot be undone.', array(), NULL, 'boinc:delete-node'); |
|
21 | - $no = bts('Cancel', array(), NULL, 'boinc:form-cancel'); |
|
19 | + // Build confirm form from elements, depending on node type. |
|
20 | + $description = bts('This action cannot be undone.', array(), NULL, 'boinc:delete-node'); |
|
21 | + $no = bts('Cancel', array(), NULL, 'boinc:form-cancel'); |
|
22 | 22 | |
23 | - switch($node->type) { |
|
24 | - case 'profile': |
|
23 | + switch($node->type) { |
|
24 | + case 'profile': |
|
25 | 25 | $question = bts('Are you sure you want to clear your profile?', array(), NULL, 'boinc:delete-node'); |
26 | 26 | $path = isset($_GET['destination']) ? $_GET['destination'] : 'account'; |
27 | 27 | $yes = bts('Confirm', array(), NULL, 'boinc:form-confirm'); |
28 | 28 | break; |
29 | 29 | |
30 | - default: |
|
30 | + default: |
|
31 | 31 | $question = bts('Are you sure you want to Delete %title?', array('%title' => $node->title), NULL, 'boinc:delete-node'); |
32 | 32 | $path = isset($_GET['destination']) ? $_GET['destination'] : 'node/'. $node->nid; |
33 | 33 | $yes = bts('Delete', array(), NULL, 'boinc:form-delete'); |
34 | - } |
|
35 | - return confirm_form($form, $question, $path, $description, $yes, $no); |
|
34 | + } |
|
35 | + return confirm_form($form, $question, $path, $description, $yes, $no); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | 39 | * Execute node deletion. |
40 | 40 | */ |
41 | 41 | function boinccore_delete_confirm_submit($form, &$form_state) { |
42 | - if ($form_state['values']['confirm']) { |
|
42 | + if ($form_state['values']['confirm']) { |
|
43 | 43 | node_delete($form_state['values']['nid']); |
44 | - } |
|
44 | + } |
|
45 | 45 | |
46 | - $form_state['redirect'] = 'account'; |
|
46 | + $form_state['redirect'] = 'account'; |
|
47 | 47 | } |
@@ -4,22 +4,22 @@ discard block |
||
4 | 4 | * Implementation of hook_views_default_views(). |
5 | 5 | */ |
6 | 6 | function teams_views_default_views() { |
7 | - $views = array(); |
|
7 | + $views = array(); |
|
8 | 8 | |
9 | - // Exported view: boinc_team_members |
|
10 | - $view = new view; |
|
11 | - $view->name = 'boinc_team_members'; |
|
12 | - $view->description = ''; |
|
13 | - $view->tag = ''; |
|
14 | - $view->base_table = 'user'; |
|
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('fields', array( |
|
9 | + // Exported view: boinc_team_members |
|
10 | + $view = new view; |
|
11 | + $view->name = 'boinc_team_members'; |
|
12 | + $view->description = ''; |
|
13 | + $view->tag = ''; |
|
14 | + $view->base_table = 'user'; |
|
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('fields', array( |
|
20 | 20 | 'id' => array( |
21 | - 'label' => 'Id', |
|
22 | - 'alter' => array( |
|
21 | + 'label' => 'Id', |
|
22 | + 'alter' => array( |
|
23 | 23 | 'alter_text' => 0, |
24 | 24 | 'text' => '', |
25 | 25 | 'make_link' => 0, |
@@ -38,29 +38,29 @@ discard block |
||
38 | 38 | 'ellipsis' => 1, |
39 | 39 | 'html' => 0, |
40 | 40 | 'strip_tags' => 0, |
41 | - ), |
|
42 | - 'empty' => '', |
|
43 | - 'hide_empty' => 0, |
|
44 | - 'empty_zero' => 0, |
|
45 | - 'hide_alter_empty' => 1, |
|
46 | - 'set_precision' => FALSE, |
|
47 | - 'precision' => 0, |
|
48 | - 'decimal' => '.', |
|
49 | - 'separator' => ',', |
|
50 | - 'format_plural' => 0, |
|
51 | - 'format_plural_singular' => '1', |
|
52 | - 'format_plural_plural' => '@count', |
|
53 | - 'prefix' => '', |
|
54 | - 'suffix' => '', |
|
55 | - 'exclude' => 0, |
|
56 | - 'id' => 'id', |
|
57 | - 'table' => 'user', |
|
58 | - 'field' => 'id', |
|
59 | - 'relationship' => 'none', |
|
41 | + ), |
|
42 | + 'empty' => '', |
|
43 | + 'hide_empty' => 0, |
|
44 | + 'empty_zero' => 0, |
|
45 | + 'hide_alter_empty' => 1, |
|
46 | + 'set_precision' => FALSE, |
|
47 | + 'precision' => 0, |
|
48 | + 'decimal' => '.', |
|
49 | + 'separator' => ',', |
|
50 | + 'format_plural' => 0, |
|
51 | + 'format_plural_singular' => '1', |
|
52 | + 'format_plural_plural' => '@count', |
|
53 | + 'prefix' => '', |
|
54 | + 'suffix' => '', |
|
55 | + 'exclude' => 0, |
|
56 | + 'id' => 'id', |
|
57 | + 'table' => 'user', |
|
58 | + 'field' => 'id', |
|
59 | + 'relationship' => 'none', |
|
60 | 60 | ), |
61 | 61 | 'name' => array( |
62 | - 'label' => 'Name', |
|
63 | - 'alter' => array( |
|
62 | + 'label' => 'Name', |
|
63 | + 'alter' => array( |
|
64 | 64 | 'alter_text' => 0, |
65 | 65 | 'text' => '', |
66 | 66 | 'make_link' => 0, |
@@ -79,20 +79,20 @@ discard block |
||
79 | 79 | 'ellipsis' => 1, |
80 | 80 | 'html' => 0, |
81 | 81 | 'strip_tags' => 0, |
82 | - ), |
|
83 | - 'empty' => '', |
|
84 | - 'hide_empty' => 0, |
|
85 | - 'empty_zero' => 0, |
|
86 | - 'hide_alter_empty' => 1, |
|
87 | - 'exclude' => 0, |
|
88 | - 'id' => 'name', |
|
89 | - 'table' => 'user', |
|
90 | - 'field' => 'name', |
|
91 | - 'relationship' => 'none', |
|
82 | + ), |
|
83 | + 'empty' => '', |
|
84 | + 'hide_empty' => 0, |
|
85 | + 'empty_zero' => 0, |
|
86 | + 'hide_alter_empty' => 1, |
|
87 | + 'exclude' => 0, |
|
88 | + 'id' => 'name', |
|
89 | + 'table' => 'user', |
|
90 | + 'field' => 'name', |
|
91 | + 'relationship' => 'none', |
|
92 | 92 | ), |
93 | 93 | 'total_credit' => array( |
94 | - 'label' => 'Total Credit', |
|
95 | - 'alter' => array( |
|
94 | + 'label' => 'Total Credit', |
|
95 | + 'alter' => array( |
|
96 | 96 | 'alter_text' => 0, |
97 | 97 | 'text' => '', |
98 | 98 | 'make_link' => 0, |
@@ -111,29 +111,29 @@ discard block |
||
111 | 111 | 'ellipsis' => 1, |
112 | 112 | 'html' => 0, |
113 | 113 | 'strip_tags' => 0, |
114 | - ), |
|
115 | - 'empty' => '', |
|
116 | - 'hide_empty' => 0, |
|
117 | - 'empty_zero' => 0, |
|
118 | - 'hide_alter_empty' => 1, |
|
119 | - 'set_precision' => 1, |
|
120 | - 'precision' => '0', |
|
121 | - 'decimal' => '.', |
|
122 | - 'separator' => ',', |
|
123 | - 'format_plural' => 0, |
|
124 | - 'format_plural_singular' => '1', |
|
125 | - 'format_plural_plural' => '@count', |
|
126 | - 'prefix' => '', |
|
127 | - 'suffix' => '', |
|
128 | - 'exclude' => 0, |
|
129 | - 'id' => 'total_credit', |
|
130 | - 'table' => 'user', |
|
131 | - 'field' => 'total_credit', |
|
132 | - 'relationship' => 'none', |
|
114 | + ), |
|
115 | + 'empty' => '', |
|
116 | + 'hide_empty' => 0, |
|
117 | + 'empty_zero' => 0, |
|
118 | + 'hide_alter_empty' => 1, |
|
119 | + 'set_precision' => 1, |
|
120 | + 'precision' => '0', |
|
121 | + 'decimal' => '.', |
|
122 | + 'separator' => ',', |
|
123 | + 'format_plural' => 0, |
|
124 | + 'format_plural_singular' => '1', |
|
125 | + 'format_plural_plural' => '@count', |
|
126 | + 'prefix' => '', |
|
127 | + 'suffix' => '', |
|
128 | + 'exclude' => 0, |
|
129 | + 'id' => 'total_credit', |
|
130 | + 'table' => 'user', |
|
131 | + 'field' => 'total_credit', |
|
132 | + 'relationship' => 'none', |
|
133 | 133 | ), |
134 | 134 | 'expavg_credit' => array( |
135 | - 'label' => 'Recent average credit', |
|
136 | - 'alter' => array( |
|
135 | + 'label' => 'Recent average credit', |
|
136 | + 'alter' => array( |
|
137 | 137 | 'alter_text' => 0, |
138 | 138 | 'text' => '', |
139 | 139 | 'make_link' => 0, |
@@ -152,29 +152,29 @@ discard block |
||
152 | 152 | 'ellipsis' => 1, |
153 | 153 | 'html' => 0, |
154 | 154 | 'strip_tags' => 0, |
155 | - ), |
|
156 | - 'empty' => '', |
|
157 | - 'hide_empty' => 0, |
|
158 | - 'empty_zero' => 0, |
|
159 | - 'hide_alter_empty' => 1, |
|
160 | - 'set_precision' => 1, |
|
161 | - 'precision' => '2', |
|
162 | - 'decimal' => '.', |
|
163 | - 'separator' => ',', |
|
164 | - 'format_plural' => 0, |
|
165 | - 'format_plural_singular' => '1', |
|
166 | - 'format_plural_plural' => '@count', |
|
167 | - 'prefix' => '', |
|
168 | - 'suffix' => '', |
|
169 | - 'exclude' => 0, |
|
170 | - 'id' => 'expavg_credit', |
|
171 | - 'table' => 'user', |
|
172 | - 'field' => 'expavg_credit', |
|
173 | - 'relationship' => 'none', |
|
155 | + ), |
|
156 | + 'empty' => '', |
|
157 | + 'hide_empty' => 0, |
|
158 | + 'empty_zero' => 0, |
|
159 | + 'hide_alter_empty' => 1, |
|
160 | + 'set_precision' => 1, |
|
161 | + 'precision' => '2', |
|
162 | + 'decimal' => '.', |
|
163 | + 'separator' => ',', |
|
164 | + 'format_plural' => 0, |
|
165 | + 'format_plural_singular' => '1', |
|
166 | + 'format_plural_plural' => '@count', |
|
167 | + 'prefix' => '', |
|
168 | + 'suffix' => '', |
|
169 | + 'exclude' => 0, |
|
170 | + 'id' => 'expavg_credit', |
|
171 | + 'table' => 'user', |
|
172 | + 'field' => 'expavg_credit', |
|
173 | + 'relationship' => 'none', |
|
174 | 174 | ), |
175 | 175 | 'country' => array( |
176 | - 'label' => 'Country', |
|
177 | - 'alter' => array( |
|
176 | + 'label' => 'Country', |
|
177 | + 'alter' => array( |
|
178 | 178 | 'alter_text' => 0, |
179 | 179 | 'text' => '', |
180 | 180 | 'make_link' => 0, |
@@ -193,20 +193,20 @@ discard block |
||
193 | 193 | 'ellipsis' => 1, |
194 | 194 | 'html' => 0, |
195 | 195 | 'strip_tags' => 0, |
196 | - ), |
|
197 | - 'empty' => '', |
|
198 | - 'hide_empty' => 0, |
|
199 | - 'empty_zero' => 0, |
|
200 | - 'hide_alter_empty' => 1, |
|
201 | - 'exclude' => 0, |
|
202 | - 'id' => 'country', |
|
203 | - 'table' => 'user', |
|
204 | - 'field' => 'country', |
|
205 | - 'relationship' => 'none', |
|
196 | + ), |
|
197 | + 'empty' => '', |
|
198 | + 'hide_empty' => 0, |
|
199 | + 'empty_zero' => 0, |
|
200 | + 'hide_alter_empty' => 1, |
|
201 | + 'exclude' => 0, |
|
202 | + 'id' => 'country', |
|
203 | + 'table' => 'user', |
|
204 | + 'field' => 'country', |
|
205 | + 'relationship' => 'none', |
|
206 | 206 | ), |
207 | 207 | 'create_time' => array( |
208 | - 'label' => 'Member since', |
|
209 | - 'alter' => array( |
|
208 | + 'label' => 'Member since', |
|
209 | + 'alter' => array( |
|
210 | 210 | 'alter_text' => 0, |
211 | 211 | 'text' => '', |
212 | 212 | 'make_link' => 0, |
@@ -225,31 +225,31 @@ discard block |
||
225 | 225 | 'ellipsis' => 1, |
226 | 226 | 'html' => 0, |
227 | 227 | 'strip_tags' => 0, |
228 | - ), |
|
229 | - 'empty' => '', |
|
230 | - 'hide_empty' => 0, |
|
231 | - 'empty_zero' => 0, |
|
232 | - 'hide_alter_empty' => 1, |
|
233 | - 'date_format' => 'small', |
|
234 | - 'custom_date_format' => '', |
|
235 | - 'exclude' => 0, |
|
236 | - 'id' => 'create_time', |
|
237 | - 'table' => 'user', |
|
238 | - 'field' => 'create_time', |
|
239 | - 'relationship' => 'none', |
|
240 | - ), |
|
241 | - )); |
|
242 | - $handler->override_option('access', array( |
|
228 | + ), |
|
229 | + 'empty' => '', |
|
230 | + 'hide_empty' => 0, |
|
231 | + 'empty_zero' => 0, |
|
232 | + 'hide_alter_empty' => 1, |
|
233 | + 'date_format' => 'small', |
|
234 | + 'custom_date_format' => '', |
|
235 | + 'exclude' => 0, |
|
236 | + 'id' => 'create_time', |
|
237 | + 'table' => 'user', |
|
238 | + 'field' => 'create_time', |
|
239 | + 'relationship' => 'none', |
|
240 | + ), |
|
241 | + )); |
|
242 | + $handler->override_option('access', array( |
|
243 | 243 | 'type' => 'none', |
244 | - )); |
|
245 | - $handler->override_option('cache', array( |
|
244 | + )); |
|
245 | + $handler->override_option('cache', array( |
|
246 | 246 | 'type' => 'none', |
247 | - )); |
|
248 | - $handler = $view->new_display('panel_pane', 'Team member list', 'panel_pane_1'); |
|
249 | - $handler->override_option('fields', array( |
|
247 | + )); |
|
248 | + $handler = $view->new_display('panel_pane', 'Team member list', 'panel_pane_1'); |
|
249 | + $handler->override_option('fields', array( |
|
250 | 250 | 'rownumber' => array( |
251 | - 'label' => 'Rank', |
|
252 | - 'alter' => array( |
|
251 | + 'label' => 'Rank', |
|
252 | + 'alter' => array( |
|
253 | 253 | 'alter_text' => 0, |
254 | 254 | 'text' => '', |
255 | 255 | 'make_link' => 0, |
@@ -268,23 +268,23 @@ discard block |
||
268 | 268 | 'ellipsis' => 1, |
269 | 269 | 'html' => 0, |
270 | 270 | 'strip_tags' => 0, |
271 | - ), |
|
272 | - 'empty' => '', |
|
273 | - 'hide_empty' => 0, |
|
274 | - 'empty_zero' => 0, |
|
275 | - 'hide_alter_empty' => 1, |
|
276 | - 'exclude' => 0, |
|
277 | - 'id' => 'rownumber', |
|
278 | - 'table' => 'customfield', |
|
279 | - 'field' => 'rownumber', |
|
280 | - 'override' => array( |
|
271 | + ), |
|
272 | + 'empty' => '', |
|
273 | + 'hide_empty' => 0, |
|
274 | + 'empty_zero' => 0, |
|
275 | + 'hide_alter_empty' => 1, |
|
276 | + 'exclude' => 0, |
|
277 | + 'id' => 'rownumber', |
|
278 | + 'table' => 'customfield', |
|
279 | + 'field' => 'rownumber', |
|
280 | + 'override' => array( |
|
281 | 281 | 'button' => 'Use default', |
282 | - ), |
|
283 | - 'relationship' => 'none', |
|
282 | + ), |
|
283 | + 'relationship' => 'none', |
|
284 | 284 | ), |
285 | 285 | 'id' => array( |
286 | - 'label' => 'Id', |
|
287 | - 'alter' => array( |
|
286 | + 'label' => 'Id', |
|
287 | + 'alter' => array( |
|
288 | 288 | 'alter_text' => 0, |
289 | 289 | 'text' => '', |
290 | 290 | 'make_link' => 0, |
@@ -303,32 +303,32 @@ discard block |
||
303 | 303 | 'ellipsis' => 1, |
304 | 304 | 'html' => 0, |
305 | 305 | 'strip_tags' => 0, |
306 | - ), |
|
307 | - 'empty' => '', |
|
308 | - 'hide_empty' => 0, |
|
309 | - 'empty_zero' => 0, |
|
310 | - 'hide_alter_empty' => 1, |
|
311 | - 'set_precision' => FALSE, |
|
312 | - 'precision' => 0, |
|
313 | - 'decimal' => '.', |
|
314 | - 'separator' => '', |
|
315 | - 'format_plural' => 0, |
|
316 | - 'format_plural_singular' => '1', |
|
317 | - 'format_plural_plural' => '@count', |
|
318 | - 'prefix' => '', |
|
319 | - 'suffix' => '', |
|
320 | - 'exclude' => 1, |
|
321 | - 'id' => 'id', |
|
322 | - 'table' => 'user', |
|
323 | - 'field' => 'id', |
|
324 | - 'relationship' => 'none', |
|
325 | - 'override' => array( |
|
306 | + ), |
|
307 | + 'empty' => '', |
|
308 | + 'hide_empty' => 0, |
|
309 | + 'empty_zero' => 0, |
|
310 | + 'hide_alter_empty' => 1, |
|
311 | + 'set_precision' => FALSE, |
|
312 | + 'precision' => 0, |
|
313 | + 'decimal' => '.', |
|
314 | + 'separator' => '', |
|
315 | + 'format_plural' => 0, |
|
316 | + 'format_plural_singular' => '1', |
|
317 | + 'format_plural_plural' => '@count', |
|
318 | + 'prefix' => '', |
|
319 | + 'suffix' => '', |
|
320 | + 'exclude' => 1, |
|
321 | + 'id' => 'id', |
|
322 | + 'table' => 'user', |
|
323 | + 'field' => 'id', |
|
324 | + 'relationship' => 'none', |
|
325 | + 'override' => array( |
|
326 | 326 | 'button' => 'Use default', |
327 | - ), |
|
327 | + ), |
|
328 | 328 | ), |
329 | 329 | 'phpcode' => array( |
330 | - 'label' => 'Uid', |
|
331 | - 'alter' => array( |
|
330 | + 'label' => 'Uid', |
|
331 | + 'alter' => array( |
|
332 | 332 | 'alter_text' => 0, |
333 | 333 | 'text' => '', |
334 | 334 | 'make_link' => 0, |
@@ -347,26 +347,26 @@ discard block |
||
347 | 347 | 'ellipsis' => 1, |
348 | 348 | 'html' => 0, |
349 | 349 | 'strip_tags' => 0, |
350 | - ), |
|
351 | - 'empty' => '', |
|
352 | - 'hide_empty' => 0, |
|
353 | - 'empty_zero' => 0, |
|
354 | - 'hide_alter_empty' => 1, |
|
355 | - 'value' => '<?php |
|
350 | + ), |
|
351 | + 'empty' => '', |
|
352 | + 'hide_empty' => 0, |
|
353 | + 'empty_zero' => 0, |
|
354 | + 'hide_alter_empty' => 1, |
|
355 | + 'value' => '<?php |
|
356 | 356 | echo boincuser_lookup_uid($data->id); |
357 | 357 | ?>', |
358 | - 'exclude' => 1, |
|
359 | - 'id' => 'phpcode', |
|
360 | - 'table' => 'customfield', |
|
361 | - 'field' => 'phpcode', |
|
362 | - 'override' => array( |
|
358 | + 'exclude' => 1, |
|
359 | + 'id' => 'phpcode', |
|
360 | + 'table' => 'customfield', |
|
361 | + 'field' => 'phpcode', |
|
362 | + 'override' => array( |
|
363 | 363 | 'button' => 'Use default', |
364 | - ), |
|
365 | - 'relationship' => 'none', |
|
364 | + ), |
|
365 | + 'relationship' => 'none', |
|
366 | 366 | ), |
367 | 367 | 'name' => array( |
368 | - 'label' => 'Name', |
|
369 | - 'alter' => array( |
|
368 | + 'label' => 'Name', |
|
369 | + 'alter' => array( |
|
370 | 370 | 'alter_text' => 0, |
371 | 371 | 'text' => '', |
372 | 372 | 'make_link' => 1, |
@@ -385,23 +385,23 @@ discard block |
||
385 | 385 | 'ellipsis' => 1, |
386 | 386 | 'html' => 0, |
387 | 387 | 'strip_tags' => 0, |
388 | - ), |
|
389 | - 'empty' => '', |
|
390 | - 'hide_empty' => 0, |
|
391 | - 'empty_zero' => 0, |
|
392 | - 'hide_alter_empty' => 1, |
|
393 | - 'exclude' => 0, |
|
394 | - 'id' => 'name', |
|
395 | - 'table' => 'user', |
|
396 | - 'field' => 'name', |
|
397 | - 'relationship' => 'none', |
|
398 | - 'override' => array( |
|
388 | + ), |
|
389 | + 'empty' => '', |
|
390 | + 'hide_empty' => 0, |
|
391 | + 'empty_zero' => 0, |
|
392 | + 'hide_alter_empty' => 1, |
|
393 | + 'exclude' => 0, |
|
394 | + 'id' => 'name', |
|
395 | + 'table' => 'user', |
|
396 | + 'field' => 'name', |
|
397 | + 'relationship' => 'none', |
|
398 | + 'override' => array( |
|
399 | 399 | 'button' => 'Use default', |
400 | - ), |
|
400 | + ), |
|
401 | 401 | ), |
402 | 402 | 'total_credit' => array( |
403 | - 'label' => 'Total Credit', |
|
404 | - 'alter' => array( |
|
403 | + 'label' => 'Total Credit', |
|
404 | + 'alter' => array( |
|
405 | 405 | 'alter_text' => 0, |
406 | 406 | 'text' => '', |
407 | 407 | 'make_link' => 0, |
@@ -420,32 +420,32 @@ discard block |
||
420 | 420 | 'ellipsis' => 1, |
421 | 421 | 'html' => 0, |
422 | 422 | 'strip_tags' => 0, |
423 | - ), |
|
424 | - 'empty' => '', |
|
425 | - 'hide_empty' => 0, |
|
426 | - 'empty_zero' => 0, |
|
427 | - 'hide_alter_empty' => 1, |
|
428 | - 'set_precision' => 1, |
|
429 | - 'precision' => '0', |
|
430 | - 'decimal' => '.', |
|
431 | - 'separator' => ',', |
|
432 | - 'format_plural' => 0, |
|
433 | - 'format_plural_singular' => '1', |
|
434 | - 'format_plural_plural' => '@count', |
|
435 | - 'prefix' => '', |
|
436 | - 'suffix' => '', |
|
437 | - 'exclude' => 0, |
|
438 | - 'id' => 'total_credit', |
|
439 | - 'table' => 'user', |
|
440 | - 'field' => 'total_credit', |
|
441 | - 'relationship' => 'none', |
|
442 | - 'override' => array( |
|
423 | + ), |
|
424 | + 'empty' => '', |
|
425 | + 'hide_empty' => 0, |
|
426 | + 'empty_zero' => 0, |
|
427 | + 'hide_alter_empty' => 1, |
|
428 | + 'set_precision' => 1, |
|
429 | + 'precision' => '0', |
|
430 | + 'decimal' => '.', |
|
431 | + 'separator' => ',', |
|
432 | + 'format_plural' => 0, |
|
433 | + 'format_plural_singular' => '1', |
|
434 | + 'format_plural_plural' => '@count', |
|
435 | + 'prefix' => '', |
|
436 | + 'suffix' => '', |
|
437 | + 'exclude' => 0, |
|
438 | + 'id' => 'total_credit', |
|
439 | + 'table' => 'user', |
|
440 | + 'field' => 'total_credit', |
|
441 | + 'relationship' => 'none', |
|
442 | + 'override' => array( |
|
443 | 443 | 'button' => 'Use default', |
444 | - ), |
|
444 | + ), |
|
445 | 445 | ), |
446 | 446 | 'expavg_credit' => array( |
447 | - 'label' => 'Recent average credit', |
|
448 | - 'alter' => array( |
|
447 | + 'label' => 'Recent average credit', |
|
448 | + 'alter' => array( |
|
449 | 449 | 'alter_text' => 0, |
450 | 450 | 'text' => '', |
451 | 451 | 'make_link' => 0, |
@@ -464,29 +464,29 @@ discard block |
||
464 | 464 | 'ellipsis' => 1, |
465 | 465 | 'html' => 0, |
466 | 466 | 'strip_tags' => 0, |
467 | - ), |
|
468 | - 'empty' => '', |
|
469 | - 'hide_empty' => 0, |
|
470 | - 'empty_zero' => 0, |
|
471 | - 'hide_alter_empty' => 1, |
|
472 | - 'set_precision' => 1, |
|
473 | - 'precision' => '2', |
|
474 | - 'decimal' => '.', |
|
475 | - 'separator' => ',', |
|
476 | - 'format_plural' => 0, |
|
477 | - 'format_plural_singular' => '1', |
|
478 | - 'format_plural_plural' => '@count', |
|
479 | - 'prefix' => '', |
|
480 | - 'suffix' => '', |
|
481 | - 'exclude' => 0, |
|
482 | - 'id' => 'expavg_credit', |
|
483 | - 'table' => 'user', |
|
484 | - 'field' => 'expavg_credit', |
|
485 | - 'relationship' => 'none', |
|
467 | + ), |
|
468 | + 'empty' => '', |
|
469 | + 'hide_empty' => 0, |
|
470 | + 'empty_zero' => 0, |
|
471 | + 'hide_alter_empty' => 1, |
|
472 | + 'set_precision' => 1, |
|
473 | + 'precision' => '2', |
|
474 | + 'decimal' => '.', |
|
475 | + 'separator' => ',', |
|
476 | + 'format_plural' => 0, |
|
477 | + 'format_plural_singular' => '1', |
|
478 | + 'format_plural_plural' => '@count', |
|
479 | + 'prefix' => '', |
|
480 | + 'suffix' => '', |
|
481 | + 'exclude' => 0, |
|
482 | + 'id' => 'expavg_credit', |
|
483 | + 'table' => 'user', |
|
484 | + 'field' => 'expavg_credit', |
|
485 | + 'relationship' => 'none', |
|
486 | 486 | ), |
487 | 487 | 'country' => array( |
488 | - 'label' => 'Country', |
|
489 | - 'alter' => array( |
|
488 | + 'label' => 'Country', |
|
489 | + 'alter' => array( |
|
490 | 490 | 'alter_text' => 0, |
491 | 491 | 'text' => '', |
492 | 492 | 'make_link' => 0, |
@@ -505,23 +505,23 @@ discard block |
||
505 | 505 | 'ellipsis' => 1, |
506 | 506 | 'html' => 0, |
507 | 507 | 'strip_tags' => 0, |
508 | - ), |
|
509 | - 'empty' => '', |
|
510 | - 'hide_empty' => 0, |
|
511 | - 'empty_zero' => 0, |
|
512 | - 'hide_alter_empty' => 1, |
|
513 | - 'exclude' => 0, |
|
514 | - 'id' => 'country', |
|
515 | - 'table' => 'user', |
|
516 | - 'field' => 'country', |
|
517 | - 'override' => array( |
|
508 | + ), |
|
509 | + 'empty' => '', |
|
510 | + 'hide_empty' => 0, |
|
511 | + 'empty_zero' => 0, |
|
512 | + 'hide_alter_empty' => 1, |
|
513 | + 'exclude' => 0, |
|
514 | + 'id' => 'country', |
|
515 | + 'table' => 'user', |
|
516 | + 'field' => 'country', |
|
517 | + 'override' => array( |
|
518 | 518 | 'button' => 'Use default', |
519 | - ), |
|
520 | - 'relationship' => 'none', |
|
519 | + ), |
|
520 | + 'relationship' => 'none', |
|
521 | 521 | ), |
522 | 522 | 'create_time' => array( |
523 | - 'label' => 'Member Since', |
|
524 | - 'alter' => array( |
|
523 | + 'label' => 'Member Since', |
|
524 | + 'alter' => array( |
|
525 | 525 | 'alter_text' => 0, |
526 | 526 | 'text' => '', |
527 | 527 | 'make_link' => 0, |
@@ -540,43 +540,43 @@ discard block |
||
540 | 540 | 'ellipsis' => 1, |
541 | 541 | 'html' => 0, |
542 | 542 | 'strip_tags' => 0, |
543 | - ), |
|
544 | - 'empty' => '', |
|
545 | - 'hide_empty' => 0, |
|
546 | - 'empty_zero' => 0, |
|
547 | - 'hide_alter_empty' => 1, |
|
548 | - 'date_format' => 'custom', |
|
549 | - 'custom_date_format' => 'j M Y G:i:s T', |
|
550 | - 'exclude' => 0, |
|
551 | - 'id' => 'create_time', |
|
552 | - 'table' => 'user', |
|
553 | - 'field' => 'create_time', |
|
554 | - 'relationship' => 'none', |
|
555 | - 'override' => array( |
|
543 | + ), |
|
544 | + 'empty' => '', |
|
545 | + 'hide_empty' => 0, |
|
546 | + 'empty_zero' => 0, |
|
547 | + 'hide_alter_empty' => 1, |
|
548 | + 'date_format' => 'custom', |
|
549 | + 'custom_date_format' => 'j M Y G:i:s T', |
|
550 | + 'exclude' => 0, |
|
551 | + 'id' => 'create_time', |
|
552 | + 'table' => 'user', |
|
553 | + 'field' => 'create_time', |
|
554 | + 'relationship' => 'none', |
|
555 | + 'override' => array( |
|
556 | 556 | 'button' => 'Use default', |
557 | - ), |
|
557 | + ), |
|
558 | 558 | ), |
559 | - )); |
|
560 | - $handler->override_option('arguments', array( |
|
559 | + )); |
|
560 | + $handler->override_option('arguments', array( |
|
561 | 561 | 'teamid' => array( |
562 | - 'default_action' => 'empty', |
|
563 | - 'style_plugin' => 'default_summary', |
|
564 | - 'style_options' => array(), |
|
565 | - 'wildcard' => 'all', |
|
566 | - 'wildcard_substitution' => 'All', |
|
567 | - 'title' => '', |
|
568 | - 'breadcrumb' => '', |
|
569 | - 'default_argument_type' => 'fixed', |
|
570 | - 'default_argument' => '', |
|
571 | - 'validate_type' => 'numeric', |
|
572 | - 'validate_fail' => 'not found', |
|
573 | - 'break_phrase' => 0, |
|
574 | - 'not' => 0, |
|
575 | - 'id' => 'teamid', |
|
576 | - 'table' => 'user', |
|
577 | - 'field' => 'teamid', |
|
578 | - 'validate_user_argument_type' => 'uid', |
|
579 | - 'validate_user_roles' => array( |
|
562 | + 'default_action' => 'empty', |
|
563 | + 'style_plugin' => 'default_summary', |
|
564 | + 'style_options' => array(), |
|
565 | + 'wildcard' => 'all', |
|
566 | + 'wildcard_substitution' => 'All', |
|
567 | + 'title' => '', |
|
568 | + 'breadcrumb' => '', |
|
569 | + 'default_argument_type' => 'fixed', |
|
570 | + 'default_argument' => '', |
|
571 | + 'validate_type' => 'numeric', |
|
572 | + 'validate_fail' => 'not found', |
|
573 | + 'break_phrase' => 0, |
|
574 | + 'not' => 0, |
|
575 | + 'id' => 'teamid', |
|
576 | + 'table' => 'user', |
|
577 | + 'field' => 'teamid', |
|
578 | + 'validate_user_argument_type' => 'uid', |
|
579 | + 'validate_user_roles' => array( |
|
580 | 580 | 2 => 0, |
581 | 581 | 3519698132 => 0, |
582 | 582 | 1110965548 => 0, |
@@ -585,10 +585,10 @@ discard block |
||
585 | 585 | 268174006 => 0, |
586 | 586 | 1271379760 => 0, |
587 | 587 | 933038561 => 0, |
588 | - ), |
|
589 | - 'me_redirect' => 0, |
|
590 | - 'me_validate_user_argument_type' => 'uid', |
|
591 | - 'me_validate_user_roles' => array( |
|
588 | + ), |
|
589 | + 'me_redirect' => 0, |
|
590 | + 'me_validate_user_argument_type' => 'uid', |
|
591 | + 'me_validate_user_roles' => array( |
|
592 | 592 | 2 => 0, |
593 | 593 | 3519698132 => 0, |
594 | 594 | 1110965548 => 0, |
@@ -597,23 +597,23 @@ discard block |
||
597 | 597 | 268174006 => 0, |
598 | 598 | 1271379760 => 0, |
599 | 599 | 933038561 => 0, |
600 | - ), |
|
601 | - 'override' => array( |
|
600 | + ), |
|
601 | + 'override' => array( |
|
602 | 602 | 'button' => 'Use default', |
603 | - ), |
|
604 | - 'relationship' => 'none', |
|
605 | - 'default_options_div_prefix' => '', |
|
606 | - 'default_taxonomy_tid_term_page' => 0, |
|
607 | - 'default_taxonomy_tid_node' => 0, |
|
608 | - 'default_taxonomy_tid_limit' => 0, |
|
609 | - 'default_taxonomy_tid_vids' => array( |
|
603 | + ), |
|
604 | + 'relationship' => 'none', |
|
605 | + 'default_options_div_prefix' => '', |
|
606 | + 'default_taxonomy_tid_term_page' => 0, |
|
607 | + 'default_taxonomy_tid_node' => 0, |
|
608 | + 'default_taxonomy_tid_limit' => 0, |
|
609 | + 'default_taxonomy_tid_vids' => array( |
|
610 | 610 | 1 => 0, |
611 | 611 | 2 => 0, |
612 | - ), |
|
613 | - 'default_argument_user' => 0, |
|
614 | - 'default_argument_fixed' => '', |
|
615 | - 'default_argument_php' => '', |
|
616 | - 'validate_argument_node_type' => array( |
|
612 | + ), |
|
613 | + 'default_argument_user' => 0, |
|
614 | + 'default_argument_fixed' => '', |
|
615 | + 'default_argument_php' => '', |
|
616 | + 'validate_argument_node_type' => array( |
|
617 | 617 | 'page' => 0, |
618 | 618 | 'news' => 0, |
619 | 619 | 'profile' => 0, |
@@ -621,82 +621,82 @@ discard block |
||
621 | 621 | 'panel' => 0, |
622 | 622 | 'story' => 0, |
623 | 623 | 'team' => 0, |
624 | - ), |
|
625 | - 'validate_argument_node_access' => 0, |
|
626 | - 'validate_argument_nid_type' => 'nid', |
|
627 | - 'validate_argument_vocabulary' => array( |
|
624 | + ), |
|
625 | + 'validate_argument_node_access' => 0, |
|
626 | + 'validate_argument_nid_type' => 'nid', |
|
627 | + 'validate_argument_vocabulary' => array( |
|
628 | 628 | 1 => 0, |
629 | 629 | 2 => 0, |
630 | - ), |
|
631 | - 'validate_argument_type' => 'tid', |
|
632 | - 'validate_argument_transform' => 0, |
|
633 | - 'validate_user_restrict_roles' => 0, |
|
634 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
635 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
636 | - 'validate_argument_node_flag_id_type' => 'id', |
|
637 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
638 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
639 | - 'validate_argument_user_flag_id_type' => 'id', |
|
640 | - 'validate_argument_php' => '', |
|
641 | - 'me_validate_user_restrict_roles' => 0, |
|
642 | - ), |
|
643 | - )); |
|
644 | - $handler->override_option('use_pager', '1'); |
|
645 | - $handler->override_option('style_plugin', 'table'); |
|
646 | - $handler->override_option('style_options', array( |
|
630 | + ), |
|
631 | + 'validate_argument_type' => 'tid', |
|
632 | + 'validate_argument_transform' => 0, |
|
633 | + 'validate_user_restrict_roles' => 0, |
|
634 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
635 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
636 | + 'validate_argument_node_flag_id_type' => 'id', |
|
637 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
638 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
639 | + 'validate_argument_user_flag_id_type' => 'id', |
|
640 | + 'validate_argument_php' => '', |
|
641 | + 'me_validate_user_restrict_roles' => 0, |
|
642 | + ), |
|
643 | + )); |
|
644 | + $handler->override_option('use_pager', '1'); |
|
645 | + $handler->override_option('style_plugin', 'table'); |
|
646 | + $handler->override_option('style_options', array( |
|
647 | 647 | 'grouping' => '', |
648 | 648 | 'override' => 1, |
649 | 649 | 'sticky' => 1, |
650 | 650 | 'order' => 'desc', |
651 | 651 | 'summary' => '', |
652 | 652 | 'columns' => array( |
653 | - 'id' => 'id', |
|
654 | - 'name' => 'name', |
|
655 | - 'email_addr' => 'email_addr', |
|
656 | - 'total_credit' => 'total_credit', |
|
657 | - 'expavg_credit' => 'expavg_credit', |
|
658 | - 'country' => 'country', |
|
659 | - 'create_time' => 'create_time', |
|
653 | + 'id' => 'id', |
|
654 | + 'name' => 'name', |
|
655 | + 'email_addr' => 'email_addr', |
|
656 | + 'total_credit' => 'total_credit', |
|
657 | + 'expavg_credit' => 'expavg_credit', |
|
658 | + 'country' => 'country', |
|
659 | + 'create_time' => 'create_time', |
|
660 | 660 | ), |
661 | 661 | 'info' => array( |
662 | - 'id' => array( |
|
662 | + 'id' => array( |
|
663 | 663 | 'sortable' => 0, |
664 | 664 | 'separator' => '', |
665 | - ), |
|
666 | - 'name' => array( |
|
665 | + ), |
|
666 | + 'name' => array( |
|
667 | 667 | 'sortable' => 1, |
668 | 668 | 'separator' => '', |
669 | - ), |
|
670 | - 'email_addr' => array( |
|
669 | + ), |
|
670 | + 'email_addr' => array( |
|
671 | 671 | 'sortable' => 0, |
672 | 672 | 'separator' => '', |
673 | - ), |
|
674 | - 'total_credit' => array( |
|
673 | + ), |
|
674 | + 'total_credit' => array( |
|
675 | 675 | 'sortable' => 1, |
676 | 676 | 'separator' => '', |
677 | - ), |
|
678 | - 'expavg_credit' => array( |
|
677 | + ), |
|
678 | + 'expavg_credit' => array( |
|
679 | 679 | 'sortable' => 1, |
680 | 680 | 'separator' => '', |
681 | - ), |
|
682 | - 'country' => array( |
|
681 | + ), |
|
682 | + 'country' => array( |
|
683 | 683 | 'sortable' => 1, |
684 | 684 | 'separator' => '', |
685 | - ), |
|
686 | - 'create_time' => array( |
|
685 | + ), |
|
686 | + 'create_time' => array( |
|
687 | 687 | 'sortable' => 0, |
688 | 688 | 'separator' => '', |
689 | - ), |
|
689 | + ), |
|
690 | 690 | ), |
691 | 691 | 'default' => 'expavg_credit', |
692 | - )); |
|
693 | - $handler->override_option('pane_title', 'Team member list'); |
|
694 | - $handler->override_option('pane_description', ''); |
|
695 | - $handler->override_option('pane_category', array( |
|
692 | + )); |
|
693 | + $handler->override_option('pane_title', 'Team member list'); |
|
694 | + $handler->override_option('pane_description', ''); |
|
695 | + $handler->override_option('pane_category', array( |
|
696 | 696 | 'name' => 'View panes', |
697 | 697 | 'weight' => 0, |
698 | - )); |
|
699 | - $handler->override_option('allow', array( |
|
698 | + )); |
|
699 | + $handler->override_option('allow', array( |
|
700 | 700 | 'use_pager' => 0, |
701 | 701 | 'items_per_page' => 'items_per_page', |
702 | 702 | 'offset' => 0, |
@@ -706,24 +706,24 @@ discard block |
||
706 | 706 | 'title_override' => 'title_override', |
707 | 707 | 'exposed_form' => 0, |
708 | 708 | 'fields_override' => 0, |
709 | - )); |
|
710 | - $handler->override_option('argument_input', array( |
|
709 | + )); |
|
710 | + $handler->override_option('argument_input', array( |
|
711 | 711 | 'teamid' => array( |
712 | - 'type' => 'panel', |
|
713 | - 'context' => 'term.description', |
|
714 | - 'context_optional' => 0, |
|
715 | - 'panel' => '0', |
|
716 | - 'fixed' => '', |
|
717 | - 'label' => 'BOINC: Team ID', |
|
718 | - ), |
|
719 | - )); |
|
720 | - $handler->override_option('link_to_view', 0); |
|
721 | - $handler->override_option('inherit_panels_path', 0); |
|
722 | - $handler = $view->new_display('panel_pane', 'Team member list for admin', 'panel_pane_2'); |
|
723 | - $handler->override_option('fields', array( |
|
712 | + 'type' => 'panel', |
|
713 | + 'context' => 'term.description', |
|
714 | + 'context_optional' => 0, |
|
715 | + 'panel' => '0', |
|
716 | + 'fixed' => '', |
|
717 | + 'label' => 'BOINC: Team ID', |
|
718 | + ), |
|
719 | + )); |
|
720 | + $handler->override_option('link_to_view', 0); |
|
721 | + $handler->override_option('inherit_panels_path', 0); |
|
722 | + $handler = $view->new_display('panel_pane', 'Team member list for admin', 'panel_pane_2'); |
|
723 | + $handler->override_option('fields', array( |
|
724 | 724 | 'rownumber' => array( |
725 | - 'label' => 'Rank', |
|
726 | - 'alter' => array( |
|
725 | + 'label' => 'Rank', |
|
726 | + 'alter' => array( |
|
727 | 727 | 'alter_text' => 0, |
728 | 728 | 'text' => '', |
729 | 729 | 'make_link' => 0, |
@@ -742,23 +742,23 @@ discard block |
||
742 | 742 | 'ellipsis' => 1, |
743 | 743 | 'html' => 0, |
744 | 744 | 'strip_tags' => 0, |
745 | - ), |
|
746 | - 'empty' => '', |
|
747 | - 'hide_empty' => 0, |
|
748 | - 'empty_zero' => 0, |
|
749 | - 'hide_alter_empty' => 1, |
|
750 | - 'exclude' => 0, |
|
751 | - 'id' => 'rownumber', |
|
752 | - 'table' => 'customfield', |
|
753 | - 'field' => 'rownumber', |
|
754 | - 'override' => array( |
|
745 | + ), |
|
746 | + 'empty' => '', |
|
747 | + 'hide_empty' => 0, |
|
748 | + 'empty_zero' => 0, |
|
749 | + 'hide_alter_empty' => 1, |
|
750 | + 'exclude' => 0, |
|
751 | + 'id' => 'rownumber', |
|
752 | + 'table' => 'customfield', |
|
753 | + 'field' => 'rownumber', |
|
754 | + 'override' => array( |
|
755 | 755 | 'button' => 'Use default', |
756 | - ), |
|
757 | - 'relationship' => 'none', |
|
756 | + ), |
|
757 | + 'relationship' => 'none', |
|
758 | 758 | ), |
759 | 759 | 'id' => array( |
760 | - 'label' => 'Id', |
|
761 | - 'alter' => array( |
|
760 | + 'label' => 'Id', |
|
761 | + 'alter' => array( |
|
762 | 762 | 'alter_text' => 0, |
763 | 763 | 'text' => '', |
764 | 764 | 'make_link' => 0, |
@@ -777,32 +777,32 @@ discard block |
||
777 | 777 | 'ellipsis' => 1, |
778 | 778 | 'html' => 0, |
779 | 779 | 'strip_tags' => 0, |
780 | - ), |
|
781 | - 'empty' => '', |
|
782 | - 'hide_empty' => 0, |
|
783 | - 'empty_zero' => 0, |
|
784 | - 'hide_alter_empty' => 1, |
|
785 | - 'set_precision' => FALSE, |
|
786 | - 'precision' => 0, |
|
787 | - 'decimal' => '.', |
|
788 | - 'separator' => '', |
|
789 | - 'format_plural' => 0, |
|
790 | - 'format_plural_singular' => '1', |
|
791 | - 'format_plural_plural' => '@count', |
|
792 | - 'prefix' => '', |
|
793 | - 'suffix' => '', |
|
794 | - 'exclude' => 1, |
|
795 | - 'id' => 'id', |
|
796 | - 'table' => 'user', |
|
797 | - 'field' => 'id', |
|
798 | - 'relationship' => 'none', |
|
799 | - 'override' => array( |
|
780 | + ), |
|
781 | + 'empty' => '', |
|
782 | + 'hide_empty' => 0, |
|
783 | + 'empty_zero' => 0, |
|
784 | + 'hide_alter_empty' => 1, |
|
785 | + 'set_precision' => FALSE, |
|
786 | + 'precision' => 0, |
|
787 | + 'decimal' => '.', |
|
788 | + 'separator' => '', |
|
789 | + 'format_plural' => 0, |
|
790 | + 'format_plural_singular' => '1', |
|
791 | + 'format_plural_plural' => '@count', |
|
792 | + 'prefix' => '', |
|
793 | + 'suffix' => '', |
|
794 | + 'exclude' => 1, |
|
795 | + 'id' => 'id', |
|
796 | + 'table' => 'user', |
|
797 | + 'field' => 'id', |
|
798 | + 'relationship' => 'none', |
|
799 | + 'override' => array( |
|
800 | 800 | 'button' => 'Use default', |
801 | - ), |
|
801 | + ), |
|
802 | 802 | ), |
803 | 803 | 'phpcode_2' => array( |
804 | - 'label' => 'Uid', |
|
805 | - 'alter' => array( |
|
804 | + 'label' => 'Uid', |
|
805 | + 'alter' => array( |
|
806 | 806 | 'alter_text' => 0, |
807 | 807 | 'text' => '', |
808 | 808 | 'make_link' => 0, |
@@ -821,26 +821,26 @@ discard block |
||
821 | 821 | 'ellipsis' => 1, |
822 | 822 | 'html' => 0, |
823 | 823 | 'strip_tags' => 0, |
824 | - ), |
|
825 | - 'empty' => '', |
|
826 | - 'hide_empty' => 0, |
|
827 | - 'empty_zero' => 0, |
|
828 | - 'hide_alter_empty' => 1, |
|
829 | - 'value' => '<?php |
|
824 | + ), |
|
825 | + 'empty' => '', |
|
826 | + 'hide_empty' => 0, |
|
827 | + 'empty_zero' => 0, |
|
828 | + 'hide_alter_empty' => 1, |
|
829 | + 'value' => '<?php |
|
830 | 830 | echo boincuser_lookup_uid($data->id); |
831 | 831 | ?>', |
832 | - 'exclude' => 1, |
|
833 | - 'id' => 'phpcode_2', |
|
834 | - 'table' => 'customfield', |
|
835 | - 'field' => 'phpcode', |
|
836 | - 'override' => array( |
|
832 | + 'exclude' => 1, |
|
833 | + 'id' => 'phpcode_2', |
|
834 | + 'table' => 'customfield', |
|
835 | + 'field' => 'phpcode', |
|
836 | + 'override' => array( |
|
837 | 837 | 'button' => 'Use default', |
838 | - ), |
|
839 | - 'relationship' => 'none', |
|
838 | + ), |
|
839 | + 'relationship' => 'none', |
|
840 | 840 | ), |
841 | 841 | 'name' => array( |
842 | - 'label' => 'Name', |
|
843 | - 'alter' => array( |
|
842 | + 'label' => 'Name', |
|
843 | + 'alter' => array( |
|
844 | 844 | 'alter_text' => 0, |
845 | 845 | 'text' => '', |
846 | 846 | 'make_link' => 1, |
@@ -859,23 +859,23 @@ discard block |
||
859 | 859 | 'ellipsis' => 1, |
860 | 860 | 'html' => 0, |
861 | 861 | 'strip_tags' => 0, |
862 | - ), |
|
863 | - 'empty' => '', |
|
864 | - 'hide_empty' => 0, |
|
865 | - 'empty_zero' => 0, |
|
866 | - 'hide_alter_empty' => 1, |
|
867 | - 'exclude' => 0, |
|
868 | - 'id' => 'name', |
|
869 | - 'table' => 'user', |
|
870 | - 'field' => 'name', |
|
871 | - 'relationship' => 'none', |
|
872 | - 'override' => array( |
|
862 | + ), |
|
863 | + 'empty' => '', |
|
864 | + 'hide_empty' => 0, |
|
865 | + 'empty_zero' => 0, |
|
866 | + 'hide_alter_empty' => 1, |
|
867 | + 'exclude' => 0, |
|
868 | + 'id' => 'name', |
|
869 | + 'table' => 'user', |
|
870 | + 'field' => 'name', |
|
871 | + 'relationship' => 'none', |
|
872 | + 'override' => array( |
|
873 | 873 | 'button' => 'Use default', |
874 | - ), |
|
874 | + ), |
|
875 | 875 | ), |
876 | 876 | 'total_credit' => array( |
877 | - 'label' => 'Total Credit', |
|
878 | - 'alter' => array( |
|
877 | + 'label' => 'Total Credit', |
|
878 | + 'alter' => array( |
|
879 | 879 | 'alter_text' => 0, |
880 | 880 | 'text' => '', |
881 | 881 | 'make_link' => 0, |
@@ -894,32 +894,32 @@ discard block |
||
894 | 894 | 'ellipsis' => 1, |
895 | 895 | 'html' => 0, |
896 | 896 | 'strip_tags' => 0, |
897 | - ), |
|
898 | - 'empty' => '', |
|
899 | - 'hide_empty' => 0, |
|
900 | - 'empty_zero' => 0, |
|
901 | - 'hide_alter_empty' => 1, |
|
902 | - 'set_precision' => 1, |
|
903 | - 'precision' => '0', |
|
904 | - 'decimal' => '.', |
|
905 | - 'separator' => ',', |
|
906 | - 'format_plural' => 0, |
|
907 | - 'format_plural_singular' => '1', |
|
908 | - 'format_plural_plural' => '@count', |
|
909 | - 'prefix' => '', |
|
910 | - 'suffix' => '', |
|
911 | - 'exclude' => 0, |
|
912 | - 'id' => 'total_credit', |
|
913 | - 'table' => 'user', |
|
914 | - 'field' => 'total_credit', |
|
915 | - 'relationship' => 'none', |
|
916 | - 'override' => array( |
|
897 | + ), |
|
898 | + 'empty' => '', |
|
899 | + 'hide_empty' => 0, |
|
900 | + 'empty_zero' => 0, |
|
901 | + 'hide_alter_empty' => 1, |
|
902 | + 'set_precision' => 1, |
|
903 | + 'precision' => '0', |
|
904 | + 'decimal' => '.', |
|
905 | + 'separator' => ',', |
|
906 | + 'format_plural' => 0, |
|
907 | + 'format_plural_singular' => '1', |
|
908 | + 'format_plural_plural' => '@count', |
|
909 | + 'prefix' => '', |
|
910 | + 'suffix' => '', |
|
911 | + 'exclude' => 0, |
|
912 | + 'id' => 'total_credit', |
|
913 | + 'table' => 'user', |
|
914 | + 'field' => 'total_credit', |
|
915 | + 'relationship' => 'none', |
|
916 | + 'override' => array( |
|
917 | 917 | 'button' => 'Use default', |
918 | - ), |
|
918 | + ), |
|
919 | 919 | ), |
920 | 920 | 'expavg_credit' => array( |
921 | - 'label' => 'Recent average credit', |
|
922 | - 'alter' => array( |
|
921 | + 'label' => 'Recent average credit', |
|
922 | + 'alter' => array( |
|
923 | 923 | 'alter_text' => 0, |
924 | 924 | 'text' => '', |
925 | 925 | 'make_link' => 0, |
@@ -938,29 +938,29 @@ discard block |
||
938 | 938 | 'ellipsis' => 1, |
939 | 939 | 'html' => 0, |
940 | 940 | 'strip_tags' => 0, |
941 | - ), |
|
942 | - 'empty' => '', |
|
943 | - 'hide_empty' => 0, |
|
944 | - 'empty_zero' => 0, |
|
945 | - 'hide_alter_empty' => 1, |
|
946 | - 'set_precision' => 1, |
|
947 | - 'precision' => '2', |
|
948 | - 'decimal' => '.', |
|
949 | - 'separator' => ',', |
|
950 | - 'format_plural' => 0, |
|
951 | - 'format_plural_singular' => '1', |
|
952 | - 'format_plural_plural' => '@count', |
|
953 | - 'prefix' => '', |
|
954 | - 'suffix' => '', |
|
955 | - 'exclude' => 0, |
|
956 | - 'id' => 'expavg_credit', |
|
957 | - 'table' => 'user', |
|
958 | - 'field' => 'expavg_credit', |
|
959 | - 'relationship' => 'none', |
|
941 | + ), |
|
942 | + 'empty' => '', |
|
943 | + 'hide_empty' => 0, |
|
944 | + 'empty_zero' => 0, |
|
945 | + 'hide_alter_empty' => 1, |
|
946 | + 'set_precision' => 1, |
|
947 | + 'precision' => '2', |
|
948 | + 'decimal' => '.', |
|
949 | + 'separator' => ',', |
|
950 | + 'format_plural' => 0, |
|
951 | + 'format_plural_singular' => '1', |
|
952 | + 'format_plural_plural' => '@count', |
|
953 | + 'prefix' => '', |
|
954 | + 'suffix' => '', |
|
955 | + 'exclude' => 0, |
|
956 | + 'id' => 'expavg_credit', |
|
957 | + 'table' => 'user', |
|
958 | + 'field' => 'expavg_credit', |
|
959 | + 'relationship' => 'none', |
|
960 | 960 | ), |
961 | 961 | 'country' => array( |
962 | - 'label' => 'Country', |
|
963 | - 'alter' => array( |
|
962 | + 'label' => 'Country', |
|
963 | + 'alter' => array( |
|
964 | 964 | 'alter_text' => 0, |
965 | 965 | 'text' => '', |
966 | 966 | 'make_link' => 0, |
@@ -979,23 +979,23 @@ discard block |
||
979 | 979 | 'ellipsis' => 1, |
980 | 980 | 'html' => 0, |
981 | 981 | 'strip_tags' => 0, |
982 | - ), |
|
983 | - 'empty' => '', |
|
984 | - 'hide_empty' => 0, |
|
985 | - 'empty_zero' => 0, |
|
986 | - 'hide_alter_empty' => 1, |
|
987 | - 'exclude' => 0, |
|
988 | - 'id' => 'country', |
|
989 | - 'table' => 'user', |
|
990 | - 'field' => 'country', |
|
991 | - 'override' => array( |
|
982 | + ), |
|
983 | + 'empty' => '', |
|
984 | + 'hide_empty' => 0, |
|
985 | + 'empty_zero' => 0, |
|
986 | + 'hide_alter_empty' => 1, |
|
987 | + 'exclude' => 0, |
|
988 | + 'id' => 'country', |
|
989 | + 'table' => 'user', |
|
990 | + 'field' => 'country', |
|
991 | + 'override' => array( |
|
992 | 992 | 'button' => 'Use default', |
993 | - ), |
|
994 | - 'relationship' => 'none', |
|
993 | + ), |
|
994 | + 'relationship' => 'none', |
|
995 | 995 | ), |
996 | 996 | 'create_time' => array( |
997 | - 'label' => 'Member Since', |
|
998 | - 'alter' => array( |
|
997 | + 'label' => 'Member Since', |
|
998 | + 'alter' => array( |
|
999 | 999 | 'alter_text' => 0, |
1000 | 1000 | 'text' => '', |
1001 | 1001 | 'make_link' => 0, |
@@ -1014,25 +1014,25 @@ discard block |
||
1014 | 1014 | 'ellipsis' => 1, |
1015 | 1015 | 'html' => 0, |
1016 | 1016 | 'strip_tags' => 0, |
1017 | - ), |
|
1018 | - 'empty' => '', |
|
1019 | - 'hide_empty' => 0, |
|
1020 | - 'empty_zero' => 0, |
|
1021 | - 'hide_alter_empty' => 1, |
|
1022 | - 'date_format' => 'custom', |
|
1023 | - 'custom_date_format' => 'j M Y G:i:s T', |
|
1024 | - 'exclude' => 0, |
|
1025 | - 'id' => 'create_time', |
|
1026 | - 'table' => 'user', |
|
1027 | - 'field' => 'create_time', |
|
1028 | - 'relationship' => 'none', |
|
1029 | - 'override' => array( |
|
1017 | + ), |
|
1018 | + 'empty' => '', |
|
1019 | + 'hide_empty' => 0, |
|
1020 | + 'empty_zero' => 0, |
|
1021 | + 'hide_alter_empty' => 1, |
|
1022 | + 'date_format' => 'custom', |
|
1023 | + 'custom_date_format' => 'j M Y G:i:s T', |
|
1024 | + 'exclude' => 0, |
|
1025 | + 'id' => 'create_time', |
|
1026 | + 'table' => 'user', |
|
1027 | + 'field' => 'create_time', |
|
1028 | + 'relationship' => 'none', |
|
1029 | + 'override' => array( |
|
1030 | 1030 | 'button' => 'Use default', |
1031 | - ), |
|
1031 | + ), |
|
1032 | 1032 | ), |
1033 | 1033 | 'phpcode_1' => array( |
1034 | - 'label' => '', |
|
1035 | - 'alter' => array( |
|
1034 | + 'label' => '', |
|
1035 | + 'alter' => array( |
|
1036 | 1036 | 'alter_text' => 0, |
1037 | 1037 | 'text' => '', |
1038 | 1038 | 'make_link' => 0, |
@@ -1051,12 +1051,12 @@ discard block |
||
1051 | 1051 | 'ellipsis' => 1, |
1052 | 1052 | 'html' => 0, |
1053 | 1053 | 'strip_tags' => 0, |
1054 | - ), |
|
1055 | - 'empty' => '', |
|
1056 | - 'hide_empty' => 0, |
|
1057 | - 'empty_zero' => 0, |
|
1058 | - 'hide_alter_empty' => 1, |
|
1059 | - 'value' => '<?php |
|
1054 | + ), |
|
1055 | + 'empty' => '', |
|
1056 | + 'hide_empty' => 0, |
|
1057 | + 'empty_zero' => 0, |
|
1058 | + 'hide_alter_empty' => 1, |
|
1059 | + 'value' => '<?php |
|
1060 | 1060 | global $user; |
1061 | 1061 | $team_id = arg(2); |
1062 | 1062 | $user_id = boincuser_lookup_uid($data->id); |
@@ -1064,36 +1064,36 @@ discard block |
||
1064 | 1064 | echo l(bts(\'Remove\', array(), NULL, \'boinc:remove-team-member\'), "community/teams/{$team_id}/edit/members/remove/{$user_id}"); |
1065 | 1065 | } |
1066 | 1066 | ?>', |
1067 | - 'exclude' => 1, |
|
1068 | - 'id' => 'phpcode_1', |
|
1069 | - 'table' => 'customfield', |
|
1070 | - 'field' => 'phpcode', |
|
1071 | - 'override' => array( |
|
1067 | + 'exclude' => 1, |
|
1068 | + 'id' => 'phpcode_1', |
|
1069 | + 'table' => 'customfield', |
|
1070 | + 'field' => 'phpcode', |
|
1071 | + 'override' => array( |
|
1072 | 1072 | 'button' => 'Use default', |
1073 | - ), |
|
1074 | - 'relationship' => 'none', |
|
1073 | + ), |
|
1074 | + 'relationship' => 'none', |
|
1075 | 1075 | ), |
1076 | - )); |
|
1077 | - $handler->override_option('arguments', array( |
|
1076 | + )); |
|
1077 | + $handler->override_option('arguments', array( |
|
1078 | 1078 | 'teamid' => array( |
1079 | - 'default_action' => 'empty', |
|
1080 | - 'style_plugin' => 'default_summary', |
|
1081 | - 'style_options' => array(), |
|
1082 | - 'wildcard' => 'all', |
|
1083 | - 'wildcard_substitution' => 'All', |
|
1084 | - 'title' => '', |
|
1085 | - 'breadcrumb' => '', |
|
1086 | - 'default_argument_type' => 'fixed', |
|
1087 | - 'default_argument' => '', |
|
1088 | - 'validate_type' => 'numeric', |
|
1089 | - 'validate_fail' => 'not found', |
|
1090 | - 'break_phrase' => 0, |
|
1091 | - 'not' => 0, |
|
1092 | - 'id' => 'teamid', |
|
1093 | - 'table' => 'user', |
|
1094 | - 'field' => 'teamid', |
|
1095 | - 'validate_user_argument_type' => 'uid', |
|
1096 | - 'validate_user_roles' => array( |
|
1079 | + 'default_action' => 'empty', |
|
1080 | + 'style_plugin' => 'default_summary', |
|
1081 | + 'style_options' => array(), |
|
1082 | + 'wildcard' => 'all', |
|
1083 | + 'wildcard_substitution' => 'All', |
|
1084 | + 'title' => '', |
|
1085 | + 'breadcrumb' => '', |
|
1086 | + 'default_argument_type' => 'fixed', |
|
1087 | + 'default_argument' => '', |
|
1088 | + 'validate_type' => 'numeric', |
|
1089 | + 'validate_fail' => 'not found', |
|
1090 | + 'break_phrase' => 0, |
|
1091 | + 'not' => 0, |
|
1092 | + 'id' => 'teamid', |
|
1093 | + 'table' => 'user', |
|
1094 | + 'field' => 'teamid', |
|
1095 | + 'validate_user_argument_type' => 'uid', |
|
1096 | + 'validate_user_roles' => array( |
|
1097 | 1097 | 2 => 0, |
1098 | 1098 | 3519698132 => 0, |
1099 | 1099 | 1110965548 => 0, |
@@ -1102,10 +1102,10 @@ discard block |
||
1102 | 1102 | 268174006 => 0, |
1103 | 1103 | 1271379760 => 0, |
1104 | 1104 | 933038561 => 0, |
1105 | - ), |
|
1106 | - 'me_redirect' => 0, |
|
1107 | - 'me_validate_user_argument_type' => 'uid', |
|
1108 | - 'me_validate_user_roles' => array( |
|
1105 | + ), |
|
1106 | + 'me_redirect' => 0, |
|
1107 | + 'me_validate_user_argument_type' => 'uid', |
|
1108 | + 'me_validate_user_roles' => array( |
|
1109 | 1109 | 2 => 0, |
1110 | 1110 | 3519698132 => 0, |
1111 | 1111 | 1110965548 => 0, |
@@ -1114,23 +1114,23 @@ discard block |
||
1114 | 1114 | 268174006 => 0, |
1115 | 1115 | 1271379760 => 0, |
1116 | 1116 | 933038561 => 0, |
1117 | - ), |
|
1118 | - 'override' => array( |
|
1117 | + ), |
|
1118 | + 'override' => array( |
|
1119 | 1119 | 'button' => 'Use default', |
1120 | - ), |
|
1121 | - 'relationship' => 'none', |
|
1122 | - 'default_options_div_prefix' => '', |
|
1123 | - 'default_taxonomy_tid_term_page' => 0, |
|
1124 | - 'default_taxonomy_tid_node' => 0, |
|
1125 | - 'default_taxonomy_tid_limit' => 0, |
|
1126 | - 'default_taxonomy_tid_vids' => array( |
|
1120 | + ), |
|
1121 | + 'relationship' => 'none', |
|
1122 | + 'default_options_div_prefix' => '', |
|
1123 | + 'default_taxonomy_tid_term_page' => 0, |
|
1124 | + 'default_taxonomy_tid_node' => 0, |
|
1125 | + 'default_taxonomy_tid_limit' => 0, |
|
1126 | + 'default_taxonomy_tid_vids' => array( |
|
1127 | 1127 | 1 => 0, |
1128 | 1128 | 2 => 0, |
1129 | - ), |
|
1130 | - 'default_argument_user' => 0, |
|
1131 | - 'default_argument_fixed' => '', |
|
1132 | - 'default_argument_php' => '', |
|
1133 | - 'validate_argument_node_type' => array( |
|
1129 | + ), |
|
1130 | + 'default_argument_user' => 0, |
|
1131 | + 'default_argument_fixed' => '', |
|
1132 | + 'default_argument_php' => '', |
|
1133 | + 'validate_argument_node_type' => array( |
|
1134 | 1134 | 'page' => 0, |
1135 | 1135 | 'news' => 0, |
1136 | 1136 | 'profile' => 0, |
@@ -1138,82 +1138,82 @@ discard block |
||
1138 | 1138 | 'panel' => 0, |
1139 | 1139 | 'story' => 0, |
1140 | 1140 | 'team' => 0, |
1141 | - ), |
|
1142 | - 'validate_argument_node_access' => 0, |
|
1143 | - 'validate_argument_nid_type' => 'nid', |
|
1144 | - 'validate_argument_vocabulary' => array( |
|
1141 | + ), |
|
1142 | + 'validate_argument_node_access' => 0, |
|
1143 | + 'validate_argument_nid_type' => 'nid', |
|
1144 | + 'validate_argument_vocabulary' => array( |
|
1145 | 1145 | 1 => 0, |
1146 | 1146 | 2 => 0, |
1147 | - ), |
|
1148 | - 'validate_argument_type' => 'tid', |
|
1149 | - 'validate_argument_transform' => 0, |
|
1150 | - 'validate_user_restrict_roles' => 0, |
|
1151 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
1152 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
1153 | - 'validate_argument_node_flag_id_type' => 'id', |
|
1154 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
1155 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
1156 | - 'validate_argument_user_flag_id_type' => 'id', |
|
1157 | - 'validate_argument_php' => '', |
|
1158 | - 'me_validate_user_restrict_roles' => 0, |
|
1159 | - ), |
|
1160 | - )); |
|
1161 | - $handler->override_option('use_pager', '1'); |
|
1162 | - $handler->override_option('style_plugin', 'table'); |
|
1163 | - $handler->override_option('style_options', array( |
|
1147 | + ), |
|
1148 | + 'validate_argument_type' => 'tid', |
|
1149 | + 'validate_argument_transform' => 0, |
|
1150 | + 'validate_user_restrict_roles' => 0, |
|
1151 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
1152 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
1153 | + 'validate_argument_node_flag_id_type' => 'id', |
|
1154 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
1155 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
1156 | + 'validate_argument_user_flag_id_type' => 'id', |
|
1157 | + 'validate_argument_php' => '', |
|
1158 | + 'me_validate_user_restrict_roles' => 0, |
|
1159 | + ), |
|
1160 | + )); |
|
1161 | + $handler->override_option('use_pager', '1'); |
|
1162 | + $handler->override_option('style_plugin', 'table'); |
|
1163 | + $handler->override_option('style_options', array( |
|
1164 | 1164 | 'grouping' => '', |
1165 | 1165 | 'override' => 1, |
1166 | 1166 | 'sticky' => 1, |
1167 | 1167 | 'order' => 'desc', |
1168 | 1168 | 'summary' => '', |
1169 | 1169 | 'columns' => array( |
1170 | - 'id' => 'id', |
|
1171 | - 'name' => 'name', |
|
1172 | - 'email_addr' => 'email_addr', |
|
1173 | - 'total_credit' => 'total_credit', |
|
1174 | - 'expavg_credit' => 'expavg_credit', |
|
1175 | - 'country' => 'country', |
|
1176 | - 'create_time' => 'create_time', |
|
1170 | + 'id' => 'id', |
|
1171 | + 'name' => 'name', |
|
1172 | + 'email_addr' => 'email_addr', |
|
1173 | + 'total_credit' => 'total_credit', |
|
1174 | + 'expavg_credit' => 'expavg_credit', |
|
1175 | + 'country' => 'country', |
|
1176 | + 'create_time' => 'create_time', |
|
1177 | 1177 | ), |
1178 | 1178 | 'info' => array( |
1179 | - 'id' => array( |
|
1179 | + 'id' => array( |
|
1180 | 1180 | 'sortable' => 0, |
1181 | 1181 | 'separator' => '', |
1182 | - ), |
|
1183 | - 'name' => array( |
|
1182 | + ), |
|
1183 | + 'name' => array( |
|
1184 | 1184 | 'sortable' => 1, |
1185 | 1185 | 'separator' => '', |
1186 | - ), |
|
1187 | - 'email_addr' => array( |
|
1186 | + ), |
|
1187 | + 'email_addr' => array( |
|
1188 | 1188 | 'sortable' => 1, |
1189 | 1189 | 'separator' => '', |
1190 | - ), |
|
1191 | - 'total_credit' => array( |
|
1190 | + ), |
|
1191 | + 'total_credit' => array( |
|
1192 | 1192 | 'sortable' => 1, |
1193 | 1193 | 'separator' => '', |
1194 | - ), |
|
1195 | - 'expavg_credit' => array( |
|
1194 | + ), |
|
1195 | + 'expavg_credit' => array( |
|
1196 | 1196 | 'sortable' => 1, |
1197 | 1197 | 'separator' => '', |
1198 | - ), |
|
1199 | - 'country' => array( |
|
1198 | + ), |
|
1199 | + 'country' => array( |
|
1200 | 1200 | 'sortable' => 1, |
1201 | 1201 | 'separator' => '', |
1202 | - ), |
|
1203 | - 'create_time' => array( |
|
1202 | + ), |
|
1203 | + 'create_time' => array( |
|
1204 | 1204 | 'sortable' => 0, |
1205 | 1205 | 'separator' => '', |
1206 | - ), |
|
1206 | + ), |
|
1207 | 1207 | ), |
1208 | 1208 | 'default' => 'expavg_credit', |
1209 | - )); |
|
1210 | - $handler->override_option('pane_title', 'Team member list with email'); |
|
1211 | - $handler->override_option('pane_description', ''); |
|
1212 | - $handler->override_option('pane_category', array( |
|
1209 | + )); |
|
1210 | + $handler->override_option('pane_title', 'Team member list with email'); |
|
1211 | + $handler->override_option('pane_description', ''); |
|
1212 | + $handler->override_option('pane_category', array( |
|
1213 | 1213 | 'name' => 'View panes', |
1214 | 1214 | 'weight' => 0, |
1215 | - )); |
|
1216 | - $handler->override_option('allow', array( |
|
1215 | + )); |
|
1216 | + $handler->override_option('allow', array( |
|
1217 | 1217 | 'use_pager' => 0, |
1218 | 1218 | 'items_per_page' => 'items_per_page', |
1219 | 1219 | 'offset' => 0, |
@@ -1223,24 +1223,24 @@ discard block |
||
1223 | 1223 | 'title_override' => 'title_override', |
1224 | 1224 | 'exposed_form' => 0, |
1225 | 1225 | 'fields_override' => 0, |
1226 | - )); |
|
1227 | - $handler->override_option('argument_input', array( |
|
1226 | + )); |
|
1227 | + $handler->override_option('argument_input', array( |
|
1228 | 1228 | 'teamid' => array( |
1229 | - 'type' => 'panel', |
|
1230 | - 'context' => 'term.description', |
|
1231 | - 'context_optional' => 0, |
|
1232 | - 'panel' => '0', |
|
1233 | - 'fixed' => '', |
|
1234 | - 'label' => 'BOINC: Team ID', |
|
1235 | - ), |
|
1236 | - )); |
|
1237 | - $handler->override_option('link_to_view', 0); |
|
1238 | - $handler->override_option('inherit_panels_path', 0); |
|
1239 | - $handler = $view->new_display('panel_pane', 'Team email list', 'panel_pane_3'); |
|
1240 | - $handler->override_option('fields', array( |
|
1229 | + 'type' => 'panel', |
|
1230 | + 'context' => 'term.description', |
|
1231 | + 'context_optional' => 0, |
|
1232 | + 'panel' => '0', |
|
1233 | + 'fixed' => '', |
|
1234 | + 'label' => 'BOINC: Team ID', |
|
1235 | + ), |
|
1236 | + )); |
|
1237 | + $handler->override_option('link_to_view', 0); |
|
1238 | + $handler->override_option('inherit_panels_path', 0); |
|
1239 | + $handler = $view->new_display('panel_pane', 'Team email list', 'panel_pane_3'); |
|
1240 | + $handler->override_option('fields', array( |
|
1241 | 1241 | 'id' => array( |
1242 | - 'label' => 'Id', |
|
1243 | - 'alter' => array( |
|
1242 | + 'label' => 'Id', |
|
1243 | + 'alter' => array( |
|
1244 | 1244 | 'alter_text' => 0, |
1245 | 1245 | 'text' => '', |
1246 | 1246 | 'make_link' => 0, |
@@ -1259,32 +1259,32 @@ discard block |
||
1259 | 1259 | 'ellipsis' => 1, |
1260 | 1260 | 'html' => 0, |
1261 | 1261 | 'strip_tags' => 0, |
1262 | - ), |
|
1263 | - 'empty' => '', |
|
1264 | - 'hide_empty' => 0, |
|
1265 | - 'empty_zero' => 0, |
|
1266 | - 'hide_alter_empty' => 1, |
|
1267 | - 'set_precision' => FALSE, |
|
1268 | - 'precision' => 0, |
|
1269 | - 'decimal' => '.', |
|
1270 | - 'separator' => '', |
|
1271 | - 'format_plural' => 0, |
|
1272 | - 'format_plural_singular' => '1', |
|
1273 | - 'format_plural_plural' => '@count', |
|
1274 | - 'prefix' => '', |
|
1275 | - 'suffix' => '', |
|
1276 | - 'exclude' => 1, |
|
1277 | - 'id' => 'id', |
|
1278 | - 'table' => 'user', |
|
1279 | - 'field' => 'id', |
|
1280 | - 'relationship' => 'none', |
|
1281 | - 'override' => array( |
|
1262 | + ), |
|
1263 | + 'empty' => '', |
|
1264 | + 'hide_empty' => 0, |
|
1265 | + 'empty_zero' => 0, |
|
1266 | + 'hide_alter_empty' => 1, |
|
1267 | + 'set_precision' => FALSE, |
|
1268 | + 'precision' => 0, |
|
1269 | + 'decimal' => '.', |
|
1270 | + 'separator' => '', |
|
1271 | + 'format_plural' => 0, |
|
1272 | + 'format_plural_singular' => '1', |
|
1273 | + 'format_plural_plural' => '@count', |
|
1274 | + 'prefix' => '', |
|
1275 | + 'suffix' => '', |
|
1276 | + 'exclude' => 1, |
|
1277 | + 'id' => 'id', |
|
1278 | + 'table' => 'user', |
|
1279 | + 'field' => 'id', |
|
1280 | + 'relationship' => 'none', |
|
1281 | + 'override' => array( |
|
1282 | 1282 | 'button' => 'Use default', |
1283 | - ), |
|
1283 | + ), |
|
1284 | 1284 | ), |
1285 | 1285 | 'name' => array( |
1286 | - 'label' => 'Name', |
|
1287 | - 'alter' => array( |
|
1286 | + 'label' => 'Name', |
|
1287 | + 'alter' => array( |
|
1288 | 1288 | 'alter_text' => 0, |
1289 | 1289 | 'text' => '', |
1290 | 1290 | 'make_link' => 0, |
@@ -1303,23 +1303,23 @@ discard block |
||
1303 | 1303 | 'ellipsis' => 1, |
1304 | 1304 | 'html' => 0, |
1305 | 1305 | 'strip_tags' => 0, |
1306 | - ), |
|
1307 | - 'empty' => '', |
|
1308 | - 'hide_empty' => 0, |
|
1309 | - 'empty_zero' => 0, |
|
1310 | - 'hide_alter_empty' => 1, |
|
1311 | - 'exclude' => 1, |
|
1312 | - 'id' => 'name', |
|
1313 | - 'table' => 'user', |
|
1314 | - 'field' => 'name', |
|
1315 | - 'relationship' => 'none', |
|
1316 | - 'override' => array( |
|
1306 | + ), |
|
1307 | + 'empty' => '', |
|
1308 | + 'hide_empty' => 0, |
|
1309 | + 'empty_zero' => 0, |
|
1310 | + 'hide_alter_empty' => 1, |
|
1311 | + 'exclude' => 1, |
|
1312 | + 'id' => 'name', |
|
1313 | + 'table' => 'user', |
|
1314 | + 'field' => 'name', |
|
1315 | + 'relationship' => 'none', |
|
1316 | + 'override' => array( |
|
1317 | 1317 | 'button' => 'Use default', |
1318 | - ), |
|
1318 | + ), |
|
1319 | 1319 | ), |
1320 | 1320 | 'email_addr' => array( |
1321 | - 'label' => '', |
|
1322 | - 'alter' => array( |
|
1321 | + 'label' => '', |
|
1322 | + 'alter' => array( |
|
1323 | 1323 | 'alter_text' => 1, |
1324 | 1324 | 'text' => '[name] <[email_addr]>', |
1325 | 1325 | 'make_link' => 0, |
@@ -1338,23 +1338,23 @@ discard block |
||
1338 | 1338 | 'ellipsis' => 1, |
1339 | 1339 | 'html' => 0, |
1340 | 1340 | 'strip_tags' => 0, |
1341 | - ), |
|
1342 | - 'empty' => '', |
|
1343 | - 'hide_empty' => 0, |
|
1344 | - 'empty_zero' => 0, |
|
1345 | - 'hide_alter_empty' => 1, |
|
1346 | - 'exclude' => 0, |
|
1347 | - 'id' => 'email_addr', |
|
1348 | - 'table' => 'user', |
|
1349 | - 'field' => 'email_addr', |
|
1350 | - 'relationship' => 'none', |
|
1351 | - 'override' => array( |
|
1341 | + ), |
|
1342 | + 'empty' => '', |
|
1343 | + 'hide_empty' => 0, |
|
1344 | + 'empty_zero' => 0, |
|
1345 | + 'hide_alter_empty' => 1, |
|
1346 | + 'exclude' => 0, |
|
1347 | + 'id' => 'email_addr', |
|
1348 | + 'table' => 'user', |
|
1349 | + 'field' => 'email_addr', |
|
1350 | + 'relationship' => 'none', |
|
1351 | + 'override' => array( |
|
1352 | 1352 | 'button' => 'Use default', |
1353 | - ), |
|
1353 | + ), |
|
1354 | 1354 | ), |
1355 | 1355 | 'create_time' => array( |
1356 | - 'label' => 'Member since', |
|
1357 | - 'alter' => array( |
|
1356 | + 'label' => 'Member since', |
|
1357 | + 'alter' => array( |
|
1358 | 1358 | 'alter_text' => 0, |
1359 | 1359 | 'text' => '', |
1360 | 1360 | 'make_link' => 0, |
@@ -1373,43 +1373,43 @@ discard block |
||
1373 | 1373 | 'ellipsis' => 1, |
1374 | 1374 | 'html' => 0, |
1375 | 1375 | 'strip_tags' => 0, |
1376 | - ), |
|
1377 | - 'empty' => '', |
|
1378 | - 'hide_empty' => 0, |
|
1379 | - 'empty_zero' => 0, |
|
1380 | - 'hide_alter_empty' => 1, |
|
1381 | - 'date_format' => 'small', |
|
1382 | - 'custom_date_format' => '', |
|
1383 | - 'exclude' => 1, |
|
1384 | - 'id' => 'create_time', |
|
1385 | - 'table' => 'user', |
|
1386 | - 'field' => 'create_time', |
|
1387 | - 'relationship' => 'none', |
|
1388 | - 'override' => array( |
|
1376 | + ), |
|
1377 | + 'empty' => '', |
|
1378 | + 'hide_empty' => 0, |
|
1379 | + 'empty_zero' => 0, |
|
1380 | + 'hide_alter_empty' => 1, |
|
1381 | + 'date_format' => 'small', |
|
1382 | + 'custom_date_format' => '', |
|
1383 | + 'exclude' => 1, |
|
1384 | + 'id' => 'create_time', |
|
1385 | + 'table' => 'user', |
|
1386 | + 'field' => 'create_time', |
|
1387 | + 'relationship' => 'none', |
|
1388 | + 'override' => array( |
|
1389 | 1389 | 'button' => 'Use default', |
1390 | - ), |
|
1390 | + ), |
|
1391 | 1391 | ), |
1392 | - )); |
|
1393 | - $handler->override_option('arguments', array( |
|
1392 | + )); |
|
1393 | + $handler->override_option('arguments', array( |
|
1394 | 1394 | 'teamid' => array( |
1395 | - 'default_action' => 'empty', |
|
1396 | - 'style_plugin' => 'default_summary', |
|
1397 | - 'style_options' => array(), |
|
1398 | - 'wildcard' => 'all', |
|
1399 | - 'wildcard_substitution' => 'All', |
|
1400 | - 'title' => '', |
|
1401 | - 'breadcrumb' => '', |
|
1402 | - 'default_argument_type' => 'fixed', |
|
1403 | - 'default_argument' => '', |
|
1404 | - 'validate_type' => 'numeric', |
|
1405 | - 'validate_fail' => 'not found', |
|
1406 | - 'break_phrase' => 0, |
|
1407 | - 'not' => 0, |
|
1408 | - 'id' => 'teamid', |
|
1409 | - 'table' => 'user', |
|
1410 | - 'field' => 'teamid', |
|
1411 | - 'validate_user_argument_type' => 'uid', |
|
1412 | - 'validate_user_roles' => array( |
|
1395 | + 'default_action' => 'empty', |
|
1396 | + 'style_plugin' => 'default_summary', |
|
1397 | + 'style_options' => array(), |
|
1398 | + 'wildcard' => 'all', |
|
1399 | + 'wildcard_substitution' => 'All', |
|
1400 | + 'title' => '', |
|
1401 | + 'breadcrumb' => '', |
|
1402 | + 'default_argument_type' => 'fixed', |
|
1403 | + 'default_argument' => '', |
|
1404 | + 'validate_type' => 'numeric', |
|
1405 | + 'validate_fail' => 'not found', |
|
1406 | + 'break_phrase' => 0, |
|
1407 | + 'not' => 0, |
|
1408 | + 'id' => 'teamid', |
|
1409 | + 'table' => 'user', |
|
1410 | + 'field' => 'teamid', |
|
1411 | + 'validate_user_argument_type' => 'uid', |
|
1412 | + 'validate_user_roles' => array( |
|
1413 | 1413 | 2 => 0, |
1414 | 1414 | 3519698132 => 0, |
1415 | 1415 | 1110965548 => 0, |
@@ -1418,10 +1418,10 @@ discard block |
||
1418 | 1418 | 268174006 => 0, |
1419 | 1419 | 1271379760 => 0, |
1420 | 1420 | 933038561 => 0, |
1421 | - ), |
|
1422 | - 'me_redirect' => 0, |
|
1423 | - 'me_validate_user_argument_type' => 'uid', |
|
1424 | - 'me_validate_user_roles' => array( |
|
1421 | + ), |
|
1422 | + 'me_redirect' => 0, |
|
1423 | + 'me_validate_user_argument_type' => 'uid', |
|
1424 | + 'me_validate_user_roles' => array( |
|
1425 | 1425 | 2 => 0, |
1426 | 1426 | 3519698132 => 0, |
1427 | 1427 | 1110965548 => 0, |
@@ -1430,23 +1430,23 @@ discard block |
||
1430 | 1430 | 268174006 => 0, |
1431 | 1431 | 1271379760 => 0, |
1432 | 1432 | 933038561 => 0, |
1433 | - ), |
|
1434 | - 'override' => array( |
|
1433 | + ), |
|
1434 | + 'override' => array( |
|
1435 | 1435 | 'button' => 'Use default', |
1436 | - ), |
|
1437 | - 'relationship' => 'none', |
|
1438 | - 'default_options_div_prefix' => '', |
|
1439 | - 'default_taxonomy_tid_term_page' => 0, |
|
1440 | - 'default_taxonomy_tid_node' => 0, |
|
1441 | - 'default_taxonomy_tid_limit' => 0, |
|
1442 | - 'default_taxonomy_tid_vids' => array( |
|
1436 | + ), |
|
1437 | + 'relationship' => 'none', |
|
1438 | + 'default_options_div_prefix' => '', |
|
1439 | + 'default_taxonomy_tid_term_page' => 0, |
|
1440 | + 'default_taxonomy_tid_node' => 0, |
|
1441 | + 'default_taxonomy_tid_limit' => 0, |
|
1442 | + 'default_taxonomy_tid_vids' => array( |
|
1443 | 1443 | 1 => 0, |
1444 | 1444 | 2 => 0, |
1445 | - ), |
|
1446 | - 'default_argument_user' => 0, |
|
1447 | - 'default_argument_fixed' => '', |
|
1448 | - 'default_argument_php' => '', |
|
1449 | - 'validate_argument_node_type' => array( |
|
1445 | + ), |
|
1446 | + 'default_argument_user' => 0, |
|
1447 | + 'default_argument_fixed' => '', |
|
1448 | + 'default_argument_php' => '', |
|
1449 | + 'validate_argument_node_type' => array( |
|
1450 | 1450 | 'page' => 0, |
1451 | 1451 | 'news' => 0, |
1452 | 1452 | 'profile' => 0, |
@@ -1454,57 +1454,57 @@ discard block |
||
1454 | 1454 | 'panel' => 0, |
1455 | 1455 | 'story' => 0, |
1456 | 1456 | 'team' => 0, |
1457 | - ), |
|
1458 | - 'validate_argument_node_access' => 0, |
|
1459 | - 'validate_argument_nid_type' => 'nid', |
|
1460 | - 'validate_argument_vocabulary' => array( |
|
1457 | + ), |
|
1458 | + 'validate_argument_node_access' => 0, |
|
1459 | + 'validate_argument_nid_type' => 'nid', |
|
1460 | + 'validate_argument_vocabulary' => array( |
|
1461 | 1461 | 1 => 0, |
1462 | 1462 | 2 => 0, |
1463 | - ), |
|
1464 | - 'validate_argument_type' => 'tid', |
|
1465 | - 'validate_argument_transform' => 0, |
|
1466 | - 'validate_user_restrict_roles' => 0, |
|
1467 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
1468 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
1469 | - 'validate_argument_node_flag_id_type' => 'id', |
|
1470 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
1471 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
1472 | - 'validate_argument_user_flag_id_type' => 'id', |
|
1473 | - 'validate_argument_php' => '', |
|
1474 | - 'me_validate_user_restrict_roles' => 0, |
|
1475 | - ), |
|
1476 | - )); |
|
1477 | - $handler->override_option('filters', array( |
|
1463 | + ), |
|
1464 | + 'validate_argument_type' => 'tid', |
|
1465 | + 'validate_argument_transform' => 0, |
|
1466 | + 'validate_user_restrict_roles' => 0, |
|
1467 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
1468 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
1469 | + 'validate_argument_node_flag_id_type' => 'id', |
|
1470 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
1471 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
1472 | + 'validate_argument_user_flag_id_type' => 'id', |
|
1473 | + 'validate_argument_php' => '', |
|
1474 | + 'me_validate_user_restrict_roles' => 0, |
|
1475 | + ), |
|
1476 | + )); |
|
1477 | + $handler->override_option('filters', array( |
|
1478 | 1478 | 'send_email' => array( |
1479 | - 'operator' => '=', |
|
1480 | - 'value' => array( |
|
1479 | + 'operator' => '=', |
|
1480 | + 'value' => array( |
|
1481 | 1481 | 'value' => '1', |
1482 | 1482 | 'min' => '', |
1483 | 1483 | 'max' => '', |
1484 | - ), |
|
1485 | - 'group' => '0', |
|
1486 | - 'exposed' => FALSE, |
|
1487 | - 'expose' => array( |
|
1484 | + ), |
|
1485 | + 'group' => '0', |
|
1486 | + 'exposed' => FALSE, |
|
1487 | + 'expose' => array( |
|
1488 | 1488 | 'operator' => FALSE, |
1489 | 1489 | 'label' => '', |
1490 | - ), |
|
1491 | - 'id' => 'send_email', |
|
1492 | - 'table' => 'user', |
|
1493 | - 'field' => 'send_email', |
|
1494 | - 'override' => array( |
|
1490 | + ), |
|
1491 | + 'id' => 'send_email', |
|
1492 | + 'table' => 'user', |
|
1493 | + 'field' => 'send_email', |
|
1494 | + 'override' => array( |
|
1495 | 1495 | 'button' => 'Use default', |
1496 | - ), |
|
1497 | - 'relationship' => 'none', |
|
1498 | - ), |
|
1499 | - )); |
|
1500 | - $handler->override_option('use_pager', '1'); |
|
1501 | - $handler->override_option('pane_title', 'Team email list'); |
|
1502 | - $handler->override_option('pane_description', ''); |
|
1503 | - $handler->override_option('pane_category', array( |
|
1496 | + ), |
|
1497 | + 'relationship' => 'none', |
|
1498 | + ), |
|
1499 | + )); |
|
1500 | + $handler->override_option('use_pager', '1'); |
|
1501 | + $handler->override_option('pane_title', 'Team email list'); |
|
1502 | + $handler->override_option('pane_description', ''); |
|
1503 | + $handler->override_option('pane_category', array( |
|
1504 | 1504 | 'name' => 'View panes', |
1505 | 1505 | 'weight' => 0, |
1506 | - )); |
|
1507 | - $handler->override_option('allow', array( |
|
1506 | + )); |
|
1507 | + $handler->override_option('allow', array( |
|
1508 | 1508 | 'use_pager' => 0, |
1509 | 1509 | 'items_per_page' => 'items_per_page', |
1510 | 1510 | 'offset' => 0, |
@@ -1514,24 +1514,24 @@ discard block |
||
1514 | 1514 | 'title_override' => 'title_override', |
1515 | 1515 | 'exposed_form' => 0, |
1516 | 1516 | 'fields_override' => 0, |
1517 | - )); |
|
1518 | - $handler->override_option('argument_input', array( |
|
1517 | + )); |
|
1518 | + $handler->override_option('argument_input', array( |
|
1519 | 1519 | 'teamid' => array( |
1520 | - 'type' => 'panel', |
|
1521 | - 'context' => 'term.description', |
|
1522 | - 'context_optional' => 0, |
|
1523 | - 'panel' => '0', |
|
1524 | - 'fixed' => '', |
|
1525 | - 'label' => 'BOINC: Team ID', |
|
1526 | - ), |
|
1527 | - )); |
|
1528 | - $handler->override_option('link_to_view', 0); |
|
1529 | - $handler->override_option('inherit_panels_path', 0); |
|
1530 | - $handler = $view->new_display('panel_pane', 'Team member edit', 'panel_pane_5'); |
|
1531 | - $handler->override_option('fields', array( |
|
1520 | + 'type' => 'panel', |
|
1521 | + 'context' => 'term.description', |
|
1522 | + 'context_optional' => 0, |
|
1523 | + 'panel' => '0', |
|
1524 | + 'fixed' => '', |
|
1525 | + 'label' => 'BOINC: Team ID', |
|
1526 | + ), |
|
1527 | + )); |
|
1528 | + $handler->override_option('link_to_view', 0); |
|
1529 | + $handler->override_option('inherit_panels_path', 0); |
|
1530 | + $handler = $view->new_display('panel_pane', 'Team member edit', 'panel_pane_5'); |
|
1531 | + $handler->override_option('fields', array( |
|
1532 | 1532 | 'id' => array( |
1533 | - 'label' => 'Id', |
|
1534 | - 'alter' => array( |
|
1533 | + 'label' => 'Id', |
|
1534 | + 'alter' => array( |
|
1535 | 1535 | 'alter_text' => 0, |
1536 | 1536 | 'text' => '', |
1537 | 1537 | 'make_link' => 0, |
@@ -1550,32 +1550,32 @@ discard block |
||
1550 | 1550 | 'ellipsis' => 1, |
1551 | 1551 | 'html' => 0, |
1552 | 1552 | 'strip_tags' => 0, |
1553 | - ), |
|
1554 | - 'empty' => '', |
|
1555 | - 'hide_empty' => 0, |
|
1556 | - 'empty_zero' => 0, |
|
1557 | - 'hide_alter_empty' => 1, |
|
1558 | - 'set_precision' => FALSE, |
|
1559 | - 'precision' => 0, |
|
1560 | - 'decimal' => '.', |
|
1561 | - 'separator' => '', |
|
1562 | - 'format_plural' => 0, |
|
1563 | - 'format_plural_singular' => '1', |
|
1564 | - 'format_plural_plural' => '@count', |
|
1565 | - 'prefix' => '', |
|
1566 | - 'suffix' => '', |
|
1567 | - 'exclude' => 1, |
|
1568 | - 'id' => 'id', |
|
1569 | - 'table' => 'user', |
|
1570 | - 'field' => 'id', |
|
1571 | - 'relationship' => 'none', |
|
1572 | - 'override' => array( |
|
1553 | + ), |
|
1554 | + 'empty' => '', |
|
1555 | + 'hide_empty' => 0, |
|
1556 | + 'empty_zero' => 0, |
|
1557 | + 'hide_alter_empty' => 1, |
|
1558 | + 'set_precision' => FALSE, |
|
1559 | + 'precision' => 0, |
|
1560 | + 'decimal' => '.', |
|
1561 | + 'separator' => '', |
|
1562 | + 'format_plural' => 0, |
|
1563 | + 'format_plural_singular' => '1', |
|
1564 | + 'format_plural_plural' => '@count', |
|
1565 | + 'prefix' => '', |
|
1566 | + 'suffix' => '', |
|
1567 | + 'exclude' => 1, |
|
1568 | + 'id' => 'id', |
|
1569 | + 'table' => 'user', |
|
1570 | + 'field' => 'id', |
|
1571 | + 'relationship' => 'none', |
|
1572 | + 'override' => array( |
|
1573 | 1573 | 'button' => 'Use default', |
1574 | - ), |
|
1574 | + ), |
|
1575 | 1575 | ), |
1576 | 1576 | 'phpcode' => array( |
1577 | - 'label' => 'Uid', |
|
1578 | - 'alter' => array( |
|
1577 | + 'label' => 'Uid', |
|
1578 | + 'alter' => array( |
|
1579 | 1579 | 'alter_text' => 0, |
1580 | 1580 | 'text' => '', |
1581 | 1581 | 'make_link' => 0, |
@@ -1594,26 +1594,26 @@ discard block |
||
1594 | 1594 | 'ellipsis' => 1, |
1595 | 1595 | 'html' => 0, |
1596 | 1596 | 'strip_tags' => 0, |
1597 | - ), |
|
1598 | - 'empty' => '', |
|
1599 | - 'hide_empty' => 0, |
|
1600 | - 'empty_zero' => 0, |
|
1601 | - 'hide_alter_empty' => 1, |
|
1602 | - 'value' => '<?php |
|
1597 | + ), |
|
1598 | + 'empty' => '', |
|
1599 | + 'hide_empty' => 0, |
|
1600 | + 'empty_zero' => 0, |
|
1601 | + 'hide_alter_empty' => 1, |
|
1602 | + 'value' => '<?php |
|
1603 | 1603 | echo boincuser_lookup_uid($data->id); |
1604 | 1604 | ?>', |
1605 | - 'exclude' => 1, |
|
1606 | - 'id' => 'phpcode', |
|
1607 | - 'table' => 'customfield', |
|
1608 | - 'field' => 'phpcode', |
|
1609 | - 'override' => array( |
|
1605 | + 'exclude' => 1, |
|
1606 | + 'id' => 'phpcode', |
|
1607 | + 'table' => 'customfield', |
|
1608 | + 'field' => 'phpcode', |
|
1609 | + 'override' => array( |
|
1610 | 1610 | 'button' => 'Use default', |
1611 | - ), |
|
1612 | - 'relationship' => 'none', |
|
1611 | + ), |
|
1612 | + 'relationship' => 'none', |
|
1613 | 1613 | ), |
1614 | 1614 | 'name' => array( |
1615 | - 'label' => 'Name', |
|
1616 | - 'alter' => array( |
|
1615 | + 'label' => 'Name', |
|
1616 | + 'alter' => array( |
|
1617 | 1617 | 'alter_text' => 0, |
1618 | 1618 | 'text' => '', |
1619 | 1619 | 'make_link' => 0, |
@@ -1632,20 +1632,20 @@ discard block |
||
1632 | 1632 | 'ellipsis' => 1, |
1633 | 1633 | 'html' => 0, |
1634 | 1634 | 'strip_tags' => 0, |
1635 | - ), |
|
1636 | - 'empty' => '', |
|
1637 | - 'hide_empty' => 0, |
|
1638 | - 'empty_zero' => 0, |
|
1639 | - 'hide_alter_empty' => 1, |
|
1640 | - 'exclude' => 0, |
|
1641 | - 'id' => 'name', |
|
1642 | - 'table' => 'user', |
|
1643 | - 'field' => 'name', |
|
1644 | - 'relationship' => 'none', |
|
1635 | + ), |
|
1636 | + 'empty' => '', |
|
1637 | + 'hide_empty' => 0, |
|
1638 | + 'empty_zero' => 0, |
|
1639 | + 'hide_alter_empty' => 1, |
|
1640 | + 'exclude' => 0, |
|
1641 | + 'id' => 'name', |
|
1642 | + 'table' => 'user', |
|
1643 | + 'field' => 'name', |
|
1644 | + 'relationship' => 'none', |
|
1645 | 1645 | ), |
1646 | 1646 | 'total_credit' => array( |
1647 | - 'label' => 'Total Credit', |
|
1648 | - 'alter' => array( |
|
1647 | + 'label' => 'Total Credit', |
|
1648 | + 'alter' => array( |
|
1649 | 1649 | 'alter_text' => 0, |
1650 | 1650 | 'text' => '', |
1651 | 1651 | 'make_link' => 0, |
@@ -1664,32 +1664,32 @@ discard block |
||
1664 | 1664 | 'ellipsis' => 1, |
1665 | 1665 | 'html' => 0, |
1666 | 1666 | 'strip_tags' => 0, |
1667 | - ), |
|
1668 | - 'empty' => '', |
|
1669 | - 'hide_empty' => 0, |
|
1670 | - 'empty_zero' => 0, |
|
1671 | - 'hide_alter_empty' => 1, |
|
1672 | - 'set_precision' => 1, |
|
1673 | - 'precision' => '0', |
|
1674 | - 'decimal' => '.', |
|
1675 | - 'separator' => ',', |
|
1676 | - 'format_plural' => 0, |
|
1677 | - 'format_plural_singular' => '1', |
|
1678 | - 'format_plural_plural' => '@count', |
|
1679 | - 'prefix' => '', |
|
1680 | - 'suffix' => '', |
|
1681 | - 'exclude' => 1, |
|
1682 | - 'id' => 'total_credit', |
|
1683 | - 'table' => 'user', |
|
1684 | - 'field' => 'total_credit', |
|
1685 | - 'relationship' => 'none', |
|
1686 | - 'override' => array( |
|
1667 | + ), |
|
1668 | + 'empty' => '', |
|
1669 | + 'hide_empty' => 0, |
|
1670 | + 'empty_zero' => 0, |
|
1671 | + 'hide_alter_empty' => 1, |
|
1672 | + 'set_precision' => 1, |
|
1673 | + 'precision' => '0', |
|
1674 | + 'decimal' => '.', |
|
1675 | + 'separator' => ',', |
|
1676 | + 'format_plural' => 0, |
|
1677 | + 'format_plural_singular' => '1', |
|
1678 | + 'format_plural_plural' => '@count', |
|
1679 | + 'prefix' => '', |
|
1680 | + 'suffix' => '', |
|
1681 | + 'exclude' => 1, |
|
1682 | + 'id' => 'total_credit', |
|
1683 | + 'table' => 'user', |
|
1684 | + 'field' => 'total_credit', |
|
1685 | + 'relationship' => 'none', |
|
1686 | + 'override' => array( |
|
1687 | 1687 | 'button' => 'Use default', |
1688 | - ), |
|
1688 | + ), |
|
1689 | 1689 | ), |
1690 | 1690 | 'expavg_credit' => array( |
1691 | - 'label' => 'Recent average credit', |
|
1692 | - 'alter' => array( |
|
1691 | + 'label' => 'Recent average credit', |
|
1692 | + 'alter' => array( |
|
1693 | 1693 | 'alter_text' => 0, |
1694 | 1694 | 'text' => '', |
1695 | 1695 | 'make_link' => 0, |
@@ -1708,32 +1708,32 @@ discard block |
||
1708 | 1708 | 'ellipsis' => 1, |
1709 | 1709 | 'html' => 0, |
1710 | 1710 | 'strip_tags' => 0, |
1711 | - ), |
|
1712 | - 'empty' => '', |
|
1713 | - 'hide_empty' => 0, |
|
1714 | - 'empty_zero' => 0, |
|
1715 | - 'hide_alter_empty' => 1, |
|
1716 | - 'set_precision' => 1, |
|
1717 | - 'precision' => '2', |
|
1718 | - 'decimal' => '.', |
|
1719 | - 'separator' => ',', |
|
1720 | - 'format_plural' => 0, |
|
1721 | - 'format_plural_singular' => '1', |
|
1722 | - 'format_plural_plural' => '@count', |
|
1723 | - 'prefix' => '', |
|
1724 | - 'suffix' => '', |
|
1725 | - 'exclude' => 1, |
|
1726 | - 'id' => 'expavg_credit', |
|
1727 | - 'table' => 'user', |
|
1728 | - 'field' => 'expavg_credit', |
|
1729 | - 'relationship' => 'none', |
|
1730 | - 'override' => array( |
|
1711 | + ), |
|
1712 | + 'empty' => '', |
|
1713 | + 'hide_empty' => 0, |
|
1714 | + 'empty_zero' => 0, |
|
1715 | + 'hide_alter_empty' => 1, |
|
1716 | + 'set_precision' => 1, |
|
1717 | + 'precision' => '2', |
|
1718 | + 'decimal' => '.', |
|
1719 | + 'separator' => ',', |
|
1720 | + 'format_plural' => 0, |
|
1721 | + 'format_plural_singular' => '1', |
|
1722 | + 'format_plural_plural' => '@count', |
|
1723 | + 'prefix' => '', |
|
1724 | + 'suffix' => '', |
|
1725 | + 'exclude' => 1, |
|
1726 | + 'id' => 'expavg_credit', |
|
1727 | + 'table' => 'user', |
|
1728 | + 'field' => 'expavg_credit', |
|
1729 | + 'relationship' => 'none', |
|
1730 | + 'override' => array( |
|
1731 | 1731 | 'button' => 'Use default', |
1732 | - ), |
|
1732 | + ), |
|
1733 | 1733 | ), |
1734 | 1734 | 'create_time' => array( |
1735 | - 'label' => 'Member Since', |
|
1736 | - 'alter' => array( |
|
1735 | + 'label' => 'Member Since', |
|
1736 | + 'alter' => array( |
|
1737 | 1737 | 'alter_text' => 0, |
1738 | 1738 | 'text' => '', |
1739 | 1739 | 'make_link' => 0, |
@@ -1752,25 +1752,25 @@ discard block |
||
1752 | 1752 | 'ellipsis' => 1, |
1753 | 1753 | 'html' => 0, |
1754 | 1754 | 'strip_tags' => 0, |
1755 | - ), |
|
1756 | - 'empty' => '', |
|
1757 | - 'hide_empty' => 0, |
|
1758 | - 'empty_zero' => 0, |
|
1759 | - 'hide_alter_empty' => 1, |
|
1760 | - 'date_format' => 'custom', |
|
1761 | - 'custom_date_format' => 'j M Y G:i:s T', |
|
1762 | - 'exclude' => 0, |
|
1763 | - 'id' => 'create_time', |
|
1764 | - 'table' => 'user', |
|
1765 | - 'field' => 'create_time', |
|
1766 | - 'override' => array( |
|
1755 | + ), |
|
1756 | + 'empty' => '', |
|
1757 | + 'hide_empty' => 0, |
|
1758 | + 'empty_zero' => 0, |
|
1759 | + 'hide_alter_empty' => 1, |
|
1760 | + 'date_format' => 'custom', |
|
1761 | + 'custom_date_format' => 'j M Y G:i:s T', |
|
1762 | + 'exclude' => 0, |
|
1763 | + 'id' => 'create_time', |
|
1764 | + 'table' => 'user', |
|
1765 | + 'field' => 'create_time', |
|
1766 | + 'override' => array( |
|
1767 | 1767 | 'button' => 'Use default', |
1768 | - ), |
|
1769 | - 'relationship' => 'none', |
|
1768 | + ), |
|
1769 | + 'relationship' => 'none', |
|
1770 | 1770 | ), |
1771 | 1771 | 'phpcode_1' => array( |
1772 | - 'label' => '', |
|
1773 | - 'alter' => array( |
|
1772 | + 'label' => '', |
|
1773 | + 'alter' => array( |
|
1774 | 1774 | 'alter_text' => 0, |
1775 | 1775 | 'text' => '', |
1776 | 1776 | 'make_link' => 0, |
@@ -1789,12 +1789,12 @@ discard block |
||
1789 | 1789 | 'ellipsis' => 1, |
1790 | 1790 | 'html' => 0, |
1791 | 1791 | 'strip_tags' => 0, |
1792 | - ), |
|
1793 | - 'empty' => '', |
|
1794 | - 'hide_empty' => 0, |
|
1795 | - 'empty_zero' => 0, |
|
1796 | - 'hide_alter_empty' => 1, |
|
1797 | - 'value' => '<?php |
|
1792 | + ), |
|
1793 | + 'empty' => '', |
|
1794 | + 'hide_empty' => 0, |
|
1795 | + 'empty_zero' => 0, |
|
1796 | + 'hide_alter_empty' => 1, |
|
1797 | + 'value' => '<?php |
|
1798 | 1798 | global $user; |
1799 | 1799 | $team_id = arg(2); |
1800 | 1800 | $user_id = boincuser_lookup_uid($data->id); |
@@ -1802,36 +1802,36 @@ discard block |
||
1802 | 1802 | echo l(bts(\'Remove\', array(), NULL, \'boinc:remove-team-member\'), "community/teams/{$team_id}/edit/members/remove/{$user_id}"); |
1803 | 1803 | } |
1804 | 1804 | ?>', |
1805 | - 'exclude' => 0, |
|
1806 | - 'id' => 'phpcode_1', |
|
1807 | - 'table' => 'customfield', |
|
1808 | - 'field' => 'phpcode', |
|
1809 | - 'override' => array( |
|
1805 | + 'exclude' => 0, |
|
1806 | + 'id' => 'phpcode_1', |
|
1807 | + 'table' => 'customfield', |
|
1808 | + 'field' => 'phpcode', |
|
1809 | + 'override' => array( |
|
1810 | 1810 | 'button' => 'Use default', |
1811 | - ), |
|
1812 | - 'relationship' => 'none', |
|
1811 | + ), |
|
1812 | + 'relationship' => 'none', |
|
1813 | 1813 | ), |
1814 | - )); |
|
1815 | - $handler->override_option('arguments', array( |
|
1814 | + )); |
|
1815 | + $handler->override_option('arguments', array( |
|
1816 | 1816 | 'teamid' => array( |
1817 | - 'default_action' => 'empty', |
|
1818 | - 'style_plugin' => 'default_summary', |
|
1819 | - 'style_options' => array(), |
|
1820 | - 'wildcard' => 'all', |
|
1821 | - 'wildcard_substitution' => 'All', |
|
1822 | - 'title' => '', |
|
1823 | - 'breadcrumb' => '', |
|
1824 | - 'default_argument_type' => 'fixed', |
|
1825 | - 'default_argument' => '', |
|
1826 | - 'validate_type' => 'numeric', |
|
1827 | - 'validate_fail' => 'not found', |
|
1828 | - 'break_phrase' => 0, |
|
1829 | - 'not' => 0, |
|
1830 | - 'id' => 'teamid', |
|
1831 | - 'table' => 'user', |
|
1832 | - 'field' => 'teamid', |
|
1833 | - 'validate_user_argument_type' => 'uid', |
|
1834 | - 'validate_user_roles' => array( |
|
1817 | + 'default_action' => 'empty', |
|
1818 | + 'style_plugin' => 'default_summary', |
|
1819 | + 'style_options' => array(), |
|
1820 | + 'wildcard' => 'all', |
|
1821 | + 'wildcard_substitution' => 'All', |
|
1822 | + 'title' => '', |
|
1823 | + 'breadcrumb' => '', |
|
1824 | + 'default_argument_type' => 'fixed', |
|
1825 | + 'default_argument' => '', |
|
1826 | + 'validate_type' => 'numeric', |
|
1827 | + 'validate_fail' => 'not found', |
|
1828 | + 'break_phrase' => 0, |
|
1829 | + 'not' => 0, |
|
1830 | + 'id' => 'teamid', |
|
1831 | + 'table' => 'user', |
|
1832 | + 'field' => 'teamid', |
|
1833 | + 'validate_user_argument_type' => 'uid', |
|
1834 | + 'validate_user_roles' => array( |
|
1835 | 1835 | 2 => 0, |
1836 | 1836 | 3519698132 => 0, |
1837 | 1837 | 1110965548 => 0, |
@@ -1840,10 +1840,10 @@ discard block |
||
1840 | 1840 | 268174006 => 0, |
1841 | 1841 | 1271379760 => 0, |
1842 | 1842 | 933038561 => 0, |
1843 | - ), |
|
1844 | - 'me_redirect' => 0, |
|
1845 | - 'me_validate_user_argument_type' => 'uid', |
|
1846 | - 'me_validate_user_roles' => array( |
|
1843 | + ), |
|
1844 | + 'me_redirect' => 0, |
|
1845 | + 'me_validate_user_argument_type' => 'uid', |
|
1846 | + 'me_validate_user_roles' => array( |
|
1847 | 1847 | 2 => 0, |
1848 | 1848 | 3519698132 => 0, |
1849 | 1849 | 1110965548 => 0, |
@@ -1852,23 +1852,23 @@ discard block |
||
1852 | 1852 | 268174006 => 0, |
1853 | 1853 | 1271379760 => 0, |
1854 | 1854 | 933038561 => 0, |
1855 | - ), |
|
1856 | - 'override' => array( |
|
1855 | + ), |
|
1856 | + 'override' => array( |
|
1857 | 1857 | 'button' => 'Use default', |
1858 | - ), |
|
1859 | - 'relationship' => 'none', |
|
1860 | - 'default_options_div_prefix' => '', |
|
1861 | - 'default_taxonomy_tid_term_page' => 0, |
|
1862 | - 'default_taxonomy_tid_node' => 0, |
|
1863 | - 'default_taxonomy_tid_limit' => 0, |
|
1864 | - 'default_taxonomy_tid_vids' => array( |
|
1858 | + ), |
|
1859 | + 'relationship' => 'none', |
|
1860 | + 'default_options_div_prefix' => '', |
|
1861 | + 'default_taxonomy_tid_term_page' => 0, |
|
1862 | + 'default_taxonomy_tid_node' => 0, |
|
1863 | + 'default_taxonomy_tid_limit' => 0, |
|
1864 | + 'default_taxonomy_tid_vids' => array( |
|
1865 | 1865 | 1 => 0, |
1866 | 1866 | 2 => 0, |
1867 | - ), |
|
1868 | - 'default_argument_user' => 0, |
|
1869 | - 'default_argument_fixed' => '', |
|
1870 | - 'default_argument_php' => '', |
|
1871 | - 'validate_argument_node_type' => array( |
|
1867 | + ), |
|
1868 | + 'default_argument_user' => 0, |
|
1869 | + 'default_argument_fixed' => '', |
|
1870 | + 'default_argument_php' => '', |
|
1871 | + 'validate_argument_node_type' => array( |
|
1872 | 1872 | 'page' => 0, |
1873 | 1873 | 'news' => 0, |
1874 | 1874 | 'profile' => 0, |
@@ -1876,90 +1876,90 @@ discard block |
||
1876 | 1876 | 'panel' => 0, |
1877 | 1877 | 'story' => 0, |
1878 | 1878 | 'team' => 0, |
1879 | - ), |
|
1880 | - 'validate_argument_node_access' => 0, |
|
1881 | - 'validate_argument_nid_type' => 'nid', |
|
1882 | - 'validate_argument_vocabulary' => array( |
|
1879 | + ), |
|
1880 | + 'validate_argument_node_access' => 0, |
|
1881 | + 'validate_argument_nid_type' => 'nid', |
|
1882 | + 'validate_argument_vocabulary' => array( |
|
1883 | 1883 | 1 => 0, |
1884 | 1884 | 2 => 0, |
1885 | - ), |
|
1886 | - 'validate_argument_type' => 'tid', |
|
1887 | - 'validate_argument_transform' => 0, |
|
1888 | - 'validate_user_restrict_roles' => 0, |
|
1889 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
1890 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
1891 | - 'validate_argument_node_flag_id_type' => 'id', |
|
1892 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
1893 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
1894 | - 'validate_argument_user_flag_id_type' => 'id', |
|
1895 | - 'validate_argument_php' => '', |
|
1896 | - 'me_validate_user_restrict_roles' => 0, |
|
1897 | - ), |
|
1898 | - )); |
|
1899 | - $handler->override_option('use_pager', '1'); |
|
1900 | - $handler->override_option('style_plugin', 'table'); |
|
1901 | - $handler->override_option('style_options', array( |
|
1885 | + ), |
|
1886 | + 'validate_argument_type' => 'tid', |
|
1887 | + 'validate_argument_transform' => 0, |
|
1888 | + 'validate_user_restrict_roles' => 0, |
|
1889 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
1890 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
1891 | + 'validate_argument_node_flag_id_type' => 'id', |
|
1892 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
1893 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
1894 | + 'validate_argument_user_flag_id_type' => 'id', |
|
1895 | + 'validate_argument_php' => '', |
|
1896 | + 'me_validate_user_restrict_roles' => 0, |
|
1897 | + ), |
|
1898 | + )); |
|
1899 | + $handler->override_option('use_pager', '1'); |
|
1900 | + $handler->override_option('style_plugin', 'table'); |
|
1901 | + $handler->override_option('style_options', array( |
|
1902 | 1902 | 'grouping' => '', |
1903 | 1903 | 'override' => 1, |
1904 | 1904 | 'sticky' => 1, |
1905 | 1905 | 'order' => 'asc', |
1906 | 1906 | 'summary' => '', |
1907 | 1907 | 'columns' => array( |
1908 | - 'id' => 'id', |
|
1909 | - 'name' => 'name', |
|
1910 | - 'send_email' => 'send_email', |
|
1911 | - 'email_addr' => 'email_addr', |
|
1912 | - 'phpcode' => 'phpcode', |
|
1913 | - 'total_credit' => 'total_credit', |
|
1914 | - 'expavg_credit' => 'expavg_credit', |
|
1915 | - 'create_time' => 'create_time', |
|
1916 | - 'phpcode_1' => 'phpcode_1', |
|
1908 | + 'id' => 'id', |
|
1909 | + 'name' => 'name', |
|
1910 | + 'send_email' => 'send_email', |
|
1911 | + 'email_addr' => 'email_addr', |
|
1912 | + 'phpcode' => 'phpcode', |
|
1913 | + 'total_credit' => 'total_credit', |
|
1914 | + 'expavg_credit' => 'expavg_credit', |
|
1915 | + 'create_time' => 'create_time', |
|
1916 | + 'phpcode_1' => 'phpcode_1', |
|
1917 | 1917 | ), |
1918 | 1918 | 'info' => array( |
1919 | - 'id' => array( |
|
1919 | + 'id' => array( |
|
1920 | 1920 | 'sortable' => 0, |
1921 | 1921 | 'separator' => '', |
1922 | - ), |
|
1923 | - 'name' => array( |
|
1922 | + ), |
|
1923 | + 'name' => array( |
|
1924 | 1924 | 'sortable' => 1, |
1925 | 1925 | 'separator' => '', |
1926 | - ), |
|
1927 | - 'send_email' => array( |
|
1926 | + ), |
|
1927 | + 'send_email' => array( |
|
1928 | 1928 | 'sortable' => 0, |
1929 | 1929 | 'separator' => '', |
1930 | - ), |
|
1931 | - 'email_addr' => array( |
|
1930 | + ), |
|
1931 | + 'email_addr' => array( |
|
1932 | 1932 | 'sortable' => 1, |
1933 | 1933 | 'separator' => '', |
1934 | - ), |
|
1935 | - 'phpcode' => array( |
|
1934 | + ), |
|
1935 | + 'phpcode' => array( |
|
1936 | 1936 | 'separator' => '', |
1937 | - ), |
|
1938 | - 'total_credit' => array( |
|
1937 | + ), |
|
1938 | + 'total_credit' => array( |
|
1939 | 1939 | 'sortable' => 1, |
1940 | 1940 | 'separator' => '', |
1941 | - ), |
|
1942 | - 'expavg_credit' => array( |
|
1941 | + ), |
|
1942 | + 'expavg_credit' => array( |
|
1943 | 1943 | 'sortable' => 1, |
1944 | 1944 | 'separator' => '', |
1945 | - ), |
|
1946 | - 'create_time' => array( |
|
1945 | + ), |
|
1946 | + 'create_time' => array( |
|
1947 | 1947 | 'sortable' => 1, |
1948 | 1948 | 'separator' => '', |
1949 | - ), |
|
1950 | - 'phpcode_1' => array( |
|
1949 | + ), |
|
1950 | + 'phpcode_1' => array( |
|
1951 | 1951 | 'separator' => '', |
1952 | - ), |
|
1952 | + ), |
|
1953 | 1953 | ), |
1954 | 1954 | 'default' => 'name', |
1955 | - )); |
|
1956 | - $handler->override_option('pane_title', 'Edit team members'); |
|
1957 | - $handler->override_option('pane_description', ''); |
|
1958 | - $handler->override_option('pane_category', array( |
|
1955 | + )); |
|
1956 | + $handler->override_option('pane_title', 'Edit team members'); |
|
1957 | + $handler->override_option('pane_description', ''); |
|
1958 | + $handler->override_option('pane_category', array( |
|
1959 | 1959 | 'name' => 'View panes', |
1960 | 1960 | 'weight' => 0, |
1961 | - )); |
|
1962 | - $handler->override_option('allow', array( |
|
1961 | + )); |
|
1962 | + $handler->override_option('allow', array( |
|
1963 | 1963 | 'use_pager' => 0, |
1964 | 1964 | 'items_per_page' => 'items_per_page', |
1965 | 1965 | 'offset' => 0, |
@@ -1969,24 +1969,24 @@ discard block |
||
1969 | 1969 | 'title_override' => 'title_override', |
1970 | 1970 | 'exposed_form' => 0, |
1971 | 1971 | 'fields_override' => 0, |
1972 | - )); |
|
1973 | - $handler->override_option('argument_input', array( |
|
1972 | + )); |
|
1973 | + $handler->override_option('argument_input', array( |
|
1974 | 1974 | 'teamid' => array( |
1975 | - 'type' => 'panel', |
|
1976 | - 'context' => 'term.description', |
|
1977 | - 'context_optional' => 0, |
|
1978 | - 'panel' => '0', |
|
1979 | - 'fixed' => '', |
|
1980 | - 'label' => 'BOINC: Team ID', |
|
1981 | - ), |
|
1982 | - )); |
|
1983 | - $handler->override_option('link_to_view', 0); |
|
1984 | - $handler->override_option('inherit_panels_path', 0); |
|
1985 | - $handler = $view->new_display('panel_pane', 'Team change founder', 'panel_pane_4'); |
|
1986 | - $handler->override_option('fields', array( |
|
1975 | + 'type' => 'panel', |
|
1976 | + 'context' => 'term.description', |
|
1977 | + 'context_optional' => 0, |
|
1978 | + 'panel' => '0', |
|
1979 | + 'fixed' => '', |
|
1980 | + 'label' => 'BOINC: Team ID', |
|
1981 | + ), |
|
1982 | + )); |
|
1983 | + $handler->override_option('link_to_view', 0); |
|
1984 | + $handler->override_option('inherit_panels_path', 0); |
|
1985 | + $handler = $view->new_display('panel_pane', 'Team change founder', 'panel_pane_4'); |
|
1986 | + $handler->override_option('fields', array( |
|
1987 | 1987 | 'id' => array( |
1988 | - 'label' => 'Id', |
|
1989 | - 'alter' => array( |
|
1988 | + 'label' => 'Id', |
|
1989 | + 'alter' => array( |
|
1990 | 1990 | 'alter_text' => 0, |
1991 | 1991 | 'text' => '', |
1992 | 1992 | 'make_link' => 0, |
@@ -2005,32 +2005,32 @@ discard block |
||
2005 | 2005 | 'ellipsis' => 1, |
2006 | 2006 | 'html' => 0, |
2007 | 2007 | 'strip_tags' => 0, |
2008 | - ), |
|
2009 | - 'empty' => '', |
|
2010 | - 'hide_empty' => 0, |
|
2011 | - 'empty_zero' => 0, |
|
2012 | - 'hide_alter_empty' => 1, |
|
2013 | - 'set_precision' => FALSE, |
|
2014 | - 'precision' => 0, |
|
2015 | - 'decimal' => '.', |
|
2016 | - 'separator' => '', |
|
2017 | - 'format_plural' => 0, |
|
2018 | - 'format_plural_singular' => '1', |
|
2019 | - 'format_plural_plural' => '@count', |
|
2020 | - 'prefix' => '', |
|
2021 | - 'suffix' => '', |
|
2022 | - 'exclude' => 1, |
|
2023 | - 'id' => 'id', |
|
2024 | - 'table' => 'user', |
|
2025 | - 'field' => 'id', |
|
2026 | - 'relationship' => 'none', |
|
2027 | - 'override' => array( |
|
2008 | + ), |
|
2009 | + 'empty' => '', |
|
2010 | + 'hide_empty' => 0, |
|
2011 | + 'empty_zero' => 0, |
|
2012 | + 'hide_alter_empty' => 1, |
|
2013 | + 'set_precision' => FALSE, |
|
2014 | + 'precision' => 0, |
|
2015 | + 'decimal' => '.', |
|
2016 | + 'separator' => '', |
|
2017 | + 'format_plural' => 0, |
|
2018 | + 'format_plural_singular' => '1', |
|
2019 | + 'format_plural_plural' => '@count', |
|
2020 | + 'prefix' => '', |
|
2021 | + 'suffix' => '', |
|
2022 | + 'exclude' => 1, |
|
2023 | + 'id' => 'id', |
|
2024 | + 'table' => 'user', |
|
2025 | + 'field' => 'id', |
|
2026 | + 'relationship' => 'none', |
|
2027 | + 'override' => array( |
|
2028 | 2028 | 'button' => 'Use default', |
2029 | - ), |
|
2029 | + ), |
|
2030 | 2030 | ), |
2031 | 2031 | 'phpcode' => array( |
2032 | - 'label' => 'Uid', |
|
2033 | - 'alter' => array( |
|
2032 | + 'label' => 'Uid', |
|
2033 | + 'alter' => array( |
|
2034 | 2034 | 'alter_text' => 0, |
2035 | 2035 | 'text' => '', |
2036 | 2036 | 'make_link' => 0, |
@@ -2049,26 +2049,26 @@ discard block |
||
2049 | 2049 | 'ellipsis' => 1, |
2050 | 2050 | 'html' => 0, |
2051 | 2051 | 'strip_tags' => 0, |
2052 | - ), |
|
2053 | - 'empty' => '', |
|
2054 | - 'hide_empty' => 0, |
|
2055 | - 'empty_zero' => 0, |
|
2056 | - 'hide_alter_empty' => 1, |
|
2057 | - 'value' => '<?php |
|
2052 | + ), |
|
2053 | + 'empty' => '', |
|
2054 | + 'hide_empty' => 0, |
|
2055 | + 'empty_zero' => 0, |
|
2056 | + 'hide_alter_empty' => 1, |
|
2057 | + 'value' => '<?php |
|
2058 | 2058 | echo boincuser_lookup_uid($data->id); |
2059 | 2059 | ?>', |
2060 | - 'exclude' => 1, |
|
2061 | - 'id' => 'phpcode', |
|
2062 | - 'table' => 'customfield', |
|
2063 | - 'field' => 'phpcode', |
|
2064 | - 'override' => array( |
|
2060 | + 'exclude' => 1, |
|
2061 | + 'id' => 'phpcode', |
|
2062 | + 'table' => 'customfield', |
|
2063 | + 'field' => 'phpcode', |
|
2064 | + 'override' => array( |
|
2065 | 2065 | 'button' => 'Use default', |
2066 | - ), |
|
2067 | - 'relationship' => 'none', |
|
2066 | + ), |
|
2067 | + 'relationship' => 'none', |
|
2068 | 2068 | ), |
2069 | 2069 | 'name' => array( |
2070 | - 'label' => 'Name', |
|
2071 | - 'alter' => array( |
|
2070 | + 'label' => 'Name', |
|
2071 | + 'alter' => array( |
|
2072 | 2072 | 'alter_text' => 0, |
2073 | 2073 | 'text' => '', |
2074 | 2074 | 'make_link' => 0, |
@@ -2087,20 +2087,20 @@ discard block |
||
2087 | 2087 | 'ellipsis' => 1, |
2088 | 2088 | 'html' => 0, |
2089 | 2089 | 'strip_tags' => 0, |
2090 | - ), |
|
2091 | - 'empty' => '', |
|
2092 | - 'hide_empty' => 0, |
|
2093 | - 'empty_zero' => 0, |
|
2094 | - 'hide_alter_empty' => 1, |
|
2095 | - 'exclude' => 0, |
|
2096 | - 'id' => 'name', |
|
2097 | - 'table' => 'user', |
|
2098 | - 'field' => 'name', |
|
2099 | - 'relationship' => 'none', |
|
2090 | + ), |
|
2091 | + 'empty' => '', |
|
2092 | + 'hide_empty' => 0, |
|
2093 | + 'empty_zero' => 0, |
|
2094 | + 'hide_alter_empty' => 1, |
|
2095 | + 'exclude' => 0, |
|
2096 | + 'id' => 'name', |
|
2097 | + 'table' => 'user', |
|
2098 | + 'field' => 'name', |
|
2099 | + 'relationship' => 'none', |
|
2100 | 2100 | ), |
2101 | 2101 | 'total_credit' => array( |
2102 | - 'label' => 'Total Credit', |
|
2103 | - 'alter' => array( |
|
2102 | + 'label' => 'Total Credit', |
|
2103 | + 'alter' => array( |
|
2104 | 2104 | 'alter_text' => 0, |
2105 | 2105 | 'text' => '', |
2106 | 2106 | 'make_link' => 0, |
@@ -2119,32 +2119,32 @@ discard block |
||
2119 | 2119 | 'ellipsis' => 1, |
2120 | 2120 | 'html' => 0, |
2121 | 2121 | 'strip_tags' => 0, |
2122 | - ), |
|
2123 | - 'empty' => '', |
|
2124 | - 'hide_empty' => 0, |
|
2125 | - 'empty_zero' => 0, |
|
2126 | - 'hide_alter_empty' => 1, |
|
2127 | - 'set_precision' => 1, |
|
2128 | - 'precision' => '0', |
|
2129 | - 'decimal' => '.', |
|
2130 | - 'separator' => ',', |
|
2131 | - 'format_plural' => 0, |
|
2132 | - 'format_plural_singular' => '1', |
|
2133 | - 'format_plural_plural' => '@count', |
|
2134 | - 'prefix' => '', |
|
2135 | - 'suffix' => '', |
|
2136 | - 'exclude' => 0, |
|
2137 | - 'id' => 'total_credit', |
|
2138 | - 'table' => 'user', |
|
2139 | - 'field' => 'total_credit', |
|
2140 | - 'relationship' => 'none', |
|
2141 | - 'override' => array( |
|
2122 | + ), |
|
2123 | + 'empty' => '', |
|
2124 | + 'hide_empty' => 0, |
|
2125 | + 'empty_zero' => 0, |
|
2126 | + 'hide_alter_empty' => 1, |
|
2127 | + 'set_precision' => 1, |
|
2128 | + 'precision' => '0', |
|
2129 | + 'decimal' => '.', |
|
2130 | + 'separator' => ',', |
|
2131 | + 'format_plural' => 0, |
|
2132 | + 'format_plural_singular' => '1', |
|
2133 | + 'format_plural_plural' => '@count', |
|
2134 | + 'prefix' => '', |
|
2135 | + 'suffix' => '', |
|
2136 | + 'exclude' => 0, |
|
2137 | + 'id' => 'total_credit', |
|
2138 | + 'table' => 'user', |
|
2139 | + 'field' => 'total_credit', |
|
2140 | + 'relationship' => 'none', |
|
2141 | + 'override' => array( |
|
2142 | 2142 | 'button' => 'Use default', |
2143 | - ), |
|
2143 | + ), |
|
2144 | 2144 | ), |
2145 | 2145 | 'expavg_credit' => array( |
2146 | - 'label' => 'Recent average credit', |
|
2147 | - 'alter' => array( |
|
2146 | + 'label' => 'Recent average credit', |
|
2147 | + 'alter' => array( |
|
2148 | 2148 | 'alter_text' => 0, |
2149 | 2149 | 'text' => '', |
2150 | 2150 | 'make_link' => 0, |
@@ -2163,32 +2163,32 @@ discard block |
||
2163 | 2163 | 'ellipsis' => 1, |
2164 | 2164 | 'html' => 0, |
2165 | 2165 | 'strip_tags' => 0, |
2166 | - ), |
|
2167 | - 'empty' => '', |
|
2168 | - 'hide_empty' => 0, |
|
2169 | - 'empty_zero' => 0, |
|
2170 | - 'hide_alter_empty' => 1, |
|
2171 | - 'set_precision' => 1, |
|
2172 | - 'precision' => '2', |
|
2173 | - 'decimal' => '.', |
|
2174 | - 'separator' => ',', |
|
2175 | - 'format_plural' => 0, |
|
2176 | - 'format_plural_singular' => '1', |
|
2177 | - 'format_plural_plural' => '@count', |
|
2178 | - 'prefix' => '', |
|
2179 | - 'suffix' => '', |
|
2180 | - 'exclude' => 0, |
|
2181 | - 'id' => 'expavg_credit', |
|
2182 | - 'table' => 'user', |
|
2183 | - 'field' => 'expavg_credit', |
|
2184 | - 'relationship' => 'none', |
|
2185 | - 'override' => array( |
|
2166 | + ), |
|
2167 | + 'empty' => '', |
|
2168 | + 'hide_empty' => 0, |
|
2169 | + 'empty_zero' => 0, |
|
2170 | + 'hide_alter_empty' => 1, |
|
2171 | + 'set_precision' => 1, |
|
2172 | + 'precision' => '2', |
|
2173 | + 'decimal' => '.', |
|
2174 | + 'separator' => ',', |
|
2175 | + 'format_plural' => 0, |
|
2176 | + 'format_plural_singular' => '1', |
|
2177 | + 'format_plural_plural' => '@count', |
|
2178 | + 'prefix' => '', |
|
2179 | + 'suffix' => '', |
|
2180 | + 'exclude' => 0, |
|
2181 | + 'id' => 'expavg_credit', |
|
2182 | + 'table' => 'user', |
|
2183 | + 'field' => 'expavg_credit', |
|
2184 | + 'relationship' => 'none', |
|
2185 | + 'override' => array( |
|
2186 | 2186 | 'button' => 'Use default', |
2187 | - ), |
|
2187 | + ), |
|
2188 | 2188 | ), |
2189 | 2189 | 'create_time' => array( |
2190 | - 'label' => 'Member Since', |
|
2191 | - 'alter' => array( |
|
2190 | + 'label' => 'Member Since', |
|
2191 | + 'alter' => array( |
|
2192 | 2192 | 'alter_text' => 0, |
2193 | 2193 | 'text' => '', |
2194 | 2194 | 'make_link' => 0, |
@@ -2207,25 +2207,25 @@ discard block |
||
2207 | 2207 | 'ellipsis' => 1, |
2208 | 2208 | 'html' => 0, |
2209 | 2209 | 'strip_tags' => 0, |
2210 | - ), |
|
2211 | - 'empty' => '', |
|
2212 | - 'hide_empty' => 0, |
|
2213 | - 'empty_zero' => 0, |
|
2214 | - 'hide_alter_empty' => 1, |
|
2215 | - 'date_format' => 'custom', |
|
2216 | - 'custom_date_format' => 'j M Y G:i:s T', |
|
2217 | - 'exclude' => 0, |
|
2218 | - 'id' => 'create_time', |
|
2219 | - 'table' => 'user', |
|
2220 | - 'field' => 'create_time', |
|
2221 | - 'override' => array( |
|
2210 | + ), |
|
2211 | + 'empty' => '', |
|
2212 | + 'hide_empty' => 0, |
|
2213 | + 'empty_zero' => 0, |
|
2214 | + 'hide_alter_empty' => 1, |
|
2215 | + 'date_format' => 'custom', |
|
2216 | + 'custom_date_format' => 'j M Y G:i:s T', |
|
2217 | + 'exclude' => 0, |
|
2218 | + 'id' => 'create_time', |
|
2219 | + 'table' => 'user', |
|
2220 | + 'field' => 'create_time', |
|
2221 | + 'override' => array( |
|
2222 | 2222 | 'button' => 'Use default', |
2223 | - ), |
|
2224 | - 'relationship' => 'none', |
|
2223 | + ), |
|
2224 | + 'relationship' => 'none', |
|
2225 | 2225 | ), |
2226 | 2226 | 'phpcode_1' => array( |
2227 | - 'label' => '', |
|
2228 | - 'alter' => array( |
|
2227 | + 'label' => '', |
|
2228 | + 'alter' => array( |
|
2229 | 2229 | 'alter_text' => 0, |
2230 | 2230 | 'text' => '', |
2231 | 2231 | 'make_link' => 0, |
@@ -2244,12 +2244,12 @@ discard block |
||
2244 | 2244 | 'ellipsis' => 1, |
2245 | 2245 | 'html' => 0, |
2246 | 2246 | 'strip_tags' => 0, |
2247 | - ), |
|
2248 | - 'empty' => '', |
|
2249 | - 'hide_empty' => 0, |
|
2250 | - 'empty_zero' => 0, |
|
2251 | - 'hide_alter_empty' => 1, |
|
2252 | - 'value' => '<?php |
|
2247 | + ), |
|
2248 | + 'empty' => '', |
|
2249 | + 'hide_empty' => 0, |
|
2250 | + 'empty_zero' => 0, |
|
2251 | + 'hide_alter_empty' => 1, |
|
2252 | + 'value' => '<?php |
|
2253 | 2253 | global $user; |
2254 | 2254 | $team_id = arg(2); |
2255 | 2255 | $user_id = boincuser_lookup_uid($data->id); |
@@ -2257,36 +2257,36 @@ discard block |
||
2257 | 2257 | echo l(bts(\'Make founder\', array(), NULL, \'boinc:team-make-founder\'), "community/teams/{$team_id}/edit/founder/set/{$user_id}"); |
2258 | 2258 | } |
2259 | 2259 | ?>', |
2260 | - 'exclude' => 0, |
|
2261 | - 'id' => 'phpcode_1', |
|
2262 | - 'table' => 'customfield', |
|
2263 | - 'field' => 'phpcode', |
|
2264 | - 'override' => array( |
|
2260 | + 'exclude' => 0, |
|
2261 | + 'id' => 'phpcode_1', |
|
2262 | + 'table' => 'customfield', |
|
2263 | + 'field' => 'phpcode', |
|
2264 | + 'override' => array( |
|
2265 | 2265 | 'button' => 'Use default', |
2266 | - ), |
|
2267 | - 'relationship' => 'none', |
|
2266 | + ), |
|
2267 | + 'relationship' => 'none', |
|
2268 | 2268 | ), |
2269 | - )); |
|
2270 | - $handler->override_option('arguments', array( |
|
2269 | + )); |
|
2270 | + $handler->override_option('arguments', array( |
|
2271 | 2271 | 'teamid' => array( |
2272 | - 'default_action' => 'empty', |
|
2273 | - 'style_plugin' => 'default_summary', |
|
2274 | - 'style_options' => array(), |
|
2275 | - 'wildcard' => 'all', |
|
2276 | - 'wildcard_substitution' => 'All', |
|
2277 | - 'title' => '', |
|
2278 | - 'breadcrumb' => '', |
|
2279 | - 'default_argument_type' => 'fixed', |
|
2280 | - 'default_argument' => '', |
|
2281 | - 'validate_type' => 'numeric', |
|
2282 | - 'validate_fail' => 'not found', |
|
2283 | - 'break_phrase' => 0, |
|
2284 | - 'not' => 0, |
|
2285 | - 'id' => 'teamid', |
|
2286 | - 'table' => 'user', |
|
2287 | - 'field' => 'teamid', |
|
2288 | - 'validate_user_argument_type' => 'uid', |
|
2289 | - 'validate_user_roles' => array( |
|
2272 | + 'default_action' => 'empty', |
|
2273 | + 'style_plugin' => 'default_summary', |
|
2274 | + 'style_options' => array(), |
|
2275 | + 'wildcard' => 'all', |
|
2276 | + 'wildcard_substitution' => 'All', |
|
2277 | + 'title' => '', |
|
2278 | + 'breadcrumb' => '', |
|
2279 | + 'default_argument_type' => 'fixed', |
|
2280 | + 'default_argument' => '', |
|
2281 | + 'validate_type' => 'numeric', |
|
2282 | + 'validate_fail' => 'not found', |
|
2283 | + 'break_phrase' => 0, |
|
2284 | + 'not' => 0, |
|
2285 | + 'id' => 'teamid', |
|
2286 | + 'table' => 'user', |
|
2287 | + 'field' => 'teamid', |
|
2288 | + 'validate_user_argument_type' => 'uid', |
|
2289 | + 'validate_user_roles' => array( |
|
2290 | 2290 | 2 => 0, |
2291 | 2291 | 3519698132 => 0, |
2292 | 2292 | 1110965548 => 0, |
@@ -2295,10 +2295,10 @@ discard block |
||
2295 | 2295 | 268174006 => 0, |
2296 | 2296 | 1271379760 => 0, |
2297 | 2297 | 933038561 => 0, |
2298 | - ), |
|
2299 | - 'me_redirect' => 0, |
|
2300 | - 'me_validate_user_argument_type' => 'uid', |
|
2301 | - 'me_validate_user_roles' => array( |
|
2298 | + ), |
|
2299 | + 'me_redirect' => 0, |
|
2300 | + 'me_validate_user_argument_type' => 'uid', |
|
2301 | + 'me_validate_user_roles' => array( |
|
2302 | 2302 | 2 => 0, |
2303 | 2303 | 3519698132 => 0, |
2304 | 2304 | 1110965548 => 0, |
@@ -2307,23 +2307,23 @@ discard block |
||
2307 | 2307 | 268174006 => 0, |
2308 | 2308 | 1271379760 => 0, |
2309 | 2309 | 933038561 => 0, |
2310 | - ), |
|
2311 | - 'override' => array( |
|
2310 | + ), |
|
2311 | + 'override' => array( |
|
2312 | 2312 | 'button' => 'Use default', |
2313 | - ), |
|
2314 | - 'relationship' => 'none', |
|
2315 | - 'default_options_div_prefix' => '', |
|
2316 | - 'default_taxonomy_tid_term_page' => 0, |
|
2317 | - 'default_taxonomy_tid_node' => 0, |
|
2318 | - 'default_taxonomy_tid_limit' => 0, |
|
2319 | - 'default_taxonomy_tid_vids' => array( |
|
2313 | + ), |
|
2314 | + 'relationship' => 'none', |
|
2315 | + 'default_options_div_prefix' => '', |
|
2316 | + 'default_taxonomy_tid_term_page' => 0, |
|
2317 | + 'default_taxonomy_tid_node' => 0, |
|
2318 | + 'default_taxonomy_tid_limit' => 0, |
|
2319 | + 'default_taxonomy_tid_vids' => array( |
|
2320 | 2320 | 1 => 0, |
2321 | 2321 | 2 => 0, |
2322 | - ), |
|
2323 | - 'default_argument_user' => 0, |
|
2324 | - 'default_argument_fixed' => '', |
|
2325 | - 'default_argument_php' => '', |
|
2326 | - 'validate_argument_node_type' => array( |
|
2322 | + ), |
|
2323 | + 'default_argument_user' => 0, |
|
2324 | + 'default_argument_fixed' => '', |
|
2325 | + 'default_argument_php' => '', |
|
2326 | + 'validate_argument_node_type' => array( |
|
2327 | 2327 | 'page' => 0, |
2328 | 2328 | 'news' => 0, |
2329 | 2329 | 'profile' => 0, |
@@ -2331,90 +2331,90 @@ discard block |
||
2331 | 2331 | 'panel' => 0, |
2332 | 2332 | 'story' => 0, |
2333 | 2333 | 'team' => 0, |
2334 | - ), |
|
2335 | - 'validate_argument_node_access' => 0, |
|
2336 | - 'validate_argument_nid_type' => 'nid', |
|
2337 | - 'validate_argument_vocabulary' => array( |
|
2334 | + ), |
|
2335 | + 'validate_argument_node_access' => 0, |
|
2336 | + 'validate_argument_nid_type' => 'nid', |
|
2337 | + 'validate_argument_vocabulary' => array( |
|
2338 | 2338 | 1 => 0, |
2339 | 2339 | 2 => 0, |
2340 | - ), |
|
2341 | - 'validate_argument_type' => 'tid', |
|
2342 | - 'validate_argument_transform' => 0, |
|
2343 | - 'validate_user_restrict_roles' => 0, |
|
2344 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
2345 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
2346 | - 'validate_argument_node_flag_id_type' => 'id', |
|
2347 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
2348 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
2349 | - 'validate_argument_user_flag_id_type' => 'id', |
|
2350 | - 'validate_argument_php' => '', |
|
2351 | - 'me_validate_user_restrict_roles' => 0, |
|
2352 | - ), |
|
2353 | - )); |
|
2354 | - $handler->override_option('use_pager', '1'); |
|
2355 | - $handler->override_option('style_plugin', 'table'); |
|
2356 | - $handler->override_option('style_options', array( |
|
2340 | + ), |
|
2341 | + 'validate_argument_type' => 'tid', |
|
2342 | + 'validate_argument_transform' => 0, |
|
2343 | + 'validate_user_restrict_roles' => 0, |
|
2344 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
2345 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
2346 | + 'validate_argument_node_flag_id_type' => 'id', |
|
2347 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
2348 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
2349 | + 'validate_argument_user_flag_id_type' => 'id', |
|
2350 | + 'validate_argument_php' => '', |
|
2351 | + 'me_validate_user_restrict_roles' => 0, |
|
2352 | + ), |
|
2353 | + )); |
|
2354 | + $handler->override_option('use_pager', '1'); |
|
2355 | + $handler->override_option('style_plugin', 'table'); |
|
2356 | + $handler->override_option('style_options', array( |
|
2357 | 2357 | 'grouping' => '', |
2358 | 2358 | 'override' => 1, |
2359 | 2359 | 'sticky' => 1, |
2360 | 2360 | 'order' => 'asc', |
2361 | 2361 | 'summary' => '', |
2362 | 2362 | 'columns' => array( |
2363 | - 'id' => 'id', |
|
2364 | - 'name' => 'name', |
|
2365 | - 'send_email' => 'send_email', |
|
2366 | - 'email_addr' => 'email_addr', |
|
2367 | - 'phpcode' => 'phpcode', |
|
2368 | - 'total_credit' => 'total_credit', |
|
2369 | - 'expavg_credit' => 'expavg_credit', |
|
2370 | - 'create_time' => 'create_time', |
|
2371 | - 'phpcode_1' => 'phpcode_1', |
|
2363 | + 'id' => 'id', |
|
2364 | + 'name' => 'name', |
|
2365 | + 'send_email' => 'send_email', |
|
2366 | + 'email_addr' => 'email_addr', |
|
2367 | + 'phpcode' => 'phpcode', |
|
2368 | + 'total_credit' => 'total_credit', |
|
2369 | + 'expavg_credit' => 'expavg_credit', |
|
2370 | + 'create_time' => 'create_time', |
|
2371 | + 'phpcode_1' => 'phpcode_1', |
|
2372 | 2372 | ), |
2373 | 2373 | 'info' => array( |
2374 | - 'id' => array( |
|
2374 | + 'id' => array( |
|
2375 | 2375 | 'sortable' => 0, |
2376 | 2376 | 'separator' => '', |
2377 | - ), |
|
2378 | - 'name' => array( |
|
2377 | + ), |
|
2378 | + 'name' => array( |
|
2379 | 2379 | 'sortable' => 1, |
2380 | 2380 | 'separator' => '', |
2381 | - ), |
|
2382 | - 'send_email' => array( |
|
2381 | + ), |
|
2382 | + 'send_email' => array( |
|
2383 | 2383 | 'sortable' => 0, |
2384 | 2384 | 'separator' => '', |
2385 | - ), |
|
2386 | - 'email_addr' => array( |
|
2385 | + ), |
|
2386 | + 'email_addr' => array( |
|
2387 | 2387 | 'sortable' => 1, |
2388 | 2388 | 'separator' => '', |
2389 | - ), |
|
2390 | - 'phpcode' => array( |
|
2389 | + ), |
|
2390 | + 'phpcode' => array( |
|
2391 | 2391 | 'separator' => '', |
2392 | - ), |
|
2393 | - 'total_credit' => array( |
|
2392 | + ), |
|
2393 | + 'total_credit' => array( |
|
2394 | 2394 | 'sortable' => 1, |
2395 | 2395 | 'separator' => '', |
2396 | - ), |
|
2397 | - 'expavg_credit' => array( |
|
2396 | + ), |
|
2397 | + 'expavg_credit' => array( |
|
2398 | 2398 | 'sortable' => 1, |
2399 | 2399 | 'separator' => '', |
2400 | - ), |
|
2401 | - 'create_time' => array( |
|
2400 | + ), |
|
2401 | + 'create_time' => array( |
|
2402 | 2402 | 'sortable' => 1, |
2403 | 2403 | 'separator' => '', |
2404 | - ), |
|
2405 | - 'phpcode_1' => array( |
|
2404 | + ), |
|
2405 | + 'phpcode_1' => array( |
|
2406 | 2406 | 'separator' => '', |
2407 | - ), |
|
2407 | + ), |
|
2408 | 2408 | ), |
2409 | 2409 | 'default' => 'name', |
2410 | - )); |
|
2411 | - $handler->override_option('pane_title', 'Change team founder'); |
|
2412 | - $handler->override_option('pane_description', ''); |
|
2413 | - $handler->override_option('pane_category', array( |
|
2410 | + )); |
|
2411 | + $handler->override_option('pane_title', 'Change team founder'); |
|
2412 | + $handler->override_option('pane_description', ''); |
|
2413 | + $handler->override_option('pane_category', array( |
|
2414 | 2414 | 'name' => 'View panes', |
2415 | 2415 | 'weight' => 0, |
2416 | - )); |
|
2417 | - $handler->override_option('allow', array( |
|
2416 | + )); |
|
2417 | + $handler->override_option('allow', array( |
|
2418 | 2418 | 'use_pager' => 0, |
2419 | 2419 | 'items_per_page' => 'items_per_page', |
2420 | 2420 | 'offset' => 0, |
@@ -2424,36 +2424,36 @@ discard block |
||
2424 | 2424 | 'title_override' => 'title_override', |
2425 | 2425 | 'exposed_form' => 0, |
2426 | 2426 | 'fields_override' => 0, |
2427 | - )); |
|
2428 | - $handler->override_option('argument_input', array( |
|
2427 | + )); |
|
2428 | + $handler->override_option('argument_input', array( |
|
2429 | 2429 | 'teamid' => array( |
2430 | - 'type' => 'panel', |
|
2431 | - 'context' => 'term.description', |
|
2432 | - 'context_optional' => 0, |
|
2433 | - 'panel' => '0', |
|
2434 | - 'fixed' => '', |
|
2435 | - 'label' => 'BOINC: Team ID', |
|
2436 | - ), |
|
2437 | - )); |
|
2438 | - $handler->override_option('link_to_view', 0); |
|
2439 | - $handler->override_option('inherit_panels_path', 0); |
|
2430 | + 'type' => 'panel', |
|
2431 | + 'context' => 'term.description', |
|
2432 | + 'context_optional' => 0, |
|
2433 | + 'panel' => '0', |
|
2434 | + 'fixed' => '', |
|
2435 | + 'label' => 'BOINC: Team ID', |
|
2436 | + ), |
|
2437 | + )); |
|
2438 | + $handler->override_option('link_to_view', 0); |
|
2439 | + $handler->override_option('inherit_panels_path', 0); |
|
2440 | 2440 | |
2441 | - $views[$view->name] = $view; |
|
2441 | + $views[$view->name] = $view; |
|
2442 | 2442 | |
2443 | - // Exported view: boinc_teams |
|
2444 | - $view = new view; |
|
2445 | - $view->name = 'boinc_teams'; |
|
2446 | - $view->description = ''; |
|
2447 | - $view->tag = ''; |
|
2448 | - $view->base_table = 'team'; |
|
2449 | - $view->core = 6; |
|
2450 | - $view->api_version = '2'; |
|
2451 | - $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
2452 | - $handler = $view->new_display('default', 'Defaults', 'default'); |
|
2453 | - $handler->override_option('fields', array( |
|
2443 | + // Exported view: boinc_teams |
|
2444 | + $view = new view; |
|
2445 | + $view->name = 'boinc_teams'; |
|
2446 | + $view->description = ''; |
|
2447 | + $view->tag = ''; |
|
2448 | + $view->base_table = 'team'; |
|
2449 | + $view->core = 6; |
|
2450 | + $view->api_version = '2'; |
|
2451 | + $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
|
2452 | + $handler = $view->new_display('default', 'Defaults', 'default'); |
|
2453 | + $handler->override_option('fields', array( |
|
2454 | 2454 | 'rownumber' => array( |
2455 | - 'label' => 'Rank', |
|
2456 | - 'alter' => array( |
|
2455 | + 'label' => 'Rank', |
|
2456 | + 'alter' => array( |
|
2457 | 2457 | 'alter_text' => 0, |
2458 | 2458 | 'text' => '', |
2459 | 2459 | 'make_link' => 0, |
@@ -2472,20 +2472,20 @@ discard block |
||
2472 | 2472 | 'ellipsis' => 1, |
2473 | 2473 | 'html' => 0, |
2474 | 2474 | 'strip_tags' => 0, |
2475 | - ), |
|
2476 | - 'empty' => '', |
|
2477 | - 'hide_empty' => 0, |
|
2478 | - 'empty_zero' => 0, |
|
2479 | - 'hide_alter_empty' => 1, |
|
2480 | - 'exclude' => 0, |
|
2481 | - 'id' => 'rownumber', |
|
2482 | - 'table' => 'customfield', |
|
2483 | - 'field' => 'rownumber', |
|
2484 | - 'relationship' => 'none', |
|
2475 | + ), |
|
2476 | + 'empty' => '', |
|
2477 | + 'hide_empty' => 0, |
|
2478 | + 'empty_zero' => 0, |
|
2479 | + 'hide_alter_empty' => 1, |
|
2480 | + 'exclude' => 0, |
|
2481 | + 'id' => 'rownumber', |
|
2482 | + 'table' => 'customfield', |
|
2483 | + 'field' => 'rownumber', |
|
2484 | + 'relationship' => 'none', |
|
2485 | 2485 | ), |
2486 | 2486 | 'id' => array( |
2487 | - 'label' => 'Id', |
|
2488 | - 'alter' => array( |
|
2487 | + 'label' => 'Id', |
|
2488 | + 'alter' => array( |
|
2489 | 2489 | 'alter_text' => 0, |
2490 | 2490 | 'text' => '', |
2491 | 2491 | 'make_link' => 0, |
@@ -2504,29 +2504,29 @@ discard block |
||
2504 | 2504 | 'ellipsis' => 1, |
2505 | 2505 | 'html' => 0, |
2506 | 2506 | 'strip_tags' => 0, |
2507 | - ), |
|
2508 | - 'empty' => '', |
|
2509 | - 'hide_empty' => 0, |
|
2510 | - 'empty_zero' => 0, |
|
2511 | - 'hide_alter_empty' => 1, |
|
2512 | - 'set_precision' => FALSE, |
|
2513 | - 'precision' => 0, |
|
2514 | - 'decimal' => '.', |
|
2515 | - 'separator' => '', |
|
2516 | - 'format_plural' => 0, |
|
2517 | - 'format_plural_singular' => '1', |
|
2518 | - 'format_plural_plural' => '@count', |
|
2519 | - 'prefix' => '', |
|
2520 | - 'suffix' => '', |
|
2521 | - 'exclude' => 1, |
|
2522 | - 'id' => 'id', |
|
2523 | - 'table' => 'team', |
|
2524 | - 'field' => 'id', |
|
2525 | - 'relationship' => 'none', |
|
2507 | + ), |
|
2508 | + 'empty' => '', |
|
2509 | + 'hide_empty' => 0, |
|
2510 | + 'empty_zero' => 0, |
|
2511 | + 'hide_alter_empty' => 1, |
|
2512 | + 'set_precision' => FALSE, |
|
2513 | + 'precision' => 0, |
|
2514 | + 'decimal' => '.', |
|
2515 | + 'separator' => '', |
|
2516 | + 'format_plural' => 0, |
|
2517 | + 'format_plural_singular' => '1', |
|
2518 | + 'format_plural_plural' => '@count', |
|
2519 | + 'prefix' => '', |
|
2520 | + 'suffix' => '', |
|
2521 | + 'exclude' => 1, |
|
2522 | + 'id' => 'id', |
|
2523 | + 'table' => 'team', |
|
2524 | + 'field' => 'id', |
|
2525 | + 'relationship' => 'none', |
|
2526 | 2526 | ), |
2527 | 2527 | 'name' => array( |
2528 | - 'label' => 'Name', |
|
2529 | - 'alter' => array( |
|
2528 | + 'label' => 'Name', |
|
2529 | + 'alter' => array( |
|
2530 | 2530 | 'alter_text' => 0, |
2531 | 2531 | 'text' => '', |
2532 | 2532 | 'make_link' => 0, |
@@ -2545,20 +2545,20 @@ discard block |
||
2545 | 2545 | 'ellipsis' => 1, |
2546 | 2546 | 'html' => 0, |
2547 | 2547 | 'strip_tags' => 0, |
2548 | - ), |
|
2549 | - 'empty' => '', |
|
2550 | - 'hide_empty' => 0, |
|
2551 | - 'empty_zero' => 0, |
|
2552 | - 'hide_alter_empty' => 1, |
|
2553 | - 'exclude' => 1, |
|
2554 | - 'id' => 'name', |
|
2555 | - 'table' => 'team', |
|
2556 | - 'field' => 'name', |
|
2557 | - 'relationship' => 'none', |
|
2548 | + ), |
|
2549 | + 'empty' => '', |
|
2550 | + 'hide_empty' => 0, |
|
2551 | + 'empty_zero' => 0, |
|
2552 | + 'hide_alter_empty' => 1, |
|
2553 | + 'exclude' => 1, |
|
2554 | + 'id' => 'name', |
|
2555 | + 'table' => 'team', |
|
2556 | + 'field' => 'name', |
|
2557 | + 'relationship' => 'none', |
|
2558 | 2558 | ), |
2559 | 2559 | 'phpcode' => array( |
2560 | - 'label' => 'Name', |
|
2561 | - 'alter' => array( |
|
2560 | + 'label' => 'Name', |
|
2561 | + 'alter' => array( |
|
2562 | 2562 | 'alter_text' => 0, |
2563 | 2563 | 'text' => '', |
2564 | 2564 | 'make_link' => 0, |
@@ -2577,24 +2577,24 @@ discard block |
||
2577 | 2577 | 'ellipsis' => 1, |
2578 | 2578 | 'html' => 0, |
2579 | 2579 | 'strip_tags' => 0, |
2580 | - ), |
|
2581 | - 'empty' => '', |
|
2582 | - 'hide_empty' => 0, |
|
2583 | - 'empty_zero' => 0, |
|
2584 | - 'hide_alter_empty' => 1, |
|
2585 | - 'value' => '<?php |
|
2580 | + ), |
|
2581 | + 'empty' => '', |
|
2582 | + 'hide_empty' => 0, |
|
2583 | + 'empty_zero' => 0, |
|
2584 | + 'hide_alter_empty' => 1, |
|
2585 | + 'value' => '<?php |
|
2586 | 2586 | $team_id = boincteam_lookup_nid($data->id); |
2587 | 2587 | echo l($data->team_name, "community/teams/{$team_id}"); |
2588 | 2588 | ?>', |
2589 | - 'exclude' => 0, |
|
2590 | - 'id' => 'phpcode', |
|
2591 | - 'table' => 'customfield', |
|
2592 | - 'field' => 'phpcode', |
|
2593 | - 'relationship' => 'none', |
|
2589 | + 'exclude' => 0, |
|
2590 | + 'id' => 'phpcode', |
|
2591 | + 'table' => 'customfield', |
|
2592 | + 'field' => 'phpcode', |
|
2593 | + 'relationship' => 'none', |
|
2594 | 2594 | ), |
2595 | 2595 | 'expavg_credit' => array( |
2596 | - 'label' => 'Recent average credit', |
|
2597 | - 'alter' => array( |
|
2596 | + 'label' => 'Recent average credit', |
|
2597 | + 'alter' => array( |
|
2598 | 2598 | 'alter_text' => 0, |
2599 | 2599 | 'text' => '', |
2600 | 2600 | 'make_link' => 0, |
@@ -2613,29 +2613,29 @@ discard block |
||
2613 | 2613 | 'ellipsis' => 1, |
2614 | 2614 | 'html' => 0, |
2615 | 2615 | 'strip_tags' => 0, |
2616 | - ), |
|
2617 | - 'empty' => '', |
|
2618 | - 'hide_empty' => 0, |
|
2619 | - 'empty_zero' => 0, |
|
2620 | - 'hide_alter_empty' => 1, |
|
2621 | - 'set_precision' => 1, |
|
2622 | - 'precision' => '2', |
|
2623 | - 'decimal' => '.', |
|
2624 | - 'separator' => ',', |
|
2625 | - 'format_plural' => 0, |
|
2626 | - 'format_plural_singular' => '1', |
|
2627 | - 'format_plural_plural' => '@count', |
|
2628 | - 'prefix' => '', |
|
2629 | - 'suffix' => '', |
|
2630 | - 'exclude' => 0, |
|
2631 | - 'id' => 'expavg_credit', |
|
2632 | - 'table' => 'team', |
|
2633 | - 'field' => 'expavg_credit', |
|
2634 | - 'relationship' => 'none', |
|
2616 | + ), |
|
2617 | + 'empty' => '', |
|
2618 | + 'hide_empty' => 0, |
|
2619 | + 'empty_zero' => 0, |
|
2620 | + 'hide_alter_empty' => 1, |
|
2621 | + 'set_precision' => 1, |
|
2622 | + 'precision' => '2', |
|
2623 | + 'decimal' => '.', |
|
2624 | + 'separator' => ',', |
|
2625 | + 'format_plural' => 0, |
|
2626 | + 'format_plural_singular' => '1', |
|
2627 | + 'format_plural_plural' => '@count', |
|
2628 | + 'prefix' => '', |
|
2629 | + 'suffix' => '', |
|
2630 | + 'exclude' => 0, |
|
2631 | + 'id' => 'expavg_credit', |
|
2632 | + 'table' => 'team', |
|
2633 | + 'field' => 'expavg_credit', |
|
2634 | + 'relationship' => 'none', |
|
2635 | 2635 | ), |
2636 | 2636 | 'total_credit' => array( |
2637 | - 'label' => 'Total Credit', |
|
2638 | - 'alter' => array( |
|
2637 | + 'label' => 'Total Credit', |
|
2638 | + 'alter' => array( |
|
2639 | 2639 | 'alter_text' => 0, |
2640 | 2640 | 'text' => '', |
2641 | 2641 | 'make_link' => 0, |
@@ -2654,57 +2654,57 @@ discard block |
||
2654 | 2654 | 'ellipsis' => 1, |
2655 | 2655 | 'html' => 0, |
2656 | 2656 | 'strip_tags' => 0, |
2657 | - ), |
|
2658 | - 'empty' => '', |
|
2659 | - 'hide_empty' => 0, |
|
2660 | - 'empty_zero' => 0, |
|
2661 | - 'hide_alter_empty' => 1, |
|
2662 | - 'set_precision' => 1, |
|
2663 | - 'precision' => '0', |
|
2664 | - 'decimal' => '.', |
|
2665 | - 'separator' => ',', |
|
2666 | - 'format_plural' => 0, |
|
2667 | - 'format_plural_singular' => '1', |
|
2668 | - 'format_plural_plural' => '@count', |
|
2669 | - 'prefix' => '', |
|
2670 | - 'suffix' => '', |
|
2671 | - 'exclude' => 0, |
|
2672 | - 'id' => 'total_credit', |
|
2673 | - 'table' => 'team', |
|
2674 | - 'field' => 'total_credit', |
|
2675 | - 'relationship' => 'none', |
|
2657 | + ), |
|
2658 | + 'empty' => '', |
|
2659 | + 'hide_empty' => 0, |
|
2660 | + 'empty_zero' => 0, |
|
2661 | + 'hide_alter_empty' => 1, |
|
2662 | + 'set_precision' => 1, |
|
2663 | + 'precision' => '0', |
|
2664 | + 'decimal' => '.', |
|
2665 | + 'separator' => ',', |
|
2666 | + 'format_plural' => 0, |
|
2667 | + 'format_plural_singular' => '1', |
|
2668 | + 'format_plural_plural' => '@count', |
|
2669 | + 'prefix' => '', |
|
2670 | + 'suffix' => '', |
|
2671 | + 'exclude' => 0, |
|
2672 | + 'id' => 'total_credit', |
|
2673 | + 'table' => 'team', |
|
2674 | + 'field' => 'total_credit', |
|
2675 | + 'relationship' => 'none', |
|
2676 | 2676 | ), |
2677 | 2677 | 'country' => array( |
2678 | - 'id' => 'country', |
|
2679 | - 'table' => 'team', |
|
2680 | - 'field' => 'country', |
|
2678 | + 'id' => 'country', |
|
2679 | + 'table' => 'team', |
|
2680 | + 'field' => 'country', |
|
2681 | 2681 | ), |
2682 | 2682 | 'nusers' => array( |
2683 | - 'id' => 'nusers', |
|
2684 | - 'table' => 'team', |
|
2685 | - 'field' => 'nusers', |
|
2683 | + 'id' => 'nusers', |
|
2684 | + 'table' => 'team', |
|
2685 | + 'field' => 'nusers', |
|
2686 | 2686 | ), |
2687 | - )); |
|
2688 | - $handler->override_option('arguments', array( |
|
2687 | + )); |
|
2688 | + $handler->override_option('arguments', array( |
|
2689 | 2689 | 'id' => array( |
2690 | - 'default_action' => 'ignore', |
|
2691 | - 'style_plugin' => 'default_summary', |
|
2692 | - 'style_options' => array(), |
|
2693 | - 'wildcard' => 'all', |
|
2694 | - 'wildcard_substitution' => 'All', |
|
2695 | - 'title' => '', |
|
2696 | - 'breadcrumb' => '', |
|
2697 | - 'default_argument_type' => 'fixed', |
|
2698 | - 'default_argument' => '', |
|
2699 | - 'validate_type' => 'numeric', |
|
2700 | - 'validate_fail' => 'not found', |
|
2701 | - 'break_phrase' => 0, |
|
2702 | - 'not' => 0, |
|
2703 | - 'id' => 'id', |
|
2704 | - 'table' => 'team', |
|
2705 | - 'field' => 'id', |
|
2706 | - 'validate_user_argument_type' => 'uid', |
|
2707 | - 'validate_user_roles' => array( |
|
2690 | + 'default_action' => 'ignore', |
|
2691 | + 'style_plugin' => 'default_summary', |
|
2692 | + 'style_options' => array(), |
|
2693 | + 'wildcard' => 'all', |
|
2694 | + 'wildcard_substitution' => 'All', |
|
2695 | + 'title' => '', |
|
2696 | + 'breadcrumb' => '', |
|
2697 | + 'default_argument_type' => 'fixed', |
|
2698 | + 'default_argument' => '', |
|
2699 | + 'validate_type' => 'numeric', |
|
2700 | + 'validate_fail' => 'not found', |
|
2701 | + 'break_phrase' => 0, |
|
2702 | + 'not' => 0, |
|
2703 | + 'id' => 'id', |
|
2704 | + 'table' => 'team', |
|
2705 | + 'field' => 'id', |
|
2706 | + 'validate_user_argument_type' => 'uid', |
|
2707 | + 'validate_user_roles' => array( |
|
2708 | 2708 | 2 => 0, |
2709 | 2709 | 3519698132 => 0, |
2710 | 2710 | 1110965548 => 0, |
@@ -2713,10 +2713,10 @@ discard block |
||
2713 | 2713 | 268174006 => 0, |
2714 | 2714 | 1271379760 => 0, |
2715 | 2715 | 933038561 => 0, |
2716 | - ), |
|
2717 | - 'me_redirect' => 0, |
|
2718 | - 'me_validate_user_argument_type' => 'uid', |
|
2719 | - 'me_validate_user_roles' => array( |
|
2716 | + ), |
|
2717 | + 'me_redirect' => 0, |
|
2718 | + 'me_validate_user_argument_type' => 'uid', |
|
2719 | + 'me_validate_user_roles' => array( |
|
2720 | 2720 | 2 => 0, |
2721 | 2721 | 3519698132 => 0, |
2722 | 2722 | 1110965548 => 0, |
@@ -2725,20 +2725,20 @@ discard block |
||
2725 | 2725 | 268174006 => 0, |
2726 | 2726 | 1271379760 => 0, |
2727 | 2727 | 933038561 => 0, |
2728 | - ), |
|
2729 | - 'relationship' => 'none', |
|
2730 | - 'default_options_div_prefix' => '', |
|
2731 | - 'default_taxonomy_tid_term_page' => 0, |
|
2732 | - 'default_taxonomy_tid_node' => 0, |
|
2733 | - 'default_taxonomy_tid_limit' => 0, |
|
2734 | - 'default_taxonomy_tid_vids' => array( |
|
2728 | + ), |
|
2729 | + 'relationship' => 'none', |
|
2730 | + 'default_options_div_prefix' => '', |
|
2731 | + 'default_taxonomy_tid_term_page' => 0, |
|
2732 | + 'default_taxonomy_tid_node' => 0, |
|
2733 | + 'default_taxonomy_tid_limit' => 0, |
|
2734 | + 'default_taxonomy_tid_vids' => array( |
|
2735 | 2735 | 1 => 0, |
2736 | 2736 | 2 => 0, |
2737 | - ), |
|
2738 | - 'default_argument_user' => 0, |
|
2739 | - 'default_argument_fixed' => '', |
|
2740 | - 'default_argument_php' => '', |
|
2741 | - 'validate_argument_node_type' => array( |
|
2737 | + ), |
|
2738 | + 'default_argument_user' => 0, |
|
2739 | + 'default_argument_fixed' => '', |
|
2740 | + 'default_argument_php' => '', |
|
2741 | + 'validate_argument_node_type' => array( |
|
2742 | 2742 | 'page' => 0, |
2743 | 2743 | 'news' => 0, |
2744 | 2744 | 'profile' => 0, |
@@ -2746,119 +2746,119 @@ discard block |
||
2746 | 2746 | 'panel' => 0, |
2747 | 2747 | 'story' => 0, |
2748 | 2748 | 'team' => 0, |
2749 | - ), |
|
2750 | - 'validate_argument_node_access' => 0, |
|
2751 | - 'validate_argument_nid_type' => 'nid', |
|
2752 | - 'validate_argument_vocabulary' => array( |
|
2749 | + ), |
|
2750 | + 'validate_argument_node_access' => 0, |
|
2751 | + 'validate_argument_nid_type' => 'nid', |
|
2752 | + 'validate_argument_vocabulary' => array( |
|
2753 | 2753 | 1 => 0, |
2754 | 2754 | 2 => 0, |
2755 | - ), |
|
2756 | - 'validate_argument_type' => 'tid', |
|
2757 | - 'validate_argument_transform' => 0, |
|
2758 | - 'validate_user_restrict_roles' => 0, |
|
2759 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
2760 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
2761 | - 'validate_argument_node_flag_id_type' => 'id', |
|
2762 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
2763 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
2764 | - 'validate_argument_user_flag_id_type' => 'id', |
|
2765 | - 'validate_argument_php' => '', |
|
2766 | - 'me_validate_user_restrict_roles' => 0, |
|
2767 | - ), |
|
2768 | - )); |
|
2769 | - $handler->override_option('access', array( |
|
2755 | + ), |
|
2756 | + 'validate_argument_type' => 'tid', |
|
2757 | + 'validate_argument_transform' => 0, |
|
2758 | + 'validate_user_restrict_roles' => 0, |
|
2759 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
2760 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
2761 | + 'validate_argument_node_flag_id_type' => 'id', |
|
2762 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
2763 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
2764 | + 'validate_argument_user_flag_id_type' => 'id', |
|
2765 | + 'validate_argument_php' => '', |
|
2766 | + 'me_validate_user_restrict_roles' => 0, |
|
2767 | + ), |
|
2768 | + )); |
|
2769 | + $handler->override_option('access', array( |
|
2770 | 2770 | 'type' => 'none', |
2771 | - )); |
|
2772 | - $handler->override_option('cache', array( |
|
2771 | + )); |
|
2772 | + $handler->override_option('cache', array( |
|
2773 | 2773 | 'type' => 'none', |
2774 | - )); |
|
2775 | - $handler->override_option('header_format', '1'); |
|
2776 | - $handler->override_option('header_empty', 1); |
|
2777 | - $handler = $view->new_display('panel_pane', 'Top teams overview pane', 'panel_pane_1'); |
|
2778 | - $handler->override_option('filters', array( |
|
2774 | + )); |
|
2775 | + $handler->override_option('header_format', '1'); |
|
2776 | + $handler->override_option('header_empty', 1); |
|
2777 | + $handler = $view->new_display('panel_pane', 'Top teams overview pane', 'panel_pane_1'); |
|
2778 | + $handler->override_option('filters', array( |
|
2779 | 2779 | 'total_credit' => array( |
2780 | - 'operator' => '>=', |
|
2781 | - 'value' => array( |
|
2780 | + 'operator' => '>=', |
|
2781 | + 'value' => array( |
|
2782 | 2782 | 'value' => '1', |
2783 | 2783 | 'min' => '', |
2784 | 2784 | 'max' => '', |
2785 | - ), |
|
2786 | - 'group' => '0', |
|
2787 | - 'exposed' => FALSE, |
|
2788 | - 'expose' => array( |
|
2785 | + ), |
|
2786 | + 'group' => '0', |
|
2787 | + 'exposed' => FALSE, |
|
2788 | + 'expose' => array( |
|
2789 | 2789 | 'operator' => FALSE, |
2790 | 2790 | 'label' => '', |
2791 | - ), |
|
2792 | - 'id' => 'total_credit', |
|
2793 | - 'table' => 'team', |
|
2794 | - 'field' => 'total_credit', |
|
2795 | - 'override' => array( |
|
2791 | + ), |
|
2792 | + 'id' => 'total_credit', |
|
2793 | + 'table' => 'team', |
|
2794 | + 'field' => 'total_credit', |
|
2795 | + 'override' => array( |
|
2796 | 2796 | 'button' => 'Use default', |
2797 | - ), |
|
2798 | - 'relationship' => 'none', |
|
2799 | - ), |
|
2800 | - )); |
|
2801 | - $handler->override_option('use_more', 1); |
|
2802 | - $handler->override_option('use_more_always', 1); |
|
2803 | - $handler->override_option('use_more_text', 'view more'); |
|
2804 | - $handler->override_option('style_plugin', 'table'); |
|
2805 | - $handler->override_option('style_options', array( |
|
2797 | + ), |
|
2798 | + 'relationship' => 'none', |
|
2799 | + ), |
|
2800 | + )); |
|
2801 | + $handler->override_option('use_more', 1); |
|
2802 | + $handler->override_option('use_more_always', 1); |
|
2803 | + $handler->override_option('use_more_text', 'view more'); |
|
2804 | + $handler->override_option('style_plugin', 'table'); |
|
2805 | + $handler->override_option('style_options', array( |
|
2806 | 2806 | 'grouping' => '', |
2807 | 2807 | 'override' => 1, |
2808 | 2808 | 'sticky' => 1, |
2809 | 2809 | 'order' => 'desc', |
2810 | 2810 | 'summary' => '', |
2811 | 2811 | 'columns' => array( |
2812 | - 'rownumber' => 'rownumber', |
|
2813 | - 'id' => 'id', |
|
2814 | - 'name' => 'name', |
|
2815 | - 'phpcode' => 'phpcode', |
|
2816 | - 'expavg_credit' => 'expavg_credit', |
|
2817 | - 'total_credit' => 'total_credit', |
|
2818 | - 'country' => 'country', |
|
2819 | - 'nusers' => 'nusers', |
|
2812 | + 'rownumber' => 'rownumber', |
|
2813 | + 'id' => 'id', |
|
2814 | + 'name' => 'name', |
|
2815 | + 'phpcode' => 'phpcode', |
|
2816 | + 'expavg_credit' => 'expavg_credit', |
|
2817 | + 'total_credit' => 'total_credit', |
|
2818 | + 'country' => 'country', |
|
2819 | + 'nusers' => 'nusers', |
|
2820 | 2820 | ), |
2821 | 2821 | 'info' => array( |
2822 | - 'rownumber' => array( |
|
2822 | + 'rownumber' => array( |
|
2823 | 2823 | 'separator' => '', |
2824 | - ), |
|
2825 | - 'id' => array( |
|
2824 | + ), |
|
2825 | + 'id' => array( |
|
2826 | 2826 | 'sortable' => 1, |
2827 | 2827 | 'separator' => '', |
2828 | - ), |
|
2829 | - 'name' => array( |
|
2828 | + ), |
|
2829 | + 'name' => array( |
|
2830 | 2830 | 'sortable' => 1, |
2831 | 2831 | 'separator' => '', |
2832 | - ), |
|
2833 | - 'phpcode' => array( |
|
2832 | + ), |
|
2833 | + 'phpcode' => array( |
|
2834 | 2834 | 'separator' => '', |
2835 | - ), |
|
2836 | - 'expavg_credit' => array( |
|
2835 | + ), |
|
2836 | + 'expavg_credit' => array( |
|
2837 | 2837 | 'sortable' => 1, |
2838 | 2838 | 'separator' => '', |
2839 | - ), |
|
2840 | - 'total_credit' => array( |
|
2839 | + ), |
|
2840 | + 'total_credit' => array( |
|
2841 | 2841 | 'sortable' => 1, |
2842 | 2842 | 'separator' => '', |
2843 | - ), |
|
2844 | - 'country' => array( |
|
2843 | + ), |
|
2844 | + 'country' => array( |
|
2845 | 2845 | 'sortable' => 0, |
2846 | 2846 | 'separator' => '', |
2847 | - ), |
|
2848 | - 'nusers' => array( |
|
2847 | + ), |
|
2848 | + 'nusers' => array( |
|
2849 | 2849 | 'sortable' => 1, |
2850 | 2850 | 'separator' => '', |
2851 | - ), |
|
2851 | + ), |
|
2852 | 2852 | ), |
2853 | 2853 | 'default' => 'expavg_credit', |
2854 | - )); |
|
2855 | - $handler->override_option('pane_title', ''); |
|
2856 | - $handler->override_option('pane_description', ''); |
|
2857 | - $handler->override_option('pane_category', array( |
|
2854 | + )); |
|
2855 | + $handler->override_option('pane_title', ''); |
|
2856 | + $handler->override_option('pane_description', ''); |
|
2857 | + $handler->override_option('pane_category', array( |
|
2858 | 2858 | 'name' => 'View panes', |
2859 | 2859 | 'weight' => 0, |
2860 | - )); |
|
2861 | - $handler->override_option('allow', array( |
|
2860 | + )); |
|
2861 | + $handler->override_option('allow', array( |
|
2862 | 2862 | 'use_pager' => 'use_pager', |
2863 | 2863 | 'items_per_page' => 'items_per_page', |
2864 | 2864 | 'offset' => 0, |
@@ -2868,131 +2868,131 @@ discard block |
||
2868 | 2868 | 'title_override' => 'title_override', |
2869 | 2869 | 'exposed_form' => 0, |
2870 | 2870 | 'fields_override' => 0, |
2871 | - )); |
|
2872 | - $handler->override_option('argument_input', array()); |
|
2873 | - $handler->override_option('link_to_view', 0); |
|
2874 | - $handler->override_option('inherit_panels_path', 0); |
|
2875 | - $handler = $view->new_display('page', 'Page', 'page_1'); |
|
2876 | - $handler->override_option('filters', array( |
|
2871 | + )); |
|
2872 | + $handler->override_option('argument_input', array()); |
|
2873 | + $handler->override_option('link_to_view', 0); |
|
2874 | + $handler->override_option('inherit_panels_path', 0); |
|
2875 | + $handler = $view->new_display('page', 'Page', 'page_1'); |
|
2876 | + $handler->override_option('filters', array( |
|
2877 | 2877 | 'total_credit' => array( |
2878 | - 'operator' => '>=', |
|
2879 | - 'value' => array( |
|
2878 | + 'operator' => '>=', |
|
2879 | + 'value' => array( |
|
2880 | 2880 | 'value' => '1', |
2881 | 2881 | 'min' => '', |
2882 | 2882 | 'max' => '', |
2883 | - ), |
|
2884 | - 'group' => '0', |
|
2885 | - 'exposed' => FALSE, |
|
2886 | - 'expose' => array( |
|
2883 | + ), |
|
2884 | + 'group' => '0', |
|
2885 | + 'exposed' => FALSE, |
|
2886 | + 'expose' => array( |
|
2887 | 2887 | 'operator' => FALSE, |
2888 | 2888 | 'label' => '', |
2889 | - ), |
|
2890 | - 'id' => 'total_credit', |
|
2891 | - 'table' => 'team', |
|
2892 | - 'field' => 'total_credit', |
|
2893 | - 'override' => array( |
|
2889 | + ), |
|
2890 | + 'id' => 'total_credit', |
|
2891 | + 'table' => 'team', |
|
2892 | + 'field' => 'total_credit', |
|
2893 | + 'override' => array( |
|
2894 | 2894 | 'button' => 'Use default', |
2895 | - ), |
|
2896 | - 'relationship' => 'none', |
|
2897 | - ), |
|
2898 | - )); |
|
2899 | - $handler->override_option('items_per_page', 100); |
|
2900 | - $handler->override_option('use_pager', '0'); |
|
2901 | - $handler->override_option('style_plugin', 'table'); |
|
2902 | - $handler->override_option('style_options', array( |
|
2895 | + ), |
|
2896 | + 'relationship' => 'none', |
|
2897 | + ), |
|
2898 | + )); |
|
2899 | + $handler->override_option('items_per_page', 100); |
|
2900 | + $handler->override_option('use_pager', '0'); |
|
2901 | + $handler->override_option('style_plugin', 'table'); |
|
2902 | + $handler->override_option('style_options', array( |
|
2903 | 2903 | 'grouping' => '', |
2904 | 2904 | 'override' => 1, |
2905 | 2905 | 'sticky' => 1, |
2906 | 2906 | 'order' => 'desc', |
2907 | 2907 | 'summary' => '', |
2908 | 2908 | 'columns' => array( |
2909 | - 'rownumber' => 'rownumber', |
|
2910 | - 'id' => 'id', |
|
2911 | - 'name' => 'name', |
|
2912 | - 'phpcode' => 'phpcode', |
|
2913 | - 'expavg_credit' => 'expavg_credit', |
|
2914 | - 'total_credit' => 'total_credit', |
|
2915 | - 'country' => 'country', |
|
2916 | - 'nusers' => 'nusers', |
|
2909 | + 'rownumber' => 'rownumber', |
|
2910 | + 'id' => 'id', |
|
2911 | + 'name' => 'name', |
|
2912 | + 'phpcode' => 'phpcode', |
|
2913 | + 'expavg_credit' => 'expavg_credit', |
|
2914 | + 'total_credit' => 'total_credit', |
|
2915 | + 'country' => 'country', |
|
2916 | + 'nusers' => 'nusers', |
|
2917 | 2917 | ), |
2918 | 2918 | 'info' => array( |
2919 | - 'rownumber' => array( |
|
2919 | + 'rownumber' => array( |
|
2920 | 2920 | 'separator' => '', |
2921 | - ), |
|
2922 | - 'id' => array( |
|
2921 | + ), |
|
2922 | + 'id' => array( |
|
2923 | 2923 | 'sortable' => 1, |
2924 | 2924 | 'separator' => '', |
2925 | - ), |
|
2926 | - 'name' => array( |
|
2925 | + ), |
|
2926 | + 'name' => array( |
|
2927 | 2927 | 'sortable' => 1, |
2928 | 2928 | 'separator' => '', |
2929 | - ), |
|
2930 | - 'phpcode' => array( |
|
2929 | + ), |
|
2930 | + 'phpcode' => array( |
|
2931 | 2931 | 'separator' => '', |
2932 | - ), |
|
2933 | - 'expavg_credit' => array( |
|
2932 | + ), |
|
2933 | + 'expavg_credit' => array( |
|
2934 | 2934 | 'sortable' => 1, |
2935 | 2935 | 'separator' => '', |
2936 | - ), |
|
2937 | - 'total_credit' => array( |
|
2936 | + ), |
|
2937 | + 'total_credit' => array( |
|
2938 | 2938 | 'sortable' => 1, |
2939 | 2939 | 'separator' => '', |
2940 | - ), |
|
2941 | - 'country' => array( |
|
2940 | + ), |
|
2941 | + 'country' => array( |
|
2942 | 2942 | 'sortable' => 0, |
2943 | 2943 | 'separator' => '', |
2944 | - ), |
|
2945 | - 'nusers' => array( |
|
2944 | + ), |
|
2945 | + 'nusers' => array( |
|
2946 | 2946 | 'sortable' => 1, |
2947 | 2947 | 'separator' => '', |
2948 | - ), |
|
2948 | + ), |
|
2949 | 2949 | ), |
2950 | 2950 | 'default' => 'expavg_credit', |
2951 | - )); |
|
2952 | - $handler->override_option('path', 'community/stats/teams'); |
|
2953 | - $handler->override_option('menu', array( |
|
2951 | + )); |
|
2952 | + $handler->override_option('path', 'community/stats/teams'); |
|
2953 | + $handler->override_option('menu', array( |
|
2954 | 2954 | 'type' => 'tab', |
2955 | 2955 | 'title' => 'Top Teams', |
2956 | 2956 | 'description' => '', |
2957 | 2957 | 'weight' => '10', |
2958 | 2958 | 'name' => 'primary-links', |
2959 | - )); |
|
2960 | - $handler->override_option('tab_options', array( |
|
2959 | + )); |
|
2960 | + $handler->override_option('tab_options', array( |
|
2961 | 2961 | 'type' => 'none', |
2962 | 2962 | 'title' => '', |
2963 | 2963 | 'description' => '', |
2964 | 2964 | 'weight' => 0, |
2965 | 2965 | 'name' => 'navigation', |
2966 | - )); |
|
2967 | - $handler = $view->new_display('panel_pane', 'Team history', 'panel_pane_2'); |
|
2968 | - $handler->override_option('relationships', array( |
|
2966 | + )); |
|
2967 | + $handler = $view->new_display('panel_pane', 'Team history', 'panel_pane_2'); |
|
2968 | + $handler->override_option('relationships', array( |
|
2969 | 2969 | 'id' => array( |
2970 | - 'label' => 'Team History', |
|
2971 | - 'required' => 0, |
|
2972 | - 'id' => 'id', |
|
2973 | - 'table' => 'team', |
|
2974 | - 'field' => 'id', |
|
2975 | - 'override' => array( |
|
2970 | + 'label' => 'Team History', |
|
2971 | + 'required' => 0, |
|
2972 | + 'id' => 'id', |
|
2973 | + 'table' => 'team', |
|
2974 | + 'field' => 'id', |
|
2975 | + 'override' => array( |
|
2976 | 2976 | 'button' => 'Use default', |
2977 | - ), |
|
2978 | - 'relationship' => 'none', |
|
2977 | + ), |
|
2978 | + 'relationship' => 'none', |
|
2979 | 2979 | ), |
2980 | 2980 | 'userid' => array( |
2981 | - 'label' => 'User (Team History)', |
|
2982 | - 'required' => 0, |
|
2983 | - 'id' => 'userid', |
|
2984 | - 'table' => 'team_delta', |
|
2985 | - 'field' => 'userid', |
|
2986 | - 'relationship' => 'id', |
|
2987 | - 'override' => array( |
|
2981 | + 'label' => 'User (Team History)', |
|
2982 | + 'required' => 0, |
|
2983 | + 'id' => 'userid', |
|
2984 | + 'table' => 'team_delta', |
|
2985 | + 'field' => 'userid', |
|
2986 | + 'relationship' => 'id', |
|
2987 | + 'override' => array( |
|
2988 | 2988 | 'button' => 'Use default', |
2989 | - ), |
|
2989 | + ), |
|
2990 | 2990 | ), |
2991 | - )); |
|
2992 | - $handler->override_option('fields', array( |
|
2991 | + )); |
|
2992 | + $handler->override_option('fields', array( |
|
2993 | 2993 | 'userid' => array( |
2994 | - 'label' => 'User ID', |
|
2995 | - 'alter' => array( |
|
2994 | + 'label' => 'User ID', |
|
2995 | + 'alter' => array( |
|
2996 | 2996 | 'alter_text' => 0, |
2997 | 2997 | 'text' => '', |
2998 | 2998 | 'make_link' => 0, |
@@ -3011,32 +3011,32 @@ discard block |
||
3011 | 3011 | 'ellipsis' => 1, |
3012 | 3012 | 'html' => 0, |
3013 | 3013 | 'strip_tags' => 0, |
3014 | - ), |
|
3015 | - 'empty' => '', |
|
3016 | - 'hide_empty' => 0, |
|
3017 | - 'empty_zero' => 0, |
|
3018 | - 'hide_alter_empty' => 1, |
|
3019 | - 'set_precision' => FALSE, |
|
3020 | - 'precision' => 0, |
|
3021 | - 'decimal' => '.', |
|
3022 | - 'separator' => '', |
|
3023 | - 'format_plural' => 0, |
|
3024 | - 'format_plural_singular' => '1', |
|
3025 | - 'format_plural_plural' => '@count', |
|
3026 | - 'prefix' => '', |
|
3027 | - 'suffix' => '', |
|
3028 | - 'exclude' => 0, |
|
3029 | - 'id' => 'userid', |
|
3030 | - 'table' => 'team_delta', |
|
3031 | - 'field' => 'userid', |
|
3032 | - 'override' => array( |
|
3014 | + ), |
|
3015 | + 'empty' => '', |
|
3016 | + 'hide_empty' => 0, |
|
3017 | + 'empty_zero' => 0, |
|
3018 | + 'hide_alter_empty' => 1, |
|
3019 | + 'set_precision' => FALSE, |
|
3020 | + 'precision' => 0, |
|
3021 | + 'decimal' => '.', |
|
3022 | + 'separator' => '', |
|
3023 | + 'format_plural' => 0, |
|
3024 | + 'format_plural_singular' => '1', |
|
3025 | + 'format_plural_plural' => '@count', |
|
3026 | + 'prefix' => '', |
|
3027 | + 'suffix' => '', |
|
3028 | + 'exclude' => 0, |
|
3029 | + 'id' => 'userid', |
|
3030 | + 'table' => 'team_delta', |
|
3031 | + 'field' => 'userid', |
|
3032 | + 'override' => array( |
|
3033 | 3033 | 'button' => 'Use default', |
3034 | - ), |
|
3035 | - 'relationship' => 'id', |
|
3034 | + ), |
|
3035 | + 'relationship' => 'id', |
|
3036 | 3036 | ), |
3037 | 3037 | 'timestamp' => array( |
3038 | - 'label' => 'Timestamp', |
|
3039 | - 'alter' => array( |
|
3038 | + 'label' => 'Timestamp', |
|
3039 | + 'alter' => array( |
|
3040 | 3040 | 'alter_text' => 0, |
3041 | 3041 | 'text' => '', |
3042 | 3042 | 'make_link' => 0, |
@@ -3055,25 +3055,25 @@ discard block |
||
3055 | 3055 | 'ellipsis' => 1, |
3056 | 3056 | 'html' => 0, |
3057 | 3057 | 'strip_tags' => 0, |
3058 | - ), |
|
3059 | - 'empty' => '', |
|
3060 | - 'hide_empty' => 0, |
|
3061 | - 'empty_zero' => 0, |
|
3062 | - 'hide_alter_empty' => 1, |
|
3063 | - 'date_format' => 'custom', |
|
3064 | - 'custom_date_format' => 'j M Y G:i:s T', |
|
3065 | - 'exclude' => 0, |
|
3066 | - 'id' => 'timestamp', |
|
3067 | - 'table' => 'team_delta', |
|
3068 | - 'field' => 'timestamp', |
|
3069 | - 'override' => array( |
|
3058 | + ), |
|
3059 | + 'empty' => '', |
|
3060 | + 'hide_empty' => 0, |
|
3061 | + 'empty_zero' => 0, |
|
3062 | + 'hide_alter_empty' => 1, |
|
3063 | + 'date_format' => 'custom', |
|
3064 | + 'custom_date_format' => 'j M Y G:i:s T', |
|
3065 | + 'exclude' => 0, |
|
3066 | + 'id' => 'timestamp', |
|
3067 | + 'table' => 'team_delta', |
|
3068 | + 'field' => 'timestamp', |
|
3069 | + 'override' => array( |
|
3070 | 3070 | 'button' => 'Use default', |
3071 | - ), |
|
3072 | - 'relationship' => 'id', |
|
3071 | + ), |
|
3072 | + 'relationship' => 'id', |
|
3073 | 3073 | ), |
3074 | 3074 | 'name' => array( |
3075 | - 'label' => 'Name', |
|
3076 | - 'alter' => array( |
|
3075 | + 'label' => 'Name', |
|
3076 | + 'alter' => array( |
|
3077 | 3077 | 'alter_text' => 0, |
3078 | 3078 | 'text' => '', |
3079 | 3079 | 'make_link' => 0, |
@@ -3092,23 +3092,23 @@ discard block |
||
3092 | 3092 | 'ellipsis' => 1, |
3093 | 3093 | 'html' => 0, |
3094 | 3094 | 'strip_tags' => 0, |
3095 | - ), |
|
3096 | - 'empty' => '', |
|
3097 | - 'hide_empty' => 0, |
|
3098 | - 'empty_zero' => 0, |
|
3099 | - 'hide_alter_empty' => 1, |
|
3100 | - 'exclude' => 0, |
|
3101 | - 'id' => 'name', |
|
3102 | - 'table' => 'user', |
|
3103 | - 'field' => 'name', |
|
3104 | - 'relationship' => 'userid', |
|
3105 | - 'override' => array( |
|
3095 | + ), |
|
3096 | + 'empty' => '', |
|
3097 | + 'hide_empty' => 0, |
|
3098 | + 'empty_zero' => 0, |
|
3099 | + 'hide_alter_empty' => 1, |
|
3100 | + 'exclude' => 0, |
|
3101 | + 'id' => 'name', |
|
3102 | + 'table' => 'user', |
|
3103 | + 'field' => 'name', |
|
3104 | + 'relationship' => 'userid', |
|
3105 | + 'override' => array( |
|
3106 | 3106 | 'button' => 'Use default', |
3107 | - ), |
|
3107 | + ), |
|
3108 | 3108 | ), |
3109 | 3109 | 'joining' => array( |
3110 | - 'label' => 'User joined', |
|
3111 | - 'alter' => array( |
|
3110 | + 'label' => 'User joined', |
|
3111 | + 'alter' => array( |
|
3112 | 3112 | 'alter_text' => 0, |
3113 | 3113 | 'text' => '', |
3114 | 3114 | 'make_link' => 0, |
@@ -3127,32 +3127,32 @@ discard block |
||
3127 | 3127 | 'ellipsis' => 1, |
3128 | 3128 | 'html' => 0, |
3129 | 3129 | 'strip_tags' => 0, |
3130 | - ), |
|
3131 | - 'empty' => '0', |
|
3132 | - 'hide_empty' => 0, |
|
3133 | - 'empty_zero' => 0, |
|
3134 | - 'hide_alter_empty' => 0, |
|
3135 | - 'set_precision' => FALSE, |
|
3136 | - 'precision' => 0, |
|
3137 | - 'decimal' => '.', |
|
3138 | - 'separator' => '', |
|
3139 | - 'format_plural' => 0, |
|
3140 | - 'format_plural_singular' => '1', |
|
3141 | - 'format_plural_plural' => '@count', |
|
3142 | - 'prefix' => '', |
|
3143 | - 'suffix' => '', |
|
3144 | - 'exclude' => 0, |
|
3145 | - 'id' => 'joining', |
|
3146 | - 'table' => 'team_delta', |
|
3147 | - 'field' => 'joining', |
|
3148 | - 'override' => array( |
|
3130 | + ), |
|
3131 | + 'empty' => '0', |
|
3132 | + 'hide_empty' => 0, |
|
3133 | + 'empty_zero' => 0, |
|
3134 | + 'hide_alter_empty' => 0, |
|
3135 | + 'set_precision' => FALSE, |
|
3136 | + 'precision' => 0, |
|
3137 | + 'decimal' => '.', |
|
3138 | + 'separator' => '', |
|
3139 | + 'format_plural' => 0, |
|
3140 | + 'format_plural_singular' => '1', |
|
3141 | + 'format_plural_plural' => '@count', |
|
3142 | + 'prefix' => '', |
|
3143 | + 'suffix' => '', |
|
3144 | + 'exclude' => 0, |
|
3145 | + 'id' => 'joining', |
|
3146 | + 'table' => 'team_delta', |
|
3147 | + 'field' => 'joining', |
|
3148 | + 'override' => array( |
|
3149 | 3149 | 'button' => 'Use default', |
3150 | - ), |
|
3151 | - 'relationship' => 'id', |
|
3150 | + ), |
|
3151 | + 'relationship' => 'id', |
|
3152 | 3152 | ), |
3153 | 3153 | 'total_credit' => array( |
3154 | - 'label' => 'Total Credit', |
|
3155 | - 'alter' => array( |
|
3154 | + 'label' => 'Total Credit', |
|
3155 | + 'alter' => array( |
|
3156 | 3156 | 'alter_text' => 0, |
3157 | 3157 | 'text' => '', |
3158 | 3158 | 'make_link' => 0, |
@@ -3171,50 +3171,50 @@ discard block |
||
3171 | 3171 | 'ellipsis' => 1, |
3172 | 3172 | 'html' => 0, |
3173 | 3173 | 'strip_tags' => 0, |
3174 | - ), |
|
3175 | - 'empty' => '', |
|
3176 | - 'hide_empty' => 0, |
|
3177 | - 'empty_zero' => 0, |
|
3178 | - 'hide_alter_empty' => 1, |
|
3179 | - 'set_precision' => 1, |
|
3180 | - 'precision' => '0', |
|
3181 | - 'decimal' => '.', |
|
3182 | - 'separator' => ',', |
|
3183 | - 'format_plural' => 0, |
|
3184 | - 'format_plural_singular' => '1', |
|
3185 | - 'format_plural_plural' => '@count', |
|
3186 | - 'prefix' => '', |
|
3187 | - 'suffix' => '', |
|
3188 | - 'exclude' => 0, |
|
3189 | - 'id' => 'total_credit', |
|
3190 | - 'table' => 'team_delta', |
|
3191 | - 'field' => 'total_credit', |
|
3192 | - 'override' => array( |
|
3174 | + ), |
|
3175 | + 'empty' => '', |
|
3176 | + 'hide_empty' => 0, |
|
3177 | + 'empty_zero' => 0, |
|
3178 | + 'hide_alter_empty' => 1, |
|
3179 | + 'set_precision' => 1, |
|
3180 | + 'precision' => '0', |
|
3181 | + 'decimal' => '.', |
|
3182 | + 'separator' => ',', |
|
3183 | + 'format_plural' => 0, |
|
3184 | + 'format_plural_singular' => '1', |
|
3185 | + 'format_plural_plural' => '@count', |
|
3186 | + 'prefix' => '', |
|
3187 | + 'suffix' => '', |
|
3188 | + 'exclude' => 0, |
|
3189 | + 'id' => 'total_credit', |
|
3190 | + 'table' => 'team_delta', |
|
3191 | + 'field' => 'total_credit', |
|
3192 | + 'override' => array( |
|
3193 | 3193 | 'button' => 'Use default', |
3194 | - ), |
|
3195 | - 'relationship' => 'id', |
|
3194 | + ), |
|
3195 | + 'relationship' => 'id', |
|
3196 | 3196 | ), |
3197 | - )); |
|
3198 | - $handler->override_option('arguments', array( |
|
3197 | + )); |
|
3198 | + $handler->override_option('arguments', array( |
|
3199 | 3199 | 'id' => array( |
3200 | - 'default_action' => 'not found', |
|
3201 | - 'style_plugin' => 'default_summary', |
|
3202 | - 'style_options' => array(), |
|
3203 | - 'wildcard' => 'all', |
|
3204 | - 'wildcard_substitution' => 'All', |
|
3205 | - 'title' => '', |
|
3206 | - 'breadcrumb' => '', |
|
3207 | - 'default_argument_type' => 'fixed', |
|
3208 | - 'default_argument' => '', |
|
3209 | - 'validate_type' => 'numeric', |
|
3210 | - 'validate_fail' => 'not found', |
|
3211 | - 'break_phrase' => 0, |
|
3212 | - 'not' => 0, |
|
3213 | - 'id' => 'id', |
|
3214 | - 'table' => 'team', |
|
3215 | - 'field' => 'id', |
|
3216 | - 'validate_user_argument_type' => 'uid', |
|
3217 | - 'validate_user_roles' => array( |
|
3200 | + 'default_action' => 'not found', |
|
3201 | + 'style_plugin' => 'default_summary', |
|
3202 | + 'style_options' => array(), |
|
3203 | + 'wildcard' => 'all', |
|
3204 | + 'wildcard_substitution' => 'All', |
|
3205 | + 'title' => '', |
|
3206 | + 'breadcrumb' => '', |
|
3207 | + 'default_argument_type' => 'fixed', |
|
3208 | + 'default_argument' => '', |
|
3209 | + 'validate_type' => 'numeric', |
|
3210 | + 'validate_fail' => 'not found', |
|
3211 | + 'break_phrase' => 0, |
|
3212 | + 'not' => 0, |
|
3213 | + 'id' => 'id', |
|
3214 | + 'table' => 'team', |
|
3215 | + 'field' => 'id', |
|
3216 | + 'validate_user_argument_type' => 'uid', |
|
3217 | + 'validate_user_roles' => array( |
|
3218 | 3218 | 2 => 0, |
3219 | 3219 | 3519698132 => 0, |
3220 | 3220 | 1110965548 => 0, |
@@ -3223,10 +3223,10 @@ discard block |
||
3223 | 3223 | 268174006 => 0, |
3224 | 3224 | 1271379760 => 0, |
3225 | 3225 | 933038561 => 0, |
3226 | - ), |
|
3227 | - 'me_redirect' => 0, |
|
3228 | - 'me_validate_user_argument_type' => 'uid', |
|
3229 | - 'me_validate_user_roles' => array( |
|
3226 | + ), |
|
3227 | + 'me_redirect' => 0, |
|
3228 | + 'me_validate_user_argument_type' => 'uid', |
|
3229 | + 'me_validate_user_roles' => array( |
|
3230 | 3230 | 2 => 0, |
3231 | 3231 | 3519698132 => 0, |
3232 | 3232 | 1110965548 => 0, |
@@ -3235,23 +3235,23 @@ discard block |
||
3235 | 3235 | 268174006 => 0, |
3236 | 3236 | 1271379760 => 0, |
3237 | 3237 | 933038561 => 0, |
3238 | - ), |
|
3239 | - 'override' => array( |
|
3238 | + ), |
|
3239 | + 'override' => array( |
|
3240 | 3240 | 'button' => 'Use default', |
3241 | - ), |
|
3242 | - 'relationship' => 'none', |
|
3243 | - 'default_options_div_prefix' => '', |
|
3244 | - 'default_taxonomy_tid_term_page' => 0, |
|
3245 | - 'default_taxonomy_tid_node' => 0, |
|
3246 | - 'default_taxonomy_tid_limit' => 0, |
|
3247 | - 'default_taxonomy_tid_vids' => array( |
|
3241 | + ), |
|
3242 | + 'relationship' => 'none', |
|
3243 | + 'default_options_div_prefix' => '', |
|
3244 | + 'default_taxonomy_tid_term_page' => 0, |
|
3245 | + 'default_taxonomy_tid_node' => 0, |
|
3246 | + 'default_taxonomy_tid_limit' => 0, |
|
3247 | + 'default_taxonomy_tid_vids' => array( |
|
3248 | 3248 | 1 => 0, |
3249 | 3249 | 2 => 0, |
3250 | - ), |
|
3251 | - 'default_argument_user' => 0, |
|
3252 | - 'default_argument_fixed' => '', |
|
3253 | - 'default_argument_php' => '', |
|
3254 | - 'validate_argument_node_type' => array( |
|
3250 | + ), |
|
3251 | + 'default_argument_user' => 0, |
|
3252 | + 'default_argument_fixed' => '', |
|
3253 | + 'default_argument_php' => '', |
|
3254 | + 'validate_argument_node_type' => array( |
|
3255 | 3255 | 'page' => 0, |
3256 | 3256 | 'news' => 0, |
3257 | 3257 | 'profile' => 0, |
@@ -3259,66 +3259,66 @@ discard block |
||
3259 | 3259 | 'panel' => 0, |
3260 | 3260 | 'story' => 0, |
3261 | 3261 | 'team' => 0, |
3262 | - ), |
|
3263 | - 'validate_argument_node_access' => 0, |
|
3264 | - 'validate_argument_nid_type' => 'nid', |
|
3265 | - 'validate_argument_vocabulary' => array( |
|
3262 | + ), |
|
3263 | + 'validate_argument_node_access' => 0, |
|
3264 | + 'validate_argument_nid_type' => 'nid', |
|
3265 | + 'validate_argument_vocabulary' => array( |
|
3266 | 3266 | 1 => 0, |
3267 | 3267 | 2 => 0, |
3268 | - ), |
|
3269 | - 'validate_argument_type' => 'tid', |
|
3270 | - 'validate_argument_transform' => 0, |
|
3271 | - 'validate_user_restrict_roles' => 0, |
|
3272 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
3273 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
3274 | - 'validate_argument_node_flag_id_type' => 'id', |
|
3275 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
3276 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
3277 | - 'validate_argument_user_flag_id_type' => 'id', |
|
3278 | - 'validate_argument_php' => '', |
|
3279 | - 'me_validate_user_restrict_roles' => 0, |
|
3280 | - ), |
|
3281 | - )); |
|
3282 | - $handler->override_option('style_plugin', 'table'); |
|
3283 | - $handler->override_option('style_options', array( |
|
3268 | + ), |
|
3269 | + 'validate_argument_type' => 'tid', |
|
3270 | + 'validate_argument_transform' => 0, |
|
3271 | + 'validate_user_restrict_roles' => 0, |
|
3272 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
3273 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
3274 | + 'validate_argument_node_flag_id_type' => 'id', |
|
3275 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
3276 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
3277 | + 'validate_argument_user_flag_id_type' => 'id', |
|
3278 | + 'validate_argument_php' => '', |
|
3279 | + 'me_validate_user_restrict_roles' => 0, |
|
3280 | + ), |
|
3281 | + )); |
|
3282 | + $handler->override_option('style_plugin', 'table'); |
|
3283 | + $handler->override_option('style_options', array( |
|
3284 | 3284 | 'grouping' => '', |
3285 | 3285 | 'override' => 1, |
3286 | 3286 | 'sticky' => 1, |
3287 | 3287 | 'order' => 'asc', |
3288 | 3288 | 'summary' => '', |
3289 | 3289 | 'columns' => array( |
3290 | - 'timestamp' => 'timestamp', |
|
3291 | - 'total_credit' => 'total_credit', |
|
3292 | - 'userid' => 'userid', |
|
3293 | - 'joining' => 'joining', |
|
3290 | + 'timestamp' => 'timestamp', |
|
3291 | + 'total_credit' => 'total_credit', |
|
3292 | + 'userid' => 'userid', |
|
3293 | + 'joining' => 'joining', |
|
3294 | 3294 | ), |
3295 | 3295 | 'info' => array( |
3296 | - 'timestamp' => array( |
|
3296 | + 'timestamp' => array( |
|
3297 | 3297 | 'sortable' => 0, |
3298 | 3298 | 'separator' => '', |
3299 | - ), |
|
3300 | - 'total_credit' => array( |
|
3299 | + ), |
|
3300 | + 'total_credit' => array( |
|
3301 | 3301 | 'sortable' => 0, |
3302 | 3302 | 'separator' => '', |
3303 | - ), |
|
3304 | - 'userid' => array( |
|
3303 | + ), |
|
3304 | + 'userid' => array( |
|
3305 | 3305 | 'sortable' => 0, |
3306 | 3306 | 'separator' => '', |
3307 | - ), |
|
3308 | - 'joining' => array( |
|
3307 | + ), |
|
3308 | + 'joining' => array( |
|
3309 | 3309 | 'sortable' => 0, |
3310 | 3310 | 'separator' => '', |
3311 | - ), |
|
3311 | + ), |
|
3312 | 3312 | ), |
3313 | 3313 | 'default' => 'timestamp', |
3314 | - )); |
|
3315 | - $handler->override_option('pane_title', 'Team history'); |
|
3316 | - $handler->override_option('pane_description', ''); |
|
3317 | - $handler->override_option('pane_category', array( |
|
3314 | + )); |
|
3315 | + $handler->override_option('pane_title', 'Team history'); |
|
3316 | + $handler->override_option('pane_description', ''); |
|
3317 | + $handler->override_option('pane_category', array( |
|
3318 | 3318 | 'name' => 'View panes', |
3319 | 3319 | 'weight' => 0, |
3320 | - )); |
|
3321 | - $handler->override_option('allow', array( |
|
3320 | + )); |
|
3321 | + $handler->override_option('allow', array( |
|
3322 | 3322 | 'use_pager' => 0, |
3323 | 3323 | 'items_per_page' => 'items_per_page', |
3324 | 3324 | 'offset' => 0, |
@@ -3328,37 +3328,37 @@ discard block |
||
3328 | 3328 | 'title_override' => 'title_override', |
3329 | 3329 | 'exposed_form' => 0, |
3330 | 3330 | 'fields_override' => 0, |
3331 | - )); |
|
3332 | - $handler->override_option('argument_input', array( |
|
3331 | + )); |
|
3332 | + $handler->override_option('argument_input', array( |
|
3333 | 3333 | 'id' => array( |
3334 | - 'type' => 'panel', |
|
3335 | - 'context' => 'term.description', |
|
3336 | - 'context_optional' => 0, |
|
3337 | - 'panel' => '0', |
|
3338 | - 'fixed' => '', |
|
3339 | - 'label' => 'BOINC: Id', |
|
3340 | - ), |
|
3341 | - )); |
|
3342 | - $handler->override_option('link_to_view', 0); |
|
3343 | - $handler->override_option('inherit_panels_path', 0); |
|
3344 | - $handler = $view->new_display('panel_pane', 'Team admins', 'panel_pane_3'); |
|
3345 | - $handler->override_option('relationships', array( |
|
3334 | + 'type' => 'panel', |
|
3335 | + 'context' => 'term.description', |
|
3336 | + 'context_optional' => 0, |
|
3337 | + 'panel' => '0', |
|
3338 | + 'fixed' => '', |
|
3339 | + 'label' => 'BOINC: Id', |
|
3340 | + ), |
|
3341 | + )); |
|
3342 | + $handler->override_option('link_to_view', 0); |
|
3343 | + $handler->override_option('inherit_panels_path', 0); |
|
3344 | + $handler = $view->new_display('panel_pane', 'Team admins', 'panel_pane_3'); |
|
3345 | + $handler->override_option('relationships', array( |
|
3346 | 3346 | 'userid' => array( |
3347 | - 'label' => 'User', |
|
3348 | - 'required' => 0, |
|
3349 | - 'id' => 'userid', |
|
3350 | - 'table' => 'team_admin', |
|
3351 | - 'field' => 'userid', |
|
3352 | - 'override' => array( |
|
3347 | + 'label' => 'User', |
|
3348 | + 'required' => 0, |
|
3349 | + 'id' => 'userid', |
|
3350 | + 'table' => 'team_admin', |
|
3351 | + 'field' => 'userid', |
|
3352 | + 'override' => array( |
|
3353 | 3353 | 'button' => 'Use default', |
3354 | - ), |
|
3355 | - 'relationship' => 'none', |
|
3354 | + ), |
|
3355 | + 'relationship' => 'none', |
|
3356 | 3356 | ), |
3357 | - )); |
|
3358 | - $handler->override_option('fields', array( |
|
3357 | + )); |
|
3358 | + $handler->override_option('fields', array( |
|
3359 | 3359 | 'teamid' => array( |
3360 | - 'label' => 'Id', |
|
3361 | - 'alter' => array( |
|
3360 | + 'label' => 'Id', |
|
3361 | + 'alter' => array( |
|
3362 | 3362 | 'alter_text' => 0, |
3363 | 3363 | 'text' => '', |
3364 | 3364 | 'make_link' => 0, |
@@ -3377,32 +3377,32 @@ discard block |
||
3377 | 3377 | 'ellipsis' => 1, |
3378 | 3378 | 'html' => 0, |
3379 | 3379 | 'strip_tags' => 0, |
3380 | - ), |
|
3381 | - 'empty' => '', |
|
3382 | - 'hide_empty' => 0, |
|
3383 | - 'empty_zero' => 0, |
|
3384 | - 'hide_alter_empty' => 1, |
|
3385 | - 'set_precision' => FALSE, |
|
3386 | - 'precision' => 0, |
|
3387 | - 'decimal' => '.', |
|
3388 | - 'separator' => '', |
|
3389 | - 'format_plural' => 0, |
|
3390 | - 'format_plural_singular' => '1', |
|
3391 | - 'format_plural_plural' => '@count', |
|
3392 | - 'prefix' => '', |
|
3393 | - 'suffix' => '', |
|
3394 | - 'exclude' => 1, |
|
3395 | - 'id' => 'teamid', |
|
3396 | - 'table' => 'team_admin', |
|
3397 | - 'field' => 'teamid', |
|
3398 | - 'override' => array( |
|
3380 | + ), |
|
3381 | + 'empty' => '', |
|
3382 | + 'hide_empty' => 0, |
|
3383 | + 'empty_zero' => 0, |
|
3384 | + 'hide_alter_empty' => 1, |
|
3385 | + 'set_precision' => FALSE, |
|
3386 | + 'precision' => 0, |
|
3387 | + 'decimal' => '.', |
|
3388 | + 'separator' => '', |
|
3389 | + 'format_plural' => 0, |
|
3390 | + 'format_plural_singular' => '1', |
|
3391 | + 'format_plural_plural' => '@count', |
|
3392 | + 'prefix' => '', |
|
3393 | + 'suffix' => '', |
|
3394 | + 'exclude' => 1, |
|
3395 | + 'id' => 'teamid', |
|
3396 | + 'table' => 'team_admin', |
|
3397 | + 'field' => 'teamid', |
|
3398 | + 'override' => array( |
|
3399 | 3399 | 'button' => 'Use default', |
3400 | - ), |
|
3401 | - 'relationship' => 'none', |
|
3400 | + ), |
|
3401 | + 'relationship' => 'none', |
|
3402 | 3402 | ), |
3403 | 3403 | 'userid' => array( |
3404 | - 'label' => 'User ID', |
|
3405 | - 'alter' => array( |
|
3404 | + 'label' => 'User ID', |
|
3405 | + 'alter' => array( |
|
3406 | 3406 | 'alter_text' => 0, |
3407 | 3407 | 'text' => '', |
3408 | 3408 | 'make_link' => 0, |
@@ -3421,32 +3421,32 @@ discard block |
||
3421 | 3421 | 'ellipsis' => 1, |
3422 | 3422 | 'html' => 0, |
3423 | 3423 | 'strip_tags' => 0, |
3424 | - ), |
|
3425 | - 'empty' => '', |
|
3426 | - 'hide_empty' => 0, |
|
3427 | - 'empty_zero' => 0, |
|
3428 | - 'hide_alter_empty' => 1, |
|
3429 | - 'set_precision' => FALSE, |
|
3430 | - 'precision' => 0, |
|
3431 | - 'decimal' => '.', |
|
3432 | - 'separator' => '', |
|
3433 | - 'format_plural' => 0, |
|
3434 | - 'format_plural_singular' => '1', |
|
3435 | - 'format_plural_plural' => '@count', |
|
3436 | - 'prefix' => '', |
|
3437 | - 'suffix' => '', |
|
3438 | - 'exclude' => 1, |
|
3439 | - 'id' => 'userid', |
|
3440 | - 'table' => 'team_admin', |
|
3441 | - 'field' => 'userid', |
|
3442 | - 'override' => array( |
|
3424 | + ), |
|
3425 | + 'empty' => '', |
|
3426 | + 'hide_empty' => 0, |
|
3427 | + 'empty_zero' => 0, |
|
3428 | + 'hide_alter_empty' => 1, |
|
3429 | + 'set_precision' => FALSE, |
|
3430 | + 'precision' => 0, |
|
3431 | + 'decimal' => '.', |
|
3432 | + 'separator' => '', |
|
3433 | + 'format_plural' => 0, |
|
3434 | + 'format_plural_singular' => '1', |
|
3435 | + 'format_plural_plural' => '@count', |
|
3436 | + 'prefix' => '', |
|
3437 | + 'suffix' => '', |
|
3438 | + 'exclude' => 1, |
|
3439 | + 'id' => 'userid', |
|
3440 | + 'table' => 'team_admin', |
|
3441 | + 'field' => 'userid', |
|
3442 | + 'override' => array( |
|
3443 | 3443 | 'button' => 'Use default', |
3444 | - ), |
|
3445 | - 'relationship' => 'none', |
|
3444 | + ), |
|
3445 | + 'relationship' => 'none', |
|
3446 | 3446 | ), |
3447 | 3447 | 'name' => array( |
3448 | - 'label' => 'Name', |
|
3449 | - 'alter' => array( |
|
3448 | + 'label' => 'Name', |
|
3449 | + 'alter' => array( |
|
3450 | 3450 | 'alter_text' => 0, |
3451 | 3451 | 'text' => '', |
3452 | 3452 | 'make_link' => 0, |
@@ -3465,23 +3465,23 @@ discard block |
||
3465 | 3465 | 'ellipsis' => 1, |
3466 | 3466 | 'html' => 0, |
3467 | 3467 | 'strip_tags' => 0, |
3468 | - ), |
|
3469 | - 'empty' => '', |
|
3470 | - 'hide_empty' => 0, |
|
3471 | - 'empty_zero' => 0, |
|
3472 | - 'hide_alter_empty' => 1, |
|
3473 | - 'exclude' => 0, |
|
3474 | - 'id' => 'name', |
|
3475 | - 'table' => 'user', |
|
3476 | - 'field' => 'name', |
|
3477 | - 'relationship' => 'userid', |
|
3478 | - 'override' => array( |
|
3468 | + ), |
|
3469 | + 'empty' => '', |
|
3470 | + 'hide_empty' => 0, |
|
3471 | + 'empty_zero' => 0, |
|
3472 | + 'hide_alter_empty' => 1, |
|
3473 | + 'exclude' => 0, |
|
3474 | + 'id' => 'name', |
|
3475 | + 'table' => 'user', |
|
3476 | + 'field' => 'name', |
|
3477 | + 'relationship' => 'userid', |
|
3478 | + 'override' => array( |
|
3479 | 3479 | 'button' => 'Use default', |
3480 | - ), |
|
3480 | + ), |
|
3481 | 3481 | ), |
3482 | 3482 | 'create_time' => array( |
3483 | - 'label' => 'Admin since', |
|
3484 | - 'alter' => array( |
|
3483 | + 'label' => 'Admin since', |
|
3484 | + 'alter' => array( |
|
3485 | 3485 | 'alter_text' => 0, |
3486 | 3486 | 'text' => '', |
3487 | 3487 | 'make_link' => 0, |
@@ -3500,25 +3500,25 @@ discard block |
||
3500 | 3500 | 'ellipsis' => 1, |
3501 | 3501 | 'html' => 0, |
3502 | 3502 | 'strip_tags' => 0, |
3503 | - ), |
|
3504 | - 'empty' => '', |
|
3505 | - 'hide_empty' => 0, |
|
3506 | - 'empty_zero' => 0, |
|
3507 | - 'hide_alter_empty' => 1, |
|
3508 | - 'date_format' => 'custom', |
|
3509 | - 'custom_date_format' => 'j M Y G:i:s T', |
|
3510 | - 'exclude' => 0, |
|
3511 | - 'id' => 'create_time', |
|
3512 | - 'table' => 'team_admin', |
|
3513 | - 'field' => 'create_time', |
|
3514 | - 'override' => array( |
|
3503 | + ), |
|
3504 | + 'empty' => '', |
|
3505 | + 'hide_empty' => 0, |
|
3506 | + 'empty_zero' => 0, |
|
3507 | + 'hide_alter_empty' => 1, |
|
3508 | + 'date_format' => 'custom', |
|
3509 | + 'custom_date_format' => 'j M Y G:i:s T', |
|
3510 | + 'exclude' => 0, |
|
3511 | + 'id' => 'create_time', |
|
3512 | + 'table' => 'team_admin', |
|
3513 | + 'field' => 'create_time', |
|
3514 | + 'override' => array( |
|
3515 | 3515 | 'button' => 'Use default', |
3516 | - ), |
|
3517 | - 'relationship' => 'none', |
|
3516 | + ), |
|
3517 | + 'relationship' => 'none', |
|
3518 | 3518 | ), |
3519 | 3519 | 'phpcode' => array( |
3520 | - 'label' => '', |
|
3521 | - 'alter' => array( |
|
3520 | + 'label' => '', |
|
3521 | + 'alter' => array( |
|
3522 | 3522 | 'alter_text' => 0, |
3523 | 3523 | 'text' => '', |
3524 | 3524 | 'make_link' => 0, |
@@ -3537,46 +3537,46 @@ discard block |
||
3537 | 3537 | 'ellipsis' => 1, |
3538 | 3538 | 'html' => 0, |
3539 | 3539 | 'strip_tags' => 0, |
3540 | - ), |
|
3541 | - 'empty' => '', |
|
3542 | - 'hide_empty' => 0, |
|
3543 | - 'empty_zero' => 0, |
|
3544 | - 'hide_alter_empty' => 1, |
|
3545 | - 'value' => '<?php |
|
3540 | + ), |
|
3541 | + 'empty' => '', |
|
3542 | + 'hide_empty' => 0, |
|
3543 | + 'empty_zero' => 0, |
|
3544 | + 'hide_alter_empty' => 1, |
|
3545 | + 'value' => '<?php |
|
3546 | 3546 | $team_id = boincteam_lookup_nid($data->id); |
3547 | 3547 | $user_id = get_drupal_id($data->team_admin_userid); |
3548 | 3548 | echo l(bts(\'Remove\', array(), NULL, \'boinc:remove-team-member\'), "community/teams/{$team_id}/edit/admins/remove/{$user_id}"); |
3549 | 3549 | ?>', |
3550 | - 'exclude' => 0, |
|
3551 | - 'id' => 'phpcode', |
|
3552 | - 'table' => 'customfield', |
|
3553 | - 'field' => 'phpcode', |
|
3554 | - 'override' => array( |
|
3550 | + 'exclude' => 0, |
|
3551 | + 'id' => 'phpcode', |
|
3552 | + 'table' => 'customfield', |
|
3553 | + 'field' => 'phpcode', |
|
3554 | + 'override' => array( |
|
3555 | 3555 | 'button' => 'Use default', |
3556 | - ), |
|
3557 | - 'relationship' => 'none', |
|
3556 | + ), |
|
3557 | + 'relationship' => 'none', |
|
3558 | 3558 | ), |
3559 | - )); |
|
3560 | - $handler->override_option('arguments', array( |
|
3559 | + )); |
|
3560 | + $handler->override_option('arguments', array( |
|
3561 | 3561 | 'id' => array( |
3562 | - 'default_action' => 'not found', |
|
3563 | - 'style_plugin' => 'default_summary', |
|
3564 | - 'style_options' => array(), |
|
3565 | - 'wildcard' => 'all', |
|
3566 | - 'wildcard_substitution' => 'All', |
|
3567 | - 'title' => '', |
|
3568 | - 'breadcrumb' => '', |
|
3569 | - 'default_argument_type' => 'fixed', |
|
3570 | - 'default_argument' => '', |
|
3571 | - 'validate_type' => 'numeric', |
|
3572 | - 'validate_fail' => 'not found', |
|
3573 | - 'break_phrase' => 0, |
|
3574 | - 'not' => 0, |
|
3575 | - 'id' => 'id', |
|
3576 | - 'table' => 'team', |
|
3577 | - 'field' => 'id', |
|
3578 | - 'validate_user_argument_type' => 'uid', |
|
3579 | - 'validate_user_roles' => array( |
|
3562 | + 'default_action' => 'not found', |
|
3563 | + 'style_plugin' => 'default_summary', |
|
3564 | + 'style_options' => array(), |
|
3565 | + 'wildcard' => 'all', |
|
3566 | + 'wildcard_substitution' => 'All', |
|
3567 | + 'title' => '', |
|
3568 | + 'breadcrumb' => '', |
|
3569 | + 'default_argument_type' => 'fixed', |
|
3570 | + 'default_argument' => '', |
|
3571 | + 'validate_type' => 'numeric', |
|
3572 | + 'validate_fail' => 'not found', |
|
3573 | + 'break_phrase' => 0, |
|
3574 | + 'not' => 0, |
|
3575 | + 'id' => 'id', |
|
3576 | + 'table' => 'team', |
|
3577 | + 'field' => 'id', |
|
3578 | + 'validate_user_argument_type' => 'uid', |
|
3579 | + 'validate_user_roles' => array( |
|
3580 | 3580 | 2 => 0, |
3581 | 3581 | 3519698132 => 0, |
3582 | 3582 | 1110965548 => 0, |
@@ -3585,10 +3585,10 @@ discard block |
||
3585 | 3585 | 268174006 => 0, |
3586 | 3586 | 1271379760 => 0, |
3587 | 3587 | 933038561 => 0, |
3588 | - ), |
|
3589 | - 'me_redirect' => 0, |
|
3590 | - 'me_validate_user_argument_type' => 'uid', |
|
3591 | - 'me_validate_user_roles' => array( |
|
3588 | + ), |
|
3589 | + 'me_redirect' => 0, |
|
3590 | + 'me_validate_user_argument_type' => 'uid', |
|
3591 | + 'me_validate_user_roles' => array( |
|
3592 | 3592 | 2 => 0, |
3593 | 3593 | 3519698132 => 0, |
3594 | 3594 | 1110965548 => 0, |
@@ -3597,23 +3597,23 @@ discard block |
||
3597 | 3597 | 268174006 => 0, |
3598 | 3598 | 1271379760 => 0, |
3599 | 3599 | 933038561 => 0, |
3600 | - ), |
|
3601 | - 'override' => array( |
|
3600 | + ), |
|
3601 | + 'override' => array( |
|
3602 | 3602 | 'button' => 'Use default', |
3603 | - ), |
|
3604 | - 'relationship' => 'none', |
|
3605 | - 'default_options_div_prefix' => '', |
|
3606 | - 'default_taxonomy_tid_term_page' => 0, |
|
3607 | - 'default_taxonomy_tid_node' => 0, |
|
3608 | - 'default_taxonomy_tid_limit' => 0, |
|
3609 | - 'default_taxonomy_tid_vids' => array( |
|
3603 | + ), |
|
3604 | + 'relationship' => 'none', |
|
3605 | + 'default_options_div_prefix' => '', |
|
3606 | + 'default_taxonomy_tid_term_page' => 0, |
|
3607 | + 'default_taxonomy_tid_node' => 0, |
|
3608 | + 'default_taxonomy_tid_limit' => 0, |
|
3609 | + 'default_taxonomy_tid_vids' => array( |
|
3610 | 3610 | 1 => 0, |
3611 | 3611 | 2 => 0, |
3612 | - ), |
|
3613 | - 'default_argument_user' => 0, |
|
3614 | - 'default_argument_fixed' => '', |
|
3615 | - 'default_argument_php' => '', |
|
3616 | - 'validate_argument_node_type' => array( |
|
3612 | + ), |
|
3613 | + 'default_argument_user' => 0, |
|
3614 | + 'default_argument_fixed' => '', |
|
3615 | + 'default_argument_php' => '', |
|
3616 | + 'validate_argument_node_type' => array( |
|
3617 | 3617 | 'page' => 0, |
3618 | 3618 | 'news' => 0, |
3619 | 3619 | 'profile' => 0, |
@@ -3621,95 +3621,95 @@ discard block |
||
3621 | 3621 | 'panel' => 0, |
3622 | 3622 | 'story' => 0, |
3623 | 3623 | 'team' => 0, |
3624 | - ), |
|
3625 | - 'validate_argument_node_access' => 0, |
|
3626 | - 'validate_argument_nid_type' => 'nid', |
|
3627 | - 'validate_argument_vocabulary' => array( |
|
3624 | + ), |
|
3625 | + 'validate_argument_node_access' => 0, |
|
3626 | + 'validate_argument_nid_type' => 'nid', |
|
3627 | + 'validate_argument_vocabulary' => array( |
|
3628 | 3628 | 1 => 0, |
3629 | 3629 | 2 => 0, |
3630 | - ), |
|
3631 | - 'validate_argument_type' => 'tid', |
|
3632 | - 'validate_argument_transform' => 0, |
|
3633 | - 'validate_user_restrict_roles' => 0, |
|
3634 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
3635 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
3636 | - 'validate_argument_node_flag_id_type' => 'id', |
|
3637 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
3638 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
3639 | - 'validate_argument_user_flag_id_type' => 'id', |
|
3640 | - 'validate_argument_php' => '', |
|
3641 | - 'me_validate_user_restrict_roles' => 0, |
|
3642 | - ), |
|
3643 | - )); |
|
3644 | - $handler->override_option('filters', array( |
|
3630 | + ), |
|
3631 | + 'validate_argument_type' => 'tid', |
|
3632 | + 'validate_argument_transform' => 0, |
|
3633 | + 'validate_user_restrict_roles' => 0, |
|
3634 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
3635 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
3636 | + 'validate_argument_node_flag_id_type' => 'id', |
|
3637 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
3638 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
3639 | + 'validate_argument_user_flag_id_type' => 'id', |
|
3640 | + 'validate_argument_php' => '', |
|
3641 | + 'me_validate_user_restrict_roles' => 0, |
|
3642 | + ), |
|
3643 | + )); |
|
3644 | + $handler->override_option('filters', array( |
|
3645 | 3645 | 'userid' => array( |
3646 | - 'operator' => 'not empty', |
|
3647 | - 'value' => array( |
|
3646 | + 'operator' => 'not empty', |
|
3647 | + 'value' => array( |
|
3648 | 3648 | 'value' => '', |
3649 | 3649 | 'min' => '', |
3650 | 3650 | 'max' => '', |
3651 | - ), |
|
3652 | - 'group' => '0', |
|
3653 | - 'exposed' => FALSE, |
|
3654 | - 'expose' => array( |
|
3651 | + ), |
|
3652 | + 'group' => '0', |
|
3653 | + 'exposed' => FALSE, |
|
3654 | + 'expose' => array( |
|
3655 | 3655 | 'operator' => FALSE, |
3656 | 3656 | 'label' => '', |
3657 | - ), |
|
3658 | - 'id' => 'userid', |
|
3659 | - 'table' => 'team_admin', |
|
3660 | - 'field' => 'userid', |
|
3661 | - 'override' => array( |
|
3657 | + ), |
|
3658 | + 'id' => 'userid', |
|
3659 | + 'table' => 'team_admin', |
|
3660 | + 'field' => 'userid', |
|
3661 | + 'override' => array( |
|
3662 | 3662 | 'button' => 'Use default', |
3663 | - ), |
|
3664 | - 'relationship' => 'none', |
|
3665 | - ), |
|
3666 | - )); |
|
3667 | - $handler->override_option('empty', 'There are currently no team admins.'); |
|
3668 | - $handler->override_option('empty_format', '5'); |
|
3669 | - $handler->override_option('style_plugin', 'table'); |
|
3670 | - $handler->override_option('style_options', array( |
|
3663 | + ), |
|
3664 | + 'relationship' => 'none', |
|
3665 | + ), |
|
3666 | + )); |
|
3667 | + $handler->override_option('empty', 'There are currently no team admins.'); |
|
3668 | + $handler->override_option('empty_format', '5'); |
|
3669 | + $handler->override_option('style_plugin', 'table'); |
|
3670 | + $handler->override_option('style_options', array( |
|
3671 | 3671 | 'grouping' => '', |
3672 | 3672 | 'override' => 1, |
3673 | 3673 | 'sticky' => 1, |
3674 | 3674 | 'order' => 'asc', |
3675 | 3675 | 'summary' => '', |
3676 | 3676 | 'columns' => array( |
3677 | - 'teamid' => 'teamid', |
|
3678 | - 'userid' => 'userid', |
|
3679 | - 'name' => 'name', |
|
3680 | - 'create_time' => 'create_time', |
|
3681 | - 'phpcode' => 'phpcode', |
|
3677 | + 'teamid' => 'teamid', |
|
3678 | + 'userid' => 'userid', |
|
3679 | + 'name' => 'name', |
|
3680 | + 'create_time' => 'create_time', |
|
3681 | + 'phpcode' => 'phpcode', |
|
3682 | 3682 | ), |
3683 | 3683 | 'info' => array( |
3684 | - 'teamid' => array( |
|
3684 | + 'teamid' => array( |
|
3685 | 3685 | 'sortable' => 0, |
3686 | 3686 | 'separator' => '', |
3687 | - ), |
|
3688 | - 'userid' => array( |
|
3687 | + ), |
|
3688 | + 'userid' => array( |
|
3689 | 3689 | 'sortable' => 0, |
3690 | 3690 | 'separator' => '', |
3691 | - ), |
|
3692 | - 'name' => array( |
|
3691 | + ), |
|
3692 | + 'name' => array( |
|
3693 | 3693 | 'sortable' => 0, |
3694 | 3694 | 'separator' => '', |
3695 | - ), |
|
3696 | - 'create_time' => array( |
|
3695 | + ), |
|
3696 | + 'create_time' => array( |
|
3697 | 3697 | 'sortable' => 0, |
3698 | 3698 | 'separator' => '', |
3699 | - ), |
|
3700 | - 'phpcode' => array( |
|
3699 | + ), |
|
3700 | + 'phpcode' => array( |
|
3701 | 3701 | 'separator' => '', |
3702 | - ), |
|
3702 | + ), |
|
3703 | 3703 | ), |
3704 | 3704 | 'default' => 'create_time', |
3705 | - )); |
|
3706 | - $handler->override_option('pane_title', 'Team admins'); |
|
3707 | - $handler->override_option('pane_description', ''); |
|
3708 | - $handler->override_option('pane_category', array( |
|
3705 | + )); |
|
3706 | + $handler->override_option('pane_title', 'Team admins'); |
|
3707 | + $handler->override_option('pane_description', ''); |
|
3708 | + $handler->override_option('pane_category', array( |
|
3709 | 3709 | 'name' => 'View panes', |
3710 | 3710 | 'weight' => 0, |
3711 | - )); |
|
3712 | - $handler->override_option('allow', array( |
|
3711 | + )); |
|
3712 | + $handler->override_option('allow', array( |
|
3713 | 3713 | 'use_pager' => 0, |
3714 | 3714 | 'items_per_page' => 'items_per_page', |
3715 | 3715 | 'offset' => 0, |
@@ -3719,24 +3719,24 @@ discard block |
||
3719 | 3719 | 'title_override' => 'title_override', |
3720 | 3720 | 'exposed_form' => 0, |
3721 | 3721 | 'fields_override' => 0, |
3722 | - )); |
|
3723 | - $handler->override_option('argument_input', array( |
|
3722 | + )); |
|
3723 | + $handler->override_option('argument_input', array( |
|
3724 | 3724 | 'id' => array( |
3725 | - 'type' => 'panel', |
|
3726 | - 'context' => 'term.description', |
|
3727 | - 'context_optional' => 0, |
|
3728 | - 'panel' => '0', |
|
3729 | - 'fixed' => '', |
|
3730 | - 'label' => 'BOINC: Id', |
|
3731 | - ), |
|
3732 | - )); |
|
3733 | - $handler->override_option('link_to_view', 0); |
|
3734 | - $handler->override_option('inherit_panels_path', 0); |
|
3735 | - $handler = $view->new_display('panel_pane', 'Top teams pane', 'panel_pane_4'); |
|
3736 | - $handler->override_option('fields', array( |
|
3725 | + 'type' => 'panel', |
|
3726 | + 'context' => 'term.description', |
|
3727 | + 'context_optional' => 0, |
|
3728 | + 'panel' => '0', |
|
3729 | + 'fixed' => '', |
|
3730 | + 'label' => 'BOINC: Id', |
|
3731 | + ), |
|
3732 | + )); |
|
3733 | + $handler->override_option('link_to_view', 0); |
|
3734 | + $handler->override_option('inherit_panels_path', 0); |
|
3735 | + $handler = $view->new_display('panel_pane', 'Top teams pane', 'panel_pane_4'); |
|
3736 | + $handler->override_option('fields', array( |
|
3737 | 3737 | 'rownumber' => array( |
3738 | - 'label' => 'Rank', |
|
3739 | - 'alter' => array( |
|
3738 | + 'label' => 'Rank', |
|
3739 | + 'alter' => array( |
|
3740 | 3740 | 'alter_text' => 0, |
3741 | 3741 | 'text' => '', |
3742 | 3742 | 'make_link' => 0, |
@@ -3755,20 +3755,20 @@ discard block |
||
3755 | 3755 | 'ellipsis' => 1, |
3756 | 3756 | 'html' => 0, |
3757 | 3757 | 'strip_tags' => 0, |
3758 | - ), |
|
3759 | - 'empty' => '', |
|
3760 | - 'hide_empty' => 0, |
|
3761 | - 'empty_zero' => 0, |
|
3762 | - 'hide_alter_empty' => 1, |
|
3763 | - 'exclude' => 0, |
|
3764 | - 'id' => 'rownumber', |
|
3765 | - 'table' => 'customfield', |
|
3766 | - 'field' => 'rownumber', |
|
3767 | - 'relationship' => 'none', |
|
3758 | + ), |
|
3759 | + 'empty' => '', |
|
3760 | + 'hide_empty' => 0, |
|
3761 | + 'empty_zero' => 0, |
|
3762 | + 'hide_alter_empty' => 1, |
|
3763 | + 'exclude' => 0, |
|
3764 | + 'id' => 'rownumber', |
|
3765 | + 'table' => 'customfield', |
|
3766 | + 'field' => 'rownumber', |
|
3767 | + 'relationship' => 'none', |
|
3768 | 3768 | ), |
3769 | 3769 | 'id' => array( |
3770 | - 'label' => 'Id', |
|
3771 | - 'alter' => array( |
|
3770 | + 'label' => 'Id', |
|
3771 | + 'alter' => array( |
|
3772 | 3772 | 'alter_text' => 0, |
3773 | 3773 | 'text' => '', |
3774 | 3774 | 'make_link' => 0, |
@@ -3787,29 +3787,29 @@ discard block |
||
3787 | 3787 | 'ellipsis' => 1, |
3788 | 3788 | 'html' => 0, |
3789 | 3789 | 'strip_tags' => 0, |
3790 | - ), |
|
3791 | - 'empty' => '', |
|
3792 | - 'hide_empty' => 0, |
|
3793 | - 'empty_zero' => 0, |
|
3794 | - 'hide_alter_empty' => 1, |
|
3795 | - 'set_precision' => FALSE, |
|
3796 | - 'precision' => 0, |
|
3797 | - 'decimal' => '.', |
|
3798 | - 'separator' => '', |
|
3799 | - 'format_plural' => 0, |
|
3800 | - 'format_plural_singular' => '1', |
|
3801 | - 'format_plural_plural' => '@count', |
|
3802 | - 'prefix' => '', |
|
3803 | - 'suffix' => '', |
|
3804 | - 'exclude' => 1, |
|
3805 | - 'id' => 'id', |
|
3806 | - 'table' => 'team', |
|
3807 | - 'field' => 'id', |
|
3808 | - 'relationship' => 'none', |
|
3790 | + ), |
|
3791 | + 'empty' => '', |
|
3792 | + 'hide_empty' => 0, |
|
3793 | + 'empty_zero' => 0, |
|
3794 | + 'hide_alter_empty' => 1, |
|
3795 | + 'set_precision' => FALSE, |
|
3796 | + 'precision' => 0, |
|
3797 | + 'decimal' => '.', |
|
3798 | + 'separator' => '', |
|
3799 | + 'format_plural' => 0, |
|
3800 | + 'format_plural_singular' => '1', |
|
3801 | + 'format_plural_plural' => '@count', |
|
3802 | + 'prefix' => '', |
|
3803 | + 'suffix' => '', |
|
3804 | + 'exclude' => 1, |
|
3805 | + 'id' => 'id', |
|
3806 | + 'table' => 'team', |
|
3807 | + 'field' => 'id', |
|
3808 | + 'relationship' => 'none', |
|
3809 | 3809 | ), |
3810 | 3810 | 'name' => array( |
3811 | - 'label' => 'Name', |
|
3812 | - 'alter' => array( |
|
3811 | + 'label' => 'Name', |
|
3812 | + 'alter' => array( |
|
3813 | 3813 | 'alter_text' => 0, |
3814 | 3814 | 'text' => '', |
3815 | 3815 | 'make_link' => 0, |
@@ -3828,20 +3828,20 @@ discard block |
||
3828 | 3828 | 'ellipsis' => 1, |
3829 | 3829 | 'html' => 0, |
3830 | 3830 | 'strip_tags' => 0, |
3831 | - ), |
|
3832 | - 'empty' => '', |
|
3833 | - 'hide_empty' => 0, |
|
3834 | - 'empty_zero' => 0, |
|
3835 | - 'hide_alter_empty' => 1, |
|
3836 | - 'exclude' => 1, |
|
3837 | - 'id' => 'name', |
|
3838 | - 'table' => 'team', |
|
3839 | - 'field' => 'name', |
|
3840 | - 'relationship' => 'none', |
|
3831 | + ), |
|
3832 | + 'empty' => '', |
|
3833 | + 'hide_empty' => 0, |
|
3834 | + 'empty_zero' => 0, |
|
3835 | + 'hide_alter_empty' => 1, |
|
3836 | + 'exclude' => 1, |
|
3837 | + 'id' => 'name', |
|
3838 | + 'table' => 'team', |
|
3839 | + 'field' => 'name', |
|
3840 | + 'relationship' => 'none', |
|
3841 | 3841 | ), |
3842 | 3842 | 'phpcode' => array( |
3843 | - 'label' => 'Name', |
|
3844 | - 'alter' => array( |
|
3843 | + 'label' => 'Name', |
|
3844 | + 'alter' => array( |
|
3845 | 3845 | 'alter_text' => 0, |
3846 | 3846 | 'text' => '', |
3847 | 3847 | 'make_link' => 0, |
@@ -3860,34 +3860,34 @@ discard block |
||
3860 | 3860 | 'ellipsis' => 1, |
3861 | 3861 | 'html' => 0, |
3862 | 3862 | 'strip_tags' => 0, |
3863 | - ), |
|
3864 | - 'empty' => '', |
|
3865 | - 'hide_empty' => 0, |
|
3866 | - 'empty_zero' => 0, |
|
3867 | - 'hide_alter_empty' => 1, |
|
3868 | - 'value' => '<?php |
|
3863 | + ), |
|
3864 | + 'empty' => '', |
|
3865 | + 'hide_empty' => 0, |
|
3866 | + 'empty_zero' => 0, |
|
3867 | + 'hide_alter_empty' => 1, |
|
3868 | + 'value' => '<?php |
|
3869 | 3869 | $team_id = boincteam_lookup_nid($data->id); |
3870 | 3870 | echo l($data->team_name, "community/teams/{$team_id}"); |
3871 | 3871 | ?>', |
3872 | - 'exclude' => 0, |
|
3873 | - 'id' => 'phpcode', |
|
3874 | - 'table' => 'customfield', |
|
3875 | - 'field' => 'phpcode', |
|
3876 | - 'relationship' => 'none', |
|
3872 | + 'exclude' => 0, |
|
3873 | + 'id' => 'phpcode', |
|
3874 | + 'table' => 'customfield', |
|
3875 | + 'field' => 'phpcode', |
|
3876 | + 'relationship' => 'none', |
|
3877 | 3877 | ), |
3878 | 3878 | 'nusers' => array( |
3879 | - 'id' => 'nusers', |
|
3880 | - 'table' => 'team', |
|
3881 | - 'field' => 'nusers', |
|
3879 | + 'id' => 'nusers', |
|
3880 | + 'table' => 'team', |
|
3881 | + 'field' => 'nusers', |
|
3882 | 3882 | ), |
3883 | 3883 | 'country' => array( |
3884 | - 'id' => 'country', |
|
3885 | - 'table' => 'team', |
|
3886 | - 'field' => 'country', |
|
3884 | + 'id' => 'country', |
|
3885 | + 'table' => 'team', |
|
3886 | + 'field' => 'country', |
|
3887 | 3887 | ), |
3888 | 3888 | 'expavg_credit' => array( |
3889 | - 'label' => 'Recent average credit', |
|
3890 | - 'alter' => array( |
|
3889 | + 'label' => 'Recent average credit', |
|
3890 | + 'alter' => array( |
|
3891 | 3891 | 'alter_text' => 0, |
3892 | 3892 | 'text' => '', |
3893 | 3893 | 'make_link' => 0, |
@@ -3906,29 +3906,29 @@ discard block |
||
3906 | 3906 | 'ellipsis' => 1, |
3907 | 3907 | 'html' => 0, |
3908 | 3908 | 'strip_tags' => 0, |
3909 | - ), |
|
3910 | - 'empty' => '', |
|
3911 | - 'hide_empty' => 0, |
|
3912 | - 'empty_zero' => 0, |
|
3913 | - 'hide_alter_empty' => 1, |
|
3914 | - 'set_precision' => 1, |
|
3915 | - 'precision' => '2', |
|
3916 | - 'decimal' => '.', |
|
3917 | - 'separator' => ',', |
|
3918 | - 'format_plural' => 0, |
|
3919 | - 'format_plural_singular' => '1', |
|
3920 | - 'format_plural_plural' => '@count', |
|
3921 | - 'prefix' => '', |
|
3922 | - 'suffix' => '', |
|
3923 | - 'exclude' => 0, |
|
3924 | - 'id' => 'expavg_credit', |
|
3925 | - 'table' => 'team', |
|
3926 | - 'field' => 'expavg_credit', |
|
3927 | - 'relationship' => 'none', |
|
3909 | + ), |
|
3910 | + 'empty' => '', |
|
3911 | + 'hide_empty' => 0, |
|
3912 | + 'empty_zero' => 0, |
|
3913 | + 'hide_alter_empty' => 1, |
|
3914 | + 'set_precision' => 1, |
|
3915 | + 'precision' => '2', |
|
3916 | + 'decimal' => '.', |
|
3917 | + 'separator' => ',', |
|
3918 | + 'format_plural' => 0, |
|
3919 | + 'format_plural_singular' => '1', |
|
3920 | + 'format_plural_plural' => '@count', |
|
3921 | + 'prefix' => '', |
|
3922 | + 'suffix' => '', |
|
3923 | + 'exclude' => 0, |
|
3924 | + 'id' => 'expavg_credit', |
|
3925 | + 'table' => 'team', |
|
3926 | + 'field' => 'expavg_credit', |
|
3927 | + 'relationship' => 'none', |
|
3928 | 3928 | ), |
3929 | 3929 | 'total_credit' => array( |
3930 | - 'label' => 'Total Credit', |
|
3931 | - 'alter' => array( |
|
3930 | + 'label' => 'Total Credit', |
|
3931 | + 'alter' => array( |
|
3932 | 3932 | 'alter_text' => 0, |
3933 | 3933 | 'text' => '', |
3934 | 3934 | 'make_link' => 0, |
@@ -3947,115 +3947,115 @@ discard block |
||
3947 | 3947 | 'ellipsis' => 1, |
3948 | 3948 | 'html' => 0, |
3949 | 3949 | 'strip_tags' => 0, |
3950 | - ), |
|
3951 | - 'empty' => '', |
|
3952 | - 'hide_empty' => 0, |
|
3953 | - 'empty_zero' => 0, |
|
3954 | - 'hide_alter_empty' => 1, |
|
3955 | - 'set_precision' => 1, |
|
3956 | - 'precision' => '0', |
|
3957 | - 'decimal' => '.', |
|
3958 | - 'separator' => ',', |
|
3959 | - 'format_plural' => 0, |
|
3960 | - 'format_plural_singular' => '1', |
|
3961 | - 'format_plural_plural' => '@count', |
|
3962 | - 'prefix' => '', |
|
3963 | - 'suffix' => '', |
|
3964 | - 'exclude' => 0, |
|
3965 | - 'id' => 'total_credit', |
|
3966 | - 'table' => 'team', |
|
3967 | - 'field' => 'total_credit', |
|
3968 | - 'relationship' => 'none', |
|
3969 | - 'override' => array( |
|
3950 | + ), |
|
3951 | + 'empty' => '', |
|
3952 | + 'hide_empty' => 0, |
|
3953 | + 'empty_zero' => 0, |
|
3954 | + 'hide_alter_empty' => 1, |
|
3955 | + 'set_precision' => 1, |
|
3956 | + 'precision' => '0', |
|
3957 | + 'decimal' => '.', |
|
3958 | + 'separator' => ',', |
|
3959 | + 'format_plural' => 0, |
|
3960 | + 'format_plural_singular' => '1', |
|
3961 | + 'format_plural_plural' => '@count', |
|
3962 | + 'prefix' => '', |
|
3963 | + 'suffix' => '', |
|
3964 | + 'exclude' => 0, |
|
3965 | + 'id' => 'total_credit', |
|
3966 | + 'table' => 'team', |
|
3967 | + 'field' => 'total_credit', |
|
3968 | + 'relationship' => 'none', |
|
3969 | + 'override' => array( |
|
3970 | 3970 | 'button' => 'Use default', |
3971 | - ), |
|
3971 | + ), |
|
3972 | 3972 | ), |
3973 | - )); |
|
3974 | - $handler->override_option('filters', array( |
|
3973 | + )); |
|
3974 | + $handler->override_option('filters', array( |
|
3975 | 3975 | 'total_credit' => array( |
3976 | - 'operator' => '>=', |
|
3977 | - 'value' => array( |
|
3976 | + 'operator' => '>=', |
|
3977 | + 'value' => array( |
|
3978 | 3978 | 'value' => '1', |
3979 | 3979 | 'min' => '', |
3980 | 3980 | 'max' => '', |
3981 | - ), |
|
3982 | - 'group' => '0', |
|
3983 | - 'exposed' => FALSE, |
|
3984 | - 'expose' => array( |
|
3981 | + ), |
|
3982 | + 'group' => '0', |
|
3983 | + 'exposed' => FALSE, |
|
3984 | + 'expose' => array( |
|
3985 | 3985 | 'operator' => FALSE, |
3986 | 3986 | 'label' => '', |
3987 | - ), |
|
3988 | - 'id' => 'total_credit', |
|
3989 | - 'table' => 'team', |
|
3990 | - 'field' => 'total_credit', |
|
3991 | - 'override' => array( |
|
3987 | + ), |
|
3988 | + 'id' => 'total_credit', |
|
3989 | + 'table' => 'team', |
|
3990 | + 'field' => 'total_credit', |
|
3991 | + 'override' => array( |
|
3992 | 3992 | 'button' => 'Use default', |
3993 | - ), |
|
3994 | - 'relationship' => 'none', |
|
3995 | - ), |
|
3996 | - )); |
|
3997 | - $handler->override_option('title', 'Top teams'); |
|
3998 | - $handler->override_option('use_more', 1); |
|
3999 | - $handler->override_option('use_more_always', 1); |
|
4000 | - $handler->override_option('use_more_text', 'view more'); |
|
4001 | - $handler->override_option('style_plugin', 'table'); |
|
4002 | - $handler->override_option('style_options', array( |
|
3993 | + ), |
|
3994 | + 'relationship' => 'none', |
|
3995 | + ), |
|
3996 | + )); |
|
3997 | + $handler->override_option('title', 'Top teams'); |
|
3998 | + $handler->override_option('use_more', 1); |
|
3999 | + $handler->override_option('use_more_always', 1); |
|
4000 | + $handler->override_option('use_more_text', 'view more'); |
|
4001 | + $handler->override_option('style_plugin', 'table'); |
|
4002 | + $handler->override_option('style_options', array( |
|
4003 | 4003 | 'grouping' => '', |
4004 | 4004 | 'override' => 1, |
4005 | 4005 | 'sticky' => 0, |
4006 | 4006 | 'order' => 'desc', |
4007 | 4007 | 'summary' => '', |
4008 | 4008 | 'columns' => array( |
4009 | - 'rownumber' => 'rownumber', |
|
4010 | - 'id' => 'id', |
|
4011 | - 'name' => 'name', |
|
4012 | - 'phpcode' => 'phpcode', |
|
4013 | - 'nusers' => 'nusers', |
|
4014 | - 'country' => 'country', |
|
4015 | - 'expavg_credit' => 'expavg_credit', |
|
4016 | - 'total_credit' => 'total_credit', |
|
4009 | + 'rownumber' => 'rownumber', |
|
4010 | + 'id' => 'id', |
|
4011 | + 'name' => 'name', |
|
4012 | + 'phpcode' => 'phpcode', |
|
4013 | + 'nusers' => 'nusers', |
|
4014 | + 'country' => 'country', |
|
4015 | + 'expavg_credit' => 'expavg_credit', |
|
4016 | + 'total_credit' => 'total_credit', |
|
4017 | 4017 | ), |
4018 | 4018 | 'info' => array( |
4019 | - 'rownumber' => array( |
|
4019 | + 'rownumber' => array( |
|
4020 | 4020 | 'separator' => '', |
4021 | - ), |
|
4022 | - 'id' => array( |
|
4021 | + ), |
|
4022 | + 'id' => array( |
|
4023 | 4023 | 'sortable' => 1, |
4024 | 4024 | 'separator' => '', |
4025 | - ), |
|
4026 | - 'name' => array( |
|
4025 | + ), |
|
4026 | + 'name' => array( |
|
4027 | 4027 | 'sortable' => 1, |
4028 | 4028 | 'separator' => '', |
4029 | - ), |
|
4030 | - 'phpcode' => array( |
|
4029 | + ), |
|
4030 | + 'phpcode' => array( |
|
4031 | 4031 | 'separator' => '', |
4032 | - ), |
|
4033 | - 'nusers' => array( |
|
4032 | + ), |
|
4033 | + 'nusers' => array( |
|
4034 | 4034 | 'sortable' => 1, |
4035 | 4035 | 'separator' => '', |
4036 | - ), |
|
4037 | - 'country' => array( |
|
4036 | + ), |
|
4037 | + 'country' => array( |
|
4038 | 4038 | 'sortable' => 0, |
4039 | 4039 | 'separator' => '', |
4040 | - ), |
|
4041 | - 'expavg_credit' => array( |
|
4040 | + ), |
|
4041 | + 'expavg_credit' => array( |
|
4042 | 4042 | 'sortable' => 1, |
4043 | 4043 | 'separator' => '', |
4044 | - ), |
|
4045 | - 'total_credit' => array( |
|
4044 | + ), |
|
4045 | + 'total_credit' => array( |
|
4046 | 4046 | 'sortable' => 1, |
4047 | 4047 | 'separator' => '', |
4048 | - ), |
|
4048 | + ), |
|
4049 | 4049 | ), |
4050 | 4050 | 'default' => 'expavg_credit', |
4051 | - )); |
|
4052 | - $handler->override_option('pane_title', ''); |
|
4053 | - $handler->override_option('pane_description', ''); |
|
4054 | - $handler->override_option('pane_category', array( |
|
4051 | + )); |
|
4052 | + $handler->override_option('pane_title', ''); |
|
4053 | + $handler->override_option('pane_description', ''); |
|
4054 | + $handler->override_option('pane_category', array( |
|
4055 | 4055 | 'name' => 'View panes', |
4056 | 4056 | 'weight' => 0, |
4057 | - )); |
|
4058 | - $handler->override_option('allow', array( |
|
4057 | + )); |
|
4058 | + $handler->override_option('allow', array( |
|
4059 | 4059 | 'use_pager' => 'use_pager', |
4060 | 4060 | 'items_per_page' => 'items_per_page', |
4061 | 4061 | 'offset' => 0, |
@@ -4065,12 +4065,12 @@ discard block |
||
4065 | 4065 | 'title_override' => 'title_override', |
4066 | 4066 | 'exposed_form' => 0, |
4067 | 4067 | 'fields_override' => 0, |
4068 | - )); |
|
4069 | - $handler->override_option('argument_input', array()); |
|
4070 | - $handler->override_option('link_to_view', 0); |
|
4071 | - $handler->override_option('inherit_panels_path', 0); |
|
4068 | + )); |
|
4069 | + $handler->override_option('argument_input', array()); |
|
4070 | + $handler->override_option('link_to_view', 0); |
|
4071 | + $handler->override_option('inherit_panels_path', 0); |
|
4072 | 4072 | |
4073 | - $views[$view->name] = $view; |
|
4073 | + $views[$view->name] = $view; |
|
4074 | 4074 | |
4075 | - return $views; |
|
4075 | + return $views; |
|
4076 | 4076 | } |
@@ -4,48 +4,48 @@ |
||
4 | 4 | * Implementation of hook_user_default_permissions(). |
5 | 5 | */ |
6 | 6 | function private_messages_user_default_permissions() { |
7 | - $permissions = array(); |
|
7 | + $permissions = array(); |
|
8 | 8 | |
9 | - // Exported permission: administer privatemsg settings |
|
10 | - $permissions['administer privatemsg settings'] = array( |
|
9 | + // Exported permission: administer privatemsg settings |
|
10 | + $permissions['administer privatemsg settings'] = array( |
|
11 | 11 | 'name' => 'administer privatemsg settings', |
12 | 12 | 'roles' => array( |
13 | - '0' => 'administrator', |
|
13 | + '0' => 'administrator', |
|
14 | 14 | ), |
15 | - ); |
|
15 | + ); |
|
16 | 16 | |
17 | - // Exported permission: delete privatemsg |
|
18 | - $permissions['delete privatemsg'] = array( |
|
17 | + // Exported permission: delete privatemsg |
|
18 | + $permissions['delete privatemsg'] = array( |
|
19 | 19 | 'name' => 'delete privatemsg', |
20 | 20 | 'roles' => array( |
21 | - '0' => 'administrator', |
|
22 | - '1' => 'authenticated user', |
|
21 | + '0' => 'administrator', |
|
22 | + '1' => 'authenticated user', |
|
23 | 23 | ), |
24 | - ); |
|
24 | + ); |
|
25 | 25 | |
26 | - // Exported permission: read all private messages |
|
27 | - $permissions['read all private messages'] = array( |
|
26 | + // Exported permission: read all private messages |
|
27 | + $permissions['read all private messages'] = array( |
|
28 | 28 | 'name' => 'read all private messages', |
29 | 29 | 'roles' => array(), |
30 | - ); |
|
30 | + ); |
|
31 | 31 | |
32 | - // Exported permission: read privatemsg |
|
33 | - $permissions['read privatemsg'] = array( |
|
32 | + // Exported permission: read privatemsg |
|
33 | + $permissions['read privatemsg'] = array( |
|
34 | 34 | 'name' => 'read privatemsg', |
35 | 35 | 'roles' => array( |
36 | - '0' => 'administrator', |
|
37 | - '1' => 'authenticated user', |
|
36 | + '0' => 'administrator', |
|
37 | + '1' => 'authenticated user', |
|
38 | 38 | ), |
39 | - ); |
|
39 | + ); |
|
40 | 40 | |
41 | - // Exported permission: write privatemsg |
|
42 | - $permissions['write privatemsg'] = array( |
|
41 | + // Exported permission: write privatemsg |
|
42 | + $permissions['write privatemsg'] = array( |
|
43 | 43 | 'name' => 'write privatemsg', |
44 | 44 | 'roles' => array( |
45 | - '0' => 'administrator', |
|
46 | - '1' => 'community member', |
|
45 | + '0' => 'administrator', |
|
46 | + '1' => 'community member', |
|
47 | 47 | ), |
48 | - ); |
|
48 | + ); |
|
49 | 49 | |
50 | - return $permissions; |
|
50 | + return $permissions; |
|
51 | 51 | } |
@@ -16,16 +16,16 @@ |
||
16 | 16 | */ |
17 | 17 | |
18 | 18 | function boinccore_rules_event_info() { |
19 | - return array( |
|
19 | + return array( |
|
20 | 20 | 'boinccore_comment_convert' => array( |
21 | - 'label' => bts('A comment was converted to a new forum topic.', array(), NULL, 'boinc:rule-event'), |
|
22 | - 'module' => 'BOINCcore', |
|
23 | - 'arguments' => rules_events_hook_comment_arguments(t('converted comment')), |
|
21 | + 'label' => bts('A comment was converted to a new forum topic.', array(), NULL, 'boinc:rule-event'), |
|
22 | + 'module' => 'BOINCcore', |
|
23 | + 'arguments' => rules_events_hook_comment_arguments(t('converted comment')), |
|
24 | 24 | ), |
25 | 25 | 'boinccore_comment_unhidden' => array( |
26 | - 'label' => bts('A comment was unhidden.', array(), 'boinc:rule-event'), |
|
27 | - 'module' => 'BOINCcore', |
|
28 | - 'arguments' => rules_events_hook_comment_arguments(t('unhidden comment')), |
|
26 | + 'label' => bts('A comment was unhidden.', array(), 'boinc:rule-event'), |
|
27 | + 'module' => 'BOINCcore', |
|
28 | + 'arguments' => rules_events_hook_comment_arguments(t('unhidden comment')), |
|
29 | 29 | ), |
30 | - ); |
|
30 | + ); |
|
31 | 31 | } |
32 | 32 | \ No newline at end of file |
@@ -12,33 +12,33 @@ |
||
12 | 12 | */ |
13 | 13 | |
14 | 14 | |
15 | - require_once('./includes/bootstrap.inc'); |
|
16 | - drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
|
17 | - require_boinc('db'); |
|
15 | + require_once('./includes/bootstrap.inc'); |
|
16 | + drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
|
17 | + require_boinc('db'); |
|
18 | 18 | |
19 | - // Parse arguments |
|
20 | - $record_offset = isset($argv[1]) ? $argv[1] : 0; |
|
21 | - $chunk_size = isset($argv[2]) ? $argv[2] : 100; |
|
19 | + // Parse arguments |
|
20 | + $record_offset = isset($argv[1]) ? $argv[1] : 0; |
|
21 | + $chunk_size = isset($argv[2]) ? $argv[2] : 100; |
|
22 | 22 | |
23 | - // Construct sql conditions |
|
24 | - $limit = sprintf('LIMIT %d,%d', $record_offset, $chunk_size); |
|
23 | + // Construct sql conditions |
|
24 | + $limit = sprintf('LIMIT %d,%d', $record_offset, $chunk_size); |
|
25 | 25 | |
26 | - $total_count = 0; |
|
26 | + $total_count = 0; |
|
27 | 27 | |
28 | - // Get the users with subscriptions to import |
|
29 | - db_set_active('boinc_rw'); |
|
30 | - $subscribed_boinc_users = db_query(" |
|
28 | + // Get the users with subscriptions to import |
|
29 | + db_set_active('boinc_rw'); |
|
30 | + $subscribed_boinc_users = db_query(" |
|
31 | 31 | SELECT DISTINCT userid FROM {subscriptions} |
32 | 32 | ORDER BY userid ASC %s", $limit |
33 | - ); |
|
34 | - db_set_active('default'); |
|
33 | + ); |
|
34 | + db_set_active('default'); |
|
35 | 35 | |
36 | - // Import subscriptions |
|
37 | - while ($boinc_subscription = db_fetch_object($subscribed_boinc_users)) { |
|
36 | + // Import subscriptions |
|
37 | + while ($boinc_subscription = db_fetch_object($subscribed_boinc_users)) { |
|
38 | 38 | $uid = get_drupal_id($boinc_subscription->userid); |
39 | 39 | $count = boincuser_pull_subscriptions($uid); |
40 | 40 | $total_count += $count; |
41 | 41 | echo "\nuser: {$uid}; boinc_id: {$boinc_subscription->userid}; {$count} subscriptions"; |
42 | - } |
|
43 | - echo "\n"; |
|
44 | - echo $total_count; |
|
42 | + } |
|
43 | + echo "\n"; |
|
44 | + echo $total_count; |
@@ -12,26 +12,26 @@ discard block |
||
12 | 12 | */ |
13 | 13 | |
14 | 14 | |
15 | - require_once('./includes/bootstrap.inc'); |
|
16 | - drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
|
17 | - require_boinc('db'); |
|
15 | + require_once('./includes/bootstrap.inc'); |
|
16 | + drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); |
|
17 | + require_boinc('db'); |
|
18 | 18 | |
19 | - // Parse arguments |
|
20 | - $import_lurkers = isset($argv[1]) ? $argv[1] : false; |
|
21 | - $record_offset = isset($argv[2]) ? $argv[2] : 0; |
|
22 | - $chunk_size = isset($argv[3]) ? $argv[3] : 100; |
|
19 | + // Parse arguments |
|
20 | + $import_lurkers = isset($argv[1]) ? $argv[1] : false; |
|
21 | + $record_offset = isset($argv[2]) ? $argv[2] : 0; |
|
22 | + $chunk_size = isset($argv[3]) ? $argv[3] : 100; |
|
23 | 23 | |
24 | - // Construct sql conditions |
|
25 | - $limit = sprintf('LIMIT %d,%d', $record_offset, $chunk_size); |
|
24 | + // Construct sql conditions |
|
25 | + $limit = sprintf('LIMIT %d,%d', $record_offset, $chunk_size); |
|
26 | 26 | |
27 | - $count = 0; |
|
27 | + $count = 0; |
|
28 | 28 | |
29 | - db_set_active('boinc_rw'); |
|
30 | - if ($import_lurkers) { |
|
29 | + db_set_active('boinc_rw'); |
|
30 | + if ($import_lurkers) { |
|
31 | 31 | $boinc_accounts = db_query('SELECT id FROM user ORDER BY id %s', $limit); |
32 | - } |
|
33 | - //else $boinc_accounts = db_query('SELECT DISTINCT user AS boinc_id FROM post ORDER BY boinc_id %s', $limit); |
|
34 | - else { |
|
32 | + } |
|
33 | + //else $boinc_accounts = db_query('SELECT DISTINCT user AS boinc_id FROM post ORDER BY boinc_id %s', $limit); |
|
34 | + else { |
|
35 | 35 | // Need to import any user who is currently ignored in order to keep them |
36 | 36 | // ignored... not particularly clean (ignored users are stored in a string) |
37 | 37 | $ignored_user_list = array(); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | ORDER BY userid ASC" |
43 | 43 | ); |
44 | 44 | while ($ignoring_user = db_fetch_object($ignoring_users)) { |
45 | - $ignored_user_list = $ignored_user_list + array_fill_keys(explode('|', trim($ignoring_user->ignorelist, '|')), 1); |
|
45 | + $ignored_user_list = $ignored_user_list + array_fill_keys(explode('|', trim($ignoring_user->ignorelist, '|')), 1); |
|
46 | 46 | } |
47 | 47 | $ignored_user_list = array_keys($ignored_user_list); |
48 | 48 | $boinc_accounts = db_query(" |
@@ -58,14 +58,14 @@ discard block |
||
58 | 58 | (SELECT DISTINCT senderid FROM {private_messages}) |
59 | 59 | ) AS usersToImport ORDER BY id ASC %s", implode(',', $ignored_user_list), $limit |
60 | 60 | ); |
61 | - } |
|
62 | - db_set_active('default'); |
|
61 | + } |
|
62 | + db_set_active('default'); |
|
63 | 63 | |
64 | - while ($boinc_account = db_fetch_object($boinc_accounts)) { |
|
64 | + while ($boinc_account = db_fetch_object($boinc_accounts)) { |
|
65 | 65 | // Grab the BOINC user object and create a Drupal user from it |
66 | 66 | if (boincuser_register_make_drupal_user($boinc_account->id)) { |
67 | - $count++; |
|
67 | + $count++; |
|
68 | + } |
|
68 | 69 | } |
69 | - } |
|
70 | 70 | |
71 | - echo $count; |
|
71 | + echo $count; |