Passed
Push — master ( 117e2c...58b440 )
by Kevin
07:52 queued 10s
created
drupal/sites/default/boinc/modules/boinccore/includes/boinccore.forms.inc 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -10,38 +10,38 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincimport/boincimport.pages.inc 1 patch
Indentation   +185 added lines, -185 removed lines patch added patch discarded remove patch
@@ -5,45 +5,45 @@  discard block
 block discarded – undo
5 5
  * Callback admin/boinc/import/settings
6 6
  */
7 7
 function boincimport_admin_settings() {
8
-  global $conf ;
9
-  global $db_url;
10
-  global $base_url;
11
-  $stage = variable_get('boincimport_config_stage', 0); 
8
+    global $conf ;
9
+    global $db_url;
10
+    global $base_url;
11
+    $stage = variable_get('boincimport_config_stage', 0); 
12 12
   
13
-  // Start with a quick sanity check on the BOINC environment
14
-  boinc_get_path();
13
+    // Start with a quick sanity check on the BOINC environment
14
+    boinc_get_path();
15 15
   
16
-  //We'll be checking that the setup is complete.
17
-  //If it is not complete, the migration will not go ahead.
18
-  $ready_for_migration = 1;
16
+    //We'll be checking that the setup is complete.
17
+    //If it is not complete, the migration will not go ahead.
18
+    $ready_for_migration = 1;
19 19
 
20
-  // Checking that the migration has been tested on a copy first.
21
-  $form['test'] = array(
20
+    // Checking that the migration has been tested on a copy first.
21
+    $form['test'] = array(
22 22
     '#type' => 'fieldset',
23 23
     '#title' => t('Test on copy first'),
24 24
     '#collapsible' => TRUE,
25 25
     '#collapsed' => TRUE,
26
-  );
26
+    );
27 27
     
28
-  $output = '';
29
-  if (!variable_get('boincimport_tested', 0)) {
28
+    $output = '';
29
+    if (!variable_get('boincimport_tested', 0)) {
30 30
     $form['test']['#collapsed']= FALSE;
31 31
     $output = '<span class="marker">';
32 32
     $ready_for_migration = 0;
33
-  }
34
-  $output .= '<p>' . t('The migration will modify and even destroy some data. You
33
+    }
34
+    $output .= '<p>' . t('The migration will modify and even destroy some data. You
35 35
     must test this module on a copy of your data first, several times if necessary.
36 36
     Only use this module on your live data when you are familiar with the procedure
37 37
     and you\'re confident everything will run smoothly.') . '</p><p>' . t('Also, you
38 38
     should make a full backup of your database just prior to performing the
39 39
     migration on the live data. It is better to turn off both the BOINC site and the
40 40
     Drupal site during the migration.') . '</p>';
41
-  if (!variable_get('boincimport_tested', 0)) {
41
+    if (!variable_get('boincimport_tested', 0)) {
42 42
     $output .= '</span>';
43
-  }
44
-  $form['test']['intro'] = array('#value' => $output);
43
+    }
44
+    $form['test']['intro'] = array('#value' => $output);
45 45
 
46
-  $form['test']['boincimport_tested'] = array(
46
+    $form['test']['boincimport_tested'] = array(
47 47
     '#type' => 'checkbox',
48 48
     '#title' => t('I am running a trial migration on a disposable copy of the database
49 49
       OR I have already done so and I am running this on my live site, confident that
@@ -51,64 +51,64 @@  discard block
 block discarded – undo
51 51
     '#return_value' => 1,
52 52
     '#default_value' => variable_get('boincimport_tested', 0),
53 53
     '#description' => '',
54
-  );
54
+    );
55 55
   
56
-  // Where is BOINC data?
57
-  $pre = variable_get('boincimport_table_prefix', '');
58
-  $tables = array($pre .'forum', $pre .'post', $pre .'thread', $pre .'user');
59
-  $db = (is_array($db_url) AND isset($db_url['boinc_rw'])) ? 'boinc_rw' : 'default';
60
-  $result = _boincimport_check_tables($tables, $db, 0);
56
+    // Where is BOINC data?
57
+    $pre = variable_get('boincimport_table_prefix', '');
58
+    $tables = array($pre .'forum', $pre .'post', $pre .'thread', $pre .'user');
59
+    $db = (is_array($db_url) AND isset($db_url['boinc_rw'])) ? 'boinc_rw' : 'default';
60
+    $result = _boincimport_check_tables($tables, $db, 0);
61 61
   
62
-  $config_path = conf_path();
63
-  $form['boinc_data'] = array(
62
+    $config_path = conf_path();
63
+    $form['boinc_data'] = array(
64 64
     '#type' => 'fieldset',
65 65
     '#title' => t('Location of BOINC data'),
66 66
     '#collapsible' => TRUE,
67 67
     '#collapsed' => TRUE,
68
-  );
69
-  $form['boinc_data']['boincimport_db_configured'] = array(
68
+    );
69
+    $form['boinc_data']['boincimport_db_configured'] = array(
70 70
     '#type' => 'checkbox',
71 71
     '#title' => t('There is a \'boinc\' database connection string configured in %file',
72
-      array('%file' => "{$config_path}/settings.php")),
72
+        array('%file' => "{$config_path}/settings.php")),
73 73
     '#return_value' => 1,
74 74
     '#default_value' => variable_get('boincimport_db_configured', 1),
75 75
     '#description' => '',
76 76
     '#disabled' => ($result['result']) ? TRUE : FALSE
77
-  );
78
-  if (variable_get('boincimport_db_configured', 1) != 1) {
77
+    );
78
+    if (variable_get('boincimport_db_configured', 1) != 1) {
79 79
     $default_db_url = is_array($db_url) ? end($db_url) : $db_url;
80 80
     $url = variable_get('boincimport_db_url', $default_db_url);
81 81
     if (!preg_match('{(mysql|pgsql):\/\/(.+):(.*?)@(.+)/(\w+)}i', $url)) {
82
-      $output = '<p class="marker">'. t('Set the address of the BOINC database
82
+        $output = '<p class="marker">'. t('Set the address of the BOINC database
83 83
         according to the following format:') . '<br /><pre>
84 84
         mysql://boinc_username:boinc_password@localhost/boinc_database
85 85
         </pre></p>';
86
-      $ready_for_migration = 0;
87
-      $form['boinc_data']['#collapsed'] = FALSE;
88
-      $form['boinc_data']['db_connect_string_note'] = array('#value' => $output);
86
+        $ready_for_migration = 0;
87
+        $form['boinc_data']['#collapsed'] = FALSE;
88
+        $form['boinc_data']['db_connect_string_note'] = array('#value' => $output);
89 89
     }
90 90
 
91 91
     $form['boinc_data']['boincimport_db_url'] = array(
92
-      '#type' => 'textfield',
93
-      '#title' => t('BOINC database location'),
94
-      '#default_value' => variable_get('boincimport_db_url', $default_db_url),
95
-      '#size' => 80,
96
-      '#maxlength' => 255,
97
-      '#description' => '',
92
+        '#type' => 'textfield',
93
+        '#title' => t('BOINC database location'),
94
+        '#default_value' => variable_get('boincimport_db_url', $default_db_url),
95
+        '#size' => 80,
96
+        '#maxlength' => 255,
97
+        '#description' => '',
98 98
     );
99
-  }
99
+    }
100 100
 
101
-  $output = '<p>' . t('Note that due to a limitation within Drupal core, we cannot
101
+    $output = '<p>' . t('Note that due to a limitation within Drupal core, we cannot
102 102
     import messages from one database type to another database type. E.g, we
103 103
     cannot import BOINC from a myqsl DB, to a postgresql DB. You need to import
104 104
     the data into the same type of database first (import all the BOINC data, as is,
105 105
     from mysql to postgresql).') . '</p><p>' . t('If both BOINC and Drupal are on
106 106
     postgresql, see !this_issue.', array('!this_issue' => l(t('this issue'),
107 107
     'http://drupal.org/node/64877', array('attributes' => array('target' => '_blank'))))) . '</p>';
108
-  $form['boinc_data']['note'] = array('#value' => $output);
108
+    $form['boinc_data']['note'] = array('#value' => $output);
109 109
   
110
-  // BOINC table prefix
111
-  $form['boinc_data']['boincimport_table_prefix'] = array(
110
+    // BOINC table prefix
111
+    $form['boinc_data']['boincimport_table_prefix'] = array(
112 112
     '#type' => 'textfield',
113 113
     '#title' => t('BOINC table prefix'),
114 114
     '#default_value' => variable_get('boincimport_table_prefix', ''),
@@ -116,30 +116,30 @@  discard block
 block discarded – undo
116 116
     '#maxlength' => 255,
117 117
     '#description' => t('What prefix is used for your BOINC tables?'),
118 118
     '#disabled' => ($result['result']) ? TRUE : FALSE
119
-  );
119
+    );
120 120
   
121
-  $output = $result['html'];
122
-  if ($result['result'] != 1) {
121
+    $output = $result['html'];
122
+    if ($result['result'] != 1) {
123 123
     $ready_for_migration = 0;
124 124
     $form['boinc_data']['#collapsed']= FALSE;
125 125
     $output .= '<span class="marker">';
126 126
     $output .= t('Some tables couldn\'t be found. Are the database settings correct?
127 127
       Please correct the errors so that the BOINC tables can be accessed.');
128 128
     $output .= '</span>';
129
-  }
129
+    }
130 130
 
131
-  $form['boinc_data']['result'] = array('#value' => $output);
131
+    $form['boinc_data']['result'] = array('#value' => $output);
132 132
   
133
-  // USERS settings
134
-  $form['users'] = array(
133
+    // USERS settings
134
+    $form['users'] = array(
135 135
     '#type' => 'fieldset',
136 136
     '#title' => t('User import'),
137 137
     '#collapsible' => TRUE,
138 138
     '#collapsed' => TRUE,
139
-  );
139
+    );
140 140
 
141
-  // User import batch size
142
-  $form['users']['boincimport_user_batch_size'] = array(
141
+    // User import batch size
142
+    $form['users']['boincimport_user_batch_size'] = array(
143 143
     '#type' => 'textfield',
144 144
     '#title' => t('Number of accounts to process at a time'),
145 145
     '#default_value' => variable_get('boincimport_user_batch_size', 50),
@@ -148,10 +148,10 @@  discard block
 block discarded – undo
148 148
     '#description' => t('Due to memory intensive API calls, this value may have to
149 149
       be adjusted to avoid exhausting system resources. The default value is a
150 150
       balance between performance and reliability.')
151
-  );
151
+    );
152 152
 
153
-  // Import users who have never posted?
154
-  $form['users']['boincimport_import_lurkers'] = array(
153
+    // Import users who have never posted?
154
+    $form['users']['boincimport_import_lurkers'] = array(
155 155
     '#type' => 'checkbox',
156 156
     '#title' => t('Import users who have never posted?'),
157 157
     '#return_value' => 1,
@@ -160,199 +160,199 @@  discard block
 block discarded – undo
160 160
       involvement? This may not be desired, as it can take a very long time to
161 161
       import tens or hundreds of thousands of accounts. (note that users who
162 162
       are not imported now will still be imported on-the-fly upon login)'),
163
-  );
163
+    );
164 164
 
165
-  // Input format settings
166
-  $form['input'] = array(
165
+    // Input format settings
166
+    $form['input'] = array(
167 167
     '#type' => 'fieldset',
168 168
     '#title' => t('Input format settings'),
169 169
     '#collapsible' => TRUE,
170 170
     '#collapsed' => TRUE
171
-  );
172
-  $output = '<p>'. t('Select which !input_format should be used for the imported
171
+    );
172
+    $output = '<p>'. t('Select which !input_format should be used for the imported
173 173
     messages. It is highly-recommended that this value be left as it is, as the
174 174
     Full HTML and PHP code formats can be very dangerous!', 
175 175
     array('!input_format' => l(t('input format'), 'admin/settings/filters'))) .'</p>';
176
-  $form['input']['intro'] = array('#value' => $output);
176
+    $form['input']['intro'] = array('#value' => $output);
177 177
   
178
-  $formats = db_query('SELECT format, name FROM {filter_formats}');
179
-  while ($format = db_fetch_array($formats)) {
178
+    $formats = db_query('SELECT format, name FROM {filter_formats}');
179
+    while ($format = db_fetch_array($formats)) {
180 180
     $input_formats[$format['format']]= $format['name'];
181
-  }
181
+    }
182 182
   
183
-  // By default, use the format named "Rich text"; fall back to Filtered HTML
184
-  $default_input_format = db_result(db_query("
183
+    // By default, use the format named "Rich text"; fall back to Filtered HTML
184
+    $default_input_format = db_result(db_query("
185 185
     SELECT format FROM {filter_formats} WHERE name = '%s'", 'Rich text'));
186
-  if (!$default_input_format) $default_input_format = 1;
186
+    if (!$default_input_format) $default_input_format = 1;
187 187
   
188
-  $input_format = variable_get('boincimport_input_format', $default_input_format);
189
-  $form['input']['boincimport_input_format'] = array(
188
+    $input_format = variable_get('boincimport_input_format', $default_input_format);
189
+    $form['input']['boincimport_input_format'] = array(
190 190
     '#type' => 'radios',
191 191
     '#title' => t('Input format'),
192 192
     '#default_value' => $input_format,
193 193
     '#options' => $input_formats
194
-  );
195
-  if (!$input_format) {
194
+    );
195
+    if (!$input_format) {
196 196
     $ready_for_migration = 0;
197 197
     $form['input']['#collapsed']= FALSE;
198
-  }
199
-  $output = '<p><em>'. t('This setting will be applied to all posts and private
198
+    }
199
+    $output = '<p><em>'. t('This setting will be applied to all posts and private
200 200
     messages.') .'</em></p>';
201
-  $form['input']['result'] = array('#value' => $output);
201
+    $form['input']['result'] = array('#value' => $output);
202 202
   
203
-  // BBcode settings
204
-  $form['bbcode'] = array(
203
+    // BBcode settings
204
+    $form['bbcode'] = array(
205 205
     '#type' => 'fieldset',
206 206
     '#title' => t('BBcode settings'),
207 207
     '#collapsible' => TRUE,
208 208
     '#collapsed' => TRUE,
209
-  );
209
+    );
210 210
   
211
-  $output = '<p>' . t('BOINC posts are often formatted in BBcode. During the
211
+    $output = '<p>' . t('BOINC posts are often formatted in BBcode. During the
212 212
     import process, BBcode can be handled in two diffent ways') . ':</p>';
213
-  $output .= '<ul><li>' . t('Leave the BBcode as is and use the !bbcode_module
213
+    $output .= '<ul><li>' . t('Leave the BBcode as is and use the !bbcode_module
214 214
     after the migration to filter the imported posts. In this case, the module
215 215
     is not required during the migration, but will need to be installed and
216 216
     configured later.',
217 217
     array('!bbcode_module' => l(t('bbcode module'), 'http://drupal.org/project/bbcode',
218 218
     array('attributes' => array('target' => '_blank'))))) . '</li>';
219
-  $output .= '<li>' . t('Filter the BBcode now and replace it with plain HTML.
219
+    $output .= '<li>' . t('Filter the BBcode now and replace it with plain HTML.
220 220
     The BBcode module will be required during the migration process, but can
221 221
     be disabled afterwards.') . '</li></ul>';
222
-  $output .= '<p>' . t('An appropriate input filter should be chosen, as well,
222
+    $output .= '<p>' . t('An appropriate input filter should be chosen, as well,
223 223
     as it will affect how the post is displayed. For example, if BBcode is
224 224
     removed and replaced by HTML, some HTML tags will be stripped by the
225 225
     "Filtered HTML" input format unless they are first added to the list of
226 226
     allowed tags in that format. See the !input_formats page.',
227 227
     array('!input_formats' => l(t('input formats'), 'admin/settings/filters'))) . '</p>';
228 228
     
229
-  $form['bbcode']['intro'] = array('#value' => $output);
230
-  $form['bbcode']['boincimport_bbcode'] = array(
229
+    $form['bbcode']['intro'] = array('#value' => $output);
230
+    $form['bbcode']['boincimport_bbcode'] = array(
231 231
     '#type' => 'radios',
232 232
     '#title' => t('BBcode handling'),
233 233
     '#default_value' => variable_get('boincimport_bbcode', 0),
234 234
     '#options' => array(t('Leave BBcode as is.'), t('Transform BBcode into HTML.')),
235 235
     '#description' => '',
236
-  );
236
+    );
237 237
   
238
-  $module_status = _boincimport_check_module('bbcode');
239
-  $bbcode_disabled = ($module_status['result'] == 0) ? true : false;
240
-  $output = $module_status['html'];
238
+    $module_status = _boincimport_check_module('bbcode');
239
+    $bbcode_disabled = ($module_status['result'] == 0) ? true : false;
240
+    $output = $module_status['html'];
241 241
   
242
-  if (variable_get('boincimport_bbcode', 0)) {
242
+    if (variable_get('boincimport_bbcode', 0)) {
243 243
     if ($bbcode_disabled) {
244
-      $ready_for_migration = 0;
245
-      $form['bbcode']['#collapsed'] = FALSE;
246
-      $output .= '<p><span class="marker">';
247
-      $output .= t('The !bbcode_module is required to transform BBcode into HTML.
244
+        $ready_for_migration = 0;
245
+        $form['bbcode']['#collapsed'] = FALSE;
246
+        $output .= '<p><span class="marker">';
247
+        $output .= t('The !bbcode_module is required to transform BBcode into HTML.
248 248
         You first need to !enable_bbcode', array(
249
-          '!bbcode_module' => l(t('bbcode module'), 'http://drupal.org/project/bbcode', array('attributes' => array('target' => '_blank'))),
250
-          '!enable_bbcode' => l(t('enable the bbcode module'), 'admin/build/modules')));
251
-      $output .= '</span></p>';
249
+            '!bbcode_module' => l(t('bbcode module'), 'http://drupal.org/project/bbcode', array('attributes' => array('target' => '_blank'))),
250
+            '!enable_bbcode' => l(t('enable the bbcode module'), 'admin/build/modules')));
251
+        $output .= '</span></p>';
252 252
     }
253 253
     $sql = "SELECT COUNT(*) FROM {filters} WHERE module = 'bbcode' AND format = %d";
254 254
     $result = db_query($sql, $input_format);
255 255
     if (!db_result($result)) {
256
-      $form['bbcode']['#collapsed'] = FALSE;
257
-      $output .= '<p class="marker">'. t('You need to !enable_bbcode_input and
256
+        $form['bbcode']['#collapsed'] = FALSE;
257
+        $output .= '<p class="marker">'. t('You need to !enable_bbcode_input and
258 258
         then !configure_bbcode_options', array(
259
-          '!enable_bbcode_input' =>  l(t('enable BBcode in the selected input format'), "admin/settings/filters/{$input_format}"),
260
-          '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))) .'</p>';
259
+            '!enable_bbcode_input' =>  l(t('enable BBcode in the selected input format'), "admin/settings/filters/{$input_format}"),
260
+            '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))) .'</p>';
261 261
     }
262 262
     $output .= '<p>'. t('For best results, !disable_all_options', 
263 263
     array('!disable_all_options' => l(t('all four BBcode configure options should be disabled'), "admin/settings/filters/{$input_format}/configure"))) . '.</p>';
264
-  } else {
264
+    } else {
265 265
     if ($bbcode_disabled) {
266
-      $form['bbcode']['#collapsed'] = FALSE;
267
-      $output .= '<p>'. t('The !bbcode_module is recommended, but not required.
266
+        $form['bbcode']['#collapsed'] = FALSE;
267
+        $output .= '<p>'. t('The !bbcode_module is recommended, but not required.
268 268
         You may !enable_bbcode after having installed it.', array(
269
-          '!bbcode_module' => l(t('bbcode module'), 'http://drupal.org/project/bbcode', array('attributes' => array('target' => '_blank'))),
270
-          '!enable_bbcode' => l(t('enable the bbcode module'), 'admin/build/modules'))) .'</p>';
269
+            '!bbcode_module' => l(t('bbcode module'), 'http://drupal.org/project/bbcode', array('attributes' => array('target' => '_blank'))),
270
+            '!enable_bbcode' => l(t('enable the bbcode module'), 'admin/build/modules'))) .'</p>';
271 271
     }
272 272
     $output .= '<p>' . t('Don\'t forget to !enable_bbcode_input and then !configure_bbcode_options.', array(
273
-      '!enable_bbcode_input' =>  l(t('enable BBcode in the selected input format'), "admin/settings/filters/{$input_format}"),
274
-      '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))) . '</p>';
273
+        '!enable_bbcode_input' =>  l(t('enable BBcode in the selected input format'), "admin/settings/filters/{$input_format}"),
274
+        '!configure_bbcode_options' => l(t('configure BBcode options'), "admin/settings/filters/{$input_format}/configure"))) . '</p>';
275 275
     $output .= '<p>' . t('You may want to enable it for other input formats, too.') . '</p>';
276
-  }
277
-  $output .= '<p><em>'. t('This setting will be applied to all posts, private
276
+    }
277
+    $output .= '<p><em>'. t('This setting will be applied to all posts, private
278 278
     messages and the users\' signature.') .'</em></p>';
279 279
     
280
-  $form['bbcode']['result'] = array('#value' => $output);
280
+    $form['bbcode']['result'] = array('#value' => $output);
281 281
   
282
-  // URL transform settings
283
-  $form['url_transforms'] = array(
282
+    // URL transform settings
283
+    $form['url_transforms'] = array(
284 284
     '#type' => 'fieldset',
285 285
     '#title' => t('URL transforms'),
286 286
     '#collapsible' => TRUE,
287 287
     '#collapsed' => TRUE,
288
-  );
289
-  if (!variable_get('boincimport_base_url_boinc', 0)) {
288
+    );
289
+    if (!variable_get('boincimport_base_url_boinc', 0)) {
290 290
     $form['url_transforms']['#collapsed']= FALSE;
291 291
     $output = '<span class="marker">';
292 292
     $ready_for_migration = 0;
293
-  }
293
+    }
294 294
 
295
-  // List of BOINC domains possible in URLs to transform
296
-  $form['url_transforms']['boincimport_base_url_boinc'] = array(
295
+    // List of BOINC domains possible in URLs to transform
296
+    $form['url_transforms']['boincimport_base_url_boinc'] = array(
297 297
     '#type' => 'textarea',
298 298
     '#title' => t('BOINC base URLs to transform'),
299 299
     '#default_value' => variable_get('boincimport_base_url_boinc', ''),
300 300
     '#description' => t('List URL bases that should be transformed from
301 301
       BOINC format to Drupal format (enter one domain per line, including http://).'),
302
-  );
302
+    );
303 303
 
304
-  // The Drupal domain to use in URL transform results
305
-  $form['url_transforms']['boincimport_base_url_drupal'] = array(
304
+    // The Drupal domain to use in URL transform results
305
+    $form['url_transforms']['boincimport_base_url_drupal'] = array(
306 306
     '#type' => 'textfield',
307 307
     '#title' => t('Target Drupal base URL'),
308 308
     '#default_value' => variable_get('boincimport_base_url_drupal', ''),
309 309
     '#description' => t('Specify the URL base to use in transform results. If
310 310
       left blank, the base_url configured in this Drupal environment will be
311 311
       used (currently: %url)', array('%url' =>$base_url)),
312
-  );
312
+    );
313 313
   
314
-  // Are we ready for migration?
315
-  $form['migration'] = array(
314
+    // Are we ready for migration?
315
+    $form['migration'] = array(
316 316
     '#type' => 'fieldset',
317 317
     '#title' => 'Migration',
318 318
     '#collapsible' => TRUE,
319 319
     '#collapsed' => FALSE,
320
-  );
321
-  variable_set('boincimport_ready', $ready_for_migration);
322
-  if ($ready_for_migration) {
320
+    );
321
+    variable_set('boincimport_ready', $ready_for_migration);
322
+    if ($ready_for_migration) {
323 323
     $output = '<p>'. t('Check the settings above one more time. If everything
324 324
       is ok, !proceed.', array('!proceed' => l(t('you can now proceed with the migration'), 'admin/boinc/import/process'))) .'</p>';
325
-  } else {
325
+    } else {
326 326
     $output = '<p class="marker">'. t('You are not ready for the migration yet.
327 327
       Please check the settings above.') .'</p>';
328
-  }
328
+    }
329 329
   
330
-  $form['migration']['info'] = array('#value' => $output);
331
-  return system_settings_form($form); 
330
+    $form['migration']['info'] = array('#value' => $output);
331
+    return system_settings_form($form); 
332 332
 }
333 333
 
334 334
 /**
335 335
  * Callback admin/boinc/import/post_configuration
336 336
  */
337 337
 function boincimport_post_configuration() {
338
-  $output = '<p>'. t('This page will help to tie up any loose ends following
338
+    $output = '<p>'. t('This page will help to tie up any loose ends following
339 339
     the BOINC data import process. Before continuing, it may be best to have
340 340
     already:') .'</p>';
341
-  $output .= '<ul>';
342
-  $output .= '<li>'. t('Imported users, teams, and forums using the BOINC
341
+    $output .= '<ul>';
342
+    $output .= '<li>'. t('Imported users, teams, and forums using the BOINC
343 343
     import module') .'</li>';
344
-  $output .= '<li>'. t('Imported any additional data using add on modules if
344
+    $output .= '<li>'. t('Imported any additional data using add on modules if
345 345
     available.') .'</li>';
346
-  $output .= '</ul>';
347
-  //User Set up
348
-  $output .= '<h2>'. t('User settings') .'</h2>';  
349
-  $output .= '<p>'. t('Make sure your !user_settings are correct. Specifically,
346
+    $output .= '</ul>';
347
+    //User Set up
348
+    $output .= '<h2>'. t('User settings') .'</h2>';  
349
+    $output .= '<p>'. t('Make sure your !user_settings are correct. Specifically,
350 350
     you can enable or disable signatures there. ', array(
351
-      '!user_settings' => l(t('user settings'), 'admin/user/settings')
351
+        '!user_settings' => l(t('user settings'), 'admin/user/settings')
352 352
     )) .'</p>'; 
353
-  $output .= '<p>' . t('Note that avatar/picture support is not tied to user
353
+    $output .= '<p>' . t('Note that avatar/picture support is not tied to user
354 354
     settings Picture support at this time.') . '</p>';
355
-  /*$output .= '<p>' . t('In order to activate avatar/picture support, you need to
355
+    /*$output .= '<p>' . t('In order to activate avatar/picture support, you need to
356 356
     enable pictures on this page and also:') . '</p>';
357 357
   $output .= '<ul>';
358 358
   $output .= '<li>'. t('Tick the checkboxes to allow "User pictures in posts" and/or
@@ -365,73 +365,73 @@  discard block
 block discarded – undo
365 365
     )) .'</li>';
366 366
   $output .= '</ul>'; */
367 367
   
368
-  // Forum Set up
369
-  $output .= '<h2>'. t('Forum settings') .'</h2>';
370
-  $output .= '<p>'. t('Check any additional changes to make on the
368
+    // Forum Set up
369
+    $output .= '<h2>'. t('Forum settings') .'</h2>';
370
+    $output .= '<p>'. t('Check any additional changes to make on the
371 371
     !forum_settings page.', array(
372
-      '!forum_settings' =>  l(t('forum settings'), 'admin/content/forum/settings')
372
+        '!forum_settings' =>  l(t('forum settings'), 'admin/content/forum/settings')
373 373
     )) .'</p>';
374
-  $output .= '<p>'. t('It also may be a good idea to look at the !forum_list to
374
+    $output .= '<p>'. t('It also may be a good idea to look at the !forum_list to
375 375
     verify that all necessary containers and forums are in place.', array(
376
-      '!forum_list' =>  l(t('forum list'), 'admin/content/forum')
376
+        '!forum_list' =>  l(t('forum list'), 'admin/content/forum')
377 377
     )) .'</p>';
378
-  /*$output .= '<p>'. t('If need be, set up the private forums as explained in the
378
+    /*$output .= '<p>'. t('If need be, set up the private forums as explained in the
379 379
     !documentation.', array(
380 380
       '!documentation' => l(t('documentation'), 'http://drupal.org/node/58969', array('attributes' => array('target' => '_blank')))
381 381
     )) .'</p>';
382 382
     */
383
-  /*
383
+    /*
384 384
   // Redirection from old URLs:
385 385
   $output .= '<h2>'. t('Redirection from BOINC forum URLs to new Drupal forum URLs') .'</h2>';
386 386
   $output .= '<p>'. t('Enable the boincforum_redirect.module. This way, users
387 387
     accessing URLs from your old BOINC installation will be redirected to your new
388 388
     Drupal forum.') .'</p>';
389 389
   */
390
-  // BBcode
391
-  $bbcode = variable_get('boincimport_bbcode', 0);
392
-  if ($bbcode) {
390
+    // BBcode
391
+    $bbcode = variable_get('boincimport_bbcode', 0);
392
+    if ($bbcode) {
393 393
     $output .= '<h2>'. t('Remove BBcode module') .'</h2>';
394 394
     $output .= '<p>'. t('The BBcode has been cleaned from the posts. You shouldn\'t
395 395
       need the bbcode module anymore. You can disable it.') .'</p>';
396
-  } else {
396
+    } else {
397 397
     $output .= '<h2>'. t('Configure BBcode module') .'</h2>';
398 398
     $output .= '<p>'. t('Most likely, there are many BOINC forum postings
399 399
       formatted in BBcode. It would be a good idea to verify that BBcode is
400 400
       being formatted correctly in the imported posts. Have a look around
401 401
       !the_forum.', array(
402 402
         '!the_forum' =>  l(t('the forum'), 'community')
403
-      )) . '</p>';
404
-  }
403
+        )) . '</p>';
404
+    }
405 405
 
406
-  return $output;
406
+    return $output;
407 407
 }
408 408
 
409 409
 /**
410 410
  * Callback admin/boinc/import
411 411
  */
412 412
 function boincimport_main() {
413
-  // Start with a quick sanity check on the BOINC environment
414
-  boinc_get_path();
415
-  // If that's ok, on with the show
416
-  $output .= t('You may want to !check_documentation before starting.', array(
413
+    // Start with a quick sanity check on the BOINC environment
414
+    boinc_get_path();
415
+    // If that's ok, on with the show
416
+    $output .= t('You may want to !check_documentation before starting.', array(
417 417
     '!check_documentation' => l(t('check the documentation'), 'http://boinc.berkeley.edu/trac/wiki/InstallDrupal', array('attributes' =>array('target' => '_blank')))
418
-  ));
419
-  $output = '<ol><li>';
420
-  $output .= l(t('Configure the migration'), 'admin/boinc/import/settings');
421
-  $output .= '</li>';
422
-  $output .= '<li>';
423
-  $output .= l(t('Execute the migration'), 'admin/boinc/import/process');
424
-  $output .= '</li>';
425
-  $output .= '<li>';
426
-  $output .= l(t('Post migration configuration'), 'admin/boinc/import/post_configuration');
427
-  $output .= '</li>';
428
-  $output .= '<li>';
429
-  $output .= t('!cleanup (Accessing this link will delete all the saved BOINC forum
418
+    ));
419
+    $output = '<ol><li>';
420
+    $output .= l(t('Configure the migration'), 'admin/boinc/import/settings');
421
+    $output .= '</li>';
422
+    $output .= '<li>';
423
+    $output .= l(t('Execute the migration'), 'admin/boinc/import/process');
424
+    $output .= '</li>';
425
+    $output .= '<li>';
426
+    $output .= l(t('Post migration configuration'), 'admin/boinc/import/post_configuration');
427
+    $output .= '</li>';
428
+    $output .= '<li>';
429
+    $output .= t('!cleanup (Accessing this link will delete all the saved BOINC forum
430 430
     conversion settings: click only when you\'re done with all the above.)', array(
431
-      '!cleanup' => l(t('Cleanup'), 'admin/boinc/import/cleanup')
431
+        '!cleanup' => l(t('Cleanup'), 'admin/boinc/import/cleanup')
432 432
     ));
433
-  $output .= '</li>';
434
-  /*$output .= '<li>';
433
+    $output .= '</li>';
434
+    /*$output .= '<li>';
435 435
   $output .= t('Enable the boincforum_redirect module for seamless redirection
436 436
     from the old forums to the new. This module requires !clean_urls to be active.', array(
437 437
       '!clean_urls' => l(t('Clean URLs'), 'admin/settings/clean-urls')
@@ -442,14 +442,14 @@  discard block
 block discarded – undo
442 442
     uninstall BOINC forum - This will delete tables necessary for redirection. You can,
443 443
     however, deactivate the module safely.');
444 444
   $output .= '</li>';*/
445
-  $output .= '</ol>';
445
+    $output .= '</ol>';
446 446
 
447
-  // process will die() if the link to the BOINC database is wrong:
448
-  $output .= '<p>'. t('If the BOINC data is in another database, but you made a
447
+    // process will die() if the link to the BOINC database is wrong:
448
+    $output .= '<p>'. t('If the BOINC data is in another database, but you made a
449 449
     mistake while setting up the data base url, you may be unable to access the
450 450
     setting page due to some limitations of the core of Drupal. !reset_db_url.', array(
451
-      '!reset_db_url' => l(t('Click here to reset the database url'), 'admin/boinc/import/reset')
451
+        '!reset_db_url' => l(t('Click here to reset the database url'), 'admin/boinc/import/reset')
452 452
     )) .'</p>';
453 453
 
454
-  return $output;
454
+    return $output;
455 455
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/teams/teams.views_default.inc 1 patch
Indentation   +2112 added lines, -2112 removed lines patch added patch discarded remove patch
@@ -4,22 +4,22 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
all/features/private_messages/private_messages.features.user_permission.inc 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -4,48 +4,48 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boinccore/includes/boinccore.rules.inc 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincteam/boincteam.views.inc 1 patch
Indentation   +206 added lines, -206 removed lines patch added patch discarded remove patch
@@ -13,103 +13,103 @@  discard block
 block discarded – undo
13 13
  */
14 14
 function boincteam_views_data() {
15 15
   
16
-  // -----------------------------------------------------------------------------------------------
17
-  // Definition for team table
18
-  // -----------------------------------------------------------------------------------------------
16
+    // -----------------------------------------------------------------------------------------------
17
+    // Definition for team table
18
+    // -----------------------------------------------------------------------------------------------
19 19
   
20
-  $data['team']['table']['group'] = t('BOINC');
20
+    $data['team']['table']['group'] = t('BOINC');
21 21
   
22
-  $data['team']['table']['base'] = array(
23
-      'field' => 'id',
24
-      'title' => t('BOINC team'),
25
-      'help' => t('BOINC data for a team'),
26
-      'database' => 'boinc_rw'
27
-  );
22
+    $data['team']['table']['base'] = array(
23
+        'field' => 'id',
24
+        'title' => t('BOINC team'),
25
+        'help' => t('BOINC data for a team'),
26
+        'database' => 'boinc_rw'
27
+    );
28 28
   
29
-  // This table references the {user} table.
30
-  // This join creates an 'implicit' relationship to the user table, so that when
31
-  // "User" is the base table, the fields are automatically available.
29
+    // This table references the {user} table.
30
+    // This join creates an 'implicit' relationship to the user table, so that when
31
+    // "User" is the base table, the fields are automatically available.
32 32
   
33
-  // Index this array by the table name to which this table refers.
34
-  // 'left_field' is the primary key in the referenced table.
35
-  // 'field' is the foreign key in this table.
33
+    // Index this array by the table name to which this table refers.
34
+    // 'left_field' is the primary key in the referenced table.
35
+    // 'field' is the foreign key in this table.
36 36
   
37
-  $data['team']['table']['join'] = array(
37
+    $data['team']['table']['join'] = array(
38 38
     'user' => array(
39
-      'left_field' => 'id',
40
-      'field' => 'userid',
39
+        'left_field' => 'id',
40
+        'field' => 'userid',
41 41
     ),
42
-  );
42
+    );
43 43
 
44
-  // Describe each of the individual fields in this table to Views. For
45
-  // each field, you may define what field, sort, argument, and/or filter
46
-  // handlers it supports. This will determine where in the Views interface you
47
-  // may use the field.
44
+    // Describe each of the individual fields in this table to Views. For
45
+    // each field, you may define what field, sort, argument, and/or filter
46
+    // handlers it supports. This will determine where in the Views interface you
47
+    // may use the field.
48 48
   
49
-  // Primary keys allowed as arguments
49
+    // Primary keys allowed as arguments
50 50
   
51
-  $data['team']['id'] = array(
51
+    $data['team']['id'] = array(
52 52
     'title' => bts('Team ID', array(), NULL, 'boinc:team-id'),
53 53
     'help' => t('The BOINC ID of the team.'),
54 54
     'field' => array(
55
-      'handler' => 'views_handler_field_numeric',
56
-      'click sortable' => TRUE
55
+        'handler' => 'views_handler_field_numeric',
56
+        'click sortable' => TRUE
57 57
     ),
58 58
     'argument' => array(
59
-      'handler' => 'views_handler_argument_boincteam_id', // custom handler
60
-      'name field' => 'title', // the field to display in the summary.
61
-      'numeric' => TRUE,
62
-      'validate type' => 'id'
59
+        'handler' => 'views_handler_argument_boincteam_id', // custom handler
60
+        'name field' => 'title', // the field to display in the summary.
61
+        'numeric' => TRUE,
62
+        'validate type' => 'id'
63 63
     ),
64 64
     'relationship' => array(
65
-      'base' => 'team_delta',
66
-      'field' => 'id',
67
-      'base field' => 'teamid',
68
-      'handler' => 'views_handler_relationship',
69
-      'label' => t('Team History')
65
+        'base' => 'team_delta',
66
+        'field' => 'id',
67
+        'base field' => 'teamid',
68
+        'handler' => 'views_handler_relationship',
69
+        'label' => t('Team History')
70 70
     ),
71 71
     'filter' => array(
72
-      'handler' => 'views_handler_filter_numeric'
72
+        'handler' => 'views_handler_filter_numeric'
73 73
     ),
74 74
     'sort' => array(
75
-      'handler' => 'views_handler_sort_numeric'
75
+        'handler' => 'views_handler_sort_numeric'
76 76
     )
77
-  );
77
+    );
78 78
   
79
-  // Foreign key fields
79
+    // Foreign key fields
80 80
   
81
-  $data['team']['userid'] = array(
81
+    $data['team']['userid'] = array(
82 82
     'title' => bts('Founder', array(), NULL, 'boinc:view-team-info'),
83 83
     'help' => t('The founder of this team.'),
84 84
     // This is a foreign key to the {user} table. When the view is configured
85 85
     // with this relationship, all the fields for the related user node will be 
86 86
     // available.
87 87
     'argument' => array(
88
-      'handler' => 'views_handler_argument_boincuser_id',
89
-      'name field' => 'title',
90
-      'numeric' => TRUE,
91
-      'validate type' => 'id'
88
+        'handler' => 'views_handler_argument_boincuser_id',
89
+        'name field' => 'title',
90
+        'numeric' => TRUE,
91
+        'validate type' => 'id'
92 92
     ),
93 93
     'relationship' => array(
94
-      'base' => 'user',
95
-      'field' => 'userid',
96
-      'handler' => 'views_handler_relationship',
97
-      'label' => t('User')
94
+        'base' => 'user',
95
+        'field' => 'userid',
96
+        'handler' => 'views_handler_relationship',
97
+        'label' => t('User')
98 98
     ),
99 99
     'field' => array(
100
-      'handler' => 'views_handler_field_numeric',
101
-      'click sortable' => TRUE
100
+        'handler' => 'views_handler_field_numeric',
101
+        'click sortable' => TRUE
102 102
     ),
103 103
     'filter' => array(
104
-      'handler' => 'views_handler_filter_numeric'
104
+        'handler' => 'views_handler_filter_numeric'
105 105
     ),
106 106
     'sort' => array(
107
-      'handler' => 'views_handler_sort_numeric'
107
+        'handler' => 'views_handler_sort_numeric'
108 108
     )
109
-  );
109
+    );
110 110
   
111
-  // Descriptions of general fields (alphabetized)
112
-  /*
111
+    // Descriptions of general fields (alphabetized)
112
+    /*
113 113
   $data['team']['create_time'] = array(
114 114
     'title' => bts('Team established', array(), NULL, 'boinc:date-team-established'),
115 115
     'help' => t('When the BOINC team was created.'),
@@ -140,298 +140,298 @@  discard block
 block discarded – undo
140 140
   );
141 141
   */
142 142
    
143
-  $data['team']['country'] = array(
143
+    $data['team']['country'] = array(
144 144
     'title' => bts('Country', array(), NULL, 'boinc:country-of-origin'),
145 145
     'help' => t('The country of a team.'),
146 146
     'field' => array(
147
-      'handler' => 'views_handler_field',
148
-      'click sortable' => TRUE
147
+        'handler' => 'views_handler_field',
148
+        'click sortable' => TRUE
149 149
     ),
150 150
     'filter' => array(
151
-      'handler' => 'views_handler_filter_string'
151
+        'handler' => 'views_handler_filter_string'
152 152
     ),
153 153
     'sort' => array(
154
-      'handler' => 'views_handler_sort_string'
154
+        'handler' => 'views_handler_sort_string'
155 155
     )
156
-  );
157
-  $data['team']['expavg_credit'] = array(
156
+    );
157
+    $data['team']['expavg_credit'] = array(
158 158
     'title' => bts('Recent average credit', array(), NULL, 'boinc:user-or-team-RAC'),
159 159
     'help' => t('A decaying average of team credit per day.'),
160 160
     'field' => array(
161
-      'handler' => 'views_handler_field_numeric',
162
-      'click sortable' => TRUE,
163
-      'float' => TRUE
161
+        'handler' => 'views_handler_field_numeric',
162
+        'click sortable' => TRUE,
163
+        'float' => TRUE
164 164
     ),
165 165
     'filter' => array(
166
-      'handler' => 'views_handler_filter_numeric'
166
+        'handler' => 'views_handler_filter_numeric'
167 167
     ),
168 168
     'sort' => array(
169
-      'handler' => 'views_handler_sort_numeric'
169
+        'handler' => 'views_handler_sort_numeric'
170 170
     )
171
-  );
172
-  $data['team']['name'] = array(
171
+    );
172
+    $data['team']['name'] = array(
173 173
     'title' => bts('Name', array(), NULL, 'boinc:user-or-team-name'),
174 174
     'help' => t('The name of the team.'),
175 175
     'field' => array(
176
-      'handler' => 'views_handler_field',
177
-      'click sortable' => TRUE
176
+        'handler' => 'views_handler_field',
177
+        'click sortable' => TRUE
178 178
     ),
179 179
     'filter' => array(
180
-      'handler' => 'views_handler_filter_string'
180
+        'handler' => 'views_handler_filter_string'
181 181
     ),
182 182
     'sort' => array(
183
-      'handler' => 'views_handler_sort_string'
183
+        'handler' => 'views_handler_sort_string'
184 184
     )
185
-  );
186
-  $data['team']['nusers'] = array(
185
+    );
186
+    $data['team']['nusers'] = array(
187 187
     'title' => bts('Members', array(), NULL, 'boinc:team-members'),
188 188
     'help' => t('Count of team members.'),
189 189
     'field' => array(
190
-      'handler' => 'views_handler_field_numeric',
191
-      'click sortable' => TRUE
190
+        'handler' => 'views_handler_field_numeric',
191
+        'click sortable' => TRUE
192 192
     ),
193 193
     'filter' => array(
194
-      'handler' => 'views_handler_filter_numeric'
194
+        'handler' => 'views_handler_filter_numeric'
195 195
     ),
196 196
     'sort' => array(
197
-      'handler' => 'views_handler_sort_numeric'
197
+        'handler' => 'views_handler_sort_numeric'
198 198
     )
199
-  );
200
-  $data['team']['total_credit'] = array(
199
+    );
200
+    $data['team']['total_credit'] = array(
201 201
     'title' => bts('Total credit', array(), NULL, 'boinc:user-or-team-total-credits'),
202 202
     'help' => t('The total team accumulated BOINC credit.'),
203 203
     'field' => array(
204
-      'handler' => 'views_handler_field_numeric',
205
-      'click sortable' => TRUE,
206
-      'float' => TRUE
204
+        'handler' => 'views_handler_field_numeric',
205
+        'click sortable' => TRUE,
206
+        'float' => TRUE
207 207
     ),
208 208
     'filter' => array(
209
-      'handler' => 'views_handler_filter_numeric'
209
+        'handler' => 'views_handler_filter_numeric'
210 210
     ),
211 211
     'sort' => array(
212
-      'handler' => 'views_handler_sort_numeric'
212
+        'handler' => 'views_handler_sort_numeric'
213 213
     )
214
-  );
214
+    );
215 215
   
216
-  // -----------------------------------------------------------------------------------------------
217
-  // Definition for team_admin table
218
-  // -----------------------------------------------------------------------------------------------
216
+    // -----------------------------------------------------------------------------------------------
217
+    // Definition for team_admin table
218
+    // -----------------------------------------------------------------------------------------------
219 219
   
220
-  $data['team_admin']['table']['group'] = t('BOINC');
220
+    $data['team_admin']['table']['group'] = t('BOINC');
221 221
   
222
-  $data['team_admin']['table']['base'] = array(
223
-      'field' => 'id',
224
-      'title' => t('BOINC team admins'),
225
-      'help' => t('BOINC admins for a team'),
226
-      'database' => 'boinc_rw'
227
-  );
222
+    $data['team_admin']['table']['base'] = array(
223
+        'field' => 'id',
224
+        'title' => t('BOINC team admins'),
225
+        'help' => t('BOINC admins for a team'),
226
+        'database' => 'boinc_rw'
227
+    );
228 228
   
229
-  // This table references the {team} table.
230
-  // This join creates an 'implicit' relationship to the team table, so that when
231
-  // "Team" is the base table, the fields are automatically available.
229
+    // This table references the {team} table.
230
+    // This join creates an 'implicit' relationship to the team table, so that when
231
+    // "Team" is the base table, the fields are automatically available.
232 232
   
233
-  // Index this array by the table name to which this table refers.
234
-  // 'left_field' is the primary key in the referenced table.
235
-  // 'field' is the foreign key in this table.
233
+    // Index this array by the table name to which this table refers.
234
+    // 'left_field' is the primary key in the referenced table.
235
+    // 'field' is the foreign key in this table.
236 236
   
237
-  $data['team_admin']['table']['join'] = array(
237
+    $data['team_admin']['table']['join'] = array(
238 238
     'team' => array(
239
-      'left_field' => 'id',
240
-      'field' => 'teamid',
239
+        'left_field' => 'id',
240
+        'field' => 'teamid',
241 241
     ),
242
-  );
242
+    );
243 243
 
244
-  // Describe each of the individual fields in this table to Views. For
245
-  // each field, you may define what field, sort, argument, and/or filter
246
-  // handlers it supports. This will determine where in the Views interface you
247
-  // may use the field.
244
+    // Describe each of the individual fields in this table to Views. For
245
+    // each field, you may define what field, sort, argument, and/or filter
246
+    // handlers it supports. This will determine where in the Views interface you
247
+    // may use the field.
248 248
   
249
-  // Primary keys allowed as arguments
249
+    // Primary keys allowed as arguments
250 250
   
251
-  $data['team_admin']['teamid'] = array(
251
+    $data['team_admin']['teamid'] = array(
252 252
     'title' => bts('Team ID', array(), NULL, 'boinc:team-id'),
253 253
     'help' => t('The BOINC ID of the team on which this user is an admin.'),
254 254
     'field' => array(
255
-      'handler' => 'views_handler_field_numeric',
256
-      'click sortable' => TRUE
255
+        'handler' => 'views_handler_field_numeric',
256
+        'click sortable' => TRUE
257 257
     ),
258 258
     'argument' => array(
259
-      'handler' => 'views_handler_argument_boincteam_id', // custom handler
260
-      'name field' => 'title', // the field to display in the summary.
261
-      'numeric' => TRUE,
262
-      'validate type' => 'id'
259
+        'handler' => 'views_handler_argument_boincteam_id', // custom handler
260
+        'name field' => 'title', // the field to display in the summary.
261
+        'numeric' => TRUE,
262
+        'validate type' => 'id'
263 263
     ),
264 264
     'relationship' => array(
265
-      'base' => 'team',
266
-      'field' => 'teamid',
267
-      'handler' => 'views_handler_relationship',
268
-      'label' => t('Team')
265
+        'base' => 'team',
266
+        'field' => 'teamid',
267
+        'handler' => 'views_handler_relationship',
268
+        'label' => t('Team')
269 269
     ),
270 270
     'filter' => array(
271
-      'handler' => 'views_handler_filter_numeric'
271
+        'handler' => 'views_handler_filter_numeric'
272 272
     ),
273 273
     'sort' => array(
274
-      'handler' => 'views_handler_sort_numeric'
274
+        'handler' => 'views_handler_sort_numeric'
275 275
     )
276
-  );
276
+    );
277 277
   
278
-  // Foreign key fields
278
+    // Foreign key fields
279 279
   
280
-  $data['team_admin']['userid'] = array(
280
+    $data['team_admin']['userid'] = array(
281 281
     'title' => bts('User ID', array(), NULL, 'boinc:user-details'),
282 282
     'help' => t('The user that is a team admin.'),
283 283
     // This is a foreign key to the {user} table. When the view is configured
284 284
     // with this relationship, all the fields for the related user node will be 
285 285
     // available.
286 286
     'argument' => array(
287
-      'handler' => 'views_handler_argument_boincteam_id',
288
-      'name field' => 'title',
289
-      'numeric' => TRUE,
290
-      'validate type' => 'id'
287
+        'handler' => 'views_handler_argument_boincteam_id',
288
+        'name field' => 'title',
289
+        'numeric' => TRUE,
290
+        'validate type' => 'id'
291 291
     ),
292 292
     'relationship' => array(
293
-      'base' => 'user',
294
-      'field' => 'userid',
295
-      'handler' => 'views_handler_relationship',
296
-      'label' => bts('User', array(), NULL, 'boinc:user-on-team')
293
+        'base' => 'user',
294
+        'field' => 'userid',
295
+        'handler' => 'views_handler_relationship',
296
+        'label' => bts('User', array(), NULL, 'boinc:user-on-team')
297 297
     ),
298 298
     'field' => array(
299
-      'handler' => 'views_handler_field_numeric',
300
-      'click sortable' => TRUE
299
+        'handler' => 'views_handler_field_numeric',
300
+        'click sortable' => TRUE
301 301
     ),
302 302
     'filter' => array(
303
-      'handler' => 'views_handler_filter_numeric'
303
+        'handler' => 'views_handler_filter_numeric'
304 304
     ),
305 305
     'sort' => array(
306
-      'handler' => 'views_handler_sort_numeric'
306
+        'handler' => 'views_handler_sort_numeric'
307 307
     )
308
-  );
308
+    );
309 309
   
310
-  // Descriptions of general fields (alphabetized)
310
+    // Descriptions of general fields (alphabetized)
311 311
   
312
-  $data['team_admin']['create_time'] = array(
312
+    $data['team_admin']['create_time'] = array(
313 313
     'title' => bts('Admin since', array(), NULL, 'boinc:team-when-user-became-an-admin'),
314 314
     'help' => t('When the BOINC user became a team admin.'),
315 315
     'field' => array(
316
-      'handler' => 'views_handler_field_date',
317
-      'click sortable' => TRUE
316
+        'handler' => 'views_handler_field_date',
317
+        'click sortable' => TRUE
318 318
     ),
319 319
     'filter' => array(
320
-      'handler' => 'views_handler_filter_date'
320
+        'handler' => 'views_handler_filter_date'
321 321
     ),
322 322
     'sort' => array(
323
-      'handler' => 'views_handler_sort_date'
323
+        'handler' => 'views_handler_sort_date'
324 324
     )
325
-  );
325
+    );
326 326
   
327
-  // -----------------------------------------------------------------------------------------------
328
-  // Definition for team_delta table
329
-  // -----------------------------------------------------------------------------------------------
327
+    // -----------------------------------------------------------------------------------------------
328
+    // Definition for team_delta table
329
+    // -----------------------------------------------------------------------------------------------
330 330
   
331
-  $data['team_delta']['table']['group'] = t('BOINC');
331
+    $data['team_delta']['table']['group'] = t('BOINC');
332 332
 
333
-  // Describe each of the individual fields in this table to Views. For
334
-  // each field, you may define what field, sort, argument, and/or filter
335
-  // handlers it supports. This will determine where in the Views interface you
336
-  // may use the field.
333
+    // Describe each of the individual fields in this table to Views. For
334
+    // each field, you may define what field, sort, argument, and/or filter
335
+    // handlers it supports. This will determine where in the Views interface you
336
+    // may use the field.
337 337
   
338
-  // Primary keys allowed as arguments
338
+    // Primary keys allowed as arguments
339 339
   
340
-  $data['team_delta']['teamid'] = array(
340
+    $data['team_delta']['teamid'] = array(
341 341
     'title' => bts('Team ID', array(), NULL, 'boinc:team-id'),
342 342
     'help' => t('The team ID for this team history event.'),
343 343
     // This is a foreign key to the {team} table. When the view is configured
344 344
     // with this relationship, all the fields for the related user node will be 
345 345
     // available.
346 346
     'argument' => array(
347
-      'handler' => 'views_handler_argument_boincteam_id',
348
-      'name field' => 'title',
349
-      'numeric' => TRUE,
350
-      'validate type' => 'id'
347
+        'handler' => 'views_handler_argument_boincteam_id',
348
+        'name field' => 'title',
349
+        'numeric' => TRUE,
350
+        'validate type' => 'id'
351 351
     ),
352 352
     'field' => array(
353
-      'handler' => 'views_handler_field_numeric',
354
-      'click sortable' => TRUE
353
+        'handler' => 'views_handler_field_numeric',
354
+        'click sortable' => TRUE
355 355
     ),
356 356
     'filter' => array(
357
-      'handler' => 'views_handler_filter_numeric'
357
+        'handler' => 'views_handler_filter_numeric'
358 358
     ),
359 359
     'sort' => array(
360
-      'handler' => 'views_handler_sort_numeric'
360
+        'handler' => 'views_handler_sort_numeric'
361 361
     )
362
-  );
362
+    );
363 363
   
364
-  // Foreign key fields
364
+    // Foreign key fields
365 365
   
366
-  $data['team_delta']['userid'] = array(
366
+    $data['team_delta']['userid'] = array(
367 367
     'title' => bts('User ID', array(), NULL, 'boinc:user-details'),
368 368
     'help' => t('The user for this team history event.'),
369 369
     'relationship' => array(
370
-      'base' => 'user',
371
-      'field' => 'userid',
372
-      'handler' => 'views_handler_relationship',
373
-      'label' => t('User')
370
+        'base' => 'user',
371
+        'field' => 'userid',
372
+        'handler' => 'views_handler_relationship',
373
+        'label' => t('User')
374 374
     ),
375 375
     'field' => array(
376
-      'handler' => 'views_handler_field_numeric',
377
-      'click sortable' => TRUE
376
+        'handler' => 'views_handler_field_numeric',
377
+        'click sortable' => TRUE
378 378
     ),
379 379
     'filter' => array(
380
-      'handler' => 'views_handler_filter_numeric'
380
+        'handler' => 'views_handler_filter_numeric'
381 381
     ),
382 382
     'sort' => array(
383
-      'handler' => 'views_handler_sort_numeric'
383
+        'handler' => 'views_handler_sort_numeric'
384 384
     )
385
-  );
385
+    );
386 386
   
387
-  // Descriptions of general fields (alphabetized)
387
+    // Descriptions of general fields (alphabetized)
388 388
   
389
-  $data['team_delta']['joining'] = array(
389
+    $data['team_delta']['joining'] = array(
390 390
     'title' => bts('User joined', array(), NULL, 'boinc:user-joined-or-leaving-team'),
391 391
     'help' => t('Whether the event is the user joining the team or leaving.'),
392 392
     'field' => array(
393
-      'handler' => 'views_handler_field_numeric',
394
-      'click sortable' => TRUE
393
+        'handler' => 'views_handler_field_numeric',
394
+        'click sortable' => TRUE
395 395
     ),
396 396
     'filter' => array(
397
-      'handler' => 'views_handler_filter_numeric'
397
+        'handler' => 'views_handler_filter_numeric'
398 398
     ),
399 399
     'sort' => array(
400
-      'handler' => 'views_handler_sort_numeric'
400
+        'handler' => 'views_handler_sort_numeric'
401 401
     )
402
-  );
403
-  $data['team_delta']['timestamp'] = array(
402
+    );
403
+    $data['team_delta']['timestamp'] = array(
404 404
     'title' => bts('Timestamp', array(), NULL, 'boinc:team-history-timestamp'),
405 405
     'help' => t('When the BOINC team history event took place.'),
406 406
     'field' => array(
407
-      'handler' => 'views_handler_field_date',
408
-      'click sortable' => TRUE
407
+        'handler' => 'views_handler_field_date',
408
+        'click sortable' => TRUE
409 409
     ),
410 410
     'filter' => array(
411
-      'handler' => 'views_handler_filter_date'
411
+        'handler' => 'views_handler_filter_date'
412 412
     ),
413 413
     'sort' => array(
414
-      'handler' => 'views_handler_sort_date'
414
+        'handler' => 'views_handler_sort_date'
415 415
     )
416
-  );
417
-  $data['team_delta']['total_credit'] = array(
416
+    );
417
+    $data['team_delta']['total_credit'] = array(
418 418
     'title' => bts('Total credit', array(), NULL, 'user-or-team-total-credits'),
419 419
     'help' => t('The total accumulated BOINC credit of the user when the
420 420
       history event took place.'),
421 421
     'field' => array(
422
-      'handler' => 'views_handler_field_numeric',
423
-      'click sortable' => TRUE,
424
-      'float' => TRUE
422
+        'handler' => 'views_handler_field_numeric',
423
+        'click sortable' => TRUE,
424
+        'float' => TRUE
425 425
     ),
426 426
     'filter' => array(
427
-      'handler' => 'views_handler_filter_numeric'
427
+        'handler' => 'views_handler_filter_numeric'
428 428
     ),
429 429
     'sort' => array(
430
-      'handler' => 'views_handler_sort_numeric'
430
+        'handler' => 'views_handler_sort_numeric'
431 431
     )
432
-  ); 
432
+    ); 
433 433
   
434
-  return $data;
434
+    return $data;
435 435
 }
436 436
 
437 437
 /*
@@ -442,14 +442,14 @@  discard block
 block discarded – undo
442 442
  */
443 443
 
444 444
 function boincteam_views_handlers() {
445
-  return array(
445
+    return array(
446 446
     'info' => array(
447
-      'path' => drupal_get_path('module', 'boincteam') . '/views',
447
+        'path' => drupal_get_path('module', 'boincteam') . '/views',
448 448
     ),
449 449
     'handlers' => array(
450
-      'views_handler_argument_boincteam_id' => array(
450
+        'views_handler_argument_boincteam_id' => array(
451 451
         'parent' => 'views_handler_argument_numeric'
452
-      )
452
+        )
453 453
     )
454
-  );
454
+    );
455 455
 }
Please login to merge, or discard this patch.
sites/default/boinc/modules/boincimport/includes/import_subscriptions.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -12,33 +12,33 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincimport/includes/import_team.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -11,56 +11,56 @@  discard block
 block discarded – undo
11 11
  * at a time and avoid exhausting memory.
12 12
  */
13 13
 
14
-  require_once('./includes/bootstrap.inc');
15
-  drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
16
-  require_boinc('db');
14
+    require_once('./includes/bootstrap.inc');
15
+    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
16
+    require_boinc('db');
17 17
   
18
-  // Parse arguments
19
-  $team_id = isset($argv[1]) ? $argv[1] : null;
20
-  $team_type_tid = isset($argv[2]) ? $argv[2] : null;
21
-  $input_format = isset($argv[3]) ? $argv[3] : null;
18
+    // Parse arguments
19
+    $team_id = isset($argv[1]) ? $argv[1] : null;
20
+    $team_type_tid = isset($argv[2]) ? $argv[2] : null;
21
+    $input_format = isset($argv[3]) ? $argv[3] : null;
22 22
   
23
-  $count = 0;
23
+    $count = 0;
24 24
   
25
-  // Get teams from BOINC
26
-  db_set_active('boinc_rw');
27
-  $boincteam = db_fetch_object(db_query('SELECT * FROM team WHERE id=%d', array($team_id)));
28
-  $boincteam_members = db_query('SELECT id FROM user WHERE teamid=%d', array($team_id));
29
-  $boincteam_admin = (int) db_result(db_query('SELECT userid FROM team_admin WHERE teamid=%d', array($team_id)));
30
-  db_set_active('default');
25
+    // Get teams from BOINC
26
+    db_set_active('boinc_rw');
27
+    $boincteam = db_fetch_object(db_query('SELECT * FROM team WHERE id=%d', array($team_id)));
28
+    $boincteam_members = db_query('SELECT id FROM user WHERE teamid=%d', array($team_id));
29
+    $boincteam_admin = (int) db_result(db_query('SELECT userid FROM team_admin WHERE teamid=%d', array($team_id)));
30
+    db_set_active('default');
31 31
   
32
-  $team_exists = db_query('SELECT team_id FROM {boincteam} WHERE team_id = %d', $boincteam->id);
33
-  // FIXME: $team_exists==FALSE should be handled as an error and return an error code!
32
+    $team_exists = db_query('SELECT team_id FROM {boincteam} WHERE team_id = %d', $boincteam->id);
33
+    // FIXME: $team_exists==FALSE should be handled as an error and return an error code!
34 34
 
35
-  if ($team_exists != FALSE && db_fetch_object($team_exists) == FALSE) {
35
+    if ($team_exists != FALSE && db_fetch_object($team_exists) == FALSE) {
36 36
     $boincteam->description = _boincimport_text_sanitize($boincteam->description);
37 37
     $teaser = node_teaser($boincteam->description);
38 38
     
39 39
     // Construct the team as an organic group node
40 40
     $node = array(
41
-      'type' => 'team',
42
-      'title' => $boincteam->name,
43
-      'body' => $boincteam->description,
44
-      'teaser' => $teaser,
45
-      'uid' => boincuser_lookup_uid($boincteam->userid),
46
-      'path' => null,
47
-      'status' => 1,  // published or not - always publish
48
-      'promote' => 0,
49
-      'created' => $boincteam->create_time,
50
-      'comment' => 0,  // comments disabled
51
-      'moderate' => 0,
52
-      'sticky' => 0,
53
-      'format' => $input_format
41
+        'type' => 'team',
42
+        'title' => $boincteam->name,
43
+        'body' => $boincteam->description,
44
+        'teaser' => $teaser,
45
+        'uid' => boincuser_lookup_uid($boincteam->userid),
46
+        'path' => null,
47
+        'status' => 1,  // published or not - always publish
48
+        'promote' => 0,
49
+        'created' => $boincteam->create_time,
50
+        'comment' => 0,  // comments disabled
51
+        'moderate' => 0,
52
+        'sticky' => 0,
53
+        'format' => $input_format
54 54
     );
55 55
     
56 56
     // Use pathauto function, if available, to clean up the path
57 57
     if (module_exists('pathauto')) {
58
-      module_load_include('inc', 'pathauto', 'pathauto');
59
-      $node['path'] = pathauto_cleanstring($boincteam->name);
58
+        module_load_include('inc', 'pathauto', 'pathauto');
59
+        $node['path'] = pathauto_cleanstring($boincteam->name);
60 60
     }
61 61
     else {
62
-      echo 'Pathauto module is required!';
63
-      exit;
62
+        echo 'Pathauto module is required!';
63
+        exit;
64 64
     }
65 65
     
66 66
     $node = (object) $node; // node_save requires an object form
@@ -72,22 +72,22 @@  discard block
 block discarded – undo
72 72
     
73 73
     // Save the team IDs to a BOINC <--> Drupal reference table.
74 74
     db_query('INSERT INTO {boincteam} (team_id, nid) VALUES (%d, %d)', $boincteam->id, $node->nid);
75
-  }
75
+    }
76 76
   
77
-  // Determine team membership
78
-  db_set_active('boinc_rw');
79
-  $boincteam_member_ids = array();
80
-  while ($boincuser = db_fetch_object($boincteam_members)) $boincteam_member_ids[] = $boincuser->id;
81
-  db_set_active('default');
82
-  if ($boincteam_member_ids) {
77
+    // Determine team membership
78
+    db_set_active('boinc_rw');
79
+    $boincteam_member_ids = array();
80
+    while ($boincuser = db_fetch_object($boincteam_members)) $boincteam_member_ids[] = $boincuser->id;
81
+    db_set_active('default');
82
+    if ($boincteam_member_ids) {
83 83
     $team_members = db_query('SELECT uid FROM {boincuser} WHERE boinc_id IN(%s)', implode(',', $boincteam_member_ids));
84 84
     $team_admin = (int) db_result(db_query('SELECT uid FROM {boincuser} WHERE boinc_id=%d', $boincteam_admin));
85 85
     
86 86
     while ($drupal_user = db_fetch_object($team_members)) {
87
-      // Add action to take on member accounts?
88
-      $count++;
87
+        // Add action to take on member accounts?
88
+        $count++;
89
+    }
89 90
     }
90
-  }
91 91
   
92
-  echo $count;
92
+    echo $count;
93 93
   
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincimport/includes/import_users.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -12,26 +12,26 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.