Passed
Push — update_copyright_year ( 7fc006 )
by
unknown
10:35
created
drupal/sites/default/boinc/modules/boinccore/boinccore.admin.inc 1 patch
Indentation   +114 added lines, -114 removed lines patch added patch discarded remove patch
@@ -7,191 +7,191 @@  discard block
 block discarded – undo
7 7
 */
8 8
 
9 9
 /**
10
-  * The BOINC community form allows the setting of requirements for interaction
11
-  * in the community sections of the site.
12
-  */
10
+ * The BOINC community form allows the setting of requirements for interaction
11
+ * in the community sections of the site.
12
+ */
13 13
 function boinccore_admin_community(&$form_state) {
14
-  $form = array();
15
-  $default = array(
14
+    $form = array();
15
+    $default = array(
16 16
     'min_credit_to_post' => variable_get('boinc_comment_min_credit', 0),
17 17
     'penalty_period' => variable_get('boinc_penalty_period', 7*24*60*60),
18 18
     'moderator_mailing_list' => variable_get('boinc_moderator_mailing_list', ''),
19 19
     'moderator_force_individual_notifications' => variable_get('boinc_moderator_force_individual_notifications', 0),
20
-  );
20
+    );
21 21
 
22
-  // Define the form
23
-  $form['boinc_comment_min_credit'] = array(
22
+    // Define the form
23
+    $form['boinc_comment_min_credit'] = array(
24 24
     '#type' => 'textfield',
25 25
     '#title' => t('Credit required for community participation'),
26 26
     '#default_value' => $default['min_credit_to_post'],
27 27
     '#description' => t('Set a minimum threshold of credit a user must have
28 28
       earned before being allowed to create a profile, post comments or participate in forums.'),
29
-  );
30
-  $form['boinc_penalty_period'] = array(
29
+    );
30
+    $form['boinc_penalty_period'] = array(
31 31
     '#type' => 'textfield',
32 32
     '#title' => t('Penalty period'),
33 33
     '#default_value' => $default['penalty_period'],
34 34
     '#description' => t('The amount of time (in seconds) that user privileges
35 35
       are revoked when a user is banned from community participation.'),
36
-  );
37
-  $form['boinc_moderator_mailing_list'] = array(
36
+    );
37
+    $form['boinc_moderator_mailing_list'] = array(
38 38
     '#type' => 'textfield',
39 39
     '#title' => t('Moderator mailing list'),
40 40
     '#default_value' => $default['moderator_mailing_list'],
41 41
     '#description' => t('As an alternative to sending moderator notifications
42 42
       to individual users with the moderator role, enter a mailing list address
43 43
       here to be the only target of the notification emails.'),
44
-  );
45
-  $form['boinc_moderator_force_individual_notifications'] = array(
44
+    );
45
+    $form['boinc_moderator_force_individual_notifications'] = array(
46 46
     '#type' => 'checkbox',
47 47
     '#title' => t('Always send individual notifications'),
48 48
     '#default_value' => $default['moderator_force_individual_notifications'],
49 49
     '#description' => t('Continue to send individual moderator notification
50 50
       emails even when a mailing list is provided.'),
51
-  );
51
+    );
52 52
 
53
-  $form['tools'] = array(
53
+    $form['tools'] = array(
54 54
     '#title' => t('Tools'),
55 55
     '#type' => 'fieldset',
56 56
     '#description' => '',
57 57
     '#collapsible' => TRUE,
58 58
     '#collapsed' => FALSE,
59 59
     '#attributes' => array('class' => '')
60
-  );
61
-  $form['tools']['reset_uotd'] = array(
60
+    );
61
+    $form['tools']['reset_uotd'] = array(
62 62
     '#type' => 'submit',
63 63
     '#value' => t('Force new UOTD'),
64 64
     '#submit' => array('boinccore_reset_user_of_the_day'),
65
-  );
65
+    );
66 66
 
67
-  return system_settings_form($form);
67
+    return system_settings_form($form);
68 68
 }
69 69
 
70 70
 /**
71
-  * Validate the BOINC community form.
72
-  */
71
+ * Validate the BOINC community form.
72
+ */
73 73
 function boinccore_admin_community_validate($form, &$form_state) {
74
-  $values = $form_state['values'];
75
-  if (!is_numeric($values['boinc_comment_min_credit'])) {
74
+    $values = $form_state['values'];
75
+    if (!is_numeric($values['boinc_comment_min_credit'])) {
76 76
     form_set_error('boinc_comment_min_credit', t('The minimum credit value must be a number.'));
77
-  }
77
+    }
78 78
 }
79 79
 
80 80
 /**
81
-  * Handle post-validation submission of BOINC community form.
82
-  */
81
+ * Handle post-validation submission of BOINC community form.
82
+ */
83 83
 function boinccore_admin_community_submit($form, &$form_state) {
84
-  drupal_set_message(t('BOINC community settings have been updated.'));
84
+    drupal_set_message(t('BOINC community settings have been updated.'));
85 85
 }
86 86
 
87 87
 /**
88 88
  * Force a reset of the user of the day
89 89
  */
90 90
 function boinccore_reset_user_of_the_day() {
91
-  if (boincuser_select_user_of_the_day()) {
91
+    if (boincuser_select_user_of_the_day()) {
92 92
     drupal_set_message(t('The user of the day has been reset.'));
93
-  }
93
+    }
94 94
 }
95 95
 
96 96
 /**
97
-  * The standard page generator form provides an interface to create standard
98
-  * pages, such as a Help or About page.
99
-  */
97
+ * The standard page generator form provides an interface to create standard
98
+ * pages, such as a Help or About page.
99
+ */
100 100
 function boinccore_admin_default_content(&$form_state) {
101
-  $form = array();
101
+    $form = array();
102 102
 
103
-  // Define the form
104
-  $form['page'] = array(
103
+    // Define the form
104
+    $form['page'] = array(
105 105
     '#type' => 'select',
106 106
     '#title' => t('Generate default content for'),
107 107
     '#description' => t('Generate some standard pages for a Drupal-BOINC Web site. You may generate all pages or specific pages. If a page already exists, it will <b>not</b> be overwritten. Pages will be generated with the path \'/page\', e.g., \'/help\'. Note the absense of \'content/\'.<p>The pages generated here will have very limited content. Most will have content such as \'Add a link to your FAQ here.\', and it is the admin or editors responsibility to add the necessary content.'),
108 108
     '#options' => array(
109
-      0 => t('All standard pages'),
109
+        0 => t('All standard pages'),
110 110
 //      'about' => t('About page'),
111
-      'help' => t('Help page'),
112
-      'rules' => t('Rules and Policies page'),
113
-      'moderation' => t('Moderation information page'),
111
+        'help' => t('Help page'),
112
+        'rules' => t('Rules and Policies page'),
113
+        'moderation' => t('Moderation information page'),
114 114
     ),
115
-  );
116
-  $form['submit'] = array(
115
+    );
116
+    $form['submit'] = array(
117 117
     '#type' => 'submit',
118 118
     '#value' => 'Generate content',
119
-  );
119
+    );
120 120
 
121
-  return $form;
121
+    return $form;
122 122
 }
123 123
 
124 124
 /**
125
-  * Generate content based on the selection made on the form
126
-  */
125
+ * Generate content based on the selection made on the form
126
+ */
127 127
 function boinccore_admin_default_content_submit($form, &$form_state) {
128
-  $option = $form_state['values']['page'];
129
-  $page_list = boinccore_admin_default_content_generate($option);
130
-  $pages_generated = count($page_list);
131
-  if ($pages_generated > 0) {
128
+    $option = $form_state['values']['page'];
129
+    $page_list = boinccore_admin_default_content_generate($option);
130
+    $pages_generated = count($page_list);
131
+    if ($pages_generated > 0) {
132 132
     switch ($pages_generated) {
133 133
     case 1:
134 134
       $page_list = reset($page_list);
135
-      break;
135
+        break;
136 136
     case 2:
137 137
       $page_list = implode(' and ', $page_list);
138
-      break;
138
+        break;
139 139
     default:
140 140
       end($page_list);
141
-      $page_list[key($page_list)] = 'and ' . $page_list[key($page_list)];
142
-      $page_list = implode(', ', $page_list);
141
+        $page_list[key($page_list)] = 'and ' . $page_list[key($page_list)];
142
+        $page_list = implode(', ', $page_list);
143 143
     }
144 144
     drupal_set_message(t('Default content has been generated for the @listed
145 145
       @pages.', array(
146 146
         '@listed' => $page_list,
147 147
         '@pages' => format_plural($pages_generated, 'page', 'pages'),
148
-      )
148
+        )
149 149
     ));
150
-  }
151
-  else {
150
+    }
151
+    else {
152 152
     if ($option) {
153
-      drupal_set_message(t('The @specified page already exists.',
153
+        drupal_set_message(t('The @specified page already exists.',
154 154
         array('@specified' => $option)), 'warning');
155 155
     }
156 156
     else {
157
-      drupal_set_message(t('All pages already exist, so none can be recreated
157
+        drupal_set_message(t('All pages already exist, so none can be recreated
158 158
         automatically.'), 'warning');
159 159
     }
160 160
     drupal_set_message(t('To recreate a page, first delete the existing page (or
161 161
       remove its URL alias), then try this function again.'), 'warning');
162
-  }
162
+    }
163 163
 }
164 164
 
165 165
 /**
166
-  *
167
-  */
166
+ *
167
+ */
168 168
 function boinccore_admin_default_content_generate($pages = array()) {
169
-  if (!$pages) {
169
+    if (!$pages) {
170 170
     // If not specified, attempt to generate all pages by default
171 171
     $pages = array(
172
-      'help',
172
+        'help',
173 173
 //      'about',
174
-      'rules',
175
-      'moderation',
174
+        'rules',
175
+        'moderation',
176 176
     );
177
-  }
178
-  elseif (!is_array($pages)) {
177
+    }
178
+    elseif (!is_array($pages)) {
179 179
     $pages = array($pages);
180
-  }
180
+    }
181 181
 
182
-  $pages_generated = array();
183
-  if (in_array('about', $pages)) {
182
+    $pages_generated = array();
183
+    if (in_array('about', $pages)) {
184 184
     // Create the default About page, if it doesn't exist
185 185
     // TODO: what is the default About page...?
186 186
     if (!drupal_lookup_path('source', 'about')) {
187
-      drupal_set_message('The about page doesn\'t yet have a definition...', 'warning');
188
-      //$pages_generated[] = 'about';
187
+        drupal_set_message('The about page doesn\'t yet have a definition...', 'warning');
188
+        //$pages_generated[] = 'about';
189
+    }
189 190
     }
190
-  }
191
-  if (in_array('help', $pages)) {
191
+    if (in_array('help', $pages)) {
192 192
     // Create the default Help page, if it doesn't exist
193 193
     if (!drupal_lookup_path('source', 'help')) {
194
-      $node = array(
194
+        $node = array(
195 195
         'type' => 'page',
196 196
         'title' => t('Help'),
197 197
         'uid' => 1,
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         'comment' => 0, // disable comments
205 205
         'moderate' => 0,
206 206
         'body' => preg_replace('/>\s+</', '><',
207
-          '<p>Use this page to provide help and support for your site\'s
207
+            '<p>Use this page to provide help and support for your site\'s
208 208
           visitors:</p>
209 209
           <ul>
210 210
             <li>Add a link to your primary forum for getting help</li>
@@ -215,25 +215,25 @@  discard block
 block discarded – undo
215 215
         'sticky' => 0,
216 216
         'format' => 4,
217 217
         //'teaser' => $teaser,
218
-      );
219
-      $node = (object) $node; // node_save requires an object
220
-      node_save($node);
218
+        );
219
+        $node = (object) $node; // node_save requires an object
220
+        node_save($node);
221 221
 
222
-      $item = array(
222
+        $item = array(
223 223
         'link_path' => drupal_get_normal_path('help'),
224 224
         'link_title' => t('Help'),
225 225
         'menu_name' => 'primary-links',
226 226
         'weight' => 50,
227
-      );
228
-      menu_link_save($item);
229
-      $pages_generated[] = 'help';
227
+        );
228
+        menu_link_save($item);
229
+        $pages_generated[] = 'help';
230 230
     }
231
-  }
232
-  if (in_array('rules', $pages)) {
231
+    }
232
+    if (in_array('rules', $pages)) {
233 233
     // Create the default Rules page, if it doesn't exist
234 234
     if (!drupal_lookup_path('source', 'rules-and-policies')) {
235
-      // Create node
236
-      $node = array(
235
+        // Create node
236
+        $node = array(
237 237
         'type' => 'page',
238 238
         'title' => t('Rules and Policies'),
239 239
         'uid' => 1,
@@ -246,30 +246,30 @@  discard block
 block discarded – undo
246 246
         'comment' => 0, // disable comments
247 247
         'moderate' => 0,
248 248
         'body' => preg_replace('/>\s+</', '><',
249
-          '<p>Use this page to list your sites rules and policies.</p>'),
249
+            '<p>Use this page to list your sites rules and policies.</p>'),
250 250
         'sticky' => 0,
251 251
         'format' => 4,
252 252
         //'teaser' => $teaser,
253
-      );
254
-      $node = (object) $node; // node_save requires an object
255
-      node_save($node);
253
+        );
254
+        $node = (object) $node; // node_save requires an object
255
+        node_save($node);
256 256
 
257
-      // Create menu item to node
258
-      $item = array(
257
+        // Create menu item to node
258
+        $item = array(
259 259
         'link_path' => drupal_get_normal_path('rules-and-policies'),
260 260
         'link_title' => t('Rules and Policies'),
261 261
         'menu_name' => 'menu-footer-links',
262 262
         'weight' => 0,
263
-      );
264
-      menu_link_save($item);
265
-      $pages_generated[] = 'rules-and-policies';
263
+        );
264
+        menu_link_save($item);
265
+        $pages_generated[] = 'rules-and-policies';
266
+    }
266 267
     }
267
-  }
268
-  if (in_array('moderation', $pages)) {
268
+    if (in_array('moderation', $pages)) {
269 269
     // Create the default Moderation page, if it doesn't exist
270 270
     if (!drupal_lookup_path('source', 'moderation')) {
271
-      // Create node
272
-      $node = array(
271
+        // Create node
272
+        $node = array(
273 273
         'type' => 'page',
274 274
         'title' => t('Moderation'),
275 275
         'uid' => 1,
@@ -282,27 +282,27 @@  discard block
 block discarded – undo
282 282
         'comment' => 0, // disable comments
283 283
         'moderate' => 0,
284 284
         'body' => preg_replace('/>\s+</', '><',
285
-          '<p>Use this page to describe your sites moderation policy.</p>'),
285
+            '<p>Use this page to describe your sites moderation policy.</p>'),
286 286
         'sticky' => 0,
287 287
         'format' => 4,
288 288
         //'teaser' => $teaser,
289
-      );
290
-      $node = (object) $node; // node_save requires an object
291
-      node_save($node);
289
+        );
290
+        $node = (object) $node; // node_save requires an object
291
+        node_save($node);
292 292
 
293
-      // Create menu item to node
294
-      $item = array(
293
+        // Create menu item to node
294
+        $item = array(
295 295
         'link_path' => drupal_get_normal_path('moderation'),
296 296
         'link_title' => t('Moderation'),
297 297
         'menu_name' => 'menu-footer-links',
298 298
         'weight' => 0,
299
-      );
300
-      menu_link_save($item);
301
-      $pages_generated[] = 'moderation';
299
+        );
300
+        menu_link_save($item);
301
+        $pages_generated[] = 'moderation';
302
+    }
302 303
     }
303
-  }
304 304
 
305
-  // Rebuild drupal menus
306
-  menu_rebuild();
307
-  return $pages_generated;
305
+    // Rebuild drupal menus
306
+    menu_rebuild();
307
+    return $pages_generated;
308 308
 }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boinccore/boinccore.module 1 patch
Indentation   +727 added lines, -727 removed lines patch added patch discarded remove patch
@@ -29,22 +29,22 @@  discard block
 block discarded – undo
29 29
  * with defined URL paths
30 30
  */
31 31
 function boinccore_menu() {
32
-  $items['node_control'] = array(
32
+    $items['node_control'] = array(
33 33
     'page callback' => 'boinccore_node_control',
34 34
     'access arguments' => array('access content'),
35 35
     'type' => MENU_CALLBACK
36
-  );
37
-  $items['comment_control'] = array(
36
+    );
37
+    $items['comment_control'] = array(
38 38
     'page callback' => 'boinccore_comment_control',
39 39
     'access arguments' => array('administer comments'),
40 40
     'type' => MENU_CALLBACK
41
-  );
42
-  $items['goto'] = array(
41
+    );
42
+    $items['goto'] = array(
43 43
     'page callback' => 'boinccore_url_pagination_handler',
44 44
     'access arguments' => array('access content'),
45 45
     'type' => MENU_CALLBACK
46
-  );
47
-  $items['admin/boinc/community'] = array(
46
+    );
47
+    $items['admin/boinc/community'] = array(
48 48
     'title' => 'Community',
49 49
     'description' => 'Global settings for community interaction.',
50 50
     'page callback' => 'drupal_get_form',
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     'access arguments' => array('administer site configuration'),
53 53
     'type' => MENU_NORMAL_ITEM,
54 54
     'file' => 'boinccore.admin.inc'
55
-  );
56
-  $items['admin/boinc/standard-content-generator'] = array(
55
+    );
56
+    $items['admin/boinc/standard-content-generator'] = array(
57 57
     'title' => 'Standard page generator',
58 58
     'description' => 'Regenerate standard site content (e.g. Help and About Us
59 59
       pages).',
@@ -62,172 +62,172 @@  discard block
 block discarded – undo
62 62
     'access arguments' => array('administer site configuration'),
63 63
     'type' => MENU_NORMAL_ITEM,
64 64
     'file' => 'boinccore.admin.inc'
65
-  );
65
+    );
66 66
 
67
-  // BOINC RPC wrappers
68
-  $items['lookup_account.php'] = array(
67
+    // BOINC RPC wrappers
68
+    $items['lookup_account.php'] = array(
69 69
     'title' => 'Look up account RPC',
70 70
     'description' => 'RPC for getting the authenticator for a user account.',
71 71
     'page callback' => 'boinccore_lookup_account',
72 72
     'access callback' => TRUE,
73 73
     'type' => MENU_CALLBACK
74
-  );
75
-  $items['am_get_info.php'] = array(
74
+    );
75
+    $items['am_get_info.php'] = array(
76 76
     'title' => 'Account manager get info RPC',
77 77
     'description' => 'RPC for getting assorted details of a user account.',
78 78
     'page callback' => 'boinccore_am_get_info',
79 79
     'access callback' => TRUE,
80 80
     'type' => MENU_CALLBACK
81
-  );
82
-  $items['am_set_info.php'] = array(
81
+    );
82
+    $items['am_set_info.php'] = array(
83 83
     'title' => 'Account manager set info RPC',
84 84
     'description' => 'RPC for updating assorted details of a user account.',
85 85
     'page callback' => 'boinccore_am_set_info',
86 86
     'access callback' => TRUE,
87 87
     'type' => MENU_CALLBACK
88
-  );
89
-  $items['am_set_host_info.php'] = array(
88
+    );
89
+    $items['am_set_host_info.php'] = array(
90 90
     'title' => 'Account manager set host info RPC',
91 91
     'description' => 'RPC for updating the venue for a given host.',
92 92
     'page callback' => 'boinccore_am_set_host_info',
93 93
     'access callback' => TRUE,
94 94
     'type' => MENU_CALLBACK
95
-  );
96
-  $items['show_user.php'] = array(
95
+    );
96
+    $items['show_user.php'] = array(
97 97
     'title' => 'Show user RPC',
98 98
     'description' => 'RPC for getting assorted details of a user account.',
99 99
     'page callback' => 'boinccore_show_user',
100 100
     'access callback' => TRUE,
101 101
     'type' => MENU_CALLBACK
102
-  );
103
-  $items['pending.php'] = array(
102
+    );
103
+    $items['pending.php'] = array(
104 104
     'title' => 'Pending credit RPC',
105 105
     'description' => 'RPC for getting pending credit for a given account.',
106 106
     'page callback' => 'boinccore_pending_credit',
107 107
     'access callback' => TRUE,
108 108
     'type' => MENU_CALLBACK
109
-  );
110
-  $items['create_team.php'] = array(
109
+    );
110
+    $items['create_team.php'] = array(
111 111
     'title' => 'Create team RPC',
112 112
     'description' => 'RPC for creating a new team.',
113 113
     'page callback' => 'boinccore_create_team',
114 114
     'access callback' => TRUE,
115 115
     'type' => MENU_CALLBACK
116
-  );
117
-  $items['team_lookup.php'] = array(
116
+    );
117
+    $items['team_lookup.php'] = array(
118 118
     'title' => 'Team lookup RPC',
119 119
     'description' => 'RPC for getting info on a team or matching teams.',
120 120
     'page callback' => 'boinccore_team_lookup',
121 121
     'access callback' => TRUE,
122 122
     'type' => MENU_CALLBACK
123
-  );
124
-  $items['team_email_list.php'] = array(
123
+    );
124
+    $items['team_email_list.php'] = array(
125 125
     'title' => 'Get team member list RPC',
126 126
     'description' => 'RPC for getting a list of members of a given team.',
127 127
     'page callback' => 'boinccore_team_email_list',
128 128
     'access callback' => TRUE,
129 129
     'type' => MENU_CALLBACK
130
-  );
131
-  $items['edit_forum_preferences_action.php'] = array(
130
+    );
131
+    $items['edit_forum_preferences_action.php'] = array(
132 132
     'title' => 'Forum preferences RPC',
133 133
     'description' => 'RPC for setting forum preferences for a given user.',
134 134
     'page callback' => 'boinccore_edit_forum_preferences',
135 135
     'access callback' => TRUE,
136 136
     'type' => MENU_CALLBACK
137
-  );
138
-  $items['forum_get_data.php'] = array(
137
+    );
138
+    $items['forum_get_data.php'] = array(
139 139
     'title' => 'Forum get data RPC',
140 140
     'description' => 'RPC for getting recent forum activity for a given user.',
141 141
     'page callback' => 'boinccore_forum_get_data',
142 142
     'access callback' => TRUE,
143 143
     'type' => MENU_CALLBACK
144
-  );
145
-  $items['apps.php'] = array(
144
+    );
145
+    $items['apps.php'] = array(
146 146
     'title' => 'Apps RPC',
147 147
     'description' => 'RPC for getting the applications in the system.',
148 148
     'page callback' => 'boinccore_apps',
149 149
     'access callback' => TRUE,
150 150
     'type' => MENU_CALLBACK
151
-  );
151
+    );
152 152
 
153
-  return $items;
153
+    return $items;
154 154
 }
155 155
 
156 156
 /**
157 157
  * Implementation of hook_menu_alter()
158 158
  */
159 159
 function boinccore_menu_alter(&$items) {
160
-  // If using Solr search and not core Drupal search, disable core search!
161
-  if (module_exists('global_search_solr') AND !module_exists('global_search')) {
160
+    // If using Solr search and not core Drupal search, disable core search!
161
+    if (module_exists('global_search_solr') AND !module_exists('global_search')) {
162 162
     // Add permission to user search.
163 163
     $check = array(
164
-      'search/node/%menu_tail',
165
-      'search/user/%menu_tail',
166
-      'user/autocomplete'
164
+        'search/node/%menu_tail',
165
+        'search/user/%menu_tail',
166
+        'user/autocomplete'
167 167
     );
168 168
     foreach ($check as $path) {
169
-      if (isset($items[$path])) {
169
+        if (isset($items[$path])) {
170 170
         $items[$path]['access callback'] = FALSE;
171
-      }
171
+        }
172 172
     }
173
-  }
174
-  // If using content profile module (for user profiles) setup special
175
-  // delete page.
176
-  if (module_exists('content_profile')) {
173
+    }
174
+    // If using content profile module (for user profiles) setup special
175
+    // delete page.
176
+    if (module_exists('content_profile')) {
177 177
     $items['node/%node/delete'] = array(
178
-      'title' => 'Delete',
179
-      'page callback' => 'drupal_get_form',
180
-      'page arguments' => array('boinccore_delete_confirm', 1),
181
-      'access callback' => 'node_access',
182
-      'access arguments' => array('delete', 1),
183
-      'module' => 'boinccore',
184
-      'file' => 'includes/boinccore.forms.inc',
185
-      'weight' => 1,
186
-      'type' => MENU_CALLBACK,
178
+        'title' => 'Delete',
179
+        'page callback' => 'drupal_get_form',
180
+        'page arguments' => array('boinccore_delete_confirm', 1),
181
+        'access callback' => 'node_access',
182
+        'access arguments' => array('delete', 1),
183
+        'module' => 'boinccore',
184
+        'file' => 'includes/boinccore.forms.inc',
185
+        'weight' => 1,
186
+        'type' => MENU_CALLBACK,
187 187
     );
188
-  }
188
+    }
189 189
 
190
-  // 'Remove' menu paths for ignore_user and privatemsg
191
-  // (pm_block_user) module which we have 'overridden' with
192
-  // boincwork's own functions.
193
-  if (module_exists('ignore_user')) {
190
+    // 'Remove' menu paths for ignore_user and privatemsg
191
+    // (pm_block_user) module which we have 'overridden' with
192
+    // boincwork's own functions.
193
+    if (module_exists('ignore_user')) {
194 194
     $check = array(
195
-      'ignore_user/add',
196
-      'ignore_user/remove',
195
+        'ignore_user/add',
196
+        'ignore_user/remove',
197 197
     );
198 198
     foreach ($check as $path) {
199
-      if (isset($items[$path])) {
199
+        if (isset($items[$path])) {
200 200
         $items[$path]['access callback'] = FALSE;
201
-      }
201
+        }
202 202
     }
203 203
 
204 204
     // Redirect user to privacy prefs page.
205 205
     $path1 = 'ignore_user/list';
206 206
     if (isset($items[$path1])) {
207
-      $items[$path1]['page callback'] = 'drupal_goto';
208
-      $items[$path1]['page arguments'] = array('account/prefs/privacy');
207
+        $items[$path1]['page callback'] = 'drupal_goto';
208
+        $items[$path1]['page arguments'] = array('account/prefs/privacy');
209
+    }
209 210
     }
210
-  }
211 211
 
212
-  if (module_exists('pm_block_user')) {
212
+    if (module_exists('pm_block_user')) {
213 213
     $check = array(
214
-      'messages/block/%user',
214
+        'messages/block/%user',
215 215
     );
216 216
     foreach ($check as $path) {
217
-      if (isset($items[$path])) {
217
+        if (isset($items[$path])) {
218 218
         $items[$path]['access callback'] = FALSE;
219
-      }
219
+        }
220
+    }
220 221
     }
221
-  }
222 222
 }
223 223
 
224 224
 /**
225 225
  * Implementation of hook_enable()
226 226
  */
227 227
 function boinccore_enable() {
228
-  // Automatically try to establish standard site content when this module is
229
-  // enabled (e.g. Help and About Us pages)
230
-  boinccore_admin_default_content_generate();
228
+    // Automatically try to establish standard site content when this module is
229
+    // enabled (e.g. Help and About Us pages)
230
+    boinccore_admin_default_content_generate();
231 231
 }
232 232
 
233 233
 /**
@@ -240,14 +240,14 @@  discard block
 block discarded – undo
240 240
  * See: https://www.drupal.org/node/339958#comment-3012662
241 241
  */
242 242
 function boinccore_boot() {
243
-  global $user, $language;
244
-  $cache = variable_get('cache', CACHE_DISABLED);
245
-  $language_negotiation = variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE);
246
-
247
-  // If we have an anonymous user, page cache is enabled, the URL has no prefix
248
-  // and browser language negotiation is set, we perform a redirect to the
249
-  // prefixed URL.
250
-  if (empty($user->uid) && $cache != CACHE_DISABLED && $language_negotiation == LANGUAGE_NEGOTIATION_PATH) {
243
+    global $user, $language;
244
+    $cache = variable_get('cache', CACHE_DISABLED);
245
+    $language_negotiation = variable_get('language_negotiation', LANGUAGE_NEGOTIATION_NONE);
246
+
247
+    // If we have an anonymous user, page cache is enabled, the URL has no prefix
248
+    // and browser language negotiation is set, we perform a redirect to the
249
+    // prefixed URL.
250
+    if (empty($user->uid) && $cache != CACHE_DISABLED && $language_negotiation == LANGUAGE_NEGOTIATION_PATH) {
251 251
     $args = isset($_GET['q']) ? explode('/', $_GET['q']) : array();
252 252
     $prefix = array_shift($args);
253 253
 
@@ -259,24 +259,24 @@  discard block
 block discarded – undo
259 259
     // so call this backported Drupal 7 language negotation function, which
260 260
     // does both case insensitive and longest prefix matching
261 261
     if (function_exists('locale_language_from_browser')) {
262
-      $language = locale_language_from_browser();
262
+        $language = locale_language_from_browser();
263 263
     }
264 264
 
265 265
     if (!empty($language->prefix) && $prefix != $language->prefix) {
266
-      // We need full path support to perform the redirect.
267
-      drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
268
-
269
-      require_once './includes/common.inc';
270
-      $url = url($_GET['q'], array('query' => drupal_query_string_encode($_GET, array('q'))));
271
-      $code = variable_get('locale_redirect_http_code', 302);
272
-
273
-      // Since we are in a hook_boot() implementation cache mode is normal, so
274
-      // we can safely call hook_exit().
275
-      bootstrap_invoke_all('exit');
276
-      header("Location: $url", TRUE, $code);
277
-      exit;
266
+        // We need full path support to perform the redirect.
267
+        drupal_bootstrap(DRUPAL_BOOTSTRAP_PATH);
268
+
269
+        require_once './includes/common.inc';
270
+        $url = url($_GET['q'], array('query' => drupal_query_string_encode($_GET, array('q'))));
271
+        $code = variable_get('locale_redirect_http_code', 302);
272
+
273
+        // Since we are in a hook_boot() implementation cache mode is normal, so
274
+        // we can safely call hook_exit().
275
+        bootstrap_invoke_all('exit');
276
+        header("Location: $url", TRUE, $code);
277
+        exit;
278
+    }
278 279
     }
279
-  }
280 280
 }
281 281
 
282 282
 
@@ -289,9 +289,9 @@  discard block
 block discarded – undo
289 289
  *
290 290
  * Obsolete in Drupal 7...
291 291
  */
292
-  function locale_language_from_browser() {
292
+    function locale_language_from_browser() {
293 293
     if (empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
294
-      return FALSE;
294
+        return FALSE;
295 295
     }
296 296
 
297 297
     $languages = language_list('enabled');
@@ -306,14 +306,14 @@  discard block
 block discarded – undo
306 306
     // Samples: "hu, en-us;q=0.66, en;q=0.33", "hu,en-us;q=0.5"
307 307
     $browser_langcodes = array();
308 308
     if (preg_match_all('@(?<=[, ]|^)([a-zA-Z-]+|\*)(?:;q=([0-9.]+))?(?:$|\s*,\s*)@', trim($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches, PREG_SET_ORDER)) {
309
-      foreach ($matches as $match) {
309
+        foreach ($matches as $match) {
310 310
         // We can safely use strtolower() here, tags are ASCII.
311 311
         // RFC2616 mandates that the decimal part is no more than three digits,
312 312
         // so we multiply the qvalue by 1000 to avoid floating point comparisons.
313 313
         $langcode = strtolower($match[1]);
314 314
         $qvalue = isset($match[2]) ? (float) $match[2] : 1;
315 315
         $browser_langcodes[$langcode] = (int) ($qvalue * 1000);
316
-      }
316
+        }
317 317
     }
318 318
 
319 319
     // We should take pristine values from the HTTP headers, but Internet Explorer
@@ -325,10 +325,10 @@  discard block
 block discarded – undo
325 325
     // http://blogs.msdn.com/b/ie/archive/2006/10/17/accept-language-header-for-internet-explorer-7.aspx
326 326
     asort($browser_langcodes);
327 327
     foreach ($browser_langcodes as $langcode => $qvalue) {
328
-      $generic_tag = strtok($langcode, '-');
329
-      if (!isset($browser_langcodes[$generic_tag])) {
328
+        $generic_tag = strtok($langcode, '-');
329
+        if (!isset($browser_langcodes[$generic_tag])) {
330 330
         $browser_langcodes[$generic_tag] = $qvalue;
331
-      }
331
+        }
332 332
     }
333 333
 
334 334
     // Find the enabled language with the greatest qvalue, following the rules
@@ -337,156 +337,156 @@  discard block
 block discarded – undo
337 337
     $best_match_language = FALSE;
338 338
     $max_qvalue = 0;
339 339
     foreach ($languages as $langcode => $language) {
340
-      // Language tags are case insensitive (RFC2616, sec 3.10).
341
-      $langcode = strtolower($langcode);
340
+        // Language tags are case insensitive (RFC2616, sec 3.10).
341
+        $langcode = strtolower($langcode);
342 342
 
343
-      // If nothing matches below, the default qvalue is the one of the wildcard
344
-      // language, if set, or is 0 (which will never match).
345
-      $qvalue = isset($browser_langcodes['*']) ? $browser_langcodes['*'] : 0;
343
+        // If nothing matches below, the default qvalue is the one of the wildcard
344
+        // language, if set, or is 0 (which will never match).
345
+        $qvalue = isset($browser_langcodes['*']) ? $browser_langcodes['*'] : 0;
346 346
 
347
-      // Find the longest possible prefix of the browser-supplied language
348
-      // ('the language-range') that matches this site language ('the language tag').
349
-      $prefix = $langcode;
350
-      do {
347
+        // Find the longest possible prefix of the browser-supplied language
348
+        // ('the language-range') that matches this site language ('the language tag').
349
+        $prefix = $langcode;
350
+        do {
351 351
         if (isset($browser_langcodes[$prefix])) {
352
-          $qvalue = $browser_langcodes[$prefix];
353
-          break;
352
+            $qvalue = $browser_langcodes[$prefix];
353
+            break;
354 354
         }
355
-      }
356
-       while ($prefix = substr($prefix, 0, strrpos($prefix, '-')));
355
+        }
356
+        while ($prefix = substr($prefix, 0, strrpos($prefix, '-')));
357 357
 
358
-      // Find the best match.
359
-      if ($qvalue > $max_qvalue) {
358
+        // Find the best match.
359
+        if ($qvalue > $max_qvalue) {
360 360
         $best_match_language = $language;
361 361
         $max_qvalue = $qvalue;
362
-      }
362
+        }
363 363
     }
364 364
 
365 365
     return $best_match_language;
366
-  }
366
+    }
367 367
 }
368 368
 
369 369
 /**
370 370
  * Implementation of hook_cron()
371 371
  */
372 372
 function boinccore_cron() {
373
-  // Notify moderators if there is site content that requires moderator action
374
-  $items_in_queue = boincuser_moderation_queue_count('cron');
375
-  $last_notification = variable_get('boinccore_last_content_moderation_reminder', 0);
376
-  if ($items_in_queue AND $last_notification < time() - 24*60*60) {
373
+    // Notify moderators if there is site content that requires moderator action
374
+    $items_in_queue = boincuser_moderation_queue_count('cron');
375
+    $last_notification = variable_get('boinccore_last_content_moderation_reminder', 0);
376
+    if ($items_in_queue AND $last_notification < time() - 24*60*60) {
377 377
     global $base_url;
378 378
     global $base_path;
379 379
     $site_name = variable_get('site_name', 'Drupal-BOINC');
380 380
     $site_url = $base_url . $base_path;
381 381
     $settings = array(
382
-      'from' => '',
383
-      'subject' => "Content at {$site_name} is awaiting moderation",
384
-      'message' => ''
385
-      . "Please visit the moderation queue page to review content that "
386
-      . "requires moderator action: \n"
387
-      . "\n"
388
-      . "{$site_url}moderate",
382
+        'from' => '',
383
+        'subject' => "Content at {$site_name} is awaiting moderation",
384
+        'message' => ''
385
+        . "Please visit the moderation queue page to review content that "
386
+        . "requires moderator action: \n"
387
+        . "\n"
388
+        . "{$site_url}moderate",
389 389
     );
390 390
     boinccore_rules_action_mail_to_moderators($settings);
391 391
     variable_set('boinccore_last_content_moderation_reminder', time());
392
-  }
392
+    }
393 393
 
394
-  // Delete expired tokens in BOINC DB
395
-  _boinccore_delete_expired_tokens();
394
+    // Delete expired tokens in BOINC DB
395
+    _boinccore_delete_expired_tokens();
396 396
 }
397 397
 
398 398
 /**
399 399
  * Implementation of hook_rules_action_info().
400 400
  */
401 401
 function boinccore_rules_action_info() {
402
-  return array(
402
+    return array(
403 403
     'boinccore_rules_action_mail_to_moderators' => array(
404
-      'label' => t('Notify moderators via email'),
405
-      'module' => 'BOINC core',
406
-      'eval input' => array('subject', 'message', 'from'),
404
+        'label' => t('Notify moderators via email'),
405
+        'module' => 'BOINC core',
406
+        'eval input' => array('subject', 'message', 'from'),
407 407
     ),
408 408
     'boinccore_rules_action_mark_content_for_moderation' => array(
409
-      'label' => t('Mark content for moderation'),
410
-      'arguments' => array(
409
+        'label' => t('Mark content for moderation'),
410
+        'arguments' => array(
411 411
         'node' => array('type' => 'node', 'label' => t('Content')),
412
-      ),
413
-      'module' => 'BOINC core',
412
+        ),
413
+        'module' => 'BOINC core',
414 414
     ),
415 415
     'boinccore_rules_action_mail_to_admins' => array(
416
-      'label' => t('Notify admins via email'),
417
-      'module' => 'BOINC core',
418
-      'eval input' => array('subject', 'message', 'from'),
416
+        'label' => t('Notify admins via email'),
417
+        'module' => 'BOINC core',
418
+        'eval input' => array('subject', 'message', 'from'),
419 419
     ),
420
-  );
420
+    );
421 421
 }
422 422
 
423 423
 /**
424 424
  * Implementation of hook_form_alter()
425 425
  */
426 426
 function boinccore_form_alter(&$form, $form_state, $form_id) {
427
-  global $user;
428
-  $account = user_load($user->uid);
429
-  switch ($form_id) {
430
-  // Comment form
431
-  case 'comment_form':
427
+    global $user;
428
+    $account = user_load($user->uid);
429
+    switch ($form_id) {
430
+    // Comment form
431
+    case 'comment_form':
432 432
     $user_image = boincuser_get_user_profile_image($user->uid);
433 433
     $user_info = '<div class="user">';
434 434
     if ($user_image) {
435
-      $user_info .= '  <div class="picture">';
436
-      if (is_array($user_image) AND $user_image['image']['filepath']) {
435
+        $user_info .= '  <div class="picture">';
436
+        if (is_array($user_image) AND $user_image['image']['filepath']) {
437 437
         $user_info .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false);
438
-      }
439
-      elseif (is_string($user_image)) {
438
+        }
439
+        elseif (is_string($user_image)) {
440 440
         $user_info .= '<img src="' . $user_image . '"/>';
441
-      }
442
-      $user_info .= '  </div>';
441
+        }
442
+        $user_info .= '  </div>';
443 443
     }
444 444
     $user_info .= '  <div class="name">' . theme('username', $account) . '</div>';
445 445
     if ($account->uid) {
446
-      //$user_info .= '  <div class="join-date">Joined: ' . date('j M y', $account->created) . '</div>';
447
-      //$user_info .= '  <div class="post-count">Posts: ' . $account->post_count . '</div>';
448
-      //$user_info .= '  <div class="credit">Credit: ' . $account->boincuser_total_credit . '</div>';
449
-      //$user_info .= '  <div class="rac">RAC: ' . $account->boincuser_expavg_credit . '</div>';
446
+        //$user_info .= '  <div class="join-date">Joined: ' . date('j M y', $account->created) . '</div>';
447
+        //$user_info .= '  <div class="post-count">Posts: ' . $account->post_count . '</div>';
448
+        //$user_info .= '  <div class="credit">Credit: ' . $account->boincuser_total_credit . '</div>';
449
+        //$user_info .= '  <div class="rac">RAC: ' . $account->boincuser_expavg_credit . '</div>';
450 450
     }
451 451
     $user_info .= '</div>';
452 452
     array_unshift($form, array(
453
-      'user_info' => array(
453
+        'user_info' => array(
454 454
         '#value' => $user_info,
455
-      ),
456
-      'comment_form_prefix' => array(
455
+        ),
456
+        'comment_form_prefix' => array(
457 457
         '#value' => '<div class="form-body">',
458
-      ),
458
+        ),
459 459
     ));
460 460
     $form['comment_form_suffix'] = array(
461
-      '#value' => '</div>',
461
+        '#value' => '</div>',
462 462
     );
463 463
 
464 464
     module_load_include('inc', 'bbcode', 'bbcode-help');
465 465
     $form['bbcode_help'] = array(
466
-      '#title' => bts('BBcode help', array(), NULL, 'boinc:help-with-user-input-with-BBCode'),
467
-      '#type' => 'fieldset',
468
-      '#attributes' => array(
466
+        '#title' => bts('BBcode help', array(), NULL, 'boinc:help-with-user-input-with-BBCode'),
467
+        '#type' => 'fieldset',
468
+        '#attributes' => array(
469 469
         'class' => 'bbcode_help',
470
-      ),
471
-      '#collapsible' => TRUE,
472
-      '#collapsed' => TRUE,
473
-      'content' => array(
470
+        ),
471
+        '#collapsible' => TRUE,
472
+        '#collapsed' => TRUE,
473
+        'content' => array(
474 474
         '#value' => _bbcode_filter_tip(),
475
-      ),
475
+        ),
476 476
     );
477 477
 
478 478
     // If a specific comment is being referenced, go back to it on cancel
479 479
     if ($comment_ref = $form['pid']['#value']) {
480
-      $cancel_url = "goto/comment/{$comment_ref}";
480
+        $cancel_url = "goto/comment/{$comment_ref}";
481 481
     }
482 482
     else {
483
-      $cancel_url = "node/{$form['nid']['#value']}";
483
+        $cancel_url = "node/{$form['nid']['#value']}";
484 484
     }
485 485
 
486 486
     // Wrap action buttons for styling consistency
487 487
     $form['buttons']['form control tabs prefix'] = array(
488
-      '#value' => '<ul class="form-control tab-list">',
489
-      '#weight' => 1001,
488
+        '#value' => '<ul class="form-control tab-list">',
489
+        '#weight' => 1001,
490 490
     );
491 491
     $form['buttons']['submit'] = $form['submit'];
492 492
     unset($form['submit']);
@@ -505,12 +505,12 @@  discard block
 block discarded – undo
505 505
     $form['buttons']['preview']['#suffix'] = '</li>';
506 506
     $form['buttons']['preview']['#weight'] = 1003;
507 507
     $form['buttons']['cancel'] = array(
508
-      '#value' => '<li class="tab">' . l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), $cancel_url) . '</li>',
509
-      '#weight' => 1004,
508
+        '#value' => '<li class="tab">' . l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), $cancel_url) . '</li>',
509
+        '#weight' => 1004,
510 510
     );
511 511
     $form['buttons']['form control tabs suffix'] = array(
512
-      '#value' => '</ul>',
513
-      '#weight' => 1010,
512
+        '#value' => '</ul>',
513
+        '#weight' => 1010,
514 514
     );
515 515
 
516 516
     // Remove redundant name field
@@ -526,38 +526,38 @@  discard block
 block discarded – undo
526 526
     $community_role = array_search('community member', user_roles(true));
527 527
     $unrestricted_role = array_search('verified contributor', user_roles(true));
528 528
     if ( (isset($account->roles[$community_role])) and (!isset($account->roles[$unrestricted_role])) ) {
529
-      if ($node->type == 'forum') {
529
+        if ($node->type == 'forum') {
530 530
         if (module_exists('captcha')) {
531
-          $form['comment_captcha'] = array(
531
+            $form['comment_captcha'] = array(
532 532
             '#type' => 'captcha',
533 533
             '#weight' => 1000,
534
-          );
534
+            );
535 535
         }
536
-      }
537
-      else {
536
+        }
537
+        else {
538 538
         $form = NULL;
539 539
         $form['from'] = array(
540
-          '#type'  => 'item',
541
-          '#value' => 'You do not have permission to post comments in this forum.',
540
+            '#type'  => 'item',
541
+            '#value' => 'You do not have permission to post comments in this forum.',
542 542
         );
543
-      }
543
+        }
544 544
     }
545 545
 
546 546
     break;
547 547
 
548
-  // Forum node form
549
-  case 'forum_node_form':
548
+    // Forum node form
549
+    case 'forum_node_form':
550 550
   case 'team_forum_node_form':
551 551
     $forum_id = key($form['#node']->taxonomy);
552 552
     $form['buttons']['separator_bottom'] = array(
553
-      '#value' => '<div class="separator buttons"></div>',
554
-      '#weight' => 999,
553
+        '#value' => '<div class="separator buttons"></div>',
554
+        '#weight' => 999,
555 555
     );
556 556
 
557 557
     // Wrap action buttons for styling consistency
558 558
     $form['buttons']['form control tabs prefix'] = array(
559
-      '#value' => '<ul class="form-control tab-list">',
560
-      '#weight' => 1001,
559
+        '#value' => '<ul class="form-control tab-list">',
560
+        '#weight' => 1001,
561 561
     );
562 562
     $form['buttons']['submit']['#prefix'] = '<li class="first tab">';
563 563
     $form['buttons']['submit']['#value'] = bts('Post topic', array(), NULL, 'boinc:post-forum-comment');
@@ -570,28 +570,28 @@  discard block
 block discarded – undo
570 570
     $form['buttons']['preview_changes']['#suffix'] = '</li>';
571 571
     $form['buttons']['preview_changes']['#weight'] = 1004;
572 572
     $form['buttons']['cancel'] = array(
573
-      '#value' => '<li class="tab">' . l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), "community/forum/{$forum_id}") . '</li>',
574
-      '#weight' => 1005,
573
+        '#value' => '<li class="tab">' . l(bts('Cancel', array(), NULL, 'boinc:form-cancel'), "community/forum/{$forum_id}") . '</li>',
574
+        '#weight' => 1005,
575 575
     );
576 576
     $form['buttons']['form control tabs suffix'] = array(
577
-      '#value' => '</ul>',
578
-      '#weight' => 1010,
577
+        '#value' => '</ul>',
578
+        '#weight' => 1010,
579 579
     );
580 580
 
581 581
     // Add captcha for role='community member'
582 582
     $community_role = array_search('community member', user_roles(true));
583 583
     $unrestricted_role = array_search('verified contributor', user_roles(true));
584 584
     if ( (isset($account->roles[$community_role])) and (!isset($account->roles[$unrestricted_role])) ) {
585
-      if (module_exists('captcha')) {
585
+        if (module_exists('captcha')) {
586 586
         $form['comment_captcha'] = array(
587
-          '#type' => 'captcha',
588
-          '#weight' => 1000,
587
+            '#type' => 'captcha',
588
+            '#weight' => 1000,
589 589
         );
590
-      }
590
+        }
591 591
     }
592 592
 
593 593
     break;
594
-  case 'boinccore_delete_confirm':
594
+    case 'boinccore_delete_confirm':
595 595
     // Wrap action buttons for styling consistency
596 596
     $form['actions']['#prefix'] = '<ul class="form-control tab-list">';
597 597
     $form['actions']['#suffix'] = '</ul>';
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
     $form['actions']['cancel']['#prefix'] = '<li class="tab">';
602 602
     $form['actions']['cancel']['#suffix'] = '</li>';
603 603
     break;
604
-  default:
604
+    default:
605 605
   }
606 606
 }
607 607
 
@@ -609,61 +609,61 @@  discard block
 block discarded – undo
609 609
  * Implementation of hook_link_alter()
610 610
  */
611 611
 function boinccore_link_alter(&$links, $node, $comment = NULL) {
612
-  //echo '<pre>' . print_r($links, true) . '</pre>';
613
-  foreach ($links as $module => $link) {
612
+    //echo '<pre>' . print_r($links, true) . '</pre>';
613
+    foreach ($links as $module => $link) {
614 614
     // Remove the ignore user link
615 615
     if (strstr($module, 'ignore_user')) {
616
-      unset($links[$module]);
616
+        unset($links[$module]);
617 617
     }
618
-  }
619
-  // Node first, then comment: to be consistent with boinccore_link() function
620
-  if (!($comment)) {
618
+    }
619
+    // Node first, then comment: to be consistent with boinccore_link() function
620
+    if (!($comment)) {
621 621
     // modify the comment_add link
622 622
     if (isset($links['comment_add'])) {
623
-      $links['comment_add']['title'] = bts('reply', array(), NULL, 'boinc:forum-reply-to-comment');
624
-      $links['comment_add']['attributes'] = array(
625
-          'title' => bts('Reply to this comment', array(), NULL, 'boinc:forum-reply-to-comment')
626
-      );
623
+        $links['comment_add']['title'] = bts('reply', array(), NULL, 'boinc:forum-reply-to-comment');
624
+        $links['comment_add']['attributes'] = array(
625
+            'title' => bts('Reply to this comment', array(), NULL, 'boinc:forum-reply-to-comment')
626
+        );
627 627
     }
628 628
     // modify quote link
629 629
     if (isset($links['quote'])) {
630
-      $links['quote']['attributes'] = array(
631
-          'title' => bts('Reply to this topic with a quote', array(), NULL, 'boinc:forum-reply-to-comment')
632
-      );
630
+        $links['quote']['attributes'] = array(
631
+            'title' => bts('Reply to this topic with a quote', array(), NULL, 'boinc:forum-reply-to-comment')
632
+        );
633 633
     }
634
-  }
635
-  else {
634
+    }
635
+    else {
636 636
     // Standard EDIT, DELETE, and REPLY links are created by Drupal, but we want to alter them
637 637
     if (isset($links['comment_delete'])) {
638
-      $links['comment_delete']['attributes'] = array(
639
-          'title' => bts('Delete this comment', array(), NULL, 'boinc:forum-delete-comment')
640
-      );
638
+        $links['comment_delete']['attributes'] = array(
639
+            'title' => bts('Delete this comment', array(), NULL, 'boinc:forum-delete-comment')
640
+        );
641 641
     }
642 642
     if (isset($links['comment_edit'])) {
643
-      $links['comment_edit']['attributes'] = array(
644
-          'title' => bts('Edit this comment', array(), NULL, 'boinc:forum-edit-comment')
645
-      );
643
+        $links['comment_edit']['attributes'] = array(
644
+            'title' => bts('Edit this comment', array(), NULL, 'boinc:forum-edit-comment')
645
+        );
646 646
     }
647 647
     if (isset($links['comment_reply'])) {
648
-      $links['comment_reply']['attributes'] = array(
649
-          'title' => bts('Reply to this comment', array(), NULL, 'boinc:forum-reply-to-comment')
650
-      );
648
+        $links['comment_reply']['attributes'] = array(
649
+            'title' => bts('Reply to this comment', array(), NULL, 'boinc:forum-reply-to-comment')
650
+        );
651 651
     }
652
-  }// if !$comment
652
+    }// if !$comment
653 653
 }
654 654
 
655 655
 /**
656 656
  * Implementation of hook_locale().
657 657
  */
658 658
 function boinccore_locale($op = 'groups', $group = NULL) {
659
-  switch ($op) {
659
+    switch ($op) {
660 660
     case 'groups':
661 661
         return array('boinc' => 'BOINC');
662 662
     case 'info':
663 663
       //$info['boinc']['refresh callback'] = 'boinccore_locale_refresh';
664 664
       $info['boinc']['format'] = FALSE;
665
-      return $info;
666
-  }
665
+        return $info;
666
+    }
667 667
 }
668 668
 
669 669
 
@@ -671,71 +671,71 @@  discard block
 block discarded – undo
671 671
  * Implementation of hook_link()
672 672
  */
673 673
 function boinccore_link($type, $object, $teaser = FALSE) {
674
-  // Add custom links with this hook
674
+    // Add custom links with this hook
675 675
 
676
-  if ($type=='node') {
676
+    if ($type=='node') {
677 677
     if ( ($object->type=='forum') OR ($object->type=='team_forum') ) {
678
-      // Add topic moderator controls
679
-      if (user_access('edit any forum topic')) {
678
+        // Add topic moderator controls
679
+        if (user_access('edit any forum topic')) {
680 680
         $node_control = "node_control/{$object->nid}";
681 681
         if ($object->sticky) {
682
-          $links['make_unsticky'] = array(
683
-              'title' => bts('Make unsticky', array(), NULL, 'boinc:forum-unsticky-comment'),
684
-              'href' => "{$node_control}/unsticky",
685
-              'attributes' => array(
686
-                  'title' => bts('Remove sticky status from this topic', array(), NULL, 'boinc:forum-unsticky-comment')
687
-              )
688
-          );
682
+            $links['make_unsticky'] = array(
683
+                'title' => bts('Make unsticky', array(), NULL, 'boinc:forum-unsticky-comment'),
684
+                'href' => "{$node_control}/unsticky",
685
+                'attributes' => array(
686
+                    'title' => bts('Remove sticky status from this topic', array(), NULL, 'boinc:forum-unsticky-comment')
687
+                )
688
+            );
689 689
         }
690 690
         else {
691
-          $links['make_sticky'] = array(
692
-              'title' => bts('Make sticky', array(), NULL, 'boinc:forum-sticky-comment'),
693
-              'href' => "{$node_control}/sticky",
694
-              'attributes' => array(
695
-                  'title' => bts('Make this topic sticky', array(), NULL, 'boinc:forum-sticky-comment')
696
-              )
697
-          );
691
+            $links['make_sticky'] = array(
692
+                'title' => bts('Make sticky', array(), NULL, 'boinc:forum-sticky-comment'),
693
+                'href' => "{$node_control}/sticky",
694
+                'attributes' => array(
695
+                    'title' => bts('Make this topic sticky', array(), NULL, 'boinc:forum-sticky-comment')
696
+                )
697
+            );
698 698
         }
699 699
         if ($object->comment == COMMENT_NODE_READ_WRITE) {
700
-          $links['lock'] = array(
701
-              'title' => bts('Lock', array(), NULL, 'boinc:forum-lock-comment'),
702
-              'href' => "{$node_control}/lock",
703
-              'attributes' => array(
704
-                  'title' => bts('Lock this thread for comments', array(), NULL, 'boinc:forum-lock-comment')
705
-              )
706
-          );
700
+            $links['lock'] = array(
701
+                'title' => bts('Lock', array(), NULL, 'boinc:forum-lock-comment'),
702
+                'href' => "{$node_control}/lock",
703
+                'attributes' => array(
704
+                    'title' => bts('Lock this thread for comments', array(), NULL, 'boinc:forum-lock-comment')
705
+                )
706
+            );
707 707
         }
708 708
         else {
709
-          $links['unlock'] = array(
710
-              'title' => bts('Unlock', array(), NULL, 'boinc:forum-unlock-comment'),
711
-              'href' => "{$node_control}/unlock",
712
-              'attributes' => array(
713
-                  'title' => bts('Unlock this thread for comments', array(), NULL, 'boinc:forum-unlock-comment')
714
-              )
715
-          );
709
+            $links['unlock'] = array(
710
+                'title' => bts('Unlock', array(), NULL, 'boinc:forum-unlock-comment'),
711
+                'href' => "{$node_control}/unlock",
712
+                'attributes' => array(
713
+                    'title' => bts('Unlock this thread for comments', array(), NULL, 'boinc:forum-unlock-comment')
714
+                )
715
+            );
716 716
         }
717 717
         if ($object->status) {
718
-          $links['hide'] = array(
719
-              'title' => bts('Hide', array(), NULL, 'boinc:forum-hide-comment'),
720
-              'href' => "{$node_control}/hide",
721
-              'attributes' => array(
722
-                  'title' => bts('Hide this topic', array(), NULL, 'boinc:forum-hide-comment')
723
-              )
724
-          );
718
+            $links['hide'] = array(
719
+                'title' => bts('Hide', array(), NULL, 'boinc:forum-hide-comment'),
720
+                'href' => "{$node_control}/hide",
721
+                'attributes' => array(
722
+                    'title' => bts('Hide this topic', array(), NULL, 'boinc:forum-hide-comment')
723
+                )
724
+            );
725 725
         }
726 726
         else {
727
-          $links['unhide'] = array(
728
-              'title' => bts('Unhide', array(), NULL, 'boinc:forum-unhide-comment'),
729
-              'href' => "{$node_control}/unhide",
730
-              'attributes' => array(
731
-                  'title' => bts('Unhide this topic', array(), NULL, 'boinc:forum-unhide-comment')
732
-              )
733
-          );
727
+            $links['unhide'] = array(
728
+                'title' => bts('Unhide', array(), NULL, 'boinc:forum-unhide-comment'),
729
+                'href' => "{$node_control}/unhide",
730
+                'attributes' => array(
731
+                    'title' => bts('Unhide this topic', array(), NULL, 'boinc:forum-unhide-comment')
732
+                )
733
+            );
734 734
         }
735
-      }// if user_access('edit any forum topic')
735
+        }// if user_access('edit any forum topic')
736 736
     }
737
-  }
738
-  else if ($type=='comment') {
737
+    }
738
+    else if ($type=='comment') {
739 739
     $node = node_load($object->nid);
740 740
     $nid = $object->nid;
741 741
     $cid = $object->cid;
@@ -755,10 +755,10 @@  discard block
 block discarded – undo
755 755
     // HIDE and COVERT comment
756 756
     // The following are moderator only links
757 757
     if (user_access('administer comments')) {
758
-      $comment_control = "comment_control/{$cid}";
759
-      // Add link to convert comment into a new topic
760
-      $reply_count = db_result(db_query(' SELECT COUNT(*) FROM comments WHERE pid = %d', $cid ));
761
-      if ($reply_count == 0) {
758
+        $comment_control = "comment_control/{$cid}";
759
+        // Add link to convert comment into a new topic
760
+        $reply_count = db_result(db_query(' SELECT COUNT(*) FROM comments WHERE pid = %d', $cid ));
761
+        if ($reply_count == 0) {
762 762
         $links['convert'] = array(
763 763
             'title' => bts('Convert', array(), NULL, 'boinc:forum-convert-comment-to-topic'),
764 764
             'href' => "{$comment_control}/convert",
@@ -766,9 +766,9 @@  discard block
 block discarded – undo
766 766
                 'title' => bts('Convert this comment to a new topic', array(), NULL, 'boinc:forum-convert-comment-to-topic')
767 767
             )
768 768
         );
769
-      }
770
-      // Add hide link
771
-      if ($object->status == 0) {
769
+        }
770
+        // Add hide link
771
+        if ($object->status == 0) {
772 772
         $links['hide'] = array(
773 773
             'title' => bts('Hide', array(), NULL, 'boinc:forum-hide-comment'),
774 774
             'href' => "{$comment_control}/hide",
@@ -776,8 +776,8 @@  discard block
 block discarded – undo
776 776
                 'title' => bts('Hide this comment', array(), NULL, 'boinc:forum-hide-comment')
777 777
             )
778 778
         );
779
-      }
780
-      else {
779
+        }
780
+        else {
781 781
         $links['unhide'] = array(
782 782
             'title' => bts('Unhide', array(), NULL, 'boinc:forum-unhide-comment'),
783 783
             'href' => "{$comment_control}/unhide",
@@ -785,27 +785,27 @@  discard block
 block discarded – undo
785 785
                 'title' => bts('Unhide this comment', array(), NULL, 'boinc:forum-unhide-comment')
786 786
             )
787 787
         );
788
-      }
788
+        }
789 789
     }// if user_access('administer comments')
790
-  }//if $type
790
+    }//if $type
791 791
 
792
-  return $links;
792
+    return $links;
793 793
 }
794 794
 
795 795
 /**
796 796
  * Implementation of hook_mail_alter()
797 797
  */
798 798
 function boinccore_mail_alter(&$message) {
799
-  /* This code alters the headers for all emails sent by the Drupal Web site to use
799
+    /* This code alters the headers for all emails sent by the Drupal Web site to use
800 800
      'Quote-Printable' as the encoding, both altering the header and modifies the body to the
801 801
      new encoding.
802 802
   */
803
-  $message['headers']['Content-Transfer-Encoding'] = 'Quoted-Printable';
804
-  if (is_array($message['body'])) {
803
+    $message['headers']['Content-Transfer-Encoding'] = 'Quoted-Printable';
804
+    if (is_array($message['body'])) {
805 805
     $message['body'] = array_map( "quoted_printable_encode", $message['body'] );
806
-  } else {
806
+    } else {
807 807
     $message['body'] = quoted_printable_encode($message['body']);
808
-  }
808
+    }
809 809
 }
810 810
 
811 811
 /*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *
@@ -818,45 +818,45 @@  discard block
 block discarded – undo
818 818
  * link rather than through the node form.
819 819
  */
820 820
 function boinccore_node_control($nid = NULL, $action = NULL) {
821
-  if ((!$nid OR !$node = node_load($nid)) OR
821
+    if ((!$nid OR !$node = node_load($nid)) OR
822 822
       ($node->type == 'forum' AND !user_access('edit any forum topic')) OR
823 823
       ($node->type != 'forum' AND !user_access('administer nodes'))) {
824 824
     // What are you even doing here...
825 825
     return FALSE;
826
-  }
827
-  switch ($action) {
828
-  case 'unhide':
826
+    }
827
+    switch ($action) {
828
+    case 'unhide':
829 829
     node_publish_action($node);
830 830
     break;
831
-  case 'hide':
831
+    case 'hide':
832 832
     node_unpublish_action($node);
833 833
     break;
834
-  case 'sticky':
834
+    case 'sticky':
835 835
     node_make_sticky_action($node);
836 836
     break;
837
-  case 'unsticky':
837
+    case 'unsticky':
838 838
     node_make_unsticky_action($node);
839 839
     break;
840
-  case 'lock':
840
+    case 'lock':
841 841
     $node->comment = 1;
842 842
     watchdog('action', 'Locked comments on @type %title.', array(
843
-      '@type' => node_get_types('name', $node), '%title' => $node->title));
843
+        '@type' => node_get_types('name', $node), '%title' => $node->title));
844 844
     break;
845
-  case 'unlock':
845
+    case 'unlock':
846 846
     $node->comment = 2;
847 847
     watchdog('action', 'Unlocked comments on @type %title.', array(
848
-      '@type' => node_get_types('name', $node), '%title' => $node->title));
848
+        '@type' => node_get_types('name', $node), '%title' => $node->title));
849 849
     break;
850
-  default:
850
+    default:
851 851
   }
852
-  node_save($node);
853
-  // If hiding a forum topic (node) and not an administrator, go to
854
-  // the forum page. Otherwise the user will reach an access-denied
855
-  // page.
856
-  if (($action=="hide") and (!user_access('administer forums'))) {
852
+    node_save($node);
853
+    // If hiding a forum topic (node) and not an administrator, go to
854
+    // the forum page. Otherwise the user will reach an access-denied
855
+    // page.
856
+    if (($action=="hide") and (!user_access('administer forums'))) {
857 857
     drupal_goto("community/forum/{$node->tid}");
858
-  }
859
-  drupal_goto("node/{$nid}");
858
+    }
859
+    drupal_goto("node/{$nid}");
860 860
 }
861 861
 
862 862
 /**
@@ -865,28 +865,28 @@  discard block
 block discarded – undo
865 865
  * through the comment edit form.
866 866
  */
867 867
 function boinccore_comment_control($cid = NULL, $action = NULL) {
868
-  if (!$cid OR !$comment = _comment_load($cid)) {
868
+    if (!$cid OR !$comment = _comment_load($cid)) {
869 869
     // What are you even doing here...
870 870
     return FALSE;
871
-  }
872
-  $return_path = "node/{$comment->nid}";
873
-  $return_anchor = "comment-{$cid}";
874
-  switch ($action) {
875
-  case 'unhide':
871
+    }
872
+    $return_path = "node/{$comment->nid}";
873
+    $return_anchor = "comment-{$cid}";
874
+    switch ($action) {
875
+    case 'unhide':
876 876
     comment_publish_action($comment);
877 877
     rules_invoke_event('boinccore_comment_unhidden', $comment);
878 878
     if (module_exists("boinc_solr_comments")) {
879
-      boinc_solr_comments_publish($comment);
879
+        boinc_solr_comments_publish($comment);
880 880
     }
881 881
     break;
882
-  case 'hide':
882
+    case 'hide':
883 883
     comment_unpublish_action($comment);
884 884
     rules_invoke_event('comment_unpublish', $comment);
885 885
     if (module_exists("boinc_solr_comments")) {
886
-      boinc_solr_comments_unpublish($comment);
886
+        boinc_solr_comments_unpublish($comment);
887 887
     }
888 888
     break;
889
-  case 'convert':
889
+    case 'convert':
890 890
     $node = new stdClass();
891 891
     $node->name = $comment->subject;
892 892
     $node->title = $node->name;
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
     $node->tid = $parent_node->tid;
907 907
 
908 908
     if (filter_access($comment->format)) {
909
-      $node->format = $comment->format;
909
+        $node->format = $comment->format;
910 910
     }
911 911
 
912 912
     // Save the new node
@@ -922,9 +922,9 @@  discard block
 block discarded – undo
922 922
     $return_path = "node/{$node->nid}";
923 923
     $return_anchor = NULL;
924 924
     break;
925
-  default:
925
+    default:
926 926
   }
927
-  drupal_goto($return_path, NULL, $return_anchor);
927
+    drupal_goto($return_path, NULL, $return_anchor);
928 928
 }
929 929
 
930 930
 /**
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
  * Get the authenticator for a given account
933 933
  */
934 934
 function boinccore_lookup_account() {
935
-  include_boinc('user/lookup_account.php');
935
+    include_boinc('user/lookup_account.php');
936 936
 }
937 937
 
938 938
 /**
@@ -940,29 +940,29 @@  discard block
 block discarded – undo
940 940
  * Get assorted details for a given account
941 941
  */
942 942
 function boinccore_am_get_info() {
943
-  // Remove q from the GET request or BOINC will panic
944
-  unset($_GET['q']);
945
-  // Capture the XML output of the RPC so we can override things
946
-  ob_start();
947
-  include_boinc('user/am_get_info.php');
948
-  $xml = ob_get_clean();
949
-  $xml = load_configuration($xml);
950
-  // See if the account has an approved profile in Drupal
951
-  $uid = !empty($xml['am_get_info_reply']['id']) ? boincuser_lookup_uid($xml['am_get_info_reply']['id']) : 0;
952
-  if ($uid) {
943
+    // Remove q from the GET request or BOINC will panic
944
+    unset($_GET['q']);
945
+    // Capture the XML output of the RPC so we can override things
946
+    ob_start();
947
+    include_boinc('user/am_get_info.php');
948
+    $xml = ob_get_clean();
949
+    $xml = load_configuration($xml);
950
+    // See if the account has an approved profile in Drupal
951
+    $uid = !empty($xml['am_get_info_reply']['id']) ? boincuser_lookup_uid($xml['am_get_info_reply']['id']) : 0;
952
+    if ($uid) {
953 953
     $content_profile = content_profile_load('profile', $uid);
954 954
     $profile_is_approved = ($content_profile->status AND !$content_profile->moderate);
955 955
     $country = check_plain($content_profile->field_country[0]['value']);
956 956
     $website = '';
957 957
     if ($profile_is_approved) {
958
-      $website = check_plain($content_profile->field_url[0]['value']);
958
+        $website = check_plain($content_profile->field_url[0]['value']);
959 959
     }
960 960
     // Override BOINC values with Drupal values as needed
961 961
     $xml['am_get_info_reply']['has_profile']['@value'] = ($profile_is_approved) ? 1 : 0;
962 962
     $xml['am_get_info_reply']['country']['@value'] = $country;
963 963
     $xml['am_get_info_reply']['url']['@value'] = $website;
964
-  }
965
-  print save_configuration($xml);
964
+    }
965
+    print save_configuration($xml);
966 966
 }
967 967
 
968 968
 /**
@@ -970,75 +970,75 @@  discard block
 block discarded – undo
970 970
  * Update assorted details for a given account
971 971
  */
972 972
 function boinccore_am_set_info() {
973
-  // Remove q from the GET request or BOINC will panic
974
-  unset($_GET['q']);
975
-  // Validate the XML prefs (in case BOINC does not)
976
-  $global_prefs = !empty($_POST['global_prefs']) ? $_POST['global_prefs'] : (!empty($_GET['global_prefs']) ? $_GET['global_prefs'] : NULL);
977
-  $project_prefs = !empty($_POST['project_prefs']) ? $_POST['project_prefs'] : (!empty($_GET['project_prefs']) ? $_GET['project_prefs'] : NULL);
978
-  libxml_use_internal_errors(true);
979
-  $xml = new DomDocument();
980
-  if ($global_prefs) {
973
+    // Remove q from the GET request or BOINC will panic
974
+    unset($_GET['q']);
975
+    // Validate the XML prefs (in case BOINC does not)
976
+    $global_prefs = !empty($_POST['global_prefs']) ? $_POST['global_prefs'] : (!empty($_GET['global_prefs']) ? $_GET['global_prefs'] : NULL);
977
+    $project_prefs = !empty($_POST['project_prefs']) ? $_POST['project_prefs'] : (!empty($_GET['project_prefs']) ? $_GET['project_prefs'] : NULL);
978
+    libxml_use_internal_errors(true);
979
+    $xml = new DomDocument();
980
+    if ($global_prefs) {
981 981
     $xml->loadXML($global_prefs, LIBXML_NOBLANKS);
982 982
     if ($errors = libxml_get_errors($xml)) {
983
-      $lines = explode("\r", $global_prefs);
984
-      watchdog('am_set_info', "XML validation error in global_prefs: {$errors[0]->message} at line {$errors[0]->line}" .
983
+        $lines = explode("\r", $global_prefs);
984
+        watchdog('am_set_info', "XML validation error in global_prefs: {$errors[0]->message} at line {$errors[0]->line}" .
985 985
         ': <br/>' . htmlentities($lines[$errors[0]->line - 1]), array(), WATCHDOG_ERROR);
986 986
     }
987
-  }
988
-  elseif ($project_prefs) {
987
+    }
988
+    elseif ($project_prefs) {
989 989
     $xml->loadXML($project_prefs, LIBXML_NOBLANKS);
990 990
     if ($errors = libxml_get_errors($xml)) {
991
-      $lines = explode("\r", $project_prefs);
992
-      watchdog('am_set_info', "XML validation error in project_prefs: {$errors[0]->message} at line {$errors[0]->line}" .
991
+        $lines = explode("\r", $project_prefs);
992
+        watchdog('am_set_info', "XML validation error in project_prefs: {$errors[0]->message} at line {$errors[0]->line}" .
993 993
         ': <br/>' . htmlentities($lines[$errors[0]->line - 1]), array(), WATCHDOG_ERROR);
994 994
     }
995
-  }
996
-  if (!$errors) {
995
+    }
996
+    if (!$errors) {
997 997
     // Capture the XML output of the RPC so we can override things
998 998
     ob_start();
999 999
     include_boinc('user/am_set_info.php');
1000 1000
     $xml = ob_get_clean();
1001 1001
     $xml = load_configuration($xml);
1002 1002
     if (isset($xml['am_set_info_reply']['success'])) {
1003
-      // Find the account in Drupal
1004
-      $boinc_auth = !empty($_POST['account_key']) ? $_POST['account_key'] : $_GET['account_key'];
1005
-      db_set_active('boinc_rw');
1006
-      $boinc_id = db_result(db_query("
1003
+        // Find the account in Drupal
1004
+        $boinc_auth = !empty($_POST['account_key']) ? $_POST['account_key'] : $_GET['account_key'];
1005
+        db_set_active('boinc_rw');
1006
+        $boinc_id = db_result(db_query("
1007 1007
         SELECT id
1008 1008
         FROM {user}
1009 1009
         WHERE authenticator = '%s'",
1010 1010
         $boinc_auth
1011
-      ));
1012
-      db_set_active('default');
1013
-      $uid = boincuser_lookup_uid($boinc_id);
1011
+        ));
1012
+        db_set_active('default');
1013
+        $uid = boincuser_lookup_uid($boinc_id);
1014 1014
 
1015
-      // Apply any relevant updates to the Drupal account, also
1016
-      $country = !empty($_POST['country']) ? $_POST['country'] : (!empty($_GET['country']) ? $_GET['country'] : NULL);
1017
-      $url = !empty($_POST['url']) ? $_POST['url'] : (!empty($_GET['url']) ? $_GET['url'] : NULL);
1018
-      $email_addr = !empty($_POST['email_addr']) ? $_POST['email_addr'] : (!empty($_GET['email_addr']) ? $_GET['email_addr'] : NULL);
1015
+        // Apply any relevant updates to the Drupal account, also
1016
+        $country = !empty($_POST['country']) ? $_POST['country'] : (!empty($_GET['country']) ? $_GET['country'] : NULL);
1017
+        $url = !empty($_POST['url']) ? $_POST['url'] : (!empty($_GET['url']) ? $_GET['url'] : NULL);
1018
+        $email_addr = !empty($_POST['email_addr']) ? $_POST['email_addr'] : (!empty($_GET['email_addr']) ? $_GET['email_addr'] : NULL);
1019 1019
 
1020
-      if ($email_addr) {
1020
+        if ($email_addr) {
1021 1021
         $account = user_load($uid);
1022 1022
         user_save($account, array('mail' => $email_addr));
1023
-      }
1024
-      if ($country OR $url) {
1023
+        }
1024
+        if ($country OR $url) {
1025 1025
         $content_profile = content_profile_load('profile', $uid);
1026 1026
         if ($country) $content_profile->field_country[0]['value'] = $country;
1027 1027
         if ($url) $content_profile->field_url[0]['value'] = $url;
1028 1028
         node_save($content_profile);
1029
-      }
1029
+        }
1030 1030
     }
1031
-  }
1032
-  else {
1031
+    }
1032
+    else {
1033 1033
     $xml = array(
1034
-      'error' => array(
1034
+        'error' => array(
1035 1035
         'error_num' => -112,
1036 1036
         'error_msg' => "{$errors[0]->message} at line {$errors[0]->line}" .
1037 1037
         ': <br/>' . htmlentities($lines[$errors[0]->line - 1])
1038
-      ),
1038
+        ),
1039 1039
     );
1040
-  }
1041
-  print save_configuration($xml);
1040
+    }
1041
+    print save_configuration($xml);
1042 1042
 }
1043 1043
 
1044 1044
 /**
@@ -1046,17 +1046,17 @@  discard block
 block discarded – undo
1046 1046
  * Update the venue for the given host
1047 1047
  */
1048 1048
 function boinccore_am_set_host_info() {
1049
-  // Remove q from the GET request or BOINC will panic
1050
-  unset($_GET['q']);
1051
-  // Capture the XML output of the RPC so we can override things
1052
-  ob_start();
1053
-  include_boinc('user/am_set_host_info.php');
1054
-  $xml = ob_get_clean();
1055
-  $xml = load_configuration($xml);
1056
-  if (isset($xml['am_set_host_info_reply']['success'])) {
1049
+    // Remove q from the GET request or BOINC will panic
1050
+    unset($_GET['q']);
1051
+    // Capture the XML output of the RPC so we can override things
1052
+    ob_start();
1053
+    include_boinc('user/am_set_host_info.php');
1054
+    $xml = ob_get_clean();
1055
+    $xml = load_configuration($xml);
1056
+    if (isset($xml['am_set_host_info_reply']['success'])) {
1057 1057
     // Override anything that needs overriding
1058
-  }
1059
-  print save_configuration($xml);
1058
+    }
1059
+    print save_configuration($xml);
1060 1060
 }
1061 1061
 
1062 1062
 /**
@@ -1064,29 +1064,29 @@  discard block
 block discarded – undo
1064 1064
  * Get assorted details for a given account
1065 1065
  */
1066 1066
 function boinccore_show_user() {
1067
-  // Remove q from the GET request or BOINC will panic
1068
-  unset($_GET['q']);
1069
-  // Capture the XML output of the RPC so we can override things
1070
-  ob_start();
1071
-  include_boinc('user/show_user.php');
1072
-  $xml = ob_get_clean();
1073
-  $xml = load_configuration($xml);
1074
-  // See if the account has an approved profile in Drupal
1075
-  $uid = !empty($xml['user']['id']) ? boincuser_lookup_uid($xml['user']['id']) : 0;
1076
-  if ($uid) {
1067
+    // Remove q from the GET request or BOINC will panic
1068
+    unset($_GET['q']);
1069
+    // Capture the XML output of the RPC so we can override things
1070
+    ob_start();
1071
+    include_boinc('user/show_user.php');
1072
+    $xml = ob_get_clean();
1073
+    $xml = load_configuration($xml);
1074
+    // See if the account has an approved profile in Drupal
1075
+    $uid = !empty($xml['user']['id']) ? boincuser_lookup_uid($xml['user']['id']) : 0;
1076
+    if ($uid) {
1077 1077
     $content_profile = content_profile_load('profile', $uid);
1078 1078
     $profile_is_approved = ($content_profile->status AND !$content_profile->moderate);
1079 1079
     $country = check_plain($content_profile->field_country[0]['value']);
1080 1080
     $website = '';
1081 1081
     if ($profile_is_approved) {
1082
-      $website = check_plain($content_profile->field_url[0]['value']);
1082
+        $website = check_plain($content_profile->field_url[0]['value']);
1083 1083
     }
1084 1084
     // Override BOINC values with Drupal values as needed
1085 1085
     $xml['user']['has_profile']['@value'] = ($profile_is_approved) ? 1 : 0;
1086 1086
     $xml['user']['country']['@value'] = $country;
1087 1087
     $xml['user']['url']['@value'] = $website;
1088
-  }
1089
-  print save_configuration($xml);
1088
+    }
1089
+    print save_configuration($xml);
1090 1090
 }
1091 1091
 
1092 1092
 /**
@@ -1094,9 +1094,9 @@  discard block
 block discarded – undo
1094 1094
  * Get pending credit information for a given account
1095 1095
  */
1096 1096
 function boinccore_pending_credit() {
1097
-  // Remove q from the GET request or BOINC will panic
1098
-  unset($_GET['q']);
1099
-  include_boinc('user/pending.php');
1097
+    // Remove q from the GET request or BOINC will panic
1098
+    unset($_GET['q']);
1099
+    include_boinc('user/pending.php');
1100 1100
 }
1101 1101
 
1102 1102
 /**
@@ -1105,7 +1105,7 @@  discard block
 block discarded – undo
1105 1105
  */
1106 1106
 function boinccore_create_team() {
1107 1107
 
1108
-  if (module_exists('boincteam')) {
1108
+    if (module_exists('boincteam')) {
1109 1109
     module_load_include('module', 'boincteam', 'boincteam');
1110 1110
 
1111 1111
     $input_format = !empty($values['format']) ? $values['format'] : 4;
@@ -1118,9 +1118,9 @@  discard block
 block discarded – undo
1118 1118
     $xml = load_configuration($xml);
1119 1119
 
1120 1120
     if (isset($xml['create_team_reply']['success'])) {
1121
-      $boincteam_id = isset($xml['create_team_reply']['team_id']['@value']) ? $xml['create_team_reply']['team_id']['@value'] : 0;
1121
+        $boincteam_id = isset($xml['create_team_reply']['team_id']['@value']) ? $xml['create_team_reply']['team_id']['@value'] : 0;
1122 1122
 
1123
-      if ($boincteam_id) {
1123
+        if ($boincteam_id) {
1124 1124
 
1125 1125
         $boincteam = boincteam_load($boincteam_id);
1126 1126
         $team_owner_uid = boincuser_lookup_uid($boincteam->userid);
@@ -1128,92 +1128,92 @@  discard block
 block discarded – undo
1128 1128
         // Create the team node in Drupal
1129 1129
 
1130 1130
         $values = array(
1131
-          'name' => isset($_GET['name']) ? $_GET['name'] : '',
1132
-          'description' => isset($_GET['description']) ? $_GET['description'] : '',
1133
-          'type' => isset($_GET['type']) ? $_GET['type'] : '',
1131
+            'name' => isset($_GET['name']) ? $_GET['name'] : '',
1132
+            'description' => isset($_GET['description']) ? $_GET['description'] : '',
1133
+            'type' => isset($_GET['type']) ? $_GET['type'] : '',
1134 1134
         );
1135 1135
         $teaser = node_teaser($values['description']);
1136 1136
         $created_time = time();
1137 1137
 
1138 1138
         $node = array(
1139
-          'type' => 'team',
1140
-          'title' => $values['name'],
1141
-          'body' => $values['description'],
1142
-          'teaser' => $teaser,
1143
-          'uid' => $team_owner_uid,
1144
-          'path' => null,
1145
-          'status' => 1,  // published or not - always publish
1146
-          'promote' => 0,
1147
-          'created' => $created_time,
1148
-          'comment' => 0,  // comments disabled
1149
-          'moderate' => 0,
1150
-          'sticky' => 0,
1151
-          'format' => $input_format
1139
+            'type' => 'team',
1140
+            'title' => $values['name'],
1141
+            'body' => $values['description'],
1142
+            'teaser' => $teaser,
1143
+            'uid' => $team_owner_uid,
1144
+            'path' => null,
1145
+            'status' => 1,  // published or not - always publish
1146
+            'promote' => 0,
1147
+            'created' => $created_time,
1148
+            'comment' => 0,  // comments disabled
1149
+            'moderate' => 0,
1150
+            'sticky' => 0,
1151
+            'format' => $input_format
1152 1152
         );
1153 1153
 
1154 1154
         // Use pathauto function, if available, to clean up the path
1155 1155
         if (module_exists('pathauto')) {
1156
-          module_load_include('inc', 'pathauto', 'pathauto');
1157
-          $node['path'] = pathauto_cleanstring($values['name']);
1156
+            module_load_include('inc', 'pathauto', 'pathauto');
1157
+            $node['path'] = pathauto_cleanstring($values['name']);
1158 1158
 
1159
-          $node = (object) $node; // node_save requires an object form
1160
-          $team_categories = taxonomy_get_term_by_name($values['type']);
1161
-          $node->taxonomy[] = $team_categories[0];
1159
+            $node = (object) $node; // node_save requires an object form
1160
+            $team_categories = taxonomy_get_term_by_name($values['type']);
1161
+            $node->taxonomy[] = $team_categories[0];
1162 1162
 
1163
-          // Save the team node
1164
-          node_save($node);
1165
-          // Save the team IDs to a BOINC <--> Drupal reference table.
1166
-          db_query('INSERT INTO {boincteam} (team_id, nid) VALUES (%d, %d)', $boincteam_id, $node->nid);
1163
+            // Save the team node
1164
+            node_save($node);
1165
+            // Save the team IDs to a BOINC <--> Drupal reference table.
1166
+            db_query('INSERT INTO {boincteam} (team_id, nid) VALUES (%d, %d)', $boincteam_id, $node->nid);
1167 1167
         }
1168 1168
         else {
1169
-          $xml['create_team_reply']['warning'] = t(
1169
+            $xml['create_team_reply']['warning'] = t(
1170 1170
             'There was a problem integrating this team into Drupal. Please
1171 1171
             contact @project administrators!', array('@project' => PROJECT)
1172
-          );
1173
-          watchdog(
1172
+            );
1173
+            watchdog(
1174 1174
             'BOINC team',
1175 1175
             'BOINC teams require the Pathauto module. Team cannot be created in
1176 1176
               Drupal via create_team.php RPC.',
1177 1177
             array(),
1178 1178
             WATCHDOG_ERROR
1179
-          );
1180
-          // Delete from the BOINC DB if we can't sync with Drupal
1181
-          $boincteam::delete();
1179
+            );
1180
+            // Delete from the BOINC DB if we can't sync with Drupal
1181
+            $boincteam::delete();
1182 1182
         }
1183
-      }
1184
-      else {
1183
+        }
1184
+        else {
1185 1185
         $xml['create_team_reply']['warning'] = t(
1186
-          'There was a problem integrating this team into Drupal. Please
1186
+            'There was a problem integrating this team into Drupal. Please
1187 1187
           contact @project administrators!', array('@project' => PROJECT)
1188 1188
         );
1189 1189
         watchdog(
1190
-          'BOINC team',
1191
-          'Team cannot be created in Drupal via create_team.php RPC because no
1190
+            'BOINC team',
1191
+            'Team cannot be created in Drupal via create_team.php RPC because no
1192 1192
             BOINC team ID was returned in the XML.',
1193
-          array(),
1194
-          WATCHDOG_ERROR
1193
+            array(),
1194
+            WATCHDOG_ERROR
1195 1195
         );
1196
-      }
1196
+        }
1197 1197
     }
1198
-  }
1199
-  else {
1198
+    }
1199
+    else {
1200 1200
     $xml = array(
1201
-      'error' => array(
1201
+        'error' => array(
1202 1202
         'error_num' => -1,
1203 1203
         'error_msg' => t(
1204
-          'Teams are not enabled for this project'
1204
+            'Teams are not enabled for this project'
1205
+        ),
1205 1206
         ),
1206
-      ),
1207 1207
     );
1208 1208
     watchdog(
1209
-      'BOINC team',
1210
-      'Team cannot be created in Drupal via create_team.php RPC because the
1209
+        'BOINC team',
1210
+        'Team cannot be created in Drupal via create_team.php RPC because the
1211 1211
         BOINC team module is not enabled.',
1212
-      array(),
1213
-      WATCHDOG_ERROR
1212
+        array(),
1213
+        WATCHDOG_ERROR
1214 1214
     );
1215
-  }
1216
-  print save_configuration($xml);
1215
+    }
1216
+    print save_configuration($xml);
1217 1217
 }
1218 1218
 
1219 1219
 /**
@@ -1221,9 +1221,9 @@  discard block
 block discarded – undo
1221 1221
  * Get info on a team by ID or a list of teams that match a given name
1222 1222
  */
1223 1223
 function boinccore_team_lookup() {
1224
-  // Remove q from the GET request or BOINC will panic
1225
-  unset($_GET['q']);
1226
-  include_boinc('user/team_lookup.php');
1224
+    // Remove q from the GET request or BOINC will panic
1225
+    unset($_GET['q']);
1226
+    include_boinc('user/team_lookup.php');
1227 1227
 }
1228 1228
 
1229 1229
 /**
@@ -1231,72 +1231,72 @@  discard block
 block discarded – undo
1231 1231
  * Get members of a given team
1232 1232
  */
1233 1233
 function boinccore_team_email_list() {
1234
-  // See if the account has an approved profile in Drupal
1235
-  $boincteam_id = !empty($_POST['teamid']) ? $_POST['teamid'] : $_GET['teamid'];
1236
-  $credit_only = !empty($_POST['creditonly']) ? $_POST['creditonly'] : $_GET['creditonly'];
1237
-  $show_xml = !empty($_POST['xml']) ? $_POST['xml'] : $_GET['xml'];
1238
-  if (!$show_xml) {
1239
-      // creditonly does not affect non xml output in BOINC
1240
-      $credit_only = FALSE;
1241
-  }
1242
-  $xml = array();
1234
+    // See if the account has an approved profile in Drupal
1235
+    $boincteam_id = !empty($_POST['teamid']) ? $_POST['teamid'] : $_GET['teamid'];
1236
+    $credit_only = !empty($_POST['creditonly']) ? $_POST['creditonly'] : $_GET['creditonly'];
1237
+    $show_xml = !empty($_POST['xml']) ? $_POST['xml'] : $_GET['xml'];
1238
+    if (!$show_xml) {
1239
+        // creditonly does not affect non xml output in BOINC
1240
+        $credit_only = FALSE;
1241
+    }
1242
+    $xml = array();
1243 1243
 
1244
-  if ($boincteam_id && is_numeric($boincteam_id)) {
1244
+    if ($boincteam_id && is_numeric($boincteam_id)) {
1245 1245
     if ($credit_only) {
1246
-      db_set_active('boinc_rw');
1247
-      $result = db_query("
1246
+        db_set_active('boinc_rw');
1247
+        $result = db_query("
1248 1248
         SELECT
1249 1249
           u.id, u.name, u.cross_project_id, u.email_addr, u.total_credit, u.expavg_credit, u.expavg_time
1250 1250
         FROM {user} u
1251 1251
         WHERE u.teamid = %d and u.total_credit > 0",
1252 1252
         $boincteam_id
1253
-      );
1254
-      db_set_active('default');
1253
+        );
1254
+        db_set_active('default');
1255 1255
 
1256
-      $xml = array('users' => array());
1257
-      while ($member = db_fetch_object($result)) {
1256
+        $xml = array('users' => array());
1257
+        while ($member = db_fetch_object($result)) {
1258 1258
         $team_member = array(
1259
-          'id' => $member->id,
1260
-          'cpid' => md5($member->cross_project_id.$member->email_addr),
1261
-          'name' => htmlspecialchars($member->name),
1262
-          'total_credit' => round($member->total_credit),
1263
-          'expavg_credit' => round($member->expavg_credit),
1264
-          'expavg_time' => round($member->expavg_time),
1259
+            'id' => $member->id,
1260
+            'cpid' => md5($member->cross_project_id.$member->email_addr),
1261
+            'name' => htmlspecialchars($member->name),
1262
+            'total_credit' => round($member->total_credit),
1263
+            'expavg_credit' => round($member->expavg_credit),
1264
+            'expavg_time' => round($member->expavg_time),
1265 1265
         );
1266 1266
         $xml['users']['user'][] = $team_member;
1267
-      }
1267
+        }
1268 1268
     }
1269 1269
     else {
1270
-      // Query BOINC database user table
1271
-      db_set_active('boinc_rw');
1272
-      $result = db_query("
1270
+        // Query BOINC database user table
1271
+        db_set_active('boinc_rw');
1272
+        $result = db_query("
1273 1273
         SELECT
1274 1274
           u.id, u.name, u.cross_project_id, u.create_time, u.email_addr, u.total_credit, u.expavg_credit, u.expavg_time
1275 1275
         FROM {user} u
1276 1276
         WHERE u.teamid = %d ORDER BY u.email_addr ASC",
1277 1277
         $boincteam_id
1278
-      );
1279
-      db_set_active('default');
1278
+        );
1279
+        db_set_active('default');
1280 1280
 
1281
-      // Extract information from BOINC database for team members.
1282
-      $team_members = array();
1283
-      while ($member = db_fetch_object($result)) {
1281
+        // Extract information from BOINC database for team members.
1282
+        $team_members = array();
1283
+        while ($member = db_fetch_object($result)) {
1284 1284
         $team_members[$member->id] = array(
1285
-          'id' => $member->id,
1286
-          'cpid' => md5($member->cross_project_id.$member->email_addr),
1287
-          'create_time' => $member->create_time,
1288
-          'name' => htmlspecialchars($member->name),
1289
-          'country' => NULL,
1290
-          'total_credit' => round($member->total_credit),
1291
-          'expavg_credit' => round($member->expavg_credit),
1292
-          'expavg_time' => round($member->expavg_time),
1293
-          'url' => NULL,
1294
-          'has_profile' => 0,
1285
+            'id' => $member->id,
1286
+            'cpid' => md5($member->cross_project_id.$member->email_addr),
1287
+            'create_time' => $member->create_time,
1288
+            'name' => htmlspecialchars($member->name),
1289
+            'country' => NULL,
1290
+            'total_credit' => round($member->total_credit),
1291
+            'expavg_credit' => round($member->expavg_credit),
1292
+            'expavg_time' => round($member->expavg_time),
1293
+            'url' => NULL,
1294
+            'has_profile' => 0,
1295 1295
         );
1296
-      }
1296
+        }
1297 1297
 
1298
-      // Query Drupal database, multiple tables
1299
-      $sql1 = "
1298
+        // Query Drupal database, multiple tables
1299
+        $sql1 = "
1300 1300
          SELECT
1301 1301
            bu.boinc_id, du.uid, du.name, n.nid, n.type, n.field_country_value, n.field_url_value
1302 1302
          FROM {boincuser} AS bu
@@ -1307,28 +1307,28 @@  discard block
 block discarded – undo
1307 1307
            INNER JOIN {content_type_profile} AS p ON node.nid=p.nid
1308 1308
            WHERE node.type='profile' ) n ON du.uid=n.uid
1309 1309
          WHERE bu.boinc_id IN (%s)";
1310
-      $member_id_list = implode(',', array_keys($team_members));
1311
-      if (!$member_id_list) {
1310
+        $member_id_list = implode(',', array_keys($team_members));
1311
+        if (!$member_id_list) {
1312 1312
         $member_id_list = '-1';
1313
-      }
1314
-      $result = db_query($sql1, $member_id_list);
1315
-      while ($member = db_fetch_object($result)) {
1313
+        }
1314
+        $result = db_query($sql1, $member_id_list);
1315
+        while ($member = db_fetch_object($result)) {
1316 1316
         $team_members[$member->boinc_id]['country'] = $member->field_country_value;
1317 1317
         $team_members[$member->boinc_id]['url'] = $member->field_url_value;
1318 1318
         $team_members[$member->boinc_id]['has_profile'] = isset($member->nid) ? 1:  0;
1319 1319
         $xml['users']['user'][] = $team_members[$member->boinc_id];
1320
-      }
1320
+        }
1321 1321
     } // end if credit_only
1322
-  }
1323
-  else {
1322
+    }
1323
+    else {
1324 1324
     $xml = array(
1325
-      'error' => array(
1325
+        'error' => array(
1326 1326
         'error_num' => -136,
1327 1327
         'error_msg' => 'Not found',
1328
-      ),
1328
+        ),
1329 1329
     );
1330
-  } // end if boincteam_id
1331
-  print xml_to_text(array_to_xml($xml), TRUE, TRUE);
1330
+    } // end if boincteam_id
1331
+    print xml_to_text(array_to_xml($xml), TRUE, TRUE);
1332 1332
 }
1333 1333
 
1334 1334
 /**
@@ -1336,114 +1336,114 @@  discard block
 block discarded – undo
1336 1336
  * Edit the forum preferences for a given user
1337 1337
  */
1338 1338
 function boinccore_edit_forum_preferences() {
1339
-  // Do not pass through to BOINC in this case as BOINC forums are no longer
1340
-  // relevant -- use Drupal data only
1339
+    // Do not pass through to BOINC in this case as BOINC forums are no longer
1340
+    // relevant -- use Drupal data only
1341 1341
 
1342
-  $account_key = !empty($_POST['account_key']) ? $_POST['account_key'] : (!empty($_GET['account_key']) ? $_GET['account_key'] : NULL);
1342
+    $account_key = !empty($_POST['account_key']) ? $_POST['account_key'] : (!empty($_GET['account_key']) ? $_GET['account_key'] : NULL);
1343 1343
 
1344
-  require_boinc('boinc_db');
1345
-  $boincuser = BoincUser::lookup_auth($account_key);
1346
-  if ($boincuser) {
1344
+    require_boinc('boinc_db');
1345
+    $boincuser = BoincUser::lookup_auth($account_key);
1346
+    if ($boincuser) {
1347 1347
     $uid = boincuser_lookup_uid($boincuser->id);
1348 1348
     if ($uid AND $account = user_load($uid)) {
1349
-      // Currently supported preferences
1350
-      $avatar_url = isset($_POST['avatar_url']) ? $_POST['avatar_url'] : (isset($_GET['avatar_url']) ? $_GET['avatar_url'] : NULL);
1351
-      $hide_signatures = isset($_POST['forum_hide_signatures']) ? $_POST['forum_hide_signatures'] : (isset($_GET['forum_hide_signatures']) ? $_GET['forum_hide_signatures'] : NULL);
1352
-      $signature = isset($_POST['signature']) ? $_POST['signature'] : (isset($_GET['signature']) ? $_GET['signature'] : NULL);
1353
-      $post_order = isset($_POST['thread_sort']) ? $_POST['thread_sort'] : (isset($_GET['thread_sort']) ? $_GET['thread_sort'] : NULL);
1354
-      // Update preferences as needed
1355
-      if ($avatar_url) {
1349
+        // Currently supported preferences
1350
+        $avatar_url = isset($_POST['avatar_url']) ? $_POST['avatar_url'] : (isset($_GET['avatar_url']) ? $_GET['avatar_url'] : NULL);
1351
+        $hide_signatures = isset($_POST['forum_hide_signatures']) ? $_POST['forum_hide_signatures'] : (isset($_GET['forum_hide_signatures']) ? $_GET['forum_hide_signatures'] : NULL);
1352
+        $signature = isset($_POST['signature']) ? $_POST['signature'] : (isset($_GET['signature']) ? $_GET['signature'] : NULL);
1353
+        $post_order = isset($_POST['thread_sort']) ? $_POST['thread_sort'] : (isset($_GET['thread_sort']) ? $_GET['thread_sort'] : NULL);
1354
+        // Update preferences as needed
1355
+        if ($avatar_url) {
1356 1356
         $avatar_image = file_get_contents($avatar_url);
1357 1357
         if ($avatar_image) {
1358
-          $image_dir = 'profiles';
1359
-          $image_path = "{$image_dir}/{$boincuser->id}_avatar.jpg";
1360
-          $file = file_save_data($avatar_image, $image_path, FILE_EXISTS_REPLACE);
1361
-          if ($file) {
1358
+            $image_dir = 'profiles';
1359
+            $image_path = "{$image_dir}/{$boincuser->id}_avatar.jpg";
1360
+            $file = file_save_data($avatar_image, $image_path, FILE_EXISTS_REPLACE);
1361
+            if ($file) {
1362 1362
             $profile = new stdClass();
1363 1363
             $profile->type = 'profile';
1364 1364
             $profile->language = NULL;
1365 1365
             if ($profile_nid = content_profile_profile_exists($profile, $account->uid)) {
1366
-              $profile_node = node_load($profile_nid);
1367
-              if ($profile_node) {
1366
+                $profile_node = node_load($profile_nid);
1367
+                if ($profile_node) {
1368 1368
                 $avatar_image = get_cck_image_object(file_directory_path() . '/' . $image_path, 'field_image', 'profile', TRUE);
1369 1369
                 if ($avatar_image) {
1370
-                  $profile_node->field_image[0] = $avatar_image;
1371
-                  node_save($profile_node);
1370
+                    $profile_node->field_image[0] = $avatar_image;
1371
+                    node_save($profile_node);
1372 1372
                 }
1373 1373
                 else {
1374
-                  $error = 'Error saving avatar to profile';
1374
+                    $error = 'Error saving avatar to profile';
1375 1375
                 }
1376
-              }
1377
-              else {
1376
+                }
1377
+                else {
1378 1378
                 $error = 'Unable to load user profile';
1379
-              }
1379
+                }
1380 1380
             }
1381 1381
             else {
1382
-              $error = 'User has no profile, so avatar could not be added';
1382
+                $error = 'User has no profile, so avatar could not be added';
1383
+            }
1383 1384
             }
1384
-          }
1385
-          else {
1385
+            else {
1386 1386
             $error = 'Unable to save remote image';
1387
-          }
1387
+            }
1388 1388
         }
1389 1389
         else {
1390
-          $error = 'Could not find avatar image at URL';
1390
+            $error = 'Could not find avatar image at URL';
1391 1391
         }
1392
-      }
1393
-      if ($hide_signatures !== NULL) {
1392
+        }
1393
+        if ($hide_signatures !== NULL) {
1394 1394
         user_save($account, array('hide_signatures' => ($hide_signatures ? 1 : 0)));
1395
-      }
1396
-      if ($signature !== NULL) {
1395
+        }
1396
+        if ($signature !== NULL) {
1397 1397
         $signature = check_markup($signature);
1398 1398
         user_save($account, array('signature' => $signature));
1399
-      }
1400
-      if ($post_order) {
1399
+        }
1400
+        if ($post_order) {
1401 1401
         require_boinc('forum');
1402 1402
         $post_order_map = array(
1403
-          CREATE_TIME_OLD => 2,
1404
-          CREATE_TIME_NEW => 1,
1403
+            CREATE_TIME_OLD => 2,
1404
+            CREATE_TIME_NEW => 1,
1405 1405
         );
1406 1406
         $drupal_post_order = isset($post_order_map[$post_order]) ? $post_order_map[$post_order] : 2;
1407 1407
         user_save($account, array('sort' => $drupal_post_order));
1408
-      }
1409
-      if (!$error) {
1408
+        }
1409
+        if (!$error) {
1410 1410
         // Success
1411 1411
         $xml = array(
1412
-          'edit_forum_preferences' => array(
1412
+            'edit_forum_preferences' => array(
1413 1413
             'success' => NULL,
1414
-          ),
1414
+            ),
1415 1415
         );
1416
-      }
1417
-      else {
1416
+        }
1417
+        else {
1418 1418
         // Failure
1419 1419
         $xml = array(
1420
-          'error' => array(
1420
+            'error' => array(
1421 1421
             'error_num' => -1,
1422 1422
             'error_msg' => $error,
1423
-          ),
1423
+            ),
1424 1424
         );
1425
-      }
1425
+        }
1426 1426
     }
1427 1427
     else {
1428
-      // Drupal user not found
1429
-      $xml = array(
1428
+        // Drupal user not found
1429
+        $xml = array(
1430 1430
         'error' => array(
1431
-          'error_num' => -1,
1432
-          'error_msg' => 'Unknown error',
1431
+            'error_num' => -1,
1432
+            'error_msg' => 'Unknown error',
1433 1433
         ),
1434
-      );
1434
+        );
1435 1435
     }
1436
-  }
1437
-  else {
1436
+    }
1437
+    else {
1438 1438
     // BOINC user not found
1439 1439
     $xml = array(
1440
-      'error' => array(
1440
+        'error' => array(
1441 1441
         'error_num' => -136,
1442 1442
         'error_msg' => 'Not found',
1443
-      ),
1443
+        ),
1444 1444
     );
1445
-  }
1446
-  print xml_to_text(array_to_xml($xml), TRUE, TRUE);
1445
+    }
1446
+    print xml_to_text(array_to_xml($xml), TRUE, TRUE);
1447 1447
 }
1448 1448
 
1449 1449
 /**
@@ -1451,14 +1451,14 @@  discard block
 block discarded – undo
1451 1451
  * Get the last comments OR threads made by a given user
1452 1452
  */
1453 1453
 function boinccore_forum_get_data() {
1454
-  // Do not pass through to BOINC in this case as BOINC forums are no longer
1455
-  // relevant -- use Drupal data only
1454
+    // Do not pass through to BOINC in this case as BOINC forums are no longer
1455
+    // relevant -- use Drupal data only
1456 1456
 
1457
-  $xml = array();
1458
-  $boinc_id = !empty($_POST['userid']) ? $_POST['userid'] : (!empty($_GET['userid']) ? $_GET['userid'] : NULL);
1459
-  $uid = boincuser_lookup_uid($boinc_id);
1457
+    $xml = array();
1458
+    $boinc_id = !empty($_POST['userid']) ? $_POST['userid'] : (!empty($_GET['userid']) ? $_GET['userid'] : NULL);
1459
+    $uid = boincuser_lookup_uid($boinc_id);
1460 1460
 
1461
-  if ($uid) {
1461
+    if ($uid) {
1462 1462
     $method = !empty($_POST['method']) ? $_POST['method'] : (!empty($_GET['method']) ? $_GET['method'] : NULL);
1463 1463
     $count = !empty($_POST['count']) ? $_POST['count'] : (!empty($_GET['count']) ? $_GET['count'] : NULL);
1464 1464
     if (!$count) $count = 10;
@@ -1466,7 +1466,7 @@  discard block
 block discarded – undo
1466 1466
     switch ($method) {
1467 1467
     case 'user_posts':
1468 1468
       $content_length = !empty($_POST['content_length']) ? $_POST['content_length'] : (!empty($_GET['content_length']) ? $_GET['content_length'] : NULL);
1469
-      $posts = db_query("
1469
+        $posts = db_query("
1470 1470
         SELECT
1471 1471
           c.cid,
1472 1472
           n.nid,
@@ -1480,26 +1480,26 @@  discard block
 block discarded – undo
1480 1480
         ORDER BY timestamp DESC
1481 1481
         LIMIT %d",
1482 1482
         $uid, (int) $count
1483
-      );
1484
-      $xml = array(
1483
+        );
1484
+        $xml = array(
1485 1485
         'rpc_response' => array(
1486
-          'count' => 0,
1487
-          'posts' => array(),
1486
+            'count' => 0,
1487
+            'posts' => array(),
1488 1488
         ),
1489
-      );
1490
-      $post_count = 0;
1491
-      while ($post = db_fetch_object($posts)) {
1489
+        );
1490
+        $post_count = 0;
1491
+        while ($post = db_fetch_object($posts)) {
1492 1492
         $xml['rpc_response']['posts']['post'][] = array(
1493
-          'id' => $post->cid,
1494
-          'threadid' => $post->nid,
1495
-          'threadtitle' => $post->title,
1496
-          'timestamp' => $post->timestamp,
1497
-          'content' => ($content_length ? substr($post->comment, 0, $content_length) : $post->comment),
1493
+            'id' => $post->cid,
1494
+            'threadid' => $post->nid,
1495
+            'threadtitle' => $post->title,
1496
+            'timestamp' => $post->timestamp,
1497
+            'content' => ($content_length ? substr($post->comment, 0, $content_length) : $post->comment),
1498 1498
         );
1499 1499
         $post_count++;
1500
-      }
1501
-      $xml['rpc_response']['count'] = $post_count;
1502
-      break;
1500
+        }
1501
+        $xml['rpc_response']['count'] = $post_count;
1502
+        break;
1503 1503
 
1504 1504
     case 'user_threads':
1505 1505
       $threads = db_query("
@@ -1523,45 +1523,45 @@  discard block
 block discarded – undo
1523 1523
         ORDER BY changed DESC
1524 1524
         LIMIT %d",
1525 1525
         $uid, (int) $count
1526
-      );
1527
-      $xml = array(
1526
+        );
1527
+        $xml = array(
1528 1528
         'rpc_response' => array(
1529
-          'count' => 0,
1530
-          'threads' => array(),
1529
+            'count' => 0,
1530
+            'threads' => array(),
1531 1531
         ),
1532
-      );
1533
-      $thread_count = 0;
1534
-      while ($thread = db_fetch_object($threads)) {
1532
+        );
1533
+        $thread_count = 0;
1534
+        while ($thread = db_fetch_object($threads)) {
1535 1535
         $xml['rpc_response']['threads']['thread'][] = array(
1536
-          'id' => $thread->nid,
1537
-          'forumid' => $thread->tid,
1538
-          'replies' => $thread->replies,
1539
-          'views' => $thread->views,
1540
-          'timestamp' => $thread->changed,
1541
-          'title' => $thread->title,
1536
+            'id' => $thread->nid,
1537
+            'forumid' => $thread->tid,
1538
+            'replies' => $thread->replies,
1539
+            'views' => $thread->views,
1540
+            'timestamp' => $thread->changed,
1541
+            'title' => $thread->title,
1542 1542
         );
1543 1543
         $thread_count++;
1544
-      }
1545
-      $xml['rpc_response']['count'] = $thread_count;
1546
-      break;
1544
+        }
1545
+        $xml['rpc_response']['count'] = $thread_count;
1546
+        break;
1547 1547
     default:
1548 1548
       $xml = array(
1549 1549
         'error' => array(
1550
-          'error_num' => -1,
1551
-          'error_msg' => 'Unknown error',
1550
+            'error_num' => -1,
1551
+            'error_msg' => 'Unknown error',
1552 1552
         ),
1553
-      );
1553
+        );
1554 1554
     }
1555
-  }
1556
-  else {
1555
+    }
1556
+    else {
1557 1557
     $xml = array(
1558
-      'error' => array(
1558
+        'error' => array(
1559 1559
         'error_num' => -136,
1560 1560
         'error_msg' => 'Not found',
1561
-      ),
1561
+        ),
1562 1562
     );
1563
-  }
1564
-  print xml_to_text(array_to_xml($xml), TRUE, TRUE);
1563
+    }
1564
+    print xml_to_text(array_to_xml($xml), TRUE, TRUE);
1565 1565
 }
1566 1566
 
1567 1567
 /**
@@ -1569,9 +1569,9 @@  discard block
 block discarded – undo
1569 1569
  * Get information on applications in the system
1570 1570
  */
1571 1571
 function boinccore_apps() {
1572
-  // Remove q from the GET request or BOINC will panic
1573
-  unset($_GET['q']);
1574
-  include_boinc('user/apps.php');
1572
+    // Remove q from the GET request or BOINC will panic
1573
+    unset($_GET['q']);
1574
+    include_boinc('user/apps.php');
1575 1575
 }
1576 1576
 
1577 1577
 /**
@@ -1581,147 +1581,147 @@  discard block
 block discarded – undo
1581 1581
  * controller function, which can compute the page based on the user's settings
1582 1582
  */
1583 1583
 function boinccore_url_pagination_handler($type, $object_id = NULL) {
1584
-  global $user;
1585
-  $path = NULL;
1586
-  $params = array();
1587
-  switch ($type) {
1588
-  case 'boinc-forum':
1584
+    global $user;
1585
+    $path = NULL;
1586
+    $params = array();
1587
+    switch ($type) {
1588
+    case 'boinc-forum':
1589 1589
     // Redirect requests to a BOINC forum to the Drupal forum
1590 1590
     $forum_id = db_result(db_query('
1591 1591
       SELECT tid
1592 1592
       FROM {boincimport_temp_forum}
1593 1593
       WHERE forum_id = %d',
1594
-      $object_id
1594
+        $object_id
1595 1595
     ));
1596 1596
     if ($forum_id) {
1597
-      drupal_goto("community/forum/{$forum_id}");
1597
+        drupal_goto("community/forum/{$forum_id}");
1598 1598
     }
1599 1599
     break;
1600
-  case 'boinc-forum-index':
1600
+    case 'boinc-forum-index':
1601 1601
     // Redirect requests to the top level BOINC forum to Drupal forums
1602 1602
     drupal_goto("community/forum");
1603 1603
     break;
1604
-  case 'boinc-forum-post':
1604
+    case 'boinc-forum-post':
1605 1605
     // Redirect requests to a BOINC forum post to the Drupal comment
1606 1606
     $cid = db_result(db_query('
1607 1607
       SELECT cid
1608 1608
       FROM {boincimport_temp_post}
1609 1609
       WHERE post_id = %d',
1610
-      $object_id
1610
+        $object_id
1611 1611
     ));
1612 1612
     if ($cid) {
1613
-      drupal_goto("goto/comment/{$cid}");
1613
+        drupal_goto("goto/comment/{$cid}");
1614 1614
     }
1615 1615
     break;
1616
-  case 'boinc-forum-topic':
1616
+    case 'boinc-forum-topic':
1617 1617
     // Redirect requests to a BOINC forum topic to the Drupal node
1618 1618
     $nid = db_result(db_query('
1619 1619
       SELECT nid
1620 1620
       FROM {boincimport_temp_topic}
1621 1621
       WHERE topic_id = %d',
1622
-      $object_id
1622
+        $object_id
1623 1623
     ));
1624 1624
     if ($nid) {
1625
-      drupal_goto("node/{$nid}");
1625
+        drupal_goto("node/{$nid}");
1626 1626
     }
1627 1627
     break;
1628
-  case 'boinc-host':
1628
+    case 'boinc-host':
1629 1629
     // Redirect requests to BOINC host details to the host page in Drupal
1630 1630
     drupal_goto("host/{$object_id}");
1631 1631
     break;
1632
-  case 'boinc-hosts-user':
1632
+    case 'boinc-hosts-user':
1633 1633
     // Redirect requests to a BOINC user host list to the host list in Drupal
1634 1634
     $uid = boincuser_lookup_uid($object_id);
1635 1635
     if ($uid) {
1636
-      drupal_goto("account/{$uid}/computers");
1636
+        drupal_goto("account/{$uid}/computers");
1637 1637
     }
1638 1638
     break;
1639
-  case 'boinc-result':
1639
+    case 'boinc-result':
1640 1640
     // Redirect requests to BOINC task details to the task page in Drupal
1641 1641
     drupal_goto("task/{$object_id}");
1642
-  case 'boinc-results-host':
1642
+    case 'boinc-results-host':
1643 1643
     // Redirect requests to BOINC tasks by host to the host task page in Drupal
1644 1644
     drupal_goto("host/{$object_id}/tasks");
1645 1645
     break;
1646
-  case 'boinc-results-user':
1646
+    case 'boinc-results-user':
1647 1647
     // Redirect requests to a BOINC user's tasks to the Drupal account tasks
1648 1648
     drupal_goto("account/tasks");
1649 1649
     break;
1650
-  case 'boinc-user':
1650
+    case 'boinc-user':
1651 1651
     // Redirect requests to a BOINC user ID to the Drupal profile
1652 1652
     $uid = boincuser_lookup_uid($object_id);
1653 1653
     if ($uid) {
1654
-      drupal_goto("account/{$uid}");
1654
+        drupal_goto("account/{$uid}");
1655 1655
     }
1656 1656
     break;
1657
-  case 'boinc-workunit':
1657
+    case 'boinc-workunit':
1658 1658
     // Redirect requests to BOINC workunits to the workunit page in Drupal
1659 1659
     drupal_goto("workunit/{$object_id}");
1660 1660
     break;
1661
-  case 'comment':
1661
+    case 'comment':
1662 1662
     $object = _comment_load($object_id);
1663 1663
     if ($object) {
1664
-      $path = "node/{$object->nid}";
1665
-      // Get the sort order
1666
-      $gt_lt = '<';
1667
-      $comment_order = (isset($user->sort)) ? $user->sort : variable_get('comment_default_order_forum', 2);
1668
-      if ($comment_order == COMMENT_ORDER_NEWEST_FIRST) {
1664
+        $path = "node/{$object->nid}";
1665
+        // Get the sort order
1666
+        $gt_lt = '<';
1667
+        $comment_order = (isset($user->sort)) ? $user->sort : variable_get('comment_default_order_forum', 2);
1668
+        if ($comment_order == COMMENT_ORDER_NEWEST_FIRST) {
1669 1669
         $gt_lt = '>';
1670
-      }
1671
-      // don't filter hidden comments for admins/mods
1672
-      $include_hidden = '';
1673
-      if (in_array('administrator', array_values($user->roles)) ||
1670
+        }
1671
+        // don't filter hidden comments for admins/mods
1672
+        $include_hidden = '';
1673
+        if (in_array('administrator', array_values($user->roles)) ||
1674 1674
           in_array('moderator', array_values($user->roles))) {
1675 1675
         $include_hidden = 'OR status = 1';
1676
-      }
1677
-      // See how many comments there are before (or after) this comment...
1678
-      $comment_offset = db_result(db_query('
1676
+        }
1677
+        // See how many comments there are before (or after) this comment...
1678
+        $comment_offset = db_result(db_query('
1679 1679
         SELECT COUNT(*) FROM {comments}
1680 1680
         WHERE nid = %d AND (status = 0 %s) AND timestamp %s %d',
1681 1681
         $object->nid, $include_hidden, $gt_lt, $object->timestamp));
1682
-      if ($comment_offset) {
1682
+        if ($comment_offset) {
1683 1683
         // Get the number of comments per page
1684 1684
         if ($user->comments_per_page) {
1685
-          $comments_per_page = $user->comments_per_page;
1685
+            $comments_per_page = $user->comments_per_page;
1686 1686
         }
1687 1687
         else {
1688
-          $node = node_load($object->nid);
1689
-          $comments_per_page = variable_get(
1688
+            $node = node_load($object->nid);
1689
+            $comments_per_page = variable_get(
1690 1690
             "comment_default_per_page_{$node->type}", 50
1691
-          );
1691
+            );
1692 1692
         }
1693 1693
         // Determine which page to display in order to show the given comment
1694 1694
         $page = floor($comment_offset / $comments_per_page);
1695 1695
         if ($page) {
1696
-          $params = array('page' => $page);
1696
+            $params = array('page' => $page);
1697
+        }
1697 1698
         }
1698
-      }
1699 1699
     }
1700 1700
     if ($path) {
1701
-      drupal_goto($path, $params, "comment-{$object->cid}");
1701
+        drupal_goto($path, $params, "comment-{$object->cid}");
1702 1702
     }
1703 1703
     break;
1704
-  case 'friend-requests':
1704
+    case 'friend-requests':
1705 1705
     // Check for a login, then redirect to the user's friend requests page
1706 1706
     if ($user->uid) {
1707
-      drupal_goto("account/{$user->uid}/friends/pending");
1707
+        drupal_goto("account/{$user->uid}/friends/pending");
1708 1708
     }
1709 1709
     else {
1710
-      drupal_goto('user/login', array(
1710
+        drupal_goto('user/login', array(
1711 1711
         'destination' => 'goto/friend-requests'
1712
-      ));
1712
+        ));
1713 1713
     }
1714 1714
     break;
1715
-  default:
1715
+    default:
1716 1716
   }
1717
-  drupal_not_found();
1717
+    drupal_not_found();
1718 1718
 }
1719 1719
 
1720 1720
 /*
1721 1721
  * Fetch an array of all countries
1722 1722
  */
1723 1723
 function boinccore_get_country_list() {
1724
-  return array(
1724
+    return array(
1725 1725
     'None' => 'None',
1726 1726
     'International' => 'International',
1727 1727
     'Afghanistan' => 'Afghanistan',
@@ -1955,7 +1955,7 @@  discard block
 block discarded – undo
1955 1955
     'Yemen' => 'Yemen',
1956 1956
     'Zambia' => 'Zambia',
1957 1957
     'Zimbabwe' => 'Zimbabwe',
1958
-  );
1958
+    );
1959 1959
 }
1960 1960
 
1961 1961
 
@@ -1967,46 +1967,46 @@  discard block
 block discarded – undo
1967 1967
  * Action: Mark node for moderation
1968 1968
  */
1969 1969
 function boinccore_rules_action_mark_content_for_moderation($node) {
1970
-  $node->moderate = 1;
1971
-  return array('node' => $node);
1970
+    $node->moderate = 1;
1971
+    return array('node' => $node);
1972 1972
 }
1973 1973
 
1974 1974
 /**
1975 1975
  * Action: Send mail to moderators.
1976 1976
  */
1977 1977
 function boinccore_rules_action_mail_to_moderators($settings) {
1978
-  module_load_include('inc', 'rules', 'modules/system.rules');
1979
-  $mailing_list = variable_get('boinc_moderator_mailing_list', '');
1980
-  $force_individual_notifications = variable_get('boinc_moderator_force_individual_notifications', 0);
1978
+    module_load_include('inc', 'rules', 'modules/system.rules');
1979
+    $mailing_list = variable_get('boinc_moderator_mailing_list', '');
1980
+    $force_individual_notifications = variable_get('boinc_moderator_force_individual_notifications', 0);
1981 1981
 
1982
-  if (!$mailing_list OR $force_individual_notifications) {
1982
+    if (!$mailing_list OR $force_individual_notifications) {
1983 1983
     // Send individual emails to all moderators
1984 1984
     $roles = user_roles();
1985 1985
     $moderator_rid = array_search('moderator', $roles);
1986 1986
     if ($moderator_rid !== FALSE) {
1987
-      $settings['recipients'] = array($moderator_rid);
1988
-      rules_action_mail_to_users_of_role($settings);
1987
+        $settings['recipients'] = array($moderator_rid);
1988
+        rules_action_mail_to_users_of_role($settings);
1989 1989
     }
1990 1990
     else {
1991
-      watchdog(
1991
+        watchdog(
1992 1992
         'boinccore',
1993 1993
         'Unable to identify members of the moderator role to send moderator notifications!',
1994 1994
         array(),
1995 1995
         WATCHDOG_ERROR
1996
-      );
1996
+        );
1997 1997
     }
1998
-  }
1999
-  if ($mailing_list) {
1998
+    }
1999
+    if ($mailing_list) {
2000 2000
     $settings['to'] = $mailing_list;
2001 2001
     rules_action_mail($settings);
2002
-  }
2002
+    }
2003 2003
 }
2004 2004
 /**
2005 2005
  * Action "Send mail to moderators" configuration form
2006 2006
  */
2007 2007
 function boinccore_rules_action_mail_to_moderators_form($settings = array(), &$form) {
2008
-  // Select only non-anonymous user roles because anonymous users won't have emails.
2009
-  rules_action_mail_to_user_form($settings, $form);
2008
+    // Select only non-anonymous user roles because anonymous users won't have emails.
2009
+    rules_action_mail_to_user_form($settings, $form);
2010 2010
 }
2011 2011
 
2012 2012
 
@@ -2014,27 +2014,27 @@  discard block
 block discarded – undo
2014 2014
  * Action: Send mail to admins.
2015 2015
  */
2016 2016
 function boinccore_rules_action_mail_to_admins($settings) {
2017
-  module_load_include('inc', 'rules', 'modules/system.rules');
2018
-  $mailing_list = variable_get('boinc_admin_mailing_list', '');
2019
-  if (empty($mailing_list)) {
2017
+    module_load_include('inc', 'rules', 'modules/system.rules');
2018
+    $mailing_list = variable_get('boinc_admin_mailing_list', '');
2019
+    if (empty($mailing_list)) {
2020 2020
     $mailing_list = variable_get('site_mail', '');
2021 2021
     if (empty($mailing_list)) {
2022
-      watchdog('boinccore',
2022
+        watchdog('boinccore',
2023 2023
         'Attempting to email administrators, but there is no admin email list or site email to send to.', array(),
2024 2024
         WATCHDOG_ERROR
2025
-      );
2026
-      return FALSE;
2025
+        );
2026
+        return FALSE;
2027 2027
     }
2028
-  }
2029
-  $settings['to'] = $mailing_list;
2030
-  rules_action_mail($settings);
2028
+    }
2029
+    $settings['to'] = $mailing_list;
2030
+    rules_action_mail($settings);
2031 2031
 }
2032 2032
 
2033 2033
 /**
2034 2034
  * Action "Send mail to admins" configuration form
2035 2035
  */
2036 2036
 function boinccore_rules_action_mail_to_admins_form($settings = array(), &$form) {
2037
-  rules_action_mail_to_user_form($settings, $form);
2037
+    rules_action_mail_to_user_form($settings, $form);
2038 2038
 }
2039 2039
 
2040 2040
 /*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *
@@ -2045,33 +2045,33 @@  discard block
 block discarded – undo
2045 2045
  * BOINC wrapper for string translation
2046 2046
  */
2047 2047
 function bts($string, $args = array(), $langcode = NULL, $context = 'boinc: ', $update = TRUE) {
2048
-  if (function_exists('i18nstrings_ts')) {
2048
+    if (function_exists('i18nstrings_ts')) {
2049 2049
     $string = i18nstrings_ts($context, $string, $langcode, $update);
2050
-  }
2051
-  if (empty($args)) {
2050
+    }
2051
+    if (empty($args)) {
2052 2052
     return $string;
2053
-  }
2054
-  else {
2053
+    }
2054
+    else {
2055 2055
     // Transform arguments before inserting them.
2056 2056
     foreach ($args as $key => $value) {
2057
-      switch ($key [0]) {
2057
+        switch ($key [0]) {
2058 2058
         case '@':
2059 2059
           // Escaped only.
2060 2060
           $args [$key] = check_plain($value);
2061
-          break;
2061
+            break;
2062 2062
 
2063 2063
         case '%':
2064 2064
         default:
2065 2065
           // Escaped and placeholder.
2066 2066
           $args [$key] = theme('placeholder', $value);
2067
-          break;
2067
+            break;
2068 2068
 
2069 2069
         case '!':
2070 2070
           // Pass-through.
2071 2071
       }
2072 2072
     }
2073 2073
     return strtr($string, $args);
2074
-  }
2074
+    }
2075 2075
 }
2076 2076
 
2077 2077
 
@@ -2083,9 +2083,9 @@  discard block
 block discarded – undo
2083 2083
  * Overview of moderation queues
2084 2084
  */
2085 2085
 function boinccore_moderation_overview_panel() {
2086
-  $output = '<h2 class="pane-title">' . bts('Moderation', array(), NULL, 'boinc:moderate-profiles') . '</h2>';
2087
-  $output .= '<ul class="tab-list action-list">';
2088
-  if (module_exists('user_profiles')) {
2086
+    $output = '<h2 class="pane-title">' . bts('Moderation', array(), NULL, 'boinc:moderate-profiles') . '</h2>';
2087
+    $output .= '<ul class="tab-list action-list">';
2088
+    if (module_exists('user_profiles')) {
2089 2089
     $profile_count = db_result(db_query("
2090 2090
       SELECT COUNT(DISTINCT(n.nid))
2091 2091
       FROM {node} n
@@ -2097,9 +2097,9 @@  discard block
 block discarded – undo
2097 2097
     $output .= '<span class="item-count">' . $profile_count . '</span>';
2098 2098
     $output .= '</div>';
2099 2099
     $output .= '</li>';
2100
-  }
2101
-  $output .= '</ul>';
2102
-  return $output;
2100
+    }
2101
+    $output .= '</ul>';
2102
+    return $output;
2103 2103
 }
2104 2104
 
2105 2105
 
@@ -2109,10 +2109,10 @@  discard block
 block discarded – undo
2109 2109
  *
2110 2110
  */
2111 2111
 function  _boinccore_delete_expired_tokens() {
2112
-  require_boinc('boinc_db');
2112
+    require_boinc('boinc_db');
2113 2113
 
2114
-  $num_deleted = BoincToken::delete_expired();
2115
-  if ($num_deleted>0) {
2114
+    $num_deleted = BoincToken::delete_expired();
2115
+    if ($num_deleted>0) {
2116 2116
     watchdog('boinccore', "Deleted ${num_deleted} tokens from table token", WATCHDOG_NOTICE);
2117
-  }
2117
+    }
2118 2118
 }
Please login to merge, or discard this patch.
all/features/work_and_host_stats/work_and_host_stats.views_default.inc 1 patch
Indentation   +6324 added lines, -6324 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 work_and_host_stats_views_default_views() {
7
-  $views = array();
7
+    $views = array();
8 8
 
9
-  // Exported view: boinc_account_tasks_all
10
-  $view = new view;
11
-  $view->name = 'boinc_account_tasks_all';
12
-  $view->description = 'A list of all tasks for a user';
13
-  $view->tag = '';
14
-  $view->base_table = 'result';
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_account_tasks_all
10
+    $view = new view;
11
+    $view->name = 'boinc_account_tasks_all';
12
+    $view->description = 'A list of all tasks for a user';
13
+    $view->tag = '';
14
+    $view->base_table = 'result';
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
     'name' => array(
21
-      'label' => 'Name',
22
-      'alter' => array(
21
+        'label' => 'Name',
22
+        'alter' => array(
23 23
         'alter_text' => 0,
24 24
         'text' => '',
25 25
         'make_link' => 0,
@@ -38,20 +38,20 @@  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
-      'exclude' => 1,
47
-      'id' => 'name',
48
-      'table' => 'result',
49
-      'field' => 'name',
50
-      'relationship' => 'none',
41
+        ),
42
+        'empty' => '',
43
+        'hide_empty' => 0,
44
+        'empty_zero' => 0,
45
+        'hide_alter_empty' => 1,
46
+        'exclude' => 1,
47
+        'id' => 'name',
48
+        'table' => 'result',
49
+        'field' => 'name',
50
+        'relationship' => 'none',
51 51
     ),
52 52
     'id' => array(
53
-      'label' => 'Task ID',
54
-      'alter' => array(
53
+        'label' => 'Task ID',
54
+        'alter' => array(
55 55
         'alter_text' => 0,
56 56
         'text' => '',
57 57
         'make_link' => 0,
@@ -70,29 +70,29 @@  discard block
 block discarded – undo
70 70
         'ellipsis' => 1,
71 71
         'html' => 0,
72 72
         'strip_tags' => 0,
73
-      ),
74
-      'empty' => '',
75
-      'hide_empty' => 0,
76
-      'empty_zero' => 0,
77
-      'hide_alter_empty' => 1,
78
-      'set_precision' => FALSE,
79
-      'precision' => 0,
80
-      'decimal' => '.',
81
-      'separator' => '',
82
-      'format_plural' => 0,
83
-      'format_plural_singular' => '1',
84
-      'format_plural_plural' => '@count',
85
-      'prefix' => '',
86
-      'suffix' => '',
87
-      'exclude' => 0,
88
-      'id' => 'id',
89
-      'table' => 'result',
90
-      'field' => 'id',
91
-      'relationship' => 'none',
73
+        ),
74
+        'empty' => '',
75
+        'hide_empty' => 0,
76
+        'empty_zero' => 0,
77
+        'hide_alter_empty' => 1,
78
+        'set_precision' => FALSE,
79
+        'precision' => 0,
80
+        'decimal' => '.',
81
+        'separator' => '',
82
+        'format_plural' => 0,
83
+        'format_plural_singular' => '1',
84
+        'format_plural_plural' => '@count',
85
+        'prefix' => '',
86
+        'suffix' => '',
87
+        'exclude' => 0,
88
+        'id' => 'id',
89
+        'table' => 'result',
90
+        'field' => 'id',
91
+        'relationship' => 'none',
92 92
     ),
93 93
     'workunitid' => array(
94
-      'label' => 'Workunit ID',
95
-      'alter' => array(
94
+        'label' => 'Workunit ID',
95
+        'alter' => array(
96 96
         'alter_text' => 0,
97 97
         'text' => '',
98 98
         'make_link' => 1,
@@ -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' => FALSE,
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' => 'workunitid',
130
-      'table' => 'result',
131
-      'field' => 'workunitid',
132
-      'relationship' => 'none',
114
+        ),
115
+        'empty' => '',
116
+        'hide_empty' => 0,
117
+        'empty_zero' => 0,
118
+        'hide_alter_empty' => 1,
119
+        'set_precision' => FALSE,
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' => 'workunitid',
130
+        'table' => 'result',
131
+        'field' => 'workunitid',
132
+        'relationship' => 'none',
133 133
     ),
134 134
     'hostid' => array(
135
-      'label' => 'Computer',
136
-      'alter' => array(
135
+        'label' => 'Computer',
136
+        'alter' => array(
137 137
         'alter_text' => 0,
138 138
         'text' => '',
139 139
         'make_link' => 1,
@@ -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' => FALSE,
161
-      'precision' => 0,
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' => 'hostid',
171
-      'table' => 'result',
172
-      'field' => 'hostid',
173
-      'relationship' => 'none',
155
+        ),
156
+        'empty' => '',
157
+        'hide_empty' => 0,
158
+        'empty_zero' => 0,
159
+        'hide_alter_empty' => 1,
160
+        'set_precision' => FALSE,
161
+        'precision' => 0,
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' => 'hostid',
171
+        'table' => 'result',
172
+        'field' => 'hostid',
173
+        'relationship' => 'none',
174 174
     ),
175 175
     'sent_time' => array(
176
-      'label' => 'Sent',
177
-      'alter' => array(
176
+        'label' => 'Sent',
177
+        'alter' => array(
178 178
         'alter_text' => 0,
179 179
         'text' => '',
180 180
         'make_link' => 0,
@@ -191,21 +191,21 @@  discard block
 block discarded – undo
191 191
         'ellipsis' => 1,
192 192
         'html' => 0,
193 193
         'strip_tags' => 0,
194
-      ),
195
-      'empty' => '',
196
-      'hide_empty' => 0,
197
-      'empty_zero' => 0,
198
-      'date_format' => 'custom',
199
-      'custom_date_format' => 'j M Y G:i:s T',
200
-      'exclude' => 1,
201
-      'id' => 'sent_time',
202
-      'table' => 'result',
203
-      'field' => 'sent_time',
204
-      'relationship' => 'none',
194
+        ),
195
+        'empty' => '',
196
+        'hide_empty' => 0,
197
+        'empty_zero' => 0,
198
+        'date_format' => 'custom',
199
+        'custom_date_format' => 'j M Y G:i:s T',
200
+        'exclude' => 1,
201
+        'id' => 'sent_time',
202
+        'table' => 'result',
203
+        'field' => 'sent_time',
204
+        'relationship' => 'none',
205 205
     ),
206 206
     'received_time' => array(
207
-      'label' => 'Received time',
208
-      'alter' => array(
207
+        'label' => 'Received time',
208
+        'alter' => array(
209 209
         'alter_text' => 0,
210 210
         'text' => '',
211 211
         'make_link' => 0,
@@ -222,21 +222,21 @@  discard block
 block discarded – undo
222 222
         'ellipsis' => 1,
223 223
         'html' => 0,
224 224
         'strip_tags' => 0,
225
-      ),
226
-      'empty' => '',
227
-      'hide_empty' => 0,
228
-      'empty_zero' => 0,
229
-      'date_format' => 'small',
230
-      'custom_date_format' => '',
231
-      'exclude' => 1,
232
-      'id' => 'received_time',
233
-      'table' => 'result',
234
-      'field' => 'received_time',
235
-      'relationship' => 'none',
225
+        ),
226
+        'empty' => '',
227
+        'hide_empty' => 0,
228
+        'empty_zero' => 0,
229
+        'date_format' => 'small',
230
+        'custom_date_format' => '',
231
+        'exclude' => 1,
232
+        'id' => 'received_time',
233
+        'table' => 'result',
234
+        'field' => 'received_time',
235
+        'relationship' => 'none',
236 236
     ),
237 237
     'report_deadline' => array(
238
-      'label' => 'Report deadline',
239
-      'alter' => array(
238
+        'label' => 'Report deadline',
239
+        'alter' => array(
240 240
         'alter_text' => 0,
241 241
         'text' => '',
242 242
         'make_link' => 0,
@@ -253,21 +253,21 @@  discard block
 block discarded – undo
253 253
         'ellipsis' => 1,
254 254
         'html' => 0,
255 255
         'strip_tags' => 0,
256
-      ),
257
-      'empty' => '',
258
-      'hide_empty' => 0,
259
-      'empty_zero' => 0,
260
-      'date_format' => 'small',
261
-      'custom_date_format' => '',
262
-      'exclude' => 1,
263
-      'id' => 'report_deadline',
264
-      'table' => 'result',
265
-      'field' => 'report_deadline',
266
-      'relationship' => 'none',
256
+        ),
257
+        'empty' => '',
258
+        'hide_empty' => 0,
259
+        'empty_zero' => 0,
260
+        'date_format' => 'small',
261
+        'custom_date_format' => '',
262
+        'exclude' => 1,
263
+        'id' => 'report_deadline',
264
+        'table' => 'result',
265
+        'field' => 'report_deadline',
266
+        'relationship' => 'none',
267 267
     ),
268 268
     'phpcode_3' => array(
269
-      'label' => 'Sent',
270
-      'alter' => array(
269
+        'label' => 'Sent',
270
+        'alter' => array(
271 271
         'alter_text' => 0,
272 272
         'text' => '',
273 273
         'make_link' => 0,
@@ -286,24 +286,24 @@  discard block
 block discarded – undo
286 286
         'ellipsis' => 1,
287 287
         'html' => 0,
288 288
         'strip_tags' => 0,
289
-      ),
290
-      'empty' => '',
291
-      'hide_empty' => 0,
292
-      'empty_zero' => 0,
293
-      'hide_alter_empty' => 1,
294
-      'value' => '<?php
289
+        ),
290
+        'empty' => '',
291
+        'hide_empty' => 0,
292
+        'empty_zero' => 0,
293
+        'hide_alter_empty' => 1,
294
+        'value' => '<?php
295 295
   require_boinc(\'util\');
296 296
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
297 297
 ?>',
298
-      'exclude' => 0,
299
-      'id' => 'phpcode_3',
300
-      'table' => 'customfield',
301
-      'field' => 'phpcode',
302
-      'relationship' => 'none',
298
+        'exclude' => 0,
299
+        'id' => 'phpcode_3',
300
+        'table' => 'customfield',
301
+        'field' => 'phpcode',
302
+        'relationship' => 'none',
303 303
     ),
304 304
     'phpcode' => array(
305
-      'label' => 'Time reported or deadline',
306
-      'alter' => array(
305
+        'label' => 'Time reported or deadline',
306
+        'alter' => array(
307 307
         'alter_text' => 0,
308 308
         'text' => '',
309 309
         'make_link' => 0,
@@ -322,24 +322,24 @@  discard block
 block discarded – undo
322 322
         'ellipsis' => 1,
323 323
         'html' => 0,
324 324
         'strip_tags' => 0,
325
-      ),
326
-      'empty' => '',
327
-      'hide_empty' => 0,
328
-      'empty_zero' => 0,
329
-      'hide_alter_empty' => 1,
330
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
331
-      'exclude' => 0,
332
-      'id' => 'phpcode',
333
-      'table' => 'customfield',
334
-      'field' => 'phpcode',
335
-      'override' => array(
325
+        ),
326
+        'empty' => '',
327
+        'hide_empty' => 0,
328
+        'empty_zero' => 0,
329
+        'hide_alter_empty' => 1,
330
+        'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
331
+        'exclude' => 0,
332
+        'id' => 'phpcode',
333
+        'table' => 'customfield',
334
+        'field' => 'phpcode',
335
+        'override' => array(
336 336
         'button' => 'Override',
337
-      ),
338
-      'relationship' => 'none',
337
+        ),
338
+        'relationship' => 'none',
339 339
     ),
340 340
     'server_state' => array(
341
-      'label' => 'Server state',
342
-      'alter' => array(
341
+        'label' => 'Server state',
342
+        'alter' => array(
343 343
         'alter_text' => 0,
344 344
         'text' => '',
345 345
         'make_link' => 0,
@@ -356,25 +356,25 @@  discard block
 block discarded – undo
356 356
         'ellipsis' => 1,
357 357
         'html' => 0,
358 358
         'strip_tags' => 0,
359
-      ),
360
-      'empty' => '',
361
-      'hide_empty' => 0,
362
-      'empty_zero' => 0,
363
-      'set_precision' => FALSE,
364
-      'precision' => 0,
365
-      'decimal' => '.',
366
-      'separator' => '',
367
-      'prefix' => '',
368
-      'suffix' => '',
369
-      'exclude' => 1,
370
-      'id' => 'server_state',
371
-      'table' => 'result',
372
-      'field' => 'server_state',
373
-      'relationship' => 'none',
359
+        ),
360
+        'empty' => '',
361
+        'hide_empty' => 0,
362
+        'empty_zero' => 0,
363
+        'set_precision' => FALSE,
364
+        'precision' => 0,
365
+        'decimal' => '.',
366
+        'separator' => '',
367
+        'prefix' => '',
368
+        'suffix' => '',
369
+        'exclude' => 1,
370
+        'id' => 'server_state',
371
+        'table' => 'result',
372
+        'field' => 'server_state',
373
+        'relationship' => 'none',
374 374
     ),
375 375
     'outcome' => array(
376
-      'label' => 'Outcome',
377
-      'alter' => array(
376
+        'label' => 'Outcome',
377
+        'alter' => array(
378 378
         'alter_text' => 0,
379 379
         'text' => '',
380 380
         'make_link' => 0,
@@ -391,25 +391,25 @@  discard block
 block discarded – undo
391 391
         'ellipsis' => 1,
392 392
         'html' => 0,
393 393
         'strip_tags' => 0,
394
-      ),
395
-      'empty' => '',
396
-      'hide_empty' => 0,
397
-      'empty_zero' => 0,
398
-      'set_precision' => FALSE,
399
-      'precision' => 0,
400
-      'decimal' => '.',
401
-      'separator' => '',
402
-      'prefix' => '',
403
-      'suffix' => '',
404
-      'exclude' => 1,
405
-      'id' => 'outcome',
406
-      'table' => 'result',
407
-      'field' => 'outcome',
408
-      'relationship' => 'none',
394
+        ),
395
+        'empty' => '',
396
+        'hide_empty' => 0,
397
+        'empty_zero' => 0,
398
+        'set_precision' => FALSE,
399
+        'precision' => 0,
400
+        'decimal' => '.',
401
+        'separator' => '',
402
+        'prefix' => '',
403
+        'suffix' => '',
404
+        'exclude' => 1,
405
+        'id' => 'outcome',
406
+        'table' => 'result',
407
+        'field' => 'outcome',
408
+        'relationship' => 'none',
409 409
     ),
410 410
     'client_state' => array(
411
-      'label' => 'Client state',
412
-      'alter' => array(
411
+        'label' => 'Client state',
412
+        'alter' => array(
413 413
         'alter_text' => 0,
414 414
         'text' => '',
415 415
         'make_link' => 0,
@@ -426,25 +426,25 @@  discard block
 block discarded – undo
426 426
         'ellipsis' => 1,
427 427
         'html' => 0,
428 428
         'strip_tags' => 0,
429
-      ),
430
-      'empty' => '',
431
-      'hide_empty' => 0,
432
-      'empty_zero' => 0,
433
-      'set_precision' => FALSE,
434
-      'precision' => 0,
435
-      'decimal' => '.',
436
-      'separator' => '',
437
-      'prefix' => '',
438
-      'suffix' => '',
439
-      'exclude' => 1,
440
-      'id' => 'client_state',
441
-      'table' => 'result',
442
-      'field' => 'client_state',
443
-      'relationship' => 'none',
429
+        ),
430
+        'empty' => '',
431
+        'hide_empty' => 0,
432
+        'empty_zero' => 0,
433
+        'set_precision' => FALSE,
434
+        'precision' => 0,
435
+        'decimal' => '.',
436
+        'separator' => '',
437
+        'prefix' => '',
438
+        'suffix' => '',
439
+        'exclude' => 1,
440
+        'id' => 'client_state',
441
+        'table' => 'result',
442
+        'field' => 'client_state',
443
+        'relationship' => 'none',
444 444
     ),
445 445
     'validate_state' => array(
446
-      'label' => 'Validation state',
447
-      'alter' => array(
446
+        'label' => 'Validation state',
447
+        'alter' => array(
448 448
         'alter_text' => 0,
449 449
         'text' => '',
450 450
         'make_link' => 0,
@@ -461,25 +461,25 @@  discard block
 block discarded – undo
461 461
         'ellipsis' => 1,
462 462
         'html' => 0,
463 463
         'strip_tags' => 0,
464
-      ),
465
-      'empty' => '',
466
-      'hide_empty' => 0,
467
-      'empty_zero' => 0,
468
-      'set_precision' => FALSE,
469
-      'precision' => 0,
470
-      'decimal' => '.',
471
-      'separator' => '',
472
-      'prefix' => '',
473
-      'suffix' => '',
474
-      'exclude' => 1,
475
-      'id' => 'validate_state',
476
-      'table' => 'result',
477
-      'field' => 'validate_state',
478
-      'relationship' => 'none',
464
+        ),
465
+        'empty' => '',
466
+        'hide_empty' => 0,
467
+        'empty_zero' => 0,
468
+        'set_precision' => FALSE,
469
+        'precision' => 0,
470
+        'decimal' => '.',
471
+        'separator' => '',
472
+        'prefix' => '',
473
+        'suffix' => '',
474
+        'exclude' => 1,
475
+        'id' => 'validate_state',
476
+        'table' => 'result',
477
+        'field' => 'validate_state',
478
+        'relationship' => 'none',
479 479
     ),
480 480
     'exit_status' => array(
481
-      'label' => 'Exit status',
482
-      'alter' => array(
481
+        'label' => 'Exit status',
482
+        'alter' => array(
483 483
         'alter_text' => 0,
484 484
         'text' => '',
485 485
         'make_link' => 0,
@@ -496,25 +496,25 @@  discard block
 block discarded – undo
496 496
         'ellipsis' => 1,
497 497
         'html' => 0,
498 498
         'strip_tags' => 0,
499
-      ),
500
-      'empty' => '',
501
-      'hide_empty' => 0,
502
-      'empty_zero' => 0,
503
-      'set_precision' => FALSE,
504
-      'precision' => 0,
505
-      'decimal' => '.',
506
-      'separator' => '',
507
-      'prefix' => '',
508
-      'suffix' => '',
509
-      'exclude' => 1,
510
-      'id' => 'exit_status',
511
-      'table' => 'result',
512
-      'field' => 'exit_status',
513
-      'relationship' => 'none',
499
+        ),
500
+        'empty' => '',
501
+        'hide_empty' => 0,
502
+        'empty_zero' => 0,
503
+        'set_precision' => FALSE,
504
+        'precision' => 0,
505
+        'decimal' => '.',
506
+        'separator' => '',
507
+        'prefix' => '',
508
+        'suffix' => '',
509
+        'exclude' => 1,
510
+        'id' => 'exit_status',
511
+        'table' => 'result',
512
+        'field' => 'exit_status',
513
+        'relationship' => 'none',
514 514
     ),
515 515
     'phpcode_1' => array(
516
-      'label' => 'Status',
517
-      'alter' => array(
516
+        'label' => 'Status',
517
+        'alter' => array(
518 518
         'alter_text' => 0,
519 519
         'text' => '',
520 520
         'make_link' => 0,
@@ -531,11 +531,11 @@  discard block
 block discarded – undo
531 531
         'ellipsis' => 1,
532 532
         'html' => 0,
533 533
         'strip_tags' => 0,
534
-      ),
535
-      'empty' => '',
536
-      'hide_empty' => 0,
537
-      'empty_zero' => 0,
538
-      'value' => '<?php
534
+        ),
535
+        'empty' => '',
536
+        'hide_empty' => 0,
537
+        'empty_zero' => 0,
538
+        'value' => '<?php
539 539
   require_boinc(\'result\');
540 540
   $result = new stdClass();
541 541
   $result->server_state = $data->result_server_state;
@@ -545,18 +545,18 @@  discard block
 block discarded – undo
545 545
   $result->exit_status = $data->result_exit_status;
546 546
   return state_string($result);
547 547
 ?>',
548
-      'exclude' => 0,
549
-      'id' => 'phpcode_1',
550
-      'table' => 'customfield',
551
-      'field' => 'phpcode',
552
-      'override' => array(
548
+        'exclude' => 0,
549
+        'id' => 'phpcode_1',
550
+        'table' => 'customfield',
551
+        'field' => 'phpcode',
552
+        'override' => array(
553 553
         'button' => 'Override',
554
-      ),
555
-      'relationship' => 'none',
554
+        ),
555
+        'relationship' => 'none',
556 556
     ),
557 557
     'elapsed_time' => array(
558
-      'label' => 'Run time',
559
-      'alter' => array(
558
+        'label' => 'Run time',
559
+        'alter' => array(
560 560
         'alter_text' => 0,
561 561
         'text' => '',
562 562
         'make_link' => 0,
@@ -575,29 +575,29 @@  discard block
 block discarded – undo
575 575
         'ellipsis' => 1,
576 576
         'html' => 0,
577 577
         'strip_tags' => 0,
578
-      ),
579
-      'empty' => '',
580
-      'hide_empty' => 0,
581
-      'empty_zero' => 0,
582
-      'hide_alter_empty' => 1,
583
-      'set_precision' => 1,
584
-      'precision' => '2',
585
-      'decimal' => '.',
586
-      'separator' => ',',
587
-      'format_plural' => 0,
588
-      'format_plural_singular' => '1',
589
-      'format_plural_plural' => '@count',
590
-      'prefix' => '',
591
-      'suffix' => '',
592
-      'exclude' => 0,
593
-      'id' => 'elapsed_time',
594
-      'table' => 'result',
595
-      'field' => 'elapsed_time',
596
-      'relationship' => 'none',
578
+        ),
579
+        'empty' => '',
580
+        'hide_empty' => 0,
581
+        'empty_zero' => 0,
582
+        'hide_alter_empty' => 1,
583
+        'set_precision' => 1,
584
+        'precision' => '2',
585
+        'decimal' => '.',
586
+        'separator' => ',',
587
+        'format_plural' => 0,
588
+        'format_plural_singular' => '1',
589
+        'format_plural_plural' => '@count',
590
+        'prefix' => '',
591
+        'suffix' => '',
592
+        'exclude' => 0,
593
+        'id' => 'elapsed_time',
594
+        'table' => 'result',
595
+        'field' => 'elapsed_time',
596
+        'relationship' => 'none',
597 597
     ),
598 598
     'cpu_time' => array(
599
-      'label' => 'CPU time',
600
-      'alter' => array(
599
+        'label' => 'CPU time',
600
+        'alter' => array(
601 601
         'alter_text' => 0,
602 602
         'text' => '',
603 603
         'make_link' => 0,
@@ -616,29 +616,29 @@  discard block
 block discarded – undo
616 616
         'ellipsis' => 1,
617 617
         'html' => 0,
618 618
         'strip_tags' => 0,
619
-      ),
620
-      'empty' => '',
621
-      'hide_empty' => 0,
622
-      'empty_zero' => 0,
623
-      'hide_alter_empty' => 1,
624
-      'set_precision' => 1,
625
-      'precision' => '2',
626
-      'decimal' => '.',
627
-      'separator' => ',',
628
-      'format_plural' => 0,
629
-      'format_plural_singular' => '1',
630
-      'format_plural_plural' => '@count',
631
-      'prefix' => '',
632
-      'suffix' => '',
633
-      'exclude' => 0,
634
-      'id' => 'cpu_time',
635
-      'table' => 'result',
636
-      'field' => 'cpu_time',
637
-      'relationship' => 'none',
619
+        ),
620
+        'empty' => '',
621
+        'hide_empty' => 0,
622
+        'empty_zero' => 0,
623
+        'hide_alter_empty' => 1,
624
+        'set_precision' => 1,
625
+        'precision' => '2',
626
+        'decimal' => '.',
627
+        'separator' => ',',
628
+        'format_plural' => 0,
629
+        'format_plural_singular' => '1',
630
+        'format_plural_plural' => '@count',
631
+        'prefix' => '',
632
+        'suffix' => '',
633
+        'exclude' => 0,
634
+        'id' => 'cpu_time',
635
+        'table' => 'result',
636
+        'field' => 'cpu_time',
637
+        'relationship' => 'none',
638 638
     ),
639 639
     'granted_credit' => array(
640
-      'label' => 'Granted credit',
641
-      'alter' => array(
640
+        'label' => 'Granted credit',
641
+        'alter' => array(
642 642
         'alter_text' => 0,
643 643
         'text' => '',
644 644
         'make_link' => 0,
@@ -655,25 +655,25 @@  discard block
 block discarded – undo
655 655
         'ellipsis' => 1,
656 656
         'html' => 0,
657 657
         'strip_tags' => 0,
658
-      ),
659
-      'empty' => '',
660
-      'hide_empty' => 0,
661
-      'empty_zero' => 0,
662
-      'set_precision' => 1,
663
-      'precision' => '2',
664
-      'decimal' => '.',
665
-      'separator' => ',',
666
-      'prefix' => '',
667
-      'suffix' => '',
668
-      'exclude' => 0,
669
-      'id' => 'granted_credit',
670
-      'table' => 'result',
671
-      'field' => 'granted_credit',
672
-      'relationship' => 'none',
658
+        ),
659
+        'empty' => '',
660
+        'hide_empty' => 0,
661
+        'empty_zero' => 0,
662
+        'set_precision' => 1,
663
+        'precision' => '2',
664
+        'decimal' => '.',
665
+        'separator' => ',',
666
+        'prefix' => '',
667
+        'suffix' => '',
668
+        'exclude' => 0,
669
+        'id' => 'granted_credit',
670
+        'table' => 'result',
671
+        'field' => 'granted_credit',
672
+        'relationship' => 'none',
673 673
     ),
674 674
     'appid' => array(
675
-      'label' => 'Application ID',
676
-      'alter' => array(
675
+        'label' => 'Application ID',
676
+        'alter' => array(
677 677
         'alter_text' => 0,
678 678
         'text' => '',
679 679
         'make_link' => 0,
@@ -692,29 +692,29 @@  discard block
 block discarded – undo
692 692
         'ellipsis' => 1,
693 693
         'html' => 0,
694 694
         'strip_tags' => 0,
695
-      ),
696
-      'empty' => '',
697
-      'hide_empty' => 0,
698
-      'empty_zero' => 0,
699
-      'hide_alter_empty' => 1,
700
-      'set_precision' => FALSE,
701
-      'precision' => 0,
702
-      'decimal' => '.',
703
-      'separator' => '',
704
-      'format_plural' => 0,
705
-      'format_plural_singular' => '1',
706
-      'format_plural_plural' => '@count',
707
-      'prefix' => '',
708
-      'suffix' => '',
709
-      'exclude' => 1,
710
-      'id' => 'appid',
711
-      'table' => 'result',
712
-      'field' => 'appid',
713
-      'relationship' => 'none',
695
+        ),
696
+        'empty' => '',
697
+        'hide_empty' => 0,
698
+        'empty_zero' => 0,
699
+        'hide_alter_empty' => 1,
700
+        'set_precision' => FALSE,
701
+        'precision' => 0,
702
+        'decimal' => '.',
703
+        'separator' => '',
704
+        'format_plural' => 0,
705
+        'format_plural_singular' => '1',
706
+        'format_plural_plural' => '@count',
707
+        'prefix' => '',
708
+        'suffix' => '',
709
+        'exclude' => 1,
710
+        'id' => 'appid',
711
+        'table' => 'result',
712
+        'field' => 'appid',
713
+        'relationship' => 'none',
714 714
     ),
715 715
     'app_version_id' => array(
716
-      'label' => 'Application version',
717
-      'alter' => array(
716
+        'label' => 'Application version',
717
+        'alter' => array(
718 718
         'alter_text' => 0,
719 719
         'text' => '',
720 720
         'make_link' => 0,
@@ -731,25 +731,25 @@  discard block
 block discarded – undo
731 731
         'ellipsis' => 1,
732 732
         'html' => 0,
733 733
         'strip_tags' => 0,
734
-      ),
735
-      'empty' => '',
736
-      'hide_empty' => 0,
737
-      'empty_zero' => 0,
738
-      'set_precision' => FALSE,
739
-      'precision' => 0,
740
-      'decimal' => '.',
741
-      'separator' => '',
742
-      'prefix' => '',
743
-      'suffix' => '',
744
-      'exclude' => 1,
745
-      'id' => 'app_version_id',
746
-      'table' => 'result',
747
-      'field' => 'app_version_id',
748
-      'relationship' => 'none',
734
+        ),
735
+        'empty' => '',
736
+        'hide_empty' => 0,
737
+        'empty_zero' => 0,
738
+        'set_precision' => FALSE,
739
+        'precision' => 0,
740
+        'decimal' => '.',
741
+        'separator' => '',
742
+        'prefix' => '',
743
+        'suffix' => '',
744
+        'exclude' => 1,
745
+        'id' => 'app_version_id',
746
+        'table' => 'result',
747
+        'field' => 'app_version_id',
748
+        'relationship' => 'none',
749 749
     ),
750 750
     'phpcode_2' => array(
751
-      'label' => 'Application',
752
-      'alter' => array(
751
+        'label' => 'Application',
752
+        'alter' => array(
753 753
         'alter_text' => 0,
754 754
         'text' => '',
755 755
         'make_link' => 0,
@@ -768,48 +768,48 @@  discard block
 block discarded – undo
768 768
         'ellipsis' => 1,
769 769
         'html' => 0,
770 770
         'strip_tags' => 0,
771
-      ),
772
-      'empty' => '',
773
-      'hide_empty' => 0,
774
-      'empty_zero' => 0,
775
-      'hide_alter_empty' => 1,
776
-      'value' => '<?php
771
+        ),
772
+        'empty' => '',
773
+        'hide_empty' => 0,
774
+        'empty_zero' => 0,
775
+        'hide_alter_empty' => 1,
776
+        'value' => '<?php
777 777
   require_boinc(\'result\');
778 778
   $result = new stdClass();
779 779
   $result->appid = $data->result_appid;
780 780
   $result->app_version_id = $data->result_app_version_id;
781 781
   return app_version_string($result);
782 782
 ?>',
783
-      'exclude' => 0,
784
-      'id' => 'phpcode_2',
785
-      'table' => 'customfield',
786
-      'field' => 'phpcode',
787
-      'override' => array(
783
+        'exclude' => 0,
784
+        'id' => 'phpcode_2',
785
+        'table' => 'customfield',
786
+        'field' => 'phpcode',
787
+        'override' => array(
788 788
         'button' => 'Override',
789
-      ),
790
-      'relationship' => 'none',
789
+        ),
790
+        'relationship' => 'none',
791 791
     ),
792
-  ));
793
-  $handler->override_option('arguments', array(
792
+    ));
793
+    $handler->override_option('arguments', array(
794 794
     'userid' => array(
795
-      'default_action' => 'default',
796
-      'style_plugin' => 'default_summary',
797
-      'style_options' => array(),
798
-      'wildcard' => 'all',
799
-      'wildcard_substitution' => 'All',
800
-      'title' => '',
801
-      'breadcrumb' => '',
802
-      'default_argument_type' => 'current_user',
803
-      'default_argument' => '',
804
-      'validate_type' => 'php',
805
-      'validate_fail' => 'empty',
806
-      'break_phrase' => 0,
807
-      'not' => 0,
808
-      'id' => 'userid',
809
-      'table' => 'result',
810
-      'field' => 'userid',
811
-      'validate_user_argument_type' => 'uid',
812
-      'validate_user_roles' => array(
795
+        'default_action' => 'default',
796
+        'style_plugin' => 'default_summary',
797
+        'style_options' => array(),
798
+        'wildcard' => 'all',
799
+        'wildcard_substitution' => 'All',
800
+        'title' => '',
801
+        'breadcrumb' => '',
802
+        'default_argument_type' => 'current_user',
803
+        'default_argument' => '',
804
+        'validate_type' => 'php',
805
+        'validate_fail' => 'empty',
806
+        'break_phrase' => 0,
807
+        'not' => 0,
808
+        'id' => 'userid',
809
+        'table' => 'result',
810
+        'field' => 'userid',
811
+        'validate_user_argument_type' => 'uid',
812
+        'validate_user_roles' => array(
813 813
         2 => 0,
814 814
         3519698132 => 0,
815 815
         1110965548 => 0,
@@ -818,10 +818,10 @@  discard block
 block discarded – undo
818 818
         268174006 => 0,
819 819
         1271379760 => 0,
820 820
         933038561 => 0,
821
-      ),
822
-      'me_redirect' => 0,
823
-      'me_validate_user_argument_type' => 'uid',
824
-      'me_validate_user_roles' => array(
821
+        ),
822
+        'me_redirect' => 0,
823
+        'me_validate_user_argument_type' => 'uid',
824
+        'me_validate_user_roles' => array(
825 825
         2 => 0,
826 826
         3519698132 => 0,
827 827
         1110965548 => 0,
@@ -830,20 +830,20 @@  discard block
 block discarded – undo
830 830
         268174006 => 0,
831 831
         1271379760 => 0,
832 832
         933038561 => 0,
833
-      ),
834
-      'relationship' => 'none',
835
-      'default_options_div_prefix' => '',
836
-      'default_taxonomy_tid_term_page' => 0,
837
-      'default_taxonomy_tid_node' => 0,
838
-      'default_taxonomy_tid_limit' => 0,
839
-      'default_taxonomy_tid_vids' => array(
833
+        ),
834
+        'relationship' => 'none',
835
+        'default_options_div_prefix' => '',
836
+        'default_taxonomy_tid_term_page' => 0,
837
+        'default_taxonomy_tid_node' => 0,
838
+        'default_taxonomy_tid_limit' => 0,
839
+        'default_taxonomy_tid_vids' => array(
840 840
         1 => 0,
841 841
         2 => 0,
842
-      ),
843
-      'default_argument_user' => 0,
844
-      'default_argument_fixed' => '',
845
-      'default_argument_php' => '',
846
-      'validate_argument_node_type' => array(
842
+        ),
843
+        'default_argument_user' => 0,
844
+        'default_argument_fixed' => '',
845
+        'default_argument_php' => '',
846
+        'validate_argument_node_type' => array(
847 847
         'page' => 0,
848 848
         'news' => 0,
849 849
         'team' => 0,
@@ -852,709 +852,709 @@  discard block
 block discarded – undo
852 852
         'forum' => 0,
853 853
         'panel' => 0,
854 854
         'story' => 0,
855
-      ),
856
-      'validate_argument_node_access' => 0,
857
-      'validate_argument_nid_type' => 'nid',
858
-      'validate_argument_vocabulary' => array(
855
+        ),
856
+        'validate_argument_node_access' => 0,
857
+        'validate_argument_nid_type' => 'nid',
858
+        'validate_argument_vocabulary' => array(
859 859
         1 => 0,
860 860
         2 => 0,
861
-      ),
862
-      'validate_argument_type' => 'tid',
863
-      'validate_argument_transform' => 0,
864
-      'validate_user_restrict_roles' => 0,
865
-      'validate_argument_node_flag_name' => '*relationship*',
866
-      'validate_argument_node_flag_test' => 'flaggable',
867
-      'validate_argument_node_flag_id_type' => 'id',
868
-      'validate_argument_user_flag_name' => '*relationship*',
869
-      'validate_argument_user_flag_test' => 'flaggable',
870
-      'validate_argument_user_flag_id_type' => 'id',
871
-      'validate_argument_php' => 'return is_current_boinc_user($argument);',
872
-      'me_validate_user_restrict_roles' => 0,
873
-      'override' => array(
861
+        ),
862
+        'validate_argument_type' => 'tid',
863
+        'validate_argument_transform' => 0,
864
+        'validate_user_restrict_roles' => 0,
865
+        'validate_argument_node_flag_name' => '*relationship*',
866
+        'validate_argument_node_flag_test' => 'flaggable',
867
+        'validate_argument_node_flag_id_type' => 'id',
868
+        'validate_argument_user_flag_name' => '*relationship*',
869
+        'validate_argument_user_flag_test' => 'flaggable',
870
+        'validate_argument_user_flag_id_type' => 'id',
871
+        'validate_argument_php' => 'return is_current_boinc_user($argument);',
872
+        'me_validate_user_restrict_roles' => 0,
873
+        'override' => array(
874 874
         'button' => 'Override',
875
-      ),
875
+        ),
876 876
     ),
877
-  ));
878
-  $handler->override_option('access', array(
877
+    ));
878
+    $handler->override_option('access', array(
879 879
     'type' => 'none',
880
-  ));
881
-  $handler->override_option('cache', array(
880
+    ));
881
+    $handler->override_option('cache', array(
882 882
     'type' => 'none',
883
-  ));
884
-  $handler->override_option('empty', '<?php
883
+    ));
884
+    $handler->override_option('empty', '<?php
885 885
   if (!user_is_logged_in()) {
886 886
     drupal_goto(\'user/login\', drupal_get_destination());
887 887
   }
888 888
 ?>');
889
-  $handler->override_option('empty_format', '3');
890
-  $handler->override_option('items_per_page', 20);
891
-  $handler->override_option('use_pager', '1');
892
-  $handler->override_option('style_plugin', 'table');
893
-  $handler->override_option('style_options', array(
889
+    $handler->override_option('empty_format', '3');
890
+    $handler->override_option('items_per_page', 20);
891
+    $handler->override_option('use_pager', '1');
892
+    $handler->override_option('style_plugin', 'table');
893
+    $handler->override_option('style_options', array(
894 894
     'grouping' => '',
895 895
     'override' => 1,
896 896
     'sticky' => 1,
897 897
     'order' => 'desc',
898 898
     'summary' => '',
899 899
     'columns' => array(
900
-      'id' => 'id',
901
-      'workunitid' => 'workunitid',
902
-      'hostid' => 'hostid',
903
-      'sent_time' => 'sent_time',
904
-      'received_time' => 'received_time',
905
-      'report_deadline' => 'report_deadline',
906
-      'phpcode_3' => 'phpcode_3',
907
-      'phpcode' => 'phpcode',
908
-      'server_state' => 'server_state',
909
-      'outcome' => 'outcome',
910
-      'client_state' => 'client_state',
911
-      'validate_state' => 'validate_state',
912
-      'exit_status' => 'exit_status',
913
-      'phpcode_1' => 'phpcode_1',
914
-      'elapsed_time' => 'elapsed_time',
915
-      'cpu_time' => 'cpu_time',
916
-      'claimed_credit_1' => 'claimed_credit_1',
917
-      'granted_credit' => 'granted_credit',
918
-      'app_version_id' => 'app_version_id',
919
-      'phpcode_2' => 'phpcode_2',
900
+        'id' => 'id',
901
+        'workunitid' => 'workunitid',
902
+        'hostid' => 'hostid',
903
+        'sent_time' => 'sent_time',
904
+        'received_time' => 'received_time',
905
+        'report_deadline' => 'report_deadline',
906
+        'phpcode_3' => 'phpcode_3',
907
+        'phpcode' => 'phpcode',
908
+        'server_state' => 'server_state',
909
+        'outcome' => 'outcome',
910
+        'client_state' => 'client_state',
911
+        'validate_state' => 'validate_state',
912
+        'exit_status' => 'exit_status',
913
+        'phpcode_1' => 'phpcode_1',
914
+        'elapsed_time' => 'elapsed_time',
915
+        'cpu_time' => 'cpu_time',
916
+        'claimed_credit_1' => 'claimed_credit_1',
917
+        'granted_credit' => 'granted_credit',
918
+        'app_version_id' => 'app_version_id',
919
+        'phpcode_2' => 'phpcode_2',
920 920
     ),
921 921
     'info' => array(
922
-      'id' => array(
922
+        'id' => array(
923 923
         'sortable' => 1,
924 924
         'separator' => '',
925
-      ),
926
-      'workunitid' => array(
925
+        ),
926
+        'workunitid' => array(
927 927
         'sortable' => 1,
928 928
         'separator' => '',
929
-      ),
930
-      'hostid' => array(
929
+        ),
930
+        'hostid' => array(
931 931
         'sortable' => 1,
932 932
         'separator' => '',
933
-      ),
934
-      'sent_time' => array(
933
+        ),
934
+        'sent_time' => array(
935 935
         'sortable' => 1,
936 936
         'separator' => '',
937
-      ),
938
-      'received_time' => array(
937
+        ),
938
+        'received_time' => array(
939 939
         'sortable' => 1,
940 940
         'separator' => '',
941
-      ),
942
-      'report_deadline' => array(
941
+        ),
942
+        'report_deadline' => array(
943 943
         'sortable' => 1,
944 944
         'separator' => '',
945
-      ),
946
-      'phpcode_3' => array(
945
+        ),
946
+        'phpcode_3' => array(
947 947
         'separator' => '',
948
-      ),
949
-      'phpcode' => array(
948
+        ),
949
+        'phpcode' => array(
950 950
         'separator' => '',
951
-      ),
952
-      'server_state' => array(
951
+        ),
952
+        'server_state' => array(
953 953
         'sortable' => 0,
954 954
         'separator' => '',
955
-      ),
956
-      'outcome' => array(
955
+        ),
956
+        'outcome' => array(
957 957
         'sortable' => 0,
958 958
         'separator' => '',
959
-      ),
960
-      'client_state' => array(
959
+        ),
960
+        'client_state' => array(
961 961
         'sortable' => 0,
962 962
         'separator' => '',
963
-      ),
964
-      'validate_state' => array(
963
+        ),
964
+        'validate_state' => array(
965 965
         'sortable' => 0,
966 966
         'separator' => '',
967
-      ),
968
-      'exit_status' => array(
967
+        ),
968
+        'exit_status' => array(
969 969
         'sortable' => 0,
970 970
         'separator' => '',
971
-      ),
972
-      'phpcode_1' => array(
971
+        ),
972
+        'phpcode_1' => array(
973 973
         'separator' => '',
974
-      ),
975
-      'elapsed_time' => array(
974
+        ),
975
+        'elapsed_time' => array(
976 976
         'sortable' => 1,
977 977
         'separator' => '',
978
-      ),
979
-      'cpu_time' => array(
978
+        ),
979
+        'cpu_time' => array(
980 980
         'sortable' => 1,
981 981
         'separator' => '',
982
-      ),
983
-      'claimed_credit_1' => array(
982
+        ),
983
+        'claimed_credit_1' => array(
984 984
         'sortable' => 1,
985 985
         'separator' => '',
986
-      ),
987
-      'granted_credit' => array(
986
+        ),
987
+        'granted_credit' => array(
988 988
         'sortable' => 1,
989 989
         'separator' => '',
990
-      ),
991
-      'app_version_id' => array(
990
+        ),
991
+        'app_version_id' => array(
992 992
         'sortable' => 1,
993 993
         'separator' => '',
994
-      ),
995
-      'phpcode_2' => array(
994
+        ),
995
+        'phpcode_2' => array(
996 996
         'separator' => '',
997
-      ),
997
+        ),
998 998
     ),
999 999
     'default' => 'id',
1000
-  ));
1001
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
1002
-  $handler->override_option('path', 'account/tasks/all');
1003
-  $handler->override_option('menu', array(
1000
+    ));
1001
+    $handler = $view->new_display('page', 'All tasks', 'page_1');
1002
+    $handler->override_option('path', 'account/tasks/all');
1003
+    $handler->override_option('menu', array(
1004 1004
     'type' => 'default tab',
1005 1005
     'title' => 'All tasks',
1006 1006
     'description' => 'Show all tasks associated with the account',
1007 1007
     'weight' => '0',
1008 1008
     'name' => 'navigation',
1009
-  ));
1010
-  $handler->override_option('tab_options', array(
1009
+    ));
1010
+    $handler->override_option('tab_options', array(
1011 1011
     'type' => 'normal',
1012 1012
     'title' => 'Tasks',
1013 1013
     'description' => 'Show all tasks',
1014 1014
     'weight' => '0',
1015 1015
     'name' => 'navigation',
1016
-  ));
1017
-  $handler = $view->new_display('page', 'Error', 'page_2');
1018
-  $handler->override_option('filters', array(
1016
+    ));
1017
+    $handler = $view->new_display('page', 'Error', 'page_2');
1018
+    $handler->override_option('filters', array(
1019 1019
     'server_state' => array(
1020
-      'operator' => '=',
1021
-      'value' => array(
1020
+        'operator' => '=',
1021
+        'value' => array(
1022 1022
         'value' => '5',
1023 1023
         'min' => '',
1024 1024
         'max' => '',
1025
-      ),
1026
-      'group' => '0',
1027
-      'exposed' => FALSE,
1028
-      'expose' => array(
1025
+        ),
1026
+        'group' => '0',
1027
+        'exposed' => FALSE,
1028
+        'expose' => array(
1029 1029
         'operator' => FALSE,
1030 1030
         'label' => '',
1031
-      ),
1032
-      'id' => 'server_state',
1033
-      'table' => 'result',
1034
-      'field' => 'server_state',
1035
-      'override' => array(
1031
+        ),
1032
+        'id' => 'server_state',
1033
+        'table' => 'result',
1034
+        'field' => 'server_state',
1035
+        'override' => array(
1036 1036
         'button' => 'Use default',
1037
-      ),
1038
-      'relationship' => 'none',
1037
+        ),
1038
+        'relationship' => 'none',
1039 1039
     ),
1040 1040
     'outcome' => array(
1041
-      'operator' => '>=',
1042
-      'value' => array(
1041
+        'operator' => '>=',
1042
+        'value' => array(
1043 1043
         'value' => '3',
1044 1044
         'min' => '',
1045 1045
         'max' => '',
1046
-      ),
1047
-      'group' => '0',
1048
-      'exposed' => FALSE,
1049
-      'expose' => array(
1046
+        ),
1047
+        'group' => '0',
1048
+        'exposed' => FALSE,
1049
+        'expose' => array(
1050 1050
         'operator' => FALSE,
1051 1051
         'label' => '',
1052
-      ),
1053
-      'id' => 'outcome',
1054
-      'table' => 'result',
1055
-      'field' => 'outcome',
1056
-      'override' => array(
1052
+        ),
1053
+        'id' => 'outcome',
1054
+        'table' => 'result',
1055
+        'field' => 'outcome',
1056
+        'override' => array(
1057 1057
         'button' => 'Use default',
1058
-      ),
1059
-      'relationship' => 'none',
1058
+        ),
1059
+        'relationship' => 'none',
1060 1060
     ),
1061 1061
     'outcome_1' => array(
1062
-      'operator' => 'not between',
1063
-      'value' => array(
1062
+        'operator' => 'not between',
1063
+        'value' => array(
1064 1064
         'value' => '',
1065 1065
         'min' => '4',
1066 1066
         'max' => '7',
1067
-      ),
1068
-      'group' => '0',
1069
-      'exposed' => FALSE,
1070
-      'expose' => array(
1067
+        ),
1068
+        'group' => '0',
1069
+        'exposed' => FALSE,
1070
+        'expose' => array(
1071 1071
         'operator' => FALSE,
1072 1072
         'label' => '',
1073
-      ),
1074
-      'id' => 'outcome_1',
1075
-      'table' => 'result',
1076
-      'field' => 'outcome',
1077
-      'override' => array(
1073
+        ),
1074
+        'id' => 'outcome_1',
1075
+        'table' => 'result',
1076
+        'field' => 'outcome',
1077
+        'override' => array(
1078 1078
         'button' => 'Use default',
1079
-      ),
1080
-      'relationship' => 'none',
1079
+        ),
1080
+        'relationship' => 'none',
1081 1081
     ),
1082 1082
     'outcome_2' => array(
1083
-      'operator' => '<=',
1084
-      'value' => array(
1083
+        'operator' => '<=',
1084
+        'value' => array(
1085 1085
         'value' => '7',
1086 1086
         'min' => '',
1087 1087
         'max' => '',
1088
-      ),
1089
-      'group' => '0',
1090
-      'exposed' => FALSE,
1091
-      'expose' => array(
1088
+        ),
1089
+        'group' => '0',
1090
+        'exposed' => FALSE,
1091
+        'expose' => array(
1092 1092
         'operator' => FALSE,
1093 1093
         'label' => '',
1094
-      ),
1095
-      'id' => 'outcome_2',
1096
-      'table' => 'result',
1097
-      'field' => 'outcome',
1098
-      'override' => array(
1094
+        ),
1095
+        'id' => 'outcome_2',
1096
+        'table' => 'result',
1097
+        'field' => 'outcome',
1098
+        'override' => array(
1099 1099
         'button' => 'Use default',
1100
-      ),
1101
-      'relationship' => 'none',
1100
+        ),
1101
+        'relationship' => 'none',
1102 1102
     ),
1103
-  ));
1104
-  $handler->override_option('path', 'account/tasks/error');
1105
-  $handler->override_option('menu', array(
1103
+    ));
1104
+    $handler->override_option('path', 'account/tasks/error');
1105
+    $handler->override_option('menu', array(
1106 1106
     'type' => 'tab',
1107 1107
     'title' => 'Error',
1108 1108
     'description' => 'Show tasks with errors associated with the account',
1109 1109
     'weight' => '5',
1110 1110
     'name' => 'navigation',
1111
-  ));
1112
-  $handler->override_option('tab_options', array(
1111
+    ));
1112
+    $handler->override_option('tab_options', array(
1113 1113
     'type' => 'none',
1114 1114
     'title' => '',
1115 1115
     'description' => '',
1116 1116
     'weight' => 0,
1117 1117
     'name' => 'navigation',
1118
-  ));
1119
-  $handler = $view->new_display('page', 'In progress', 'page_3');
1120
-  $handler->override_option('filters', array(
1118
+    ));
1119
+    $handler = $view->new_display('page', 'In progress', 'page_3');
1120
+    $handler->override_option('filters', array(
1121 1121
     'server_state' => array(
1122
-      'operator' => '=',
1123
-      'value' => array(
1122
+        'operator' => '=',
1123
+        'value' => array(
1124 1124
         'value' => '4',
1125 1125
         'min' => '',
1126 1126
         'max' => '',
1127
-      ),
1128
-      'group' => '0',
1129
-      'exposed' => FALSE,
1130
-      'expose' => array(
1127
+        ),
1128
+        'group' => '0',
1129
+        'exposed' => FALSE,
1130
+        'expose' => array(
1131 1131
         'operator' => FALSE,
1132 1132
         'label' => '',
1133
-      ),
1134
-      'id' => 'server_state',
1135
-      'table' => 'result',
1136
-      'field' => 'server_state',
1137
-      'override' => array(
1133
+        ),
1134
+        'id' => 'server_state',
1135
+        'table' => 'result',
1136
+        'field' => 'server_state',
1137
+        'override' => array(
1138 1138
         'button' => 'Use default',
1139
-      ),
1140
-      'relationship' => 'none',
1139
+        ),
1140
+        'relationship' => 'none',
1141 1141
     ),
1142
-  ));
1143
-  $handler->override_option('path', 'account/tasks/active');
1144
-  $handler->override_option('menu', array(
1142
+    ));
1143
+    $handler->override_option('path', 'account/tasks/active');
1144
+    $handler->override_option('menu', array(
1145 1145
     'type' => 'tab',
1146 1146
     'title' => 'In progress',
1147 1147
     'description' => 'Show tasks in progress associated with the account',
1148 1148
     'weight' => '1',
1149 1149
     'name' => 'navigation',
1150
-  ));
1151
-  $handler->override_option('tab_options', array(
1150
+    ));
1151
+    $handler->override_option('tab_options', array(
1152 1152
     'type' => 'none',
1153 1153
     'title' => '',
1154 1154
     'description' => '',
1155 1155
     'weight' => 0,
1156 1156
     'name' => 'navigation',
1157
-  ));
1158
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
1159
-  $handler->override_option('filters', array(
1157
+    ));
1158
+    $handler = $view->new_display('page', 'Invalidated', 'page_4');
1159
+    $handler->override_option('filters', array(
1160 1160
     'server_state' => array(
1161
-      'operator' => '=',
1162
-      'value' => array(
1161
+        'operator' => '=',
1162
+        'value' => array(
1163 1163
         'value' => '5',
1164 1164
         'min' => '',
1165 1165
         'max' => '',
1166
-      ),
1167
-      'group' => '0',
1168
-      'exposed' => FALSE,
1169
-      'expose' => array(
1166
+        ),
1167
+        'group' => '0',
1168
+        'exposed' => FALSE,
1169
+        'expose' => array(
1170 1170
         'operator' => FALSE,
1171 1171
         'label' => '',
1172
-      ),
1173
-      'id' => 'server_state',
1174
-      'table' => 'result',
1175
-      'field' => 'server_state',
1176
-      'override' => array(
1172
+        ),
1173
+        'id' => 'server_state',
1174
+        'table' => 'result',
1175
+        'field' => 'server_state',
1176
+        'override' => array(
1177 1177
         'button' => 'Use default',
1178
-      ),
1179
-      'relationship' => 'none',
1178
+        ),
1179
+        'relationship' => 'none',
1180 1180
     ),
1181 1181
     'views_or_begin_2' => array(
1182
-      'id' => 'views_or_begin_2',
1183
-      'table' => 'views_or',
1184
-      'field' => 'views_or_begin',
1182
+        'id' => 'views_or_begin_2',
1183
+        'table' => 'views_or',
1184
+        'field' => 'views_or_begin',
1185 1185
     ),
1186 1186
     'outcome' => array(
1187
-      'operator' => '=',
1188
-      'value' => array(
1187
+        'operator' => '=',
1188
+        'value' => array(
1189 1189
         'value' => '6',
1190 1190
         'min' => '',
1191 1191
         'max' => '',
1192
-      ),
1193
-      'group' => '0',
1194
-      'exposed' => FALSE,
1195
-      'expose' => array(
1192
+        ),
1193
+        'group' => '0',
1194
+        'exposed' => FALSE,
1195
+        'expose' => array(
1196 1196
         'operator' => FALSE,
1197 1197
         'label' => '',
1198
-      ),
1199
-      'id' => 'outcome',
1200
-      'table' => 'result',
1201
-      'field' => 'outcome',
1202
-      'override' => array(
1198
+        ),
1199
+        'id' => 'outcome',
1200
+        'table' => 'result',
1201
+        'field' => 'outcome',
1202
+        'override' => array(
1203 1203
         'button' => 'Use default',
1204
-      ),
1205
-      'relationship' => 'none',
1204
+        ),
1205
+        'relationship' => 'none',
1206 1206
     ),
1207 1207
     'views_or_next_5' => array(
1208
-      'id' => 'views_or_next_5',
1209
-      'table' => 'views_or',
1210
-      'field' => 'views_or_next',
1208
+        'id' => 'views_or_next_5',
1209
+        'table' => 'views_or',
1210
+        'field' => 'views_or_next',
1211 1211
     ),
1212 1212
     'outcome_1' => array(
1213
-      'operator' => '=',
1214
-      'value' => array(
1213
+        'operator' => '=',
1214
+        'value' => array(
1215 1215
         'value' => '1',
1216 1216
         'min' => '',
1217 1217
         'max' => '',
1218
-      ),
1219
-      'group' => '0',
1220
-      'exposed' => FALSE,
1221
-      'expose' => array(
1218
+        ),
1219
+        'group' => '0',
1220
+        'exposed' => FALSE,
1221
+        'expose' => array(
1222 1222
         'operator' => FALSE,
1223 1223
         'label' => '',
1224
-      ),
1225
-      'id' => 'outcome_1',
1226
-      'table' => 'result',
1227
-      'field' => 'outcome',
1228
-      'override' => array(
1224
+        ),
1225
+        'id' => 'outcome_1',
1226
+        'table' => 'result',
1227
+        'field' => 'outcome',
1228
+        'override' => array(
1229 1229
         'button' => 'Use default',
1230
-      ),
1231
-      'relationship' => 'none',
1230
+        ),
1231
+        'relationship' => 'none',
1232 1232
     ),
1233 1233
     'views_or_begin_3' => array(
1234
-      'id' => 'views_or_begin_3',
1235
-      'table' => 'views_or',
1236
-      'field' => 'views_or_begin',
1234
+        'id' => 'views_or_begin_3',
1235
+        'table' => 'views_or',
1236
+        'field' => 'views_or_begin',
1237 1237
     ),
1238 1238
     'validate_state' => array(
1239
-      'operator' => '=',
1240
-      'value' => array(
1239
+        'operator' => '=',
1240
+        'value' => array(
1241 1241
         'value' => '2',
1242 1242
         'min' => '',
1243 1243
         'max' => '',
1244
-      ),
1245
-      'group' => '0',
1246
-      'exposed' => FALSE,
1247
-      'expose' => array(
1244
+        ),
1245
+        'group' => '0',
1246
+        'exposed' => FALSE,
1247
+        'expose' => array(
1248 1248
         'operator' => FALSE,
1249 1249
         'label' => '',
1250
-      ),
1251
-      'id' => 'validate_state',
1252
-      'table' => 'result',
1253
-      'field' => 'validate_state',
1254
-      'override' => array(
1250
+        ),
1251
+        'id' => 'validate_state',
1252
+        'table' => 'result',
1253
+        'field' => 'validate_state',
1254
+        'override' => array(
1255 1255
         'button' => 'Use default',
1256
-      ),
1257
-      'relationship' => 'none',
1256
+        ),
1257
+        'relationship' => 'none',
1258 1258
     ),
1259 1259
     'views_or_next_3' => array(
1260
-      'id' => 'views_or_next_3',
1261
-      'table' => 'views_or',
1262
-      'field' => 'views_or_next',
1260
+        'id' => 'views_or_next_3',
1261
+        'table' => 'views_or',
1262
+        'field' => 'views_or_next',
1263 1263
     ),
1264 1264
     'validate_state_1' => array(
1265
-      'operator' => '=',
1266
-      'value' => array(
1265
+        'operator' => '=',
1266
+        'value' => array(
1267 1267
         'value' => '3',
1268 1268
         'min' => '',
1269 1269
         'max' => '',
1270
-      ),
1271
-      'group' => '0',
1272
-      'exposed' => FALSE,
1273
-      'expose' => array(
1270
+        ),
1271
+        'group' => '0',
1272
+        'exposed' => FALSE,
1273
+        'expose' => array(
1274 1274
         'operator' => FALSE,
1275 1275
         'label' => '',
1276
-      ),
1277
-      'id' => 'validate_state_1',
1278
-      'table' => 'result',
1279
-      'field' => 'validate_state',
1280
-      'override' => array(
1276
+        ),
1277
+        'id' => 'validate_state_1',
1278
+        'table' => 'result',
1279
+        'field' => 'validate_state',
1280
+        'override' => array(
1281 1281
         'button' => 'Use default',
1282
-      ),
1283
-      'relationship' => 'none',
1282
+        ),
1283
+        'relationship' => 'none',
1284 1284
     ),
1285 1285
     'views_or_next_4' => array(
1286
-      'id' => 'views_or_next_4',
1287
-      'table' => 'views_or',
1288
-      'field' => 'views_or_next',
1286
+        'id' => 'views_or_next_4',
1287
+        'table' => 'views_or',
1288
+        'field' => 'views_or_next',
1289 1289
     ),
1290 1290
     'validate_state_2' => array(
1291
-      'operator' => '=',
1292
-      'value' => array(
1291
+        'operator' => '=',
1292
+        'value' => array(
1293 1293
         'value' => '5',
1294 1294
         'min' => '',
1295 1295
         'max' => '',
1296
-      ),
1297
-      'group' => '0',
1298
-      'exposed' => FALSE,
1299
-      'expose' => array(
1296
+        ),
1297
+        'group' => '0',
1298
+        'exposed' => FALSE,
1299
+        'expose' => array(
1300 1300
         'operator' => FALSE,
1301 1301
         'label' => '',
1302
-      ),
1303
-      'id' => 'validate_state_2',
1304
-      'table' => 'result',
1305
-      'field' => 'validate_state',
1306
-      'override' => array(
1302
+        ),
1303
+        'id' => 'validate_state_2',
1304
+        'table' => 'result',
1305
+        'field' => 'validate_state',
1306
+        'override' => array(
1307 1307
         'button' => 'Use default',
1308
-      ),
1309
-      'relationship' => 'none',
1308
+        ),
1309
+        'relationship' => 'none',
1310 1310
     ),
1311 1311
     'views_or_end_3' => array(
1312
-      'id' => 'views_or_end_3',
1313
-      'table' => 'views_or',
1314
-      'field' => 'views_or_end',
1312
+        'id' => 'views_or_end_3',
1313
+        'table' => 'views_or',
1314
+        'field' => 'views_or_end',
1315 1315
     ),
1316 1316
     'views_or_end_2' => array(
1317
-      'id' => 'views_or_end_2',
1318
-      'table' => 'views_or',
1319
-      'field' => 'views_or_end',
1317
+        'id' => 'views_or_end_2',
1318
+        'table' => 'views_or',
1319
+        'field' => 'views_or_end',
1320 1320
     ),
1321
-  ));
1322
-  $handler->override_option('path', 'account/tasks/invalid');
1323
-  $handler->override_option('menu', array(
1321
+    ));
1322
+    $handler->override_option('path', 'account/tasks/invalid');
1323
+    $handler->override_option('menu', array(
1324 1324
     'type' => 'tab',
1325 1325
     'title' => 'Invalid',
1326 1326
     'description' => 'Show invalidated tasks associated with the account',
1327 1327
     'weight' => '4',
1328 1328
     'name' => 'navigation',
1329
-  ));
1330
-  $handler->override_option('tab_options', array(
1329
+    ));
1330
+    $handler->override_option('tab_options', array(
1331 1331
     'type' => 'none',
1332 1332
     'title' => '',
1333 1333
     'description' => '',
1334 1334
     'weight' => 0,
1335 1335
     'name' => 'navigation',
1336
-  ));
1337
-  $handler = $view->new_display('page', 'Pending', 'page_5');
1338
-  $handler->override_option('filters', array(
1336
+    ));
1337
+    $handler = $view->new_display('page', 'Pending', 'page_5');
1338
+    $handler->override_option('filters', array(
1339 1339
     'server_state' => array(
1340
-      'operator' => '=',
1341
-      'value' => array(
1340
+        'operator' => '=',
1341
+        'value' => array(
1342 1342
         'value' => '5',
1343 1343
         'min' => '',
1344 1344
         'max' => '',
1345
-      ),
1346
-      'group' => '0',
1347
-      'exposed' => FALSE,
1348
-      'expose' => array(
1345
+        ),
1346
+        'group' => '0',
1347
+        'exposed' => FALSE,
1348
+        'expose' => array(
1349 1349
         'operator' => FALSE,
1350 1350
         'label' => '',
1351
-      ),
1352
-      'id' => 'server_state',
1353
-      'table' => 'result',
1354
-      'field' => 'server_state',
1355
-      'override' => array(
1351
+        ),
1352
+        'id' => 'server_state',
1353
+        'table' => 'result',
1354
+        'field' => 'server_state',
1355
+        'override' => array(
1356 1356
         'button' => 'Use default',
1357
-      ),
1358
-      'relationship' => 'none',
1357
+        ),
1358
+        'relationship' => 'none',
1359 1359
     ),
1360 1360
     'outcome' => array(
1361
-      'operator' => '=',
1362
-      'value' => array(
1361
+        'operator' => '=',
1362
+        'value' => array(
1363 1363
         'value' => '1',
1364 1364
         'min' => '',
1365 1365
         'max' => '',
1366
-      ),
1367
-      'group' => '0',
1368
-      'exposed' => FALSE,
1369
-      'expose' => array(
1366
+        ),
1367
+        'group' => '0',
1368
+        'exposed' => FALSE,
1369
+        'expose' => array(
1370 1370
         'operator' => FALSE,
1371 1371
         'label' => '',
1372
-      ),
1373
-      'id' => 'outcome',
1374
-      'table' => 'result',
1375
-      'field' => 'outcome',
1376
-      'override' => array(
1372
+        ),
1373
+        'id' => 'outcome',
1374
+        'table' => 'result',
1375
+        'field' => 'outcome',
1376
+        'override' => array(
1377 1377
         'button' => 'Use default',
1378
-      ),
1379
-      'relationship' => 'none',
1378
+        ),
1379
+        'relationship' => 'none',
1380 1380
     ),
1381 1381
     'validate_state' => array(
1382
-      'operator' => '>=',
1383
-      'value' => array(
1382
+        'operator' => '>=',
1383
+        'value' => array(
1384 1384
         'value' => '0',
1385 1385
         'min' => '',
1386 1386
         'max' => '',
1387
-      ),
1388
-      'group' => '0',
1389
-      'exposed' => FALSE,
1390
-      'expose' => array(
1387
+        ),
1388
+        'group' => '0',
1389
+        'exposed' => FALSE,
1390
+        'expose' => array(
1391 1391
         'operator' => FALSE,
1392 1392
         'label' => '',
1393
-      ),
1394
-      'id' => 'validate_state',
1395
-      'table' => 'result',
1396
-      'field' => 'validate_state',
1397
-      'override' => array(
1393
+        ),
1394
+        'id' => 'validate_state',
1395
+        'table' => 'result',
1396
+        'field' => 'validate_state',
1397
+        'override' => array(
1398 1398
         'button' => 'Use default',
1399
-      ),
1400
-      'relationship' => 'none',
1399
+        ),
1400
+        'relationship' => 'none',
1401 1401
     ),
1402 1402
     'validate_state_1' => array(
1403
-      'operator' => 'not between',
1404
-      'value' => array(
1403
+        'operator' => 'not between',
1404
+        'value' => array(
1405 1405
         'value' => '',
1406 1406
         'min' => '0',
1407 1407
         'max' => '4',
1408
-      ),
1409
-      'group' => '0',
1410
-      'exposed' => FALSE,
1411
-      'expose' => array(
1408
+        ),
1409
+        'group' => '0',
1410
+        'exposed' => FALSE,
1411
+        'expose' => array(
1412 1412
         'operator' => FALSE,
1413 1413
         'label' => '',
1414
-      ),
1415
-      'id' => 'validate_state_1',
1416
-      'table' => 'result',
1417
-      'field' => 'validate_state',
1418
-      'override' => array(
1414
+        ),
1415
+        'id' => 'validate_state_1',
1416
+        'table' => 'result',
1417
+        'field' => 'validate_state',
1418
+        'override' => array(
1419 1419
         'button' => 'Use default',
1420
-      ),
1421
-      'relationship' => 'none',
1420
+        ),
1421
+        'relationship' => 'none',
1422 1422
     ),
1423 1423
     'validate_state_2' => array(
1424
-      'operator' => '<=',
1425
-      'value' => array(
1424
+        'operator' => '<=',
1425
+        'value' => array(
1426 1426
         'value' => '4',
1427 1427
         'min' => '',
1428 1428
         'max' => '',
1429
-      ),
1430
-      'group' => '0',
1431
-      'exposed' => FALSE,
1432
-      'expose' => array(
1429
+        ),
1430
+        'group' => '0',
1431
+        'exposed' => FALSE,
1432
+        'expose' => array(
1433 1433
         'operator' => FALSE,
1434 1434
         'label' => '',
1435
-      ),
1436
-      'id' => 'validate_state_2',
1437
-      'table' => 'result',
1438
-      'field' => 'validate_state',
1439
-      'override' => array(
1435
+        ),
1436
+        'id' => 'validate_state_2',
1437
+        'table' => 'result',
1438
+        'field' => 'validate_state',
1439
+        'override' => array(
1440 1440
         'button' => 'Use default',
1441
-      ),
1442
-      'relationship' => 'none',
1441
+        ),
1442
+        'relationship' => 'none',
1443 1443
     ),
1444
-  ));
1445
-  $handler->override_option('path', 'account/tasks/pending');
1446
-  $handler->override_option('menu', array(
1444
+    ));
1445
+    $handler->override_option('path', 'account/tasks/pending');
1446
+    $handler->override_option('menu', array(
1447 1447
     'type' => 'tab',
1448 1448
     'title' => 'Pending',
1449 1449
     'description' => 'Show tasks associated with the account with results pending',
1450 1450
     'weight' => '2',
1451 1451
     'name' => 'navigation',
1452
-  ));
1453
-  $handler->override_option('tab_options', array(
1452
+    ));
1453
+    $handler->override_option('tab_options', array(
1454 1454
     'type' => 'none',
1455 1455
     'title' => '',
1456 1456
     'description' => '',
1457 1457
     'weight' => 0,
1458 1458
     'name' => 'navigation',
1459
-  ));
1460
-  $handler = $view->new_display('page', 'Validated', 'page_6');
1461
-  $handler->override_option('filters', array(
1459
+    ));
1460
+    $handler = $view->new_display('page', 'Validated', 'page_6');
1461
+    $handler->override_option('filters', array(
1462 1462
     'server_state' => array(
1463
-      'operator' => '=',
1464
-      'value' => array(
1463
+        'operator' => '=',
1464
+        'value' => array(
1465 1465
         'value' => '5',
1466 1466
         'min' => '',
1467 1467
         'max' => '',
1468
-      ),
1469
-      'group' => '0',
1470
-      'exposed' => FALSE,
1471
-      'expose' => array(
1468
+        ),
1469
+        'group' => '0',
1470
+        'exposed' => FALSE,
1471
+        'expose' => array(
1472 1472
         'operator' => FALSE,
1473 1473
         'label' => '',
1474
-      ),
1475
-      'id' => 'server_state',
1476
-      'table' => 'result',
1477
-      'field' => 'server_state',
1478
-      'override' => array(
1474
+        ),
1475
+        'id' => 'server_state',
1476
+        'table' => 'result',
1477
+        'field' => 'server_state',
1478
+        'override' => array(
1479 1479
         'button' => 'Use default',
1480
-      ),
1481
-      'relationship' => 'none',
1480
+        ),
1481
+        'relationship' => 'none',
1482 1482
     ),
1483 1483
     'outcome' => array(
1484
-      'operator' => '=',
1485
-      'value' => array(
1484
+        'operator' => '=',
1485
+        'value' => array(
1486 1486
         'value' => '1',
1487 1487
         'min' => '',
1488 1488
         'max' => '',
1489
-      ),
1490
-      'group' => '0',
1491
-      'exposed' => FALSE,
1492
-      'expose' => array(
1489
+        ),
1490
+        'group' => '0',
1491
+        'exposed' => FALSE,
1492
+        'expose' => array(
1493 1493
         'operator' => FALSE,
1494 1494
         'label' => '',
1495
-      ),
1496
-      'id' => 'outcome',
1497
-      'table' => 'result',
1498
-      'field' => 'outcome',
1499
-      'override' => array(
1495
+        ),
1496
+        'id' => 'outcome',
1497
+        'table' => 'result',
1498
+        'field' => 'outcome',
1499
+        'override' => array(
1500 1500
         'button' => 'Use default',
1501
-      ),
1502
-      'relationship' => 'none',
1501
+        ),
1502
+        'relationship' => 'none',
1503 1503
     ),
1504 1504
     'validate_state' => array(
1505
-      'operator' => '=',
1506
-      'value' => array(
1505
+        'operator' => '=',
1506
+        'value' => array(
1507 1507
         'value' => '1',
1508 1508
         'min' => '',
1509 1509
         'max' => '',
1510
-      ),
1511
-      'group' => '0',
1512
-      'exposed' => FALSE,
1513
-      'expose' => array(
1510
+        ),
1511
+        'group' => '0',
1512
+        'exposed' => FALSE,
1513
+        'expose' => array(
1514 1514
         'operator' => FALSE,
1515 1515
         'label' => '',
1516
-      ),
1517
-      'id' => 'validate_state',
1518
-      'table' => 'result',
1519
-      'field' => 'validate_state',
1520
-      'override' => array(
1516
+        ),
1517
+        'id' => 'validate_state',
1518
+        'table' => 'result',
1519
+        'field' => 'validate_state',
1520
+        'override' => array(
1521 1521
         'button' => 'Use default',
1522
-      ),
1523
-      'relationship' => 'none',
1522
+        ),
1523
+        'relationship' => 'none',
1524 1524
     ),
1525
-  ));
1526
-  $handler->override_option('path', 'account/tasks/valid');
1527
-  $handler->override_option('menu', array(
1525
+    ));
1526
+    $handler->override_option('path', 'account/tasks/valid');
1527
+    $handler->override_option('menu', array(
1528 1528
     'type' => 'tab',
1529 1529
     'title' => 'Valid',
1530 1530
     'description' => 'Show validated tasks associated with the account',
1531 1531
     'weight' => '3',
1532 1532
     'name' => 'navigation',
1533
-  ));
1534
-  $handler->override_option('tab_options', array(
1533
+    ));
1534
+    $handler->override_option('tab_options', array(
1535 1535
     'type' => 'none',
1536 1536
     'title' => '',
1537 1537
     'description' => '',
1538 1538
     'weight' => 0,
1539 1539
     'name' => 'navigation',
1540
-  ));
1540
+    ));
1541 1541
 
1542
-  $views[$view->name] = $view;
1542
+    $views[$view->name] = $view;
1543 1543
 
1544
-  // Exported view: boinc_host
1545
-  $view = new view;
1546
-  $view->name = 'boinc_host';
1547
-  $view->description = 'Details for a specific host';
1548
-  $view->tag = '';
1549
-  $view->base_table = 'host';
1550
-  $view->core = 0;
1551
-  $view->api_version = '2';
1552
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
1553
-  $handler = $view->new_display('default', 'Defaults', 'default');
1554
-  $handler->override_option('fields', array(
1544
+    // Exported view: boinc_host
1545
+    $view = new view;
1546
+    $view->name = 'boinc_host';
1547
+    $view->description = 'Details for a specific host';
1548
+    $view->tag = '';
1549
+    $view->base_table = 'host';
1550
+    $view->core = 0;
1551
+    $view->api_version = '2';
1552
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
1553
+    $handler = $view->new_display('default', 'Defaults', 'default');
1554
+    $handler->override_option('fields', array(
1555 1555
     'userid' => array(
1556
-      'label' => 'User ID',
1557
-      'alter' => array(
1556
+        'label' => 'User ID',
1557
+        'alter' => array(
1558 1558
         'alter_text' => 0,
1559 1559
         'text' => '',
1560 1560
         'make_link' => 0,
@@ -1571,25 +1571,25 @@  discard block
 block discarded – undo
1571 1571
         'ellipsis' => 1,
1572 1572
         'html' => 0,
1573 1573
         'strip_tags' => 0,
1574
-      ),
1575
-      'empty' => '',
1576
-      'hide_empty' => 0,
1577
-      'empty_zero' => 0,
1578
-      'set_precision' => FALSE,
1579
-      'precision' => 0,
1580
-      'decimal' => '.',
1581
-      'separator' => '',
1582
-      'prefix' => '',
1583
-      'suffix' => '',
1584
-      'exclude' => 1,
1585
-      'id' => 'userid',
1586
-      'table' => 'host',
1587
-      'field' => 'userid',
1588
-      'relationship' => 'none',
1574
+        ),
1575
+        'empty' => '',
1576
+        'hide_empty' => 0,
1577
+        'empty_zero' => 0,
1578
+        'set_precision' => FALSE,
1579
+        'precision' => 0,
1580
+        'decimal' => '.',
1581
+        'separator' => '',
1582
+        'prefix' => '',
1583
+        'suffix' => '',
1584
+        'exclude' => 1,
1585
+        'id' => 'userid',
1586
+        'table' => 'host',
1587
+        'field' => 'userid',
1588
+        'relationship' => 'none',
1589 1589
     ),
1590 1590
     'last_ip_addr' => array(
1591
-      'label' => 'Last IP address',
1592
-      'alter' => array(
1591
+        'label' => 'Last IP address',
1592
+        'alter' => array(
1593 1593
         'alter_text' => 0,
1594 1594
         'text' => '',
1595 1595
         'make_link' => 0,
@@ -1606,19 +1606,19 @@  discard block
 block discarded – undo
1606 1606
         'ellipsis' => 1,
1607 1607
         'html' => 0,
1608 1608
         'strip_tags' => 0,
1609
-      ),
1610
-      'empty' => '',
1611
-      'hide_empty' => 0,
1612
-      'empty_zero' => 0,
1613
-      'exclude' => 1,
1614
-      'id' => 'last_ip_addr',
1615
-      'table' => 'host',
1616
-      'field' => 'last_ip_addr',
1617
-      'relationship' => 'none',
1609
+        ),
1610
+        'empty' => '',
1611
+        'hide_empty' => 0,
1612
+        'empty_zero' => 0,
1613
+        'exclude' => 1,
1614
+        'id' => 'last_ip_addr',
1615
+        'table' => 'host',
1616
+        'field' => 'last_ip_addr',
1617
+        'relationship' => 'none',
1618 1618
     ),
1619 1619
     'nsame_ip_addr' => array(
1620
-      'label' => 'Same IP address count',
1621
-      'alter' => array(
1620
+        'label' => 'Same IP address count',
1621
+        'alter' => array(
1622 1622
         'alter_text' => 0,
1623 1623
         'text' => '',
1624 1624
         'make_link' => 0,
@@ -1635,19 +1635,19 @@  discard block
 block discarded – undo
1635 1635
         'ellipsis' => 1,
1636 1636
         'html' => 0,
1637 1637
         'strip_tags' => 0,
1638
-      ),
1639
-      'empty' => '',
1640
-      'hide_empty' => 0,
1641
-      'empty_zero' => 0,
1642
-      'exclude' => 1,
1643
-      'id' => 'nsame_ip_addr',
1644
-      'table' => 'host',
1645
-      'field' => 'nsame_ip_addr',
1646
-      'relationship' => 'none',
1638
+        ),
1639
+        'empty' => '',
1640
+        'hide_empty' => 0,
1641
+        'empty_zero' => 0,
1642
+        'exclude' => 1,
1643
+        'id' => 'nsame_ip_addr',
1644
+        'table' => 'host',
1645
+        'field' => 'nsame_ip_addr',
1646
+        'relationship' => 'none',
1647 1647
     ),
1648 1648
     'external_ip_addr' => array(
1649
-      'label' => 'External IP address',
1650
-      'alter' => array(
1649
+        'label' => 'External IP address',
1650
+        'alter' => array(
1651 1651
         'alter_text' => 0,
1652 1652
         'text' => '',
1653 1653
         'make_link' => 0,
@@ -1664,19 +1664,19 @@  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
-      'exclude' => 1,
1672
-      'id' => 'external_ip_addr',
1673
-      'table' => 'host',
1674
-      'field' => 'external_ip_addr',
1675
-      'relationship' => 'none',
1667
+        ),
1668
+        'empty' => '',
1669
+        'hide_empty' => 0,
1670
+        'empty_zero' => 0,
1671
+        'exclude' => 1,
1672
+        'id' => 'external_ip_addr',
1673
+        'table' => 'host',
1674
+        'field' => 'external_ip_addr',
1675
+        'relationship' => 'none',
1676 1676
     ),
1677 1677
     'phpcode_26' => array(
1678
-      'label' => 'IP address',
1679
-      'alter' => array(
1678
+        'label' => 'IP address',
1679
+        'alter' => array(
1680 1680
         'alter_text' => 0,
1681 1681
         'text' => '',
1682 1682
         'make_link' => 0,
@@ -1695,12 +1695,12 @@  discard block
 block discarded – undo
1695 1695
         'ellipsis' => 1,
1696 1696
         'html' => 0,
1697 1697
         'strip_tags' => 0,
1698
-      ),
1699
-      'empty' => '',
1700
-      'hide_empty' => 1,
1701
-      'empty_zero' => 0,
1702
-      'hide_alter_empty' => 1,
1703
-      'value' => '<?php
1698
+        ),
1699
+        'empty' => '',
1700
+        'hide_empty' => 1,
1701
+        'empty_zero' => 0,
1702
+        'hide_alter_empty' => 1,
1703
+        'value' => '<?php
1704 1704
   if (is_current_boinc_user($data->host_userid)) {
1705 1705
     $showIP = arg(2);
1706 1706
     if ($showIP) {
@@ -1719,15 +1719,15 @@  discard block
 block discarded – undo
1719 1719
     }
1720 1720
   }
1721 1721
 ?>',
1722
-      'exclude' => 0,
1723
-      'id' => 'phpcode_26',
1724
-      'table' => 'customfield',
1725
-      'field' => 'phpcode',
1726
-      'relationship' => 'none',
1722
+        'exclude' => 0,
1723
+        'id' => 'phpcode_26',
1724
+        'table' => 'customfield',
1725
+        'field' => 'phpcode',
1726
+        'relationship' => 'none',
1727 1727
     ),
1728 1728
     'phpcode_28' => array(
1729
-      'label' => 'External IP address',
1730
-      'alter' => array(
1729
+        'label' => 'External IP address',
1730
+        'alter' => array(
1731 1731
         'alter_text' => 0,
1732 1732
         'text' => '',
1733 1733
         'make_link' => 0,
@@ -1744,11 +1744,11 @@  discard block
 block discarded – undo
1744 1744
         'ellipsis' => 1,
1745 1745
         'html' => 0,
1746 1746
         'strip_tags' => 0,
1747
-      ),
1748
-      'empty' => '',
1749
-      'hide_empty' => 1,
1750
-      'empty_zero' => 0,
1751
-      'value' => '<?php
1747
+        ),
1748
+        'empty' => '',
1749
+        'hide_empty' => 1,
1750
+        'empty_zero' => 0,
1751
+        'value' => '<?php
1752 1752
   if (is_current_boinc_user($data->host_userid)) {
1753 1753
     $showIP = arg(2);
1754 1754
     if ($showIP) {
@@ -1756,15 +1756,15 @@  discard block
 block discarded – undo
1756 1756
     }
1757 1757
   }
1758 1758
 ?>',
1759
-      'exclude' => 0,
1760
-      'id' => 'phpcode_28',
1761
-      'table' => 'customfield',
1762
-      'field' => 'phpcode',
1763
-      'relationship' => 'none',
1759
+        'exclude' => 0,
1760
+        'id' => 'phpcode_28',
1761
+        'table' => 'customfield',
1762
+        'field' => 'phpcode',
1763
+        'relationship' => 'none',
1764 1764
     ),
1765 1765
     'domain_name' => array(
1766
-      'label' => 'Domain name',
1767
-      'alter' => array(
1766
+        'label' => 'Domain name',
1767
+        'alter' => array(
1768 1768
         'alter_text' => 0,
1769 1769
         'text' => '',
1770 1770
         'make_link' => 0,
@@ -1781,19 +1781,19 @@  discard block
 block discarded – undo
1781 1781
         'ellipsis' => 1,
1782 1782
         'html' => 0,
1783 1783
         'strip_tags' => 0,
1784
-      ),
1785
-      'empty' => '',
1786
-      'hide_empty' => 0,
1787
-      'empty_zero' => 0,
1788
-      'exclude' => 1,
1789
-      'id' => 'domain_name',
1790
-      'table' => 'host',
1791
-      'field' => 'domain_name',
1792
-      'relationship' => 'none',
1784
+        ),
1785
+        'empty' => '',
1786
+        'hide_empty' => 0,
1787
+        'empty_zero' => 0,
1788
+        'exclude' => 1,
1789
+        'id' => 'domain_name',
1790
+        'table' => 'host',
1791
+        'field' => 'domain_name',
1792
+        'relationship' => 'none',
1793 1793
     ),
1794 1794
     'phpcode_3' => array(
1795
-      'label' => 'Domain name',
1796
-      'alter' => array(
1795
+        'label' => 'Domain name',
1796
+        'alter' => array(
1797 1797
         'alter_text' => 0,
1798 1798
         'text' => '',
1799 1799
         'make_link' => 0,
@@ -1810,24 +1810,24 @@  discard block
 block discarded – undo
1810 1810
         'ellipsis' => 1,
1811 1811
         'html' => 0,
1812 1812
         'strip_tags' => 0,
1813
-      ),
1814
-      'empty' => '',
1815
-      'hide_empty' => 1,
1816
-      'empty_zero' => 0,
1817
-      'value' => '<?php
1813
+        ),
1814
+        'empty' => '',
1815
+        'hide_empty' => 1,
1816
+        'empty_zero' => 0,
1817
+        'value' => '<?php
1818 1818
   if (is_current_boinc_user($data->host_userid)) {
1819 1819
     echo $data->host_domain_name;
1820 1820
   }
1821 1821
 ?>',
1822
-      'exclude' => 0,
1823
-      'id' => 'phpcode_3',
1824
-      'table' => 'customfield',
1825
-      'field' => 'phpcode',
1826
-      'relationship' => 'none',
1822
+        'exclude' => 0,
1823
+        'id' => 'phpcode_3',
1824
+        'table' => 'customfield',
1825
+        'field' => 'phpcode',
1826
+        'relationship' => 'none',
1827 1827
     ),
1828 1828
     'timezone' => array(
1829
-      'label' => 'Timezone',
1830
-      'alter' => array(
1829
+        'label' => 'Timezone',
1830
+        'alter' => array(
1831 1831
         'alter_text' => 0,
1832 1832
         'text' => '',
1833 1833
         'make_link' => 0,
@@ -1844,25 +1844,25 @@  discard block
 block discarded – undo
1844 1844
         'ellipsis' => 1,
1845 1845
         'html' => 0,
1846 1846
         'strip_tags' => 0,
1847
-      ),
1848
-      'empty' => '',
1849
-      'hide_empty' => 0,
1850
-      'empty_zero' => 0,
1851
-      'set_precision' => FALSE,
1852
-      'precision' => 0,
1853
-      'decimal' => '.',
1854
-      'separator' => '',
1855
-      'prefix' => '',
1856
-      'suffix' => '',
1857
-      'exclude' => 1,
1858
-      'id' => 'timezone',
1859
-      'table' => 'host',
1860
-      'field' => 'timezone',
1861
-      'relationship' => 'none',
1847
+        ),
1848
+        'empty' => '',
1849
+        'hide_empty' => 0,
1850
+        'empty_zero' => 0,
1851
+        'set_precision' => FALSE,
1852
+        'precision' => 0,
1853
+        'decimal' => '.',
1854
+        'separator' => '',
1855
+        'prefix' => '',
1856
+        'suffix' => '',
1857
+        'exclude' => 1,
1858
+        'id' => 'timezone',
1859
+        'table' => 'host',
1860
+        'field' => 'timezone',
1861
+        'relationship' => 'none',
1862 1862
     ),
1863 1863
     'phpcode_4' => array(
1864
-      'label' => 'Local standard time',
1865
-      'alter' => array(
1864
+        'label' => 'Local standard time',
1865
+        'alter' => array(
1866 1866
         'alter_text' => 0,
1867 1867
         'text' => '',
1868 1868
         'make_link' => 0,
@@ -1881,25 +1881,25 @@  discard block
 block discarded – undo
1881 1881
         'ellipsis' => 1,
1882 1882
         'html' => 0,
1883 1883
         'strip_tags' => 0,
1884
-      ),
1885
-      'empty' => '',
1886
-      'hide_empty' => 1,
1887
-      'empty_zero' => 0,
1888
-      'hide_alter_empty' => 1,
1889
-      'value' => '<?php
1884
+        ),
1885
+        'empty' => '',
1886
+        'hide_empty' => 1,
1887
+        'empty_zero' => 0,
1888
+        'hide_alter_empty' => 1,
1889
+        'value' => '<?php
1890 1890
   if (is_current_boinc_user($data->host_userid)) {
1891 1891
     echo \'UTC \' . ($data->host_timezone > 0 ? \'+\' : \'\') . $data->host_timezone / 3600 . \' \' . bts(\'hours\', array(), NULL, \'boinc:unit-of-time\');
1892 1892
   }
1893 1893
 ?>',
1894
-      'exclude' => 0,
1895
-      'id' => 'phpcode_4',
1896
-      'table' => 'customfield',
1897
-      'field' => 'phpcode',
1898
-      'relationship' => 'none',
1894
+        'exclude' => 0,
1895
+        'id' => 'phpcode_4',
1896
+        'table' => 'customfield',
1897
+        'field' => 'phpcode',
1898
+        'relationship' => 'none',
1899 1899
     ),
1900 1900
     'phpcode_5' => array(
1901
-      'label' => 'Name',
1902
-      'alter' => array(
1901
+        'label' => 'Name',
1902
+        'alter' => array(
1903 1903
         'alter_text' => 0,
1904 1904
         'text' => '',
1905 1905
         'make_link' => 0,
@@ -1916,24 +1916,24 @@  discard block
 block discarded – undo
1916 1916
         'ellipsis' => 1,
1917 1917
         'html' => 0,
1918 1918
         'strip_tags' => 0,
1919
-      ),
1920
-      'empty' => '',
1921
-      'hide_empty' => 1,
1922
-      'empty_zero' => 0,
1923
-      'value' => '<?php
1919
+        ),
1920
+        'empty' => '',
1921
+        'hide_empty' => 1,
1922
+        'empty_zero' => 0,
1923
+        'value' => '<?php
1924 1924
   if (is_current_boinc_user($data->host_userid)) {
1925 1925
     echo $data->host_domain_name;
1926 1926
   }
1927 1927
 ?>',
1928
-      'exclude' => 0,
1929
-      'id' => 'phpcode_5',
1930
-      'table' => 'customfield',
1931
-      'field' => 'phpcode',
1932
-      'relationship' => 'none',
1928
+        'exclude' => 0,
1929
+        'id' => 'phpcode_5',
1930
+        'table' => 'customfield',
1931
+        'field' => 'phpcode',
1932
+        'relationship' => 'none',
1933 1933
     ),
1934 1934
     'phpcode_29' => array(
1935
-      'label' => 'Owner',
1936
-      'alter' => array(
1935
+        'label' => 'Owner',
1936
+        'alter' => array(
1937 1937
         'alter_text' => 0,
1938 1938
         'text' => '',
1939 1939
         'make_link' => 0,
@@ -1952,12 +1952,12 @@  discard block
 block discarded – undo
1952 1952
         'ellipsis' => 1,
1953 1953
         'html' => 0,
1954 1954
         'strip_tags' => 0,
1955
-      ),
1956
-      'empty' => '',
1957
-      'hide_empty' => 1,
1958
-      'empty_zero' => 0,
1959
-      'hide_alter_empty' => 1,
1960
-      'value' => '<?php
1955
+        ),
1956
+        'empty' => '',
1957
+        'hide_empty' => 1,
1958
+        'empty_zero' => 0,
1959
+        'hide_alter_empty' => 1,
1960
+        'value' => '<?php
1961 1961
   if (!is_current_boinc_user($data->host_userid)) {
1962 1962
     require_boinc(\'boinc_db\');
1963 1963
     $owner = BoincUser::lookup_id($data->host_userid);
@@ -1966,15 +1966,15 @@  discard block
 block discarded – undo
1966 1966
     echo ($owner->show_hosts) ? $profile_link : bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
1967 1967
   }
1968 1968
 ?>',
1969
-      'exclude' => 0,
1970
-      'id' => 'phpcode_29',
1971
-      'table' => 'customfield',
1972
-      'field' => 'phpcode',
1973
-      'relationship' => 'none',
1969
+        'exclude' => 0,
1970
+        'id' => 'phpcode_29',
1971
+        'table' => 'customfield',
1972
+        'field' => 'phpcode',
1973
+        'relationship' => 'none',
1974 1974
     ),
1975 1975
     'create_time' => array(
1976
-      'label' => 'Created',
1977
-      'alter' => array(
1976
+        'label' => 'Created',
1977
+        'alter' => array(
1978 1978
         'alter_text' => 0,
1979 1979
         'text' => '',
1980 1980
         'make_link' => 0,
@@ -1993,22 +1993,22 @@  discard block
 block discarded – undo
1993 1993
         'ellipsis' => 1,
1994 1994
         'html' => 0,
1995 1995
         'strip_tags' => 0,
1996
-      ),
1997
-      'empty' => '',
1998
-      'hide_empty' => 0,
1999
-      'empty_zero' => 0,
2000
-      'hide_alter_empty' => 1,
2001
-      'date_format' => 'custom',
2002
-      'custom_date_format' => 'j M Y G:i:s T',
2003
-      'exclude' => 1,
2004
-      'id' => 'create_time',
2005
-      'table' => 'host',
2006
-      'field' => 'create_time',
2007
-      'relationship' => 'none',
1996
+        ),
1997
+        'empty' => '',
1998
+        'hide_empty' => 0,
1999
+        'empty_zero' => 0,
2000
+        'hide_alter_empty' => 1,
2001
+        'date_format' => 'custom',
2002
+        'custom_date_format' => 'j M Y G:i:s T',
2003
+        'exclude' => 1,
2004
+        'id' => 'create_time',
2005
+        'table' => 'host',
2006
+        'field' => 'create_time',
2007
+        'relationship' => 'none',
2008 2008
     ),
2009 2009
     'phpcode_6' => array(
2010
-      'label' => 'Created',
2011
-      'alter' => array(
2010
+        'label' => 'Created',
2011
+        'alter' => array(
2012 2012
         'alter_text' => 0,
2013 2013
         'text' => '',
2014 2014
         'make_link' => 0,
@@ -2027,23 +2027,23 @@  discard block
 block discarded – undo
2027 2027
         'ellipsis' => 1,
2028 2028
         'html' => 0,
2029 2029
         'strip_tags' => 0,
2030
-      ),
2031
-      'empty' => '',
2032
-      'hide_empty' => 0,
2033
-      'empty_zero' => 0,
2034
-      'hide_alter_empty' => 1,
2035
-      'value' => '<?php
2030
+        ),
2031
+        'empty' => '',
2032
+        'hide_empty' => 0,
2033
+        'empty_zero' => 0,
2034
+        'hide_alter_empty' => 1,
2035
+        'value' => '<?php
2036 2036
   echo date(\'j M Y G:i:s T\', $data->host_create_time);
2037 2037
 ?>',
2038
-      'exclude' => 0,
2039
-      'id' => 'phpcode_6',
2040
-      'table' => 'customfield',
2041
-      'field' => 'phpcode',
2042
-      'relationship' => 'none',
2038
+        'exclude' => 0,
2039
+        'id' => 'phpcode_6',
2040
+        'table' => 'customfield',
2041
+        'field' => 'phpcode',
2042
+        'relationship' => 'none',
2043 2043
     ),
2044 2044
     'total_credit' => array(
2045
-      'label' => 'Total credit',
2046
-      'alter' => array(
2045
+        'label' => 'Total credit',
2046
+        'alter' => array(
2047 2047
         'alter_text' => 0,
2048 2048
         'text' => '',
2049 2049
         'make_link' => 0,
@@ -2062,29 +2062,29 @@  discard block
 block discarded – undo
2062 2062
         'ellipsis' => 1,
2063 2063
         'html' => 0,
2064 2064
         'strip_tags' => 0,
2065
-      ),
2066
-      'empty' => '0',
2067
-      'hide_empty' => 0,
2068
-      'empty_zero' => 0,
2069
-      'hide_alter_empty' => 0,
2070
-      'set_precision' => 1,
2071
-      'precision' => '0',
2072
-      'decimal' => '.',
2073
-      'separator' => ',',
2074
-      'format_plural' => 0,
2075
-      'format_plural_singular' => '1',
2076
-      'format_plural_plural' => '@count',
2077
-      'prefix' => '',
2078
-      'suffix' => '',
2079
-      'exclude' => 0,
2080
-      'id' => 'total_credit',
2081
-      'table' => 'host',
2082
-      'field' => 'total_credit',
2083
-      'relationship' => 'none',
2065
+        ),
2066
+        'empty' => '0',
2067
+        'hide_empty' => 0,
2068
+        'empty_zero' => 0,
2069
+        'hide_alter_empty' => 0,
2070
+        'set_precision' => 1,
2071
+        'precision' => '0',
2072
+        'decimal' => '.',
2073
+        'separator' => ',',
2074
+        'format_plural' => 0,
2075
+        'format_plural_singular' => '1',
2076
+        'format_plural_plural' => '@count',
2077
+        'prefix' => '',
2078
+        'suffix' => '',
2079
+        'exclude' => 0,
2080
+        'id' => 'total_credit',
2081
+        'table' => 'host',
2082
+        'field' => 'total_credit',
2083
+        'relationship' => 'none',
2084 2084
     ),
2085 2085
     'expavg_credit' => array(
2086
-      'label' => 'Average credit',
2087
-      'alter' => array(
2086
+        'label' => 'Average credit',
2087
+        'alter' => array(
2088 2088
         'alter_text' => 0,
2089 2089
         'text' => '',
2090 2090
         'make_link' => 0,
@@ -2101,25 +2101,25 @@  discard block
 block discarded – undo
2101 2101
         'ellipsis' => 1,
2102 2102
         'html' => 0,
2103 2103
         'strip_tags' => 0,
2104
-      ),
2105
-      'empty' => '',
2106
-      'hide_empty' => 0,
2107
-      'empty_zero' => 0,
2108
-      'set_precision' => 1,
2109
-      'precision' => '2',
2110
-      'decimal' => '.',
2111
-      'separator' => ',',
2112
-      'prefix' => '',
2113
-      'suffix' => '',
2114
-      'exclude' => 0,
2115
-      'id' => 'expavg_credit',
2116
-      'table' => 'host',
2117
-      'field' => 'expavg_credit',
2118
-      'relationship' => 'none',
2104
+        ),
2105
+        'empty' => '',
2106
+        'hide_empty' => 0,
2107
+        'empty_zero' => 0,
2108
+        'set_precision' => 1,
2109
+        'precision' => '2',
2110
+        'decimal' => '.',
2111
+        'separator' => ',',
2112
+        'prefix' => '',
2113
+        'suffix' => '',
2114
+        'exclude' => 0,
2115
+        'id' => 'expavg_credit',
2116
+        'table' => 'host',
2117
+        'field' => 'expavg_credit',
2118
+        'relationship' => 'none',
2119 2119
     ),
2120 2120
     'host_cpid' => array(
2121
-      'label' => 'Cross project ID',
2122
-      'alter' => array(
2121
+        'label' => 'Cross project ID',
2122
+        'alter' => array(
2123 2123
         'alter_text' => 0,
2124 2124
         'text' => '',
2125 2125
         'make_link' => 0,
@@ -2138,20 +2138,20 @@  discard block
 block discarded – undo
2138 2138
         'ellipsis' => 1,
2139 2139
         'html' => 0,
2140 2140
         'strip_tags' => 0,
2141
-      ),
2142
-      'empty' => '',
2143
-      'hide_empty' => 0,
2144
-      'empty_zero' => 0,
2145
-      'hide_alter_empty' => 1,
2146
-      'exclude' => 1,
2147
-      'id' => 'host_cpid',
2148
-      'table' => 'host',
2149
-      'field' => 'host_cpid',
2150
-      'relationship' => 'none',
2141
+        ),
2142
+        'empty' => '',
2143
+        'hide_empty' => 0,
2144
+        'empty_zero' => 0,
2145
+        'hide_alter_empty' => 1,
2146
+        'exclude' => 1,
2147
+        'id' => 'host_cpid',
2148
+        'table' => 'host',
2149
+        'field' => 'host_cpid',
2150
+        'relationship' => 'none',
2151 2151
     ),
2152 2152
     'phpcode_7' => array(
2153
-      'label' => 'Cross project credit',
2154
-      'alter' => array(
2153
+        'label' => 'Cross project credit',
2154
+        'alter' => array(
2155 2155
         'alter_text' => 0,
2156 2156
         'text' => '',
2157 2157
         'make_link' => 0,
@@ -2168,11 +2168,11 @@  discard block
 block discarded – undo
2168 2168
         'ellipsis' => 1,
2169 2169
         'html' => 0,
2170 2170
         'strip_tags' => 0,
2171
-      ),
2172
-      'empty' => '',
2173
-      'hide_empty' => 1,
2174
-      'empty_zero' => 0,
2175
-      'value' => '<?php
2171
+        ),
2172
+        'empty' => '',
2173
+        'hide_empty' => 1,
2174
+        'empty_zero' => 0,
2175
+        'value' => '<?php
2176 2176
   require_boinc(\'util\');
2177 2177
   $owner = BoincUser::lookup_id($data->host_userid);
2178 2178
   if ($owner->show_hosts) {
@@ -2189,15 +2189,15 @@  discard block
 block discarded – undo
2189 2189
     echo $x;
2190 2190
   }
2191 2191
 ?>',
2192
-      'exclude' => 0,
2193
-      'id' => 'phpcode_7',
2194
-      'table' => 'customfield',
2195
-      'field' => 'phpcode',
2196
-      'relationship' => 'none',
2192
+        'exclude' => 0,
2193
+        'id' => 'phpcode_7',
2194
+        'table' => 'customfield',
2195
+        'field' => 'phpcode',
2196
+        'relationship' => 'none',
2197 2197
     ),
2198 2198
     'serialnum' => array(
2199
-      'label' => 'Serial Number',
2200
-      'alter' => array(
2199
+        'label' => 'Serial Number',
2200
+        'alter' => array(
2201 2201
         'alter_text' => 0,
2202 2202
         'text' => '',
2203 2203
         'make_link' => 0,
@@ -2214,19 +2214,19 @@  discard block
 block discarded – undo
2214 2214
         'ellipsis' => 1,
2215 2215
         'html' => 0,
2216 2216
         'strip_tags' => 0,
2217
-      ),
2218
-      'empty' => '',
2219
-      'hide_empty' => 0,
2220
-      'empty_zero' => 0,
2221
-      'exclude' => 1,
2222
-      'id' => 'serialnum',
2223
-      'table' => 'host',
2224
-      'field' => 'serialnum',
2225
-      'relationship' => 'none',
2217
+        ),
2218
+        'empty' => '',
2219
+        'hide_empty' => 0,
2220
+        'empty_zero' => 0,
2221
+        'exclude' => 1,
2222
+        'id' => 'serialnum',
2223
+        'table' => 'host',
2224
+        'field' => 'serialnum',
2225
+        'relationship' => 'none',
2226 2226
     ),
2227 2227
     'p_vendor' => array(
2228
-      'label' => 'CPU',
2229
-      'alter' => array(
2228
+        'label' => 'CPU',
2229
+        'alter' => array(
2230 2230
         'alter_text' => 0,
2231 2231
         'text' => '',
2232 2232
         'make_link' => 0,
@@ -2243,19 +2243,19 @@  discard block
 block discarded – undo
2243 2243
         'ellipsis' => 1,
2244 2244
         'html' => 0,
2245 2245
         'strip_tags' => 0,
2246
-      ),
2247
-      'empty' => '',
2248
-      'hide_empty' => 0,
2249
-      'empty_zero' => 0,
2250
-      'exclude' => 1,
2251
-      'id' => 'p_vendor',
2252
-      'table' => 'host',
2253
-      'field' => 'p_vendor',
2254
-      'relationship' => 'none',
2246
+        ),
2247
+        'empty' => '',
2248
+        'hide_empty' => 0,
2249
+        'empty_zero' => 0,
2250
+        'exclude' => 1,
2251
+        'id' => 'p_vendor',
2252
+        'table' => 'host',
2253
+        'field' => 'p_vendor',
2254
+        'relationship' => 'none',
2255 2255
     ),
2256 2256
     'p_model' => array(
2257
-      'label' => 'CPU type',
2258
-      'alter' => array(
2257
+        'label' => 'CPU type',
2258
+        'alter' => array(
2259 2259
         'alter_text' => 1,
2260 2260
         'text' => '[p_vendor] [p_model]',
2261 2261
         'make_link' => 0,
@@ -2274,20 +2274,20 @@  discard block
 block discarded – undo
2274 2274
         'ellipsis' => 1,
2275 2275
         'html' => 0,
2276 2276
         'strip_tags' => 0,
2277
-      ),
2278
-      'empty' => '',
2279
-      'hide_empty' => 0,
2280
-      'empty_zero' => 0,
2281
-      'hide_alter_empty' => 1,
2282
-      'exclude' => 0,
2283
-      'id' => 'p_model',
2284
-      'table' => 'host',
2285
-      'field' => 'p_model',
2286
-      'relationship' => 'none',
2277
+        ),
2278
+        'empty' => '',
2279
+        'hide_empty' => 0,
2280
+        'empty_zero' => 0,
2281
+        'hide_alter_empty' => 1,
2282
+        'exclude' => 0,
2283
+        'id' => 'p_model',
2284
+        'table' => 'host',
2285
+        'field' => 'p_model',
2286
+        'relationship' => 'none',
2287 2287
     ),
2288 2288
     'p_ncpus' => array(
2289
-      'label' => 'Number of processors',
2290
-      'alter' => array(
2289
+        'label' => 'Number of processors',
2290
+        'alter' => array(
2291 2291
         'alter_text' => 0,
2292 2292
         'text' => '',
2293 2293
         'make_link' => 0,
@@ -2304,19 +2304,19 @@  discard block
 block discarded – undo
2304 2304
         'ellipsis' => 1,
2305 2305
         'html' => 0,
2306 2306
         'strip_tags' => 0,
2307
-      ),
2308
-      'empty' => '',
2309
-      'hide_empty' => 0,
2310
-      'empty_zero' => 0,
2311
-      'exclude' => 0,
2312
-      'id' => 'p_ncpus',
2313
-      'table' => 'host',
2314
-      'field' => 'p_ncpus',
2315
-      'relationship' => 'none',
2307
+        ),
2308
+        'empty' => '',
2309
+        'hide_empty' => 0,
2310
+        'empty_zero' => 0,
2311
+        'exclude' => 0,
2312
+        'id' => 'p_ncpus',
2313
+        'table' => 'host',
2314
+        'field' => 'p_ncpus',
2315
+        'relationship' => 'none',
2316 2316
     ),
2317 2317
     'phpcode_1' => array(
2318
-      'label' => 'Coprocessors',
2319
-      'alter' => array(
2318
+        'label' => 'Coprocessors',
2319
+        'alter' => array(
2320 2320
         'alter_text' => 0,
2321 2321
         'text' => '',
2322 2322
         'make_link' => 0,
@@ -2333,25 +2333,25 @@  discard block
 block discarded – undo
2333 2333
         'ellipsis' => 1,
2334 2334
         'html' => 0,
2335 2335
         'strip_tags' => 0,
2336
-      ),
2337
-      'empty' => '',
2338
-      'hide_empty' => 1,
2339
-      'empty_zero' => 0,
2340
-      'value' => '<?php
2336
+        ),
2337
+        'empty' => '',
2338
+        'hide_empty' => 1,
2339
+        'empty_zero' => 0,
2340
+        'value' => '<?php
2341 2341
   if ($data->host_serialnum) {
2342 2342
     require_boinc(\'host\');
2343 2343
     echo gpu_desc($data->host_serialnum);
2344 2344
   }
2345 2345
 ?>',
2346
-      'exclude' => 0,
2347
-      'id' => 'phpcode_1',
2348
-      'table' => 'customfield',
2349
-      'field' => 'phpcode',
2350
-      'relationship' => 'none',
2346
+        'exclude' => 0,
2347
+        'id' => 'phpcode_1',
2348
+        'table' => 'customfield',
2349
+        'field' => 'phpcode',
2350
+        'relationship' => 'none',
2351 2351
     ),
2352 2352
     'os_name' => array(
2353
-      'label' => 'Operating system',
2354
-      'alter' => array(
2353
+        'label' => 'Operating system',
2354
+        'alter' => array(
2355 2355
         'alter_text' => 0,
2356 2356
         'text' => '',
2357 2357
         'make_link' => 0,
@@ -2368,19 +2368,19 @@  discard block
 block discarded – undo
2368 2368
         'ellipsis' => 1,
2369 2369
         'html' => 0,
2370 2370
         'strip_tags' => 0,
2371
-      ),
2372
-      'empty' => '',
2373
-      'hide_empty' => 0,
2374
-      'empty_zero' => 0,
2375
-      'exclude' => 1,
2376
-      'id' => 'os_name',
2377
-      'table' => 'host',
2378
-      'field' => 'os_name',
2379
-      'relationship' => 'none',
2371
+        ),
2372
+        'empty' => '',
2373
+        'hide_empty' => 0,
2374
+        'empty_zero' => 0,
2375
+        'exclude' => 1,
2376
+        'id' => 'os_name',
2377
+        'table' => 'host',
2378
+        'field' => 'os_name',
2379
+        'relationship' => 'none',
2380 2380
     ),
2381 2381
     'os_version' => array(
2382
-      'label' => 'Operating system',
2383
-      'alter' => array(
2382
+        'label' => 'Operating system',
2383
+        'alter' => array(
2384 2384
         'alter_text' => 1,
2385 2385
         'text' => '[os_name] [os_version]',
2386 2386
         'make_link' => 0,
@@ -2399,20 +2399,20 @@  discard block
 block discarded – undo
2399 2399
         'ellipsis' => 1,
2400 2400
         'html' => 0,
2401 2401
         'strip_tags' => 0,
2402
-      ),
2403
-      'empty' => '',
2404
-      'hide_empty' => 0,
2405
-      'empty_zero' => 0,
2406
-      'hide_alter_empty' => 1,
2407
-      'exclude' => 0,
2408
-      'id' => 'os_version',
2409
-      'table' => 'host',
2410
-      'field' => 'os_version',
2411
-      'relationship' => 'none',
2402
+        ),
2403
+        'empty' => '',
2404
+        'hide_empty' => 0,
2405
+        'empty_zero' => 0,
2406
+        'hide_alter_empty' => 1,
2407
+        'exclude' => 0,
2408
+        'id' => 'os_version',
2409
+        'table' => 'host',
2410
+        'field' => 'os_version',
2411
+        'relationship' => 'none',
2412 2412
     ),
2413 2413
     'phpcode' => array(
2414
-      'label' => 'BOINC client version',
2415
-      'alter' => array(
2414
+        'label' => 'BOINC client version',
2415
+        'alter' => array(
2416 2416
         'alter_text' => 0,
2417 2417
         'text' => '',
2418 2418
         'make_link' => 0,
@@ -2429,24 +2429,24 @@  discard block
 block discarded – undo
2429 2429
         'ellipsis' => 1,
2430 2430
         'html' => 0,
2431 2431
         'strip_tags' => 0,
2432
-      ),
2433
-      'empty' => '',
2434
-      'hide_empty' => 1,
2435
-      'empty_zero' => 0,
2436
-      'value' => '<?php
2432
+        ),
2433
+        'empty' => '',
2434
+        'hide_empty' => 1,
2435
+        'empty_zero' => 0,
2436
+        'value' => '<?php
2437 2437
   require_boinc(\'host\');
2438 2438
   $version = boinc_version($data->host_serialnum);
2439 2439
   if ($version) echo $version;
2440 2440
 ?>',
2441
-      'exclude' => 0,
2442
-      'id' => 'phpcode',
2443
-      'table' => 'customfield',
2444
-      'field' => 'phpcode',
2445
-      'relationship' => 'none',
2441
+        'exclude' => 0,
2442
+        'id' => 'phpcode',
2443
+        'table' => 'customfield',
2444
+        'field' => 'phpcode',
2445
+        'relationship' => 'none',
2446 2446
     ),
2447 2447
     'm_nbytes' => array(
2448
-      'label' => 'Memory',
2449
-      'alter' => array(
2448
+        'label' => 'Memory',
2449
+        'alter' => array(
2450 2450
         'alter_text' => 0,
2451 2451
         'text' => '',
2452 2452
         'make_link' => 0,
@@ -2463,25 +2463,25 @@  discard block
 block discarded – undo
2463 2463
         'ellipsis' => 1,
2464 2464
         'html' => 0,
2465 2465
         'strip_tags' => 0,
2466
-      ),
2467
-      'empty' => '',
2468
-      'hide_empty' => 0,
2469
-      'empty_zero' => 0,
2470
-      'set_precision' => FALSE,
2471
-      'precision' => 0,
2472
-      'decimal' => '.',
2473
-      'separator' => '',
2474
-      'prefix' => '',
2475
-      'suffix' => '',
2476
-      'exclude' => 1,
2477
-      'id' => 'm_nbytes',
2478
-      'table' => 'host',
2479
-      'field' => 'm_nbytes',
2480
-      'relationship' => 'none',
2466
+        ),
2467
+        'empty' => '',
2468
+        'hide_empty' => 0,
2469
+        'empty_zero' => 0,
2470
+        'set_precision' => FALSE,
2471
+        'precision' => 0,
2472
+        'decimal' => '.',
2473
+        'separator' => '',
2474
+        'prefix' => '',
2475
+        'suffix' => '',
2476
+        'exclude' => 1,
2477
+        'id' => 'm_nbytes',
2478
+        'table' => 'host',
2479
+        'field' => 'm_nbytes',
2480
+        'relationship' => 'none',
2481 2481
     ),
2482 2482
     'm_cache' => array(
2483
-      'label' => 'Cache',
2484
-      'alter' => array(
2483
+        'label' => 'Cache',
2484
+        'alter' => array(
2485 2485
         'alter_text' => 0,
2486 2486
         'text' => '',
2487 2487
         'make_link' => 0,
@@ -2498,25 +2498,25 @@  discard block
 block discarded – undo
2498 2498
         'ellipsis' => 1,
2499 2499
         'html' => 0,
2500 2500
         'strip_tags' => 0,
2501
-      ),
2502
-      'empty' => '',
2503
-      'hide_empty' => 0,
2504
-      'empty_zero' => 0,
2505
-      'set_precision' => FALSE,
2506
-      'precision' => 0,
2507
-      'decimal' => '.',
2508
-      'separator' => '',
2509
-      'prefix' => '',
2510
-      'suffix' => '',
2511
-      'exclude' => 1,
2512
-      'id' => 'm_cache',
2513
-      'table' => 'host',
2514
-      'field' => 'm_cache',
2515
-      'relationship' => 'none',
2501
+        ),
2502
+        'empty' => '',
2503
+        'hide_empty' => 0,
2504
+        'empty_zero' => 0,
2505
+        'set_precision' => FALSE,
2506
+        'precision' => 0,
2507
+        'decimal' => '.',
2508
+        'separator' => '',
2509
+        'prefix' => '',
2510
+        'suffix' => '',
2511
+        'exclude' => 1,
2512
+        'id' => 'm_cache',
2513
+        'table' => 'host',
2514
+        'field' => 'm_cache',
2515
+        'relationship' => 'none',
2516 2516
     ),
2517 2517
     'phpcode_8' => array(
2518
-      'label' => 'Memory',
2519
-      'alter' => array(
2518
+        'label' => 'Memory',
2519
+        'alter' => array(
2520 2520
         'alter_text' => 0,
2521 2521
         'text' => '',
2522 2522
         'make_link' => 0,
@@ -2533,22 +2533,22 @@  discard block
 block discarded – undo
2533 2533
         'ellipsis' => 1,
2534 2534
         'html' => 0,
2535 2535
         'strip_tags' => 0,
2536
-      ),
2537
-      'empty' => '',
2538
-      'hide_empty' => 0,
2539
-      'empty_zero' => 0,
2540
-      'value' => '<?php
2536
+        ),
2537
+        'empty' => '',
2538
+        'hide_empty' => 0,
2539
+        'empty_zero' => 0,
2540
+        'value' => '<?php
2541 2541
   echo round($data->host_m_nbytes/(1024*1024), 2) . \' MiB\';
2542 2542
 ?>',
2543
-      'exclude' => 0,
2544
-      'id' => 'phpcode_8',
2545
-      'table' => 'customfield',
2546
-      'field' => 'phpcode',
2547
-      'relationship' => 'none',
2543
+        'exclude' => 0,
2544
+        'id' => 'phpcode_8',
2545
+        'table' => 'customfield',
2546
+        'field' => 'phpcode',
2547
+        'relationship' => 'none',
2548 2548
     ),
2549 2549
     'phpcode_9' => array(
2550
-      'label' => 'Cache',
2551
-      'alter' => array(
2550
+        'label' => 'Cache',
2551
+        'alter' => array(
2552 2552
         'alter_text' => 0,
2553 2553
         'text' => '',
2554 2554
         'make_link' => 0,
@@ -2565,22 +2565,22 @@  discard block
 block discarded – undo
2565 2565
         'ellipsis' => 1,
2566 2566
         'html' => 0,
2567 2567
         'strip_tags' => 0,
2568
-      ),
2569
-      'empty' => '',
2570
-      'hide_empty' => 0,
2571
-      'empty_zero' => 0,
2572
-      'value' => '<?php
2568
+        ),
2569
+        'empty' => '',
2570
+        'hide_empty' => 0,
2571
+        'empty_zero' => 0,
2572
+        'value' => '<?php
2573 2573
   echo round($data->host_m_cache/(1024), 2) . \' KiB\';
2574 2574
 ?>',
2575
-      'exclude' => 0,
2576
-      'id' => 'phpcode_9',
2577
-      'table' => 'customfield',
2578
-      'field' => 'phpcode',
2579
-      'relationship' => 'none',
2575
+        'exclude' => 0,
2576
+        'id' => 'phpcode_9',
2577
+        'table' => 'customfield',
2578
+        'field' => 'phpcode',
2579
+        'relationship' => 'none',
2580 2580
     ),
2581 2581
     'm_swap' => array(
2582
-      'label' => 'Swap space',
2583
-      'alter' => array(
2582
+        'label' => 'Swap space',
2583
+        'alter' => array(
2584 2584
         'alter_text' => 0,
2585 2585
         'text' => '',
2586 2586
         'make_link' => 0,
@@ -2597,25 +2597,25 @@  discard block
 block discarded – undo
2597 2597
         'ellipsis' => 1,
2598 2598
         'html' => 0,
2599 2599
         'strip_tags' => 0,
2600
-      ),
2601
-      'empty' => '',
2602
-      'hide_empty' => 0,
2603
-      'empty_zero' => 0,
2604
-      'set_precision' => FALSE,
2605
-      'precision' => 0,
2606
-      'decimal' => '.',
2607
-      'separator' => '',
2608
-      'prefix' => '',
2609
-      'suffix' => '',
2610
-      'exclude' => 1,
2611
-      'id' => 'm_swap',
2612
-      'table' => 'host',
2613
-      'field' => 'm_swap',
2614
-      'relationship' => 'none',
2600
+        ),
2601
+        'empty' => '',
2602
+        'hide_empty' => 0,
2603
+        'empty_zero' => 0,
2604
+        'set_precision' => FALSE,
2605
+        'precision' => 0,
2606
+        'decimal' => '.',
2607
+        'separator' => '',
2608
+        'prefix' => '',
2609
+        'suffix' => '',
2610
+        'exclude' => 1,
2611
+        'id' => 'm_swap',
2612
+        'table' => 'host',
2613
+        'field' => 'm_swap',
2614
+        'relationship' => 'none',
2615 2615
     ),
2616 2616
     'd_total' => array(
2617
-      'label' => 'Total disk space',
2618
-      'alter' => array(
2617
+        'label' => 'Total disk space',
2618
+        'alter' => array(
2619 2619
         'alter_text' => 0,
2620 2620
         'text' => '',
2621 2621
         'make_link' => 0,
@@ -2632,25 +2632,25 @@  discard block
 block discarded – undo
2632 2632
         'ellipsis' => 1,
2633 2633
         'html' => 0,
2634 2634
         'strip_tags' => 0,
2635
-      ),
2636
-      'empty' => '',
2637
-      'hide_empty' => 0,
2638
-      'empty_zero' => 0,
2639
-      'set_precision' => FALSE,
2640
-      'precision' => 0,
2641
-      'decimal' => '.',
2642
-      'separator' => '',
2643
-      'prefix' => '',
2644
-      'suffix' => '',
2645
-      'exclude' => 1,
2646
-      'id' => 'd_total',
2647
-      'table' => 'host',
2648
-      'field' => 'd_total',
2649
-      'relationship' => 'none',
2635
+        ),
2636
+        'empty' => '',
2637
+        'hide_empty' => 0,
2638
+        'empty_zero' => 0,
2639
+        'set_precision' => FALSE,
2640
+        'precision' => 0,
2641
+        'decimal' => '.',
2642
+        'separator' => '',
2643
+        'prefix' => '',
2644
+        'suffix' => '',
2645
+        'exclude' => 1,
2646
+        'id' => 'd_total',
2647
+        'table' => 'host',
2648
+        'field' => 'd_total',
2649
+        'relationship' => 'none',
2650 2650
     ),
2651 2651
     'd_free' => array(
2652
-      'label' => 'Free disk space',
2653
-      'alter' => array(
2652
+        'label' => 'Free disk space',
2653
+        'alter' => array(
2654 2654
         'alter_text' => 0,
2655 2655
         'text' => '',
2656 2656
         'make_link' => 0,
@@ -2667,25 +2667,25 @@  discard block
 block discarded – undo
2667 2667
         'ellipsis' => 1,
2668 2668
         'html' => 0,
2669 2669
         'strip_tags' => 0,
2670
-      ),
2671
-      'empty' => '',
2672
-      'hide_empty' => 0,
2673
-      'empty_zero' => 0,
2674
-      'set_precision' => FALSE,
2675
-      'precision' => 0,
2676
-      'decimal' => '.',
2677
-      'separator' => '',
2678
-      'prefix' => '',
2679
-      'suffix' => '',
2680
-      'exclude' => 1,
2681
-      'id' => 'd_free',
2682
-      'table' => 'host',
2683
-      'field' => 'd_free',
2684
-      'relationship' => 'none',
2670
+        ),
2671
+        'empty' => '',
2672
+        'hide_empty' => 0,
2673
+        'empty_zero' => 0,
2674
+        'set_precision' => FALSE,
2675
+        'precision' => 0,
2676
+        'decimal' => '.',
2677
+        'separator' => '',
2678
+        'prefix' => '',
2679
+        'suffix' => '',
2680
+        'exclude' => 1,
2681
+        'id' => 'd_free',
2682
+        'table' => 'host',
2683
+        'field' => 'd_free',
2684
+        'relationship' => 'none',
2685 2685
     ),
2686 2686
     'phpcode_10' => array(
2687
-      'label' => 'Swap space',
2688
-      'alter' => array(
2687
+        'label' => 'Swap space',
2688
+        'alter' => array(
2689 2689
         'alter_text' => 0,
2690 2690
         'text' => '',
2691 2691
         'make_link' => 0,
@@ -2702,24 +2702,24 @@  discard block
 block discarded – undo
2702 2702
         'ellipsis' => 1,
2703 2703
         'html' => 0,
2704 2704
         'strip_tags' => 0,
2705
-      ),
2706
-      'empty' => '',
2707
-      'hide_empty' => 1,
2708
-      'empty_zero' => 0,
2709
-      'value' => '<?php
2705
+        ),
2706
+        'empty' => '',
2707
+        'hide_empty' => 1,
2708
+        'empty_zero' => 0,
2709
+        'value' => '<?php
2710 2710
   if (is_current_boinc_user($data->host_userid)) {
2711 2711
     echo round($data->host_m_swap/(1024*1024), 2) . \' MiB\';
2712 2712
   }
2713 2713
 ?>',
2714
-      'exclude' => 0,
2715
-      'id' => 'phpcode_10',
2716
-      'table' => 'customfield',
2717
-      'field' => 'phpcode',
2718
-      'relationship' => 'none',
2714
+        'exclude' => 0,
2715
+        'id' => 'phpcode_10',
2716
+        'table' => 'customfield',
2717
+        'field' => 'phpcode',
2718
+        'relationship' => 'none',
2719 2719
     ),
2720 2720
     'phpcode_11' => array(
2721
-      'label' => 'Total disk space',
2722
-      'alter' => array(
2721
+        'label' => 'Total disk space',
2722
+        'alter' => array(
2723 2723
         'alter_text' => 0,
2724 2724
         'text' => '',
2725 2725
         'make_link' => 0,
@@ -2736,24 +2736,24 @@  discard block
 block discarded – undo
2736 2736
         'ellipsis' => 1,
2737 2737
         'html' => 0,
2738 2738
         'strip_tags' => 0,
2739
-      ),
2740
-      'empty' => '',
2741
-      'hide_empty' => 1,
2742
-      'empty_zero' => 0,
2743
-      'value' => '<?php
2739
+        ),
2740
+        'empty' => '',
2741
+        'hide_empty' => 1,
2742
+        'empty_zero' => 0,
2743
+        'value' => '<?php
2744 2744
   if (is_current_boinc_user($data->host_userid)) {
2745 2745
     echo round($data->host_d_total/(1024*1024*1024), 2) . \' GiB\';
2746 2746
   }
2747 2747
 ?>',
2748
-      'exclude' => 0,
2749
-      'id' => 'phpcode_11',
2750
-      'table' => 'customfield',
2751
-      'field' => 'phpcode',
2752
-      'relationship' => 'none',
2748
+        'exclude' => 0,
2749
+        'id' => 'phpcode_11',
2750
+        'table' => 'customfield',
2751
+        'field' => 'phpcode',
2752
+        'relationship' => 'none',
2753 2753
     ),
2754 2754
     'phpcode_12' => array(
2755
-      'label' => 'Free disk space',
2756
-      'alter' => array(
2755
+        'label' => 'Free disk space',
2756
+        'alter' => array(
2757 2757
         'alter_text' => 0,
2758 2758
         'text' => '',
2759 2759
         'make_link' => 0,
@@ -2770,24 +2770,24 @@  discard block
 block discarded – undo
2770 2770
         'ellipsis' => 1,
2771 2771
         'html' => 0,
2772 2772
         'strip_tags' => 0,
2773
-      ),
2774
-      'empty' => '',
2775
-      'hide_empty' => 1,
2776
-      'empty_zero' => 0,
2777
-      'value' => '<?php
2773
+        ),
2774
+        'empty' => '',
2775
+        'hide_empty' => 1,
2776
+        'empty_zero' => 0,
2777
+        'value' => '<?php
2778 2778
   if (is_current_boinc_user($data->host_userid)) {
2779 2779
     echo round($data->host_d_free/(1024*1024*1024), 2) . \' GiB\';
2780 2780
   }
2781 2781
 ?>',
2782
-      'exclude' => 0,
2783
-      'id' => 'phpcode_12',
2784
-      'table' => 'customfield',
2785
-      'field' => 'phpcode',
2786
-      'relationship' => 'none',
2782
+        'exclude' => 0,
2783
+        'id' => 'phpcode_12',
2784
+        'table' => 'customfield',
2785
+        'field' => 'phpcode',
2786
+        'relationship' => 'none',
2787 2787
     ),
2788 2788
     'n_bwdown' => array(
2789
-      'label' => 'Average download rate',
2790
-      'alter' => array(
2789
+        'label' => 'Average download rate',
2790
+        'alter' => array(
2791 2791
         'alter_text' => 0,
2792 2792
         'text' => '',
2793 2793
         'make_link' => 0,
@@ -2804,25 +2804,25 @@  discard block
 block discarded – undo
2804 2804
         'ellipsis' => 1,
2805 2805
         'html' => 0,
2806 2806
         'strip_tags' => 0,
2807
-      ),
2808
-      'empty' => '',
2809
-      'hide_empty' => 0,
2810
-      'empty_zero' => 0,
2811
-      'set_precision' => 0,
2812
-      'precision' => '0',
2813
-      'decimal' => '.',
2814
-      'separator' => '',
2815
-      'prefix' => '',
2816
-      'suffix' => '',
2817
-      'exclude' => 1,
2818
-      'id' => 'n_bwdown',
2819
-      'table' => 'host',
2820
-      'field' => 'n_bwdown',
2821
-      'relationship' => 'none',
2807
+        ),
2808
+        'empty' => '',
2809
+        'hide_empty' => 0,
2810
+        'empty_zero' => 0,
2811
+        'set_precision' => 0,
2812
+        'precision' => '0',
2813
+        'decimal' => '.',
2814
+        'separator' => '',
2815
+        'prefix' => '',
2816
+        'suffix' => '',
2817
+        'exclude' => 1,
2818
+        'id' => 'n_bwdown',
2819
+        'table' => 'host',
2820
+        'field' => 'n_bwdown',
2821
+        'relationship' => 'none',
2822 2822
     ),
2823 2823
     'avg_turnaround' => array(
2824
-      'label' => 'Average turnaround time',
2825
-      'alter' => array(
2824
+        'label' => 'Average turnaround time',
2825
+        'alter' => array(
2826 2826
         'alter_text' => 0,
2827 2827
         'text' => '',
2828 2828
         'make_link' => 0,
@@ -2839,25 +2839,25 @@  discard block
 block discarded – undo
2839 2839
         'ellipsis' => 1,
2840 2840
         'html' => 0,
2841 2841
         'strip_tags' => 0,
2842
-      ),
2843
-      'empty' => '',
2844
-      'hide_empty' => 0,
2845
-      'empty_zero' => 0,
2846
-      'set_precision' => 0,
2847
-      'precision' => '0',
2848
-      'decimal' => '.',
2849
-      'separator' => '',
2850
-      'prefix' => '',
2851
-      'suffix' => '',
2852
-      'exclude' => 1,
2853
-      'id' => 'avg_turnaround',
2854
-      'table' => 'host',
2855
-      'field' => 'avg_turnaround',
2856
-      'relationship' => 'none',
2842
+        ),
2843
+        'empty' => '',
2844
+        'hide_empty' => 0,
2845
+        'empty_zero' => 0,
2846
+        'set_precision' => 0,
2847
+        'precision' => '0',
2848
+        'decimal' => '.',
2849
+        'separator' => '',
2850
+        'prefix' => '',
2851
+        'suffix' => '',
2852
+        'exclude' => 1,
2853
+        'id' => 'avg_turnaround',
2854
+        'table' => 'host',
2855
+        'field' => 'avg_turnaround',
2856
+        'relationship' => 'none',
2857 2857
     ),
2858 2858
     'n_bwup' => array(
2859
-      'label' => 'Average upload rate',
2860
-      'alter' => array(
2859
+        'label' => 'Average upload rate',
2860
+        'alter' => array(
2861 2861
         'alter_text' => 0,
2862 2862
         'text' => '',
2863 2863
         'make_link' => 0,
@@ -2874,25 +2874,25 @@  discard block
 block discarded – undo
2874 2874
         'ellipsis' => 1,
2875 2875
         'html' => 0,
2876 2876
         'strip_tags' => 0,
2877
-      ),
2878
-      'empty' => '',
2879
-      'hide_empty' => 0,
2880
-      'empty_zero' => 0,
2881
-      'set_precision' => 0,
2882
-      'precision' => '0',
2883
-      'decimal' => '.',
2884
-      'separator' => '',
2885
-      'prefix' => '',
2886
-      'suffix' => '',
2887
-      'exclude' => 1,
2888
-      'id' => 'n_bwup',
2889
-      'table' => 'host',
2890
-      'field' => 'n_bwup',
2891
-      'relationship' => 'none',
2877
+        ),
2878
+        'empty' => '',
2879
+        'hide_empty' => 0,
2880
+        'empty_zero' => 0,
2881
+        'set_precision' => 0,
2882
+        'precision' => '0',
2883
+        'decimal' => '.',
2884
+        'separator' => '',
2885
+        'prefix' => '',
2886
+        'suffix' => '',
2887
+        'exclude' => 1,
2888
+        'id' => 'n_bwup',
2889
+        'table' => 'host',
2890
+        'field' => 'n_bwup',
2891
+        'relationship' => 'none',
2892 2892
     ),
2893 2893
     'p_fpops' => array(
2894
-      'label' => 'Measured floating point speed',
2895
-      'alter' => array(
2894
+        'label' => 'Measured floating point speed',
2895
+        'alter' => array(
2896 2896
         'alter_text' => 0,
2897 2897
         'text' => '',
2898 2898
         'make_link' => 0,
@@ -2909,25 +2909,25 @@  discard block
 block discarded – undo
2909 2909
         'ellipsis' => 1,
2910 2910
         'html' => 0,
2911 2911
         'strip_tags' => 0,
2912
-      ),
2913
-      'empty' => '',
2914
-      'hide_empty' => 0,
2915
-      'empty_zero' => 0,
2916
-      'set_precision' => 0,
2917
-      'precision' => '0',
2918
-      'decimal' => '.',
2919
-      'separator' => '',
2920
-      'prefix' => '',
2921
-      'suffix' => '',
2922
-      'exclude' => 1,
2923
-      'id' => 'p_fpops',
2924
-      'table' => 'host',
2925
-      'field' => 'p_fpops',
2926
-      'relationship' => 'none',
2912
+        ),
2913
+        'empty' => '',
2914
+        'hide_empty' => 0,
2915
+        'empty_zero' => 0,
2916
+        'set_precision' => 0,
2917
+        'precision' => '0',
2918
+        'decimal' => '.',
2919
+        'separator' => '',
2920
+        'prefix' => '',
2921
+        'suffix' => '',
2922
+        'exclude' => 1,
2923
+        'id' => 'p_fpops',
2924
+        'table' => 'host',
2925
+        'field' => 'p_fpops',
2926
+        'relationship' => 'none',
2927 2927
     ),
2928 2928
     'p_iops' => array(
2929
-      'label' => 'Measured integer speed',
2930
-      'alter' => array(
2929
+        'label' => 'Measured integer speed',
2930
+        'alter' => array(
2931 2931
         'alter_text' => 0,
2932 2932
         'text' => '',
2933 2933
         'make_link' => 0,
@@ -2944,25 +2944,25 @@  discard block
 block discarded – undo
2944 2944
         'ellipsis' => 1,
2945 2945
         'html' => 0,
2946 2946
         'strip_tags' => 0,
2947
-      ),
2948
-      'empty' => '',
2949
-      'hide_empty' => 0,
2950
-      'empty_zero' => 0,
2951
-      'set_precision' => 0,
2952
-      'precision' => '0',
2953
-      'decimal' => '.',
2954
-      'separator' => '',
2955
-      'prefix' => '',
2956
-      'suffix' => '',
2957
-      'exclude' => 1,
2958
-      'id' => 'p_iops',
2959
-      'table' => 'host',
2960
-      'field' => 'p_iops',
2961
-      'relationship' => 'none',
2947
+        ),
2948
+        'empty' => '',
2949
+        'hide_empty' => 0,
2950
+        'empty_zero' => 0,
2951
+        'set_precision' => 0,
2952
+        'precision' => '0',
2953
+        'decimal' => '.',
2954
+        'separator' => '',
2955
+        'prefix' => '',
2956
+        'suffix' => '',
2957
+        'exclude' => 1,
2958
+        'id' => 'p_iops',
2959
+        'table' => 'host',
2960
+        'field' => 'p_iops',
2961
+        'relationship' => 'none',
2962 2962
     ),
2963 2963
     'phpcode_13' => array(
2964
-      'label' => 'Measured floating point speed',
2965
-      'alter' => array(
2964
+        'label' => 'Measured floating point speed',
2965
+        'alter' => array(
2966 2966
         'alter_text' => 0,
2967 2967
         'text' => '',
2968 2968
         'make_link' => 0,
@@ -2981,25 +2981,25 @@  discard block
 block discarded – undo
2981 2981
         'ellipsis' => 1,
2982 2982
         'html' => 0,
2983 2983
         'strip_tags' => 0,
2984
-      ),
2985
-      'empty' => '',
2986
-      'hide_empty' => 0,
2987
-      'empty_zero' => 0,
2988
-      'hide_alter_empty' => 1,
2989
-      'value' => '<?php
2984
+        ),
2985
+        'empty' => '',
2986
+        'hide_empty' => 0,
2987
+        'empty_zero' => 0,
2988
+        'hide_alter_empty' => 1,
2989
+        'value' => '<?php
2990 2990
   echo bts(\'@count million ops/sec\',
2991 2991
     array(\'@count\' => round($data->host_p_fpops/(1000*1000), 2)),
2992 2992
     NULL, \'boinc:host-details\');
2993 2993
 ?>',
2994
-      'exclude' => 0,
2995
-      'id' => 'phpcode_13',
2996
-      'table' => 'customfield',
2997
-      'field' => 'phpcode',
2998
-      'relationship' => 'none',
2994
+        'exclude' => 0,
2995
+        'id' => 'phpcode_13',
2996
+        'table' => 'customfield',
2997
+        'field' => 'phpcode',
2998
+        'relationship' => 'none',
2999 2999
     ),
3000 3000
     'phpcode_14' => array(
3001
-      'label' => 'Measured integer speed',
3002
-      'alter' => array(
3001
+        'label' => 'Measured integer speed',
3002
+        'alter' => array(
3003 3003
         'alter_text' => 0,
3004 3004
         'text' => '',
3005 3005
         'make_link' => 0,
@@ -3018,25 +3018,25 @@  discard block
 block discarded – undo
3018 3018
         'ellipsis' => 1,
3019 3019
         'html' => 0,
3020 3020
         'strip_tags' => 0,
3021
-      ),
3022
-      'empty' => '',
3023
-      'hide_empty' => 0,
3024
-      'empty_zero' => 0,
3025
-      'hide_alter_empty' => 1,
3026
-      'value' => '<?php
3021
+        ),
3022
+        'empty' => '',
3023
+        'hide_empty' => 0,
3024
+        'empty_zero' => 0,
3025
+        'hide_alter_empty' => 1,
3026
+        'value' => '<?php
3027 3027
   echo bts(\'@count million ops/sec\',
3028 3028
     array(\'@count\' => round($data->host_p_iops/(1000*1000), 2)),
3029 3029
     NULL, \'boinc:host-details\');
3030 3030
 ?>',
3031
-      'exclude' => 0,
3032
-      'id' => 'phpcode_14',
3033
-      'table' => 'customfield',
3034
-      'field' => 'phpcode',
3035
-      'relationship' => 'none',
3031
+        'exclude' => 0,
3032
+        'id' => 'phpcode_14',
3033
+        'table' => 'customfield',
3034
+        'field' => 'phpcode',
3035
+        'relationship' => 'none',
3036 3036
     ),
3037 3037
     'phpcode_15' => array(
3038
-      'label' => 'Average upload rate',
3039
-      'alter' => array(
3038
+        'label' => 'Average upload rate',
3039
+        'alter' => array(
3040 3040
         'alter_text' => 0,
3041 3041
         'text' => '',
3042 3042
         'make_link' => 0,
@@ -3055,24 +3055,24 @@  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
-      'value' => '<?php
3058
+        ),
3059
+        'empty' => '',
3060
+        'hide_empty' => 0,
3061
+        'empty_zero' => 0,
3062
+        'hide_alter_empty' => 1,
3063
+        'value' => '<?php
3064 3064
   $rate = round($data->host_n_bwup/(1024), 2);
3065 3065
   echo ($rate > 0) ? bts(\'@rate KiB/sec\', array(\'@rate\' => $rate), NULL, \'boinc:host-details\') : bts(\'Unknown\', array(), NULL, \'boinc:host-details\');
3066 3066
 ?>',
3067
-      'exclude' => 0,
3068
-      'id' => 'phpcode_15',
3069
-      'table' => 'customfield',
3070
-      'field' => 'phpcode',
3071
-      'relationship' => 'none',
3067
+        'exclude' => 0,
3068
+        'id' => 'phpcode_15',
3069
+        'table' => 'customfield',
3070
+        'field' => 'phpcode',
3071
+        'relationship' => 'none',
3072 3072
     ),
3073 3073
     'phpcode_16' => array(
3074
-      'label' => 'Average download rate',
3075
-      'alter' => array(
3074
+        'label' => 'Average download rate',
3075
+        'alter' => array(
3076 3076
         'alter_text' => 0,
3077 3077
         'text' => '',
3078 3078
         'make_link' => 0,
@@ -3091,24 +3091,24 @@  discard block
 block discarded – undo
3091 3091
         'ellipsis' => 1,
3092 3092
         'html' => 0,
3093 3093
         'strip_tags' => 0,
3094
-      ),
3095
-      'empty' => '',
3096
-      'hide_empty' => 0,
3097
-      'empty_zero' => 0,
3098
-      'hide_alter_empty' => 1,
3099
-      'value' => '<?php
3094
+        ),
3095
+        'empty' => '',
3096
+        'hide_empty' => 0,
3097
+        'empty_zero' => 0,
3098
+        'hide_alter_empty' => 1,
3099
+        'value' => '<?php
3100 3100
   $rate = round($data->host_n_bwdown/(1024), 2);
3101 3101
   echo ($rate > 0) ? bts(\'@rate KiB/sec\', array(\'@rate\' => $rate), NULL, \'boinc:host-details\') : bts(\'Unknown\', array(), NULL, \'boinc:host-details\');
3102 3102
 ?>',
3103
-      'exclude' => 0,
3104
-      'id' => 'phpcode_16',
3105
-      'table' => 'customfield',
3106
-      'field' => 'phpcode',
3107
-      'relationship' => 'none',
3103
+        'exclude' => 0,
3104
+        'id' => 'phpcode_16',
3105
+        'table' => 'customfield',
3106
+        'field' => 'phpcode',
3107
+        'relationship' => 'none',
3108 3108
     ),
3109 3109
     'phpcode_17' => array(
3110
-      'label' => 'Average turnaround time',
3111
-      'alter' => array(
3110
+        'label' => 'Average turnaround time',
3111
+        'alter' => array(
3112 3112
         'alter_text' => 0,
3113 3113
         'text' => '',
3114 3114
         'make_link' => 0,
@@ -3127,23 +3127,23 @@  discard block
 block discarded – undo
3127 3127
         'ellipsis' => 1,
3128 3128
         'html' => 0,
3129 3129
         'strip_tags' => 0,
3130
-      ),
3131
-      'empty' => '',
3132
-      'hide_empty' => 0,
3133
-      'empty_zero' => 0,
3134
-      'hide_alter_empty' => 1,
3135
-      'value' => '<?php
3130
+        ),
3131
+        'empty' => '',
3132
+        'hide_empty' => 0,
3133
+        'empty_zero' => 0,
3134
+        'hide_alter_empty' => 1,
3135
+        'value' => '<?php
3136 3136
   echo bts(\'@count days\', array(\'@count\' => round($data->host_avg_turnaround/(60*60*24), 2)), NULL, \'boinc:host-details\');
3137 3137
 ?>',
3138
-      'exclude' => 0,
3139
-      'id' => 'phpcode_17',
3140
-      'table' => 'customfield',
3141
-      'field' => 'phpcode',
3142
-      'relationship' => 'none',
3138
+        'exclude' => 0,
3139
+        'id' => 'phpcode_17',
3140
+        'table' => 'customfield',
3141
+        'field' => 'phpcode',
3142
+        'relationship' => 'none',
3143 3143
     ),
3144 3144
     'max_results_day' => array(
3145
-      'label' => 'Maximum daily WU quota per CPU',
3146
-      'alter' => array(
3145
+        'label' => 'Maximum daily WU quota per CPU',
3146
+        'alter' => array(
3147 3147
         'alter_text' => 0,
3148 3148
         'text' => '',
3149 3149
         'make_link' => 0,
@@ -3162,29 +3162,29 @@  discard block
 block discarded – undo
3162 3162
         'ellipsis' => 1,
3163 3163
         'html' => 0,
3164 3164
         'strip_tags' => 0,
3165
-      ),
3166
-      'empty' => '',
3167
-      'hide_empty' => 0,
3168
-      'empty_zero' => 0,
3169
-      'hide_alter_empty' => 1,
3170
-      'set_precision' => FALSE,
3171
-      'precision' => 0,
3172
-      'decimal' => '.',
3173
-      'separator' => '',
3174
-      'format_plural' => 0,
3175
-      'format_plural_singular' => '1',
3176
-      'format_plural_plural' => '@count',
3177
-      'prefix' => '',
3178
-      'suffix' => '/day',
3179
-      'exclude' => 1,
3180
-      'id' => 'max_results_day',
3181
-      'table' => 'host',
3182
-      'field' => 'max_results_day',
3183
-      'relationship' => 'none',
3165
+        ),
3166
+        'empty' => '',
3167
+        'hide_empty' => 0,
3168
+        'empty_zero' => 0,
3169
+        'hide_alter_empty' => 1,
3170
+        'set_precision' => FALSE,
3171
+        'precision' => 0,
3172
+        'decimal' => '.',
3173
+        'separator' => '',
3174
+        'format_plural' => 0,
3175
+        'format_plural_singular' => '1',
3176
+        'format_plural_plural' => '@count',
3177
+        'prefix' => '',
3178
+        'suffix' => '/day',
3179
+        'exclude' => 1,
3180
+        'id' => 'max_results_day',
3181
+        'table' => 'host',
3182
+        'field' => 'max_results_day',
3183
+        'relationship' => 'none',
3184 3184
     ),
3185 3185
     'nothing' => array(
3186
-      'label' => 'Application details',
3187
-      'alter' => array(
3186
+        'label' => 'Application details',
3187
+        'alter' => array(
3188 3188
         'text' => 'Show',
3189 3189
         'make_link' => 1,
3190 3190
         'path' => 'host/!1/apps',
@@ -3202,23 +3202,23 @@  discard block
 block discarded – undo
3202 3202
         'ellipsis' => 1,
3203 3203
         'html' => 0,
3204 3204
         'strip_tags' => 0,
3205
-      ),
3206
-      'empty' => '',
3207
-      'hide_empty' => 0,
3208
-      'empty_zero' => 0,
3209
-      'hide_alter_empty' => 1,
3210
-      'exclude' => 0,
3211
-      'id' => 'nothing',
3212
-      'table' => 'views',
3213
-      'field' => 'nothing',
3214
-      'override' => array(
3205
+        ),
3206
+        'empty' => '',
3207
+        'hide_empty' => 0,
3208
+        'empty_zero' => 0,
3209
+        'hide_alter_empty' => 1,
3210
+        'exclude' => 0,
3211
+        'id' => 'nothing',
3212
+        'table' => 'views',
3213
+        'field' => 'nothing',
3214
+        'override' => array(
3215 3215
         'button' => 'Override',
3216
-      ),
3217
-      'relationship' => 'none',
3216
+        ),
3217
+        'relationship' => 'none',
3218 3218
     ),
3219 3219
     'phpcode_18' => array(
3220
-      'label' => 'Tasks',
3221
-      'alter' => array(
3220
+        'label' => 'Tasks',
3221
+        'alter' => array(
3222 3222
         'alter_text' => 0,
3223 3223
         'text' => '',
3224 3224
         'make_link' => 0,
@@ -3237,12 +3237,12 @@  discard block
 block discarded – undo
3237 3237
         'ellipsis' => 1,
3238 3238
         'html' => 0,
3239 3239
         'strip_tags' => 0,
3240
-      ),
3241
-      'empty' => '0',
3242
-      'hide_empty' => 0,
3243
-      'empty_zero' => 0,
3244
-      'hide_alter_empty' => 0,
3245
-      'value' => '<?php
3240
+        ),
3241
+        'empty' => '0',
3242
+        'hide_empty' => 0,
3243
+        'empty_zero' => 0,
3244
+        'hide_alter_empty' => 0,
3245
+        'value' => '<?php
3246 3246
   //require_boint(\'util\');
3247 3247
   //$config = get_config();
3248 3248
   //if (parse_bool($config, "show_results")) {
@@ -3255,15 +3255,15 @@  discard block
 block discarded – undo
3255 3255
     }
3256 3256
   //}
3257 3257
 ?>',
3258
-      'exclude' => 0,
3259
-      'id' => 'phpcode_18',
3260
-      'table' => 'customfield',
3261
-      'field' => 'phpcode',
3262
-      'relationship' => 'none',
3258
+        'exclude' => 0,
3259
+        'id' => 'phpcode_18',
3260
+        'table' => 'customfield',
3261
+        'field' => 'phpcode',
3262
+        'relationship' => 'none',
3263 3263
     ),
3264 3264
     'rpc_seqno' => array(
3265
-      'label' => 'Number of times client has contacted server',
3266
-      'alter' => array(
3265
+        'label' => 'Number of times client has contacted server',
3266
+        'alter' => array(
3267 3267
         'alter_text' => 0,
3268 3268
         'text' => '',
3269 3269
         'make_link' => 0,
@@ -3280,25 +3280,25 @@  discard block
 block discarded – undo
3280 3280
         'ellipsis' => 1,
3281 3281
         'html' => 0,
3282 3282
         'strip_tags' => 0,
3283
-      ),
3284
-      'empty' => '',
3285
-      'hide_empty' => 0,
3286
-      'empty_zero' => 0,
3287
-      'set_precision' => FALSE,
3288
-      'precision' => 0,
3289
-      'decimal' => '.',
3290
-      'separator' => '',
3291
-      'prefix' => '',
3292
-      'suffix' => '',
3293
-      'exclude' => 1,
3294
-      'id' => 'rpc_seqno',
3295
-      'table' => 'host',
3296
-      'field' => 'rpc_seqno',
3297
-      'relationship' => 'none',
3283
+        ),
3284
+        'empty' => '',
3285
+        'hide_empty' => 0,
3286
+        'empty_zero' => 0,
3287
+        'set_precision' => FALSE,
3288
+        'precision' => 0,
3289
+        'decimal' => '.',
3290
+        'separator' => '',
3291
+        'prefix' => '',
3292
+        'suffix' => '',
3293
+        'exclude' => 1,
3294
+        'id' => 'rpc_seqno',
3295
+        'table' => 'host',
3296
+        'field' => 'rpc_seqno',
3297
+        'relationship' => 'none',
3298 3298
     ),
3299 3299
     'phpcode_2' => array(
3300
-      'label' => 'Number of times client has contacted server',
3301
-      'alter' => array(
3300
+        'label' => 'Number of times client has contacted server',
3301
+        'alter' => array(
3302 3302
         'alter_text' => 0,
3303 3303
         'text' => '',
3304 3304
         'make_link' => 0,
@@ -3317,23 +3317,23 @@  discard block
 block discarded – undo
3317 3317
         'ellipsis' => 1,
3318 3318
         'html' => 0,
3319 3319
         'strip_tags' => 0,
3320
-      ),
3321
-      'empty' => '0',
3322
-      'hide_empty' => 0,
3323
-      'empty_zero' => 0,
3324
-      'hide_alter_empty' => 0,
3325
-      'value' => '<?php
3320
+        ),
3321
+        'empty' => '0',
3322
+        'hide_empty' => 0,
3323
+        'empty_zero' => 0,
3324
+        'hide_alter_empty' => 0,
3325
+        'value' => '<?php
3326 3326
   echo $data->host_rpc_seqno;
3327 3327
 ?>',
3328
-      'exclude' => 0,
3329
-      'id' => 'phpcode_2',
3330
-      'table' => 'customfield',
3331
-      'field' => 'phpcode',
3332
-      'relationship' => 'none',
3328
+        'exclude' => 0,
3329
+        'id' => 'phpcode_2',
3330
+        'table' => 'customfield',
3331
+        'field' => 'phpcode',
3332
+        'relationship' => 'none',
3333 3333
     ),
3334 3334
     'on_frac' => array(
3335
-      'label' => '% of time BOINC client is running',
3336
-      'alter' => array(
3335
+        'label' => '% of time BOINC client is running',
3336
+        'alter' => array(
3337 3337
         'alter_text' => 0,
3338 3338
         'text' => '',
3339 3339
         'make_link' => 0,
@@ -3350,25 +3350,25 @@  discard block
 block discarded – undo
3350 3350
         'ellipsis' => 1,
3351 3351
         'html' => 0,
3352 3352
         'strip_tags' => 0,
3353
-      ),
3354
-      'empty' => '',
3355
-      'hide_empty' => 0,
3356
-      'empty_zero' => 0,
3357
-      'set_precision' => 0,
3358
-      'precision' => '0',
3359
-      'decimal' => '.',
3360
-      'separator' => '',
3361
-      'prefix' => '',
3362
-      'suffix' => '',
3363
-      'exclude' => 1,
3364
-      'id' => 'on_frac',
3365
-      'table' => 'host',
3366
-      'field' => 'on_frac',
3367
-      'relationship' => 'none',
3353
+        ),
3354
+        'empty' => '',
3355
+        'hide_empty' => 0,
3356
+        'empty_zero' => 0,
3357
+        'set_precision' => 0,
3358
+        'precision' => '0',
3359
+        'decimal' => '.',
3360
+        'separator' => '',
3361
+        'prefix' => '',
3362
+        'suffix' => '',
3363
+        'exclude' => 1,
3364
+        'id' => 'on_frac',
3365
+        'table' => 'host',
3366
+        'field' => 'on_frac',
3367
+        'relationship' => 'none',
3368 3368
     ),
3369 3369
     'rpc_time_1' => array(
3370
-      'label' => 'Last contact',
3371
-      'alter' => array(
3370
+        'label' => 'Last contact',
3371
+        'alter' => array(
3372 3372
         'alter_text' => 0,
3373 3373
         'text' => '',
3374 3374
         'make_link' => 0,
@@ -3385,21 +3385,21 @@  discard block
 block discarded – undo
3385 3385
         'ellipsis' => 1,
3386 3386
         'html' => 0,
3387 3387
         'strip_tags' => 0,
3388
-      ),
3389
-      'empty' => '',
3390
-      'hide_empty' => 0,
3391
-      'empty_zero' => 0,
3392
-      'date_format' => 'small',
3393
-      'custom_date_format' => '',
3394
-      'exclude' => 1,
3395
-      'id' => 'rpc_time_1',
3396
-      'table' => 'host',
3397
-      'field' => 'rpc_time',
3398
-      'relationship' => 'none',
3388
+        ),
3389
+        'empty' => '',
3390
+        'hide_empty' => 0,
3391
+        'empty_zero' => 0,
3392
+        'date_format' => 'small',
3393
+        'custom_date_format' => '',
3394
+        'exclude' => 1,
3395
+        'id' => 'rpc_time_1',
3396
+        'table' => 'host',
3397
+        'field' => 'rpc_time',
3398
+        'relationship' => 'none',
3399 3399
     ),
3400 3400
     'cpu_efficiency' => array(
3401
-      'label' => 'Average CPU efficiency',
3402
-      'alter' => array(
3401
+        'label' => 'Average CPU efficiency',
3402
+        'alter' => array(
3403 3403
         'alter_text' => 0,
3404 3404
         'text' => '',
3405 3405
         'make_link' => 0,
@@ -3416,25 +3416,25 @@  discard block
 block discarded – undo
3416 3416
         'ellipsis' => 1,
3417 3417
         'html' => 0,
3418 3418
         'strip_tags' => 0,
3419
-      ),
3420
-      'empty' => '',
3421
-      'hide_empty' => 0,
3422
-      'empty_zero' => 0,
3423
-      'set_precision' => 0,
3424
-      'precision' => '0',
3425
-      'decimal' => '.',
3426
-      'separator' => '',
3427
-      'prefix' => '',
3428
-      'suffix' => '',
3429
-      'exclude' => 1,
3430
-      'id' => 'cpu_efficiency',
3431
-      'table' => 'host',
3432
-      'field' => 'cpu_efficiency',
3433
-      'relationship' => 'none',
3419
+        ),
3420
+        'empty' => '',
3421
+        'hide_empty' => 0,
3422
+        'empty_zero' => 0,
3423
+        'set_precision' => 0,
3424
+        'precision' => '0',
3425
+        'decimal' => '.',
3426
+        'separator' => '',
3427
+        'prefix' => '',
3428
+        'suffix' => '',
3429
+        'exclude' => 1,
3430
+        'id' => 'cpu_efficiency',
3431
+        'table' => 'host',
3432
+        'field' => 'cpu_efficiency',
3433
+        'relationship' => 'none',
3434 3434
     ),
3435 3435
     'duration_correction_factor' => array(
3436
-      'label' => 'Task duration correction factor',
3437
-      'alter' => array(
3436
+        'label' => 'Task duration correction factor',
3437
+        'alter' => array(
3438 3438
         'alter_text' => 0,
3439 3439
         'text' => '',
3440 3440
         'make_link' => 0,
@@ -3451,25 +3451,25 @@  discard block
 block discarded – undo
3451 3451
         'ellipsis' => 1,
3452 3452
         'html' => 0,
3453 3453
         'strip_tags' => 0,
3454
-      ),
3455
-      'empty' => '',
3456
-      'hide_empty' => 0,
3457
-      'empty_zero' => 0,
3458
-      'set_precision' => FALSE,
3459
-      'precision' => 0,
3460
-      'decimal' => '.',
3461
-      'separator' => '',
3462
-      'prefix' => '',
3463
-      'suffix' => '',
3464
-      'exclude' => 1,
3465
-      'id' => 'duration_correction_factor',
3466
-      'table' => 'host',
3467
-      'field' => 'duration_correction_factor',
3468
-      'relationship' => 'none',
3454
+        ),
3455
+        'empty' => '',
3456
+        'hide_empty' => 0,
3457
+        'empty_zero' => 0,
3458
+        'set_precision' => FALSE,
3459
+        'precision' => 0,
3460
+        'decimal' => '.',
3461
+        'separator' => '',
3462
+        'prefix' => '',
3463
+        'suffix' => '',
3464
+        'exclude' => 1,
3465
+        'id' => 'duration_correction_factor',
3466
+        'table' => 'host',
3467
+        'field' => 'duration_correction_factor',
3468
+        'relationship' => 'none',
3469 3469
     ),
3470 3470
     'connected_frac' => array(
3471
-      'label' => 'While BOINC running, % of time host has an Internet connection',
3472
-      'alter' => array(
3471
+        'label' => 'While BOINC running, % of time host has an Internet connection',
3472
+        'alter' => array(
3473 3473
         'alter_text' => 0,
3474 3474
         'text' => '',
3475 3475
         'make_link' => 0,
@@ -3486,25 +3486,25 @@  discard block
 block discarded – undo
3486 3486
         'ellipsis' => 1,
3487 3487
         'html' => 0,
3488 3488
         'strip_tags' => 0,
3489
-      ),
3490
-      'empty' => '',
3491
-      'hide_empty' => 0,
3492
-      'empty_zero' => 0,
3493
-      'set_precision' => 0,
3494
-      'precision' => '0',
3495
-      'decimal' => '.',
3496
-      'separator' => '',
3497
-      'prefix' => '',
3498
-      'suffix' => '',
3499
-      'exclude' => 1,
3500
-      'id' => 'connected_frac',
3501
-      'table' => 'host',
3502
-      'field' => 'connected_frac',
3503
-      'relationship' => 'none',
3489
+        ),
3490
+        'empty' => '',
3491
+        'hide_empty' => 0,
3492
+        'empty_zero' => 0,
3493
+        'set_precision' => 0,
3494
+        'precision' => '0',
3495
+        'decimal' => '.',
3496
+        'separator' => '',
3497
+        'prefix' => '',
3498
+        'suffix' => '',
3499
+        'exclude' => 1,
3500
+        'id' => 'connected_frac',
3501
+        'table' => 'host',
3502
+        'field' => 'connected_frac',
3503
+        'relationship' => 'none',
3504 3504
     ),
3505 3505
     'active_frac' => array(
3506
-      'label' => 'While BOINC running, % of time work is allowed',
3507
-      'alter' => array(
3506
+        'label' => 'While BOINC running, % of time work is allowed',
3507
+        'alter' => array(
3508 3508
         'alter_text' => 0,
3509 3509
         'text' => '',
3510 3510
         'make_link' => 0,
@@ -3521,25 +3521,25 @@  discard block
 block discarded – undo
3521 3521
         'ellipsis' => 1,
3522 3522
         'html' => 0,
3523 3523
         'strip_tags' => 0,
3524
-      ),
3525
-      'empty' => '',
3526
-      'hide_empty' => 0,
3527
-      'empty_zero' => 0,
3528
-      'set_precision' => 0,
3529
-      'precision' => '0',
3530
-      'decimal' => '.',
3531
-      'separator' => '',
3532
-      'prefix' => '',
3533
-      'suffix' => '',
3534
-      'exclude' => 1,
3535
-      'id' => 'active_frac',
3536
-      'table' => 'host',
3537
-      'field' => 'active_frac',
3538
-      'relationship' => 'none',
3524
+        ),
3525
+        'empty' => '',
3526
+        'hide_empty' => 0,
3527
+        'empty_zero' => 0,
3528
+        'set_precision' => 0,
3529
+        'precision' => '0',
3530
+        'decimal' => '.',
3531
+        'separator' => '',
3532
+        'prefix' => '',
3533
+        'suffix' => '',
3534
+        'exclude' => 1,
3535
+        'id' => 'active_frac',
3536
+        'table' => 'host',
3537
+        'field' => 'active_frac',
3538
+        'relationship' => 'none',
3539 3539
     ),
3540 3540
     'phpcode_19' => array(
3541
-      'label' => 'Last time contacted server',
3542
-      'alter' => array(
3541
+        'label' => 'Last time contacted server',
3542
+        'alter' => array(
3543 3543
         'alter_text' => 0,
3544 3544
         'text' => '',
3545 3545
         'make_link' => 0,
@@ -3558,23 +3558,23 @@  discard block
 block discarded – undo
3558 3558
         'ellipsis' => 1,
3559 3559
         'html' => 0,
3560 3560
         'strip_tags' => 0,
3561
-      ),
3562
-      'empty' => '',
3563
-      'hide_empty' => 1,
3564
-      'empty_zero' => 0,
3565
-      'hide_alter_empty' => 1,
3566
-      'value' => '<?php
3561
+        ),
3562
+        'empty' => '',
3563
+        'hide_empty' => 1,
3564
+        'empty_zero' => 0,
3565
+        'hide_alter_empty' => 1,
3566
+        'value' => '<?php
3567 3567
   echo boincwork_host_last_contact($data->host_rpc_time, $data->id);
3568 3568
 ?>',
3569
-      'exclude' => 0,
3570
-      'id' => 'phpcode_19',
3571
-      'table' => 'customfield',
3572
-      'field' => 'phpcode',
3573
-      'relationship' => 'none',
3569
+        'exclude' => 0,
3570
+        'id' => 'phpcode_19',
3571
+        'table' => 'customfield',
3572
+        'field' => 'phpcode',
3573
+        'relationship' => 'none',
3574 3574
     ),
3575 3575
     'phpcode_20' => array(
3576
-      'label' => '% of time BOINC client is running',
3577
-      'alter' => array(
3576
+        'label' => '% of time BOINC client is running',
3577
+        'alter' => array(
3578 3578
         'alter_text' => 0,
3579 3579
         'text' => '',
3580 3580
         'make_link' => 0,
@@ -3591,24 +3591,24 @@  discard block
 block discarded – undo
3591 3591
         'ellipsis' => 1,
3592 3592
         'html' => 0,
3593 3593
         'strip_tags' => 0,
3594
-      ),
3595
-      'empty' => '',
3596
-      'hide_empty' => 1,
3597
-      'empty_zero' => 0,
3598
-      'value' => '<?php
3594
+        ),
3595
+        'empty' => '',
3596
+        'hide_empty' => 1,
3597
+        'empty_zero' => 0,
3598
+        'value' => '<?php
3599 3599
   if (is_current_boinc_user($data->host_userid)) {
3600 3600
     echo ($data->host_on_frac * 100) . \' %\';
3601 3601
   }
3602 3602
 ?>',
3603
-      'exclude' => 0,
3604
-      'id' => 'phpcode_20',
3605
-      'table' => 'customfield',
3606
-      'field' => 'phpcode',
3607
-      'relationship' => 'none',
3603
+        'exclude' => 0,
3604
+        'id' => 'phpcode_20',
3605
+        'table' => 'customfield',
3606
+        'field' => 'phpcode',
3607
+        'relationship' => 'none',
3608 3608
     ),
3609 3609
     'phpcode_21' => array(
3610
-      'label' => 'While BOINC running, % of time host has an Internet connection',
3611
-      'alter' => array(
3610
+        'label' => 'While BOINC running, % of time host has an Internet connection',
3611
+        'alter' => array(
3612 3612
         'alter_text' => 0,
3613 3613
         'text' => '',
3614 3614
         'make_link' => 0,
@@ -3625,26 +3625,26 @@  discard block
 block discarded – undo
3625 3625
         'ellipsis' => 1,
3626 3626
         'html' => 0,
3627 3627
         'strip_tags' => 0,
3628
-      ),
3629
-      'empty' => '',
3630
-      'hide_empty' => 1,
3631
-      'empty_zero' => 0,
3632
-      'value' => '<?php
3628
+        ),
3629
+        'empty' => '',
3630
+        'hide_empty' => 1,
3631
+        'empty_zero' => 0,
3632
+        'value' => '<?php
3633 3633
   if (is_current_boinc_user($data->host_userid)) {
3634 3634
     if ($data->host_connected_frac > 0) {
3635 3635
       echo ($data->host_connected_frac * 100) . \' %\';
3636 3636
     }
3637 3637
   }
3638 3638
 ?>',
3639
-      'exclude' => 0,
3640
-      'id' => 'phpcode_21',
3641
-      'table' => 'customfield',
3642
-      'field' => 'phpcode',
3643
-      'relationship' => 'none',
3639
+        'exclude' => 0,
3640
+        'id' => 'phpcode_21',
3641
+        'table' => 'customfield',
3642
+        'field' => 'phpcode',
3643
+        'relationship' => 'none',
3644 3644
     ),
3645 3645
     'phpcode_22' => array(
3646
-      'label' => 'While BOINC running, % of time work is allowed',
3647
-      'alter' => array(
3646
+        'label' => 'While BOINC running, % of time work is allowed',
3647
+        'alter' => array(
3648 3648
         'alter_text' => 0,
3649 3649
         'text' => '',
3650 3650
         'make_link' => 0,
@@ -3663,25 +3663,25 @@  discard block
 block discarded – undo
3663 3663
         'ellipsis' => 1,
3664 3664
         'html' => 0,
3665 3665
         'strip_tags' => 0,
3666
-      ),
3667
-      'empty' => '',
3668
-      'hide_empty' => 1,
3669
-      'empty_zero' => 0,
3670
-      'hide_alter_empty' => 1,
3671
-      'value' => '<?php
3666
+        ),
3667
+        'empty' => '',
3668
+        'hide_empty' => 1,
3669
+        'empty_zero' => 0,
3670
+        'hide_alter_empty' => 1,
3671
+        'value' => '<?php
3672 3672
   if (is_current_boinc_user($data->host_userid)) {
3673 3673
     echo ($data->host_active_frac * 100) . \' %\';
3674 3674
   }
3675 3675
 ?>',
3676
-      'exclude' => 0,
3677
-      'id' => 'phpcode_22',
3678
-      'table' => 'customfield',
3679
-      'field' => 'phpcode',
3680
-      'relationship' => 'none',
3676
+        'exclude' => 0,
3677
+        'id' => 'phpcode_22',
3678
+        'table' => 'customfield',
3679
+        'field' => 'phpcode',
3680
+        'relationship' => 'none',
3681 3681
     ),
3682 3682
     'phpcode_27' => array(
3683
-      'label' => 'Average CPU efficiency',
3684
-      'alter' => array(
3683
+        'label' => 'Average CPU efficiency',
3684
+        'alter' => array(
3685 3685
         'alter_text' => 0,
3686 3686
         'text' => '',
3687 3687
         'make_link' => 0,
@@ -3698,26 +3698,26 @@  discard block
 block discarded – undo
3698 3698
         'ellipsis' => 1,
3699 3699
         'html' => 0,
3700 3700
         'strip_tags' => 0,
3701
-      ),
3702
-      'empty' => '',
3703
-      'hide_empty' => 1,
3704
-      'empty_zero' => 0,
3705
-      'value' => '<?php
3701
+        ),
3702
+        'empty' => '',
3703
+        'hide_empty' => 1,
3704
+        'empty_zero' => 0,
3705
+        'value' => '<?php
3706 3706
   if (is_current_boinc_user($data->host_userid)) {
3707 3707
     if ($data->host_cpu_efficiency) {
3708 3708
       echo $data->host_cpu_efficiency;
3709 3709
     }
3710 3710
   }
3711 3711
 ?>',
3712
-      'exclude' => 0,
3713
-      'id' => 'phpcode_27',
3714
-      'table' => 'customfield',
3715
-      'field' => 'phpcode',
3716
-      'relationship' => 'none',
3712
+        'exclude' => 0,
3713
+        'id' => 'phpcode_27',
3714
+        'table' => 'customfield',
3715
+        'field' => 'phpcode',
3716
+        'relationship' => 'none',
3717 3717
     ),
3718 3718
     'phpcode_23' => array(
3719
-      'label' => 'Task duration correction factor',
3720
-      'alter' => array(
3719
+        'label' => 'Task duration correction factor',
3720
+        'alter' => array(
3721 3721
         'alter_text' => 0,
3722 3722
         'text' => '',
3723 3723
         'make_link' => 0,
@@ -3734,26 +3734,26 @@  discard block
 block discarded – undo
3734 3734
         'ellipsis' => 1,
3735 3735
         'html' => 0,
3736 3736
         'strip_tags' => 0,
3737
-      ),
3738
-      'empty' => '',
3739
-      'hide_empty' => 1,
3740
-      'empty_zero' => 0,
3741
-      'value' => '<?php
3737
+        ),
3738
+        'empty' => '',
3739
+        'hide_empty' => 1,
3740
+        'empty_zero' => 0,
3741
+        'value' => '<?php
3742 3742
   if (is_current_boinc_user($data->host_userid)) {
3743 3743
     if ($data->host_duration_correction_factor) {
3744 3744
       echo $data->host_duration_correction_factor;
3745 3745
     }
3746 3746
   }
3747 3747
 ?>',
3748
-      'exclude' => 0,
3749
-      'id' => 'phpcode_23',
3750
-      'table' => 'customfield',
3751
-      'field' => 'phpcode',
3752
-      'relationship' => 'none',
3748
+        'exclude' => 0,
3749
+        'id' => 'phpcode_23',
3750
+        'table' => 'customfield',
3751
+        'field' => 'phpcode',
3752
+        'relationship' => 'none',
3753 3753
     ),
3754 3754
     'phpcode_24' => array(
3755
-      'label' => 'Location',
3756
-      'alter' => array(
3755
+        'label' => 'Location',
3756
+        'alter' => array(
3757 3757
         'alter_text' => 0,
3758 3758
         'text' => '',
3759 3759
         'make_link' => 0,
@@ -3772,25 +3772,25 @@  discard block
 block discarded – undo
3772 3772
         'ellipsis' => 1,
3773 3773
         'html' => 0,
3774 3774
         'strip_tags' => 0,
3775
-      ),
3776
-      'empty' => '',
3777
-      'hide_empty' => 1,
3778
-      'empty_zero' => 0,
3779
-      'hide_alter_empty' => 1,
3780
-      'value' => '<?php
3775
+        ),
3776
+        'empty' => '',
3777
+        'hide_empty' => 1,
3778
+        'empty_zero' => 0,
3779
+        'hide_alter_empty' => 1,
3780
+        'value' => '<?php
3781 3781
   if (is_current_boinc_user($data->host_userid)) {
3782 3782
     echo boincwork_host_venue_selector($data->id);
3783 3783
   }
3784 3784
 ?>',
3785
-      'exclude' => 0,
3786
-      'id' => 'phpcode_24',
3787
-      'table' => 'customfield',
3788
-      'field' => 'phpcode',
3789
-      'relationship' => 'none',
3785
+        'exclude' => 0,
3786
+        'id' => 'phpcode_24',
3787
+        'table' => 'customfield',
3788
+        'field' => 'phpcode',
3789
+        'relationship' => 'none',
3790 3790
     ),
3791 3791
     'phpcode_25' => array(
3792
-      'label' => 'Actions ',
3793
-      'alter' => array(
3792
+        'label' => 'Actions ',
3793
+        'alter' => array(
3794 3794
         'alter_text' => 0,
3795 3795
         'text' => '',
3796 3796
         'make_link' => 0,
@@ -3809,48 +3809,48 @@  discard block
 block discarded – undo
3809 3809
         'ellipsis' => 1,
3810 3810
         'html' => 0,
3811 3811
         'strip_tags' => 0,
3812
-      ),
3813
-      'empty' => '',
3814
-      'hide_empty' => 1,
3815
-      'empty_zero' => 0,
3816
-      'hide_alter_empty' => 1,
3817
-      'value' => '<?php
3812
+        ),
3813
+        'empty' => '',
3814
+        'hide_empty' => 1,
3815
+        'empty_zero' => 0,
3816
+        'hide_alter_empty' => 1,
3817
+        'value' => '<?php
3818 3818
   echo boincwork_host_action_links($data->id);
3819 3819
 ?>',
3820
-      'exclude' => 0,
3821
-      'id' => 'phpcode_25',
3822
-      'table' => 'customfield',
3823
-      'field' => 'phpcode',
3824
-      'relationship' => 'none',
3825
-    ),
3826
-  ));
3827
-  $handler->override_option('arguments', array(
3820
+        'exclude' => 0,
3821
+        'id' => 'phpcode_25',
3822
+        'table' => 'customfield',
3823
+        'field' => 'phpcode',
3824
+        'relationship' => 'none',
3825
+    ),
3826
+    ));
3827
+    $handler->override_option('arguments', array(
3828 3828
     'id' => array(
3829
-      'default_action' => 'not found',
3830
-      'style_plugin' => 'default_summary',
3831
-      'style_options' => array(),
3832
-      'wildcard' => 'all',
3833
-      'wildcard_substitution' => 'All',
3834
-      'title' => 'Computer %1',
3835
-      'breadcrumb' => '',
3836
-      'default_argument_type' => 'fixed',
3837
-      'default_argument' => '',
3838
-      'validate_type' => 'numeric',
3839
-      'validate_fail' => 'not found',
3840
-      'id' => 'id',
3841
-      'table' => 'host',
3842
-      'field' => 'id',
3843
-      'validate_user_argument_type' => 'uid',
3844
-      'validate_user_roles' => array(
3829
+        'default_action' => 'not found',
3830
+        'style_plugin' => 'default_summary',
3831
+        'style_options' => array(),
3832
+        'wildcard' => 'all',
3833
+        'wildcard_substitution' => 'All',
3834
+        'title' => 'Computer %1',
3835
+        'breadcrumb' => '',
3836
+        'default_argument_type' => 'fixed',
3837
+        'default_argument' => '',
3838
+        'validate_type' => 'numeric',
3839
+        'validate_fail' => 'not found',
3840
+        'id' => 'id',
3841
+        'table' => 'host',
3842
+        'field' => 'id',
3843
+        'validate_user_argument_type' => 'uid',
3844
+        'validate_user_roles' => array(
3845 3845
         2 => 0,
3846 3846
         3 => 0,
3847
-      ),
3848
-      'relationship' => 'none',
3849
-      'default_options_div_prefix' => '',
3850
-      'default_argument_fixed' => '',
3851
-      'default_argument_user' => 0,
3852
-      'default_argument_php' => '',
3853
-      'validate_argument_node_type' => array(
3847
+        ),
3848
+        'relationship' => 'none',
3849
+        'default_options_div_prefix' => '',
3850
+        'default_argument_fixed' => '',
3851
+        'default_argument_user' => 0,
3852
+        'default_argument_php' => '',
3853
+        'validate_argument_node_type' => array(
3854 3854
         'forum' => 0,
3855 3855
         'job_post' => 0,
3856 3856
         'news' => 0,
@@ -3858,44 +3858,44 @@  discard block
 block discarded – undo
3858 3858
         'profile' => 0,
3859 3859
         'story' => 0,
3860 3860
         'team' => 0,
3861
-      ),
3862
-      'validate_argument_node_access' => 0,
3863
-      'validate_argument_nid_type' => 'nid',
3864
-      'validate_argument_vocabulary' => array(
3861
+        ),
3862
+        'validate_argument_node_access' => 0,
3863
+        'validate_argument_nid_type' => 'nid',
3864
+        'validate_argument_vocabulary' => array(
3865 3865
         1 => 0,
3866
-      ),
3867
-      'validate_argument_type' => 'tid',
3868
-      'validate_argument_transform' => 0,
3869
-      'validate_user_restrict_roles' => 0,
3870
-      'validate_argument_php' => '',
3866
+        ),
3867
+        'validate_argument_type' => 'tid',
3868
+        'validate_argument_transform' => 0,
3869
+        'validate_user_restrict_roles' => 0,
3870
+        'validate_argument_php' => '',
3871 3871
     ),
3872 3872
     'null' => array(
3873
-      'default_action' => 'default',
3874
-      'style_plugin' => 'default_summary',
3875
-      'style_options' => array(),
3876
-      'wildcard' => 'all',
3877
-      'wildcard_substitution' => 'All',
3878
-      'title' => '',
3879
-      'breadcrumb' => '',
3880
-      'default_argument_type' => 'fixed',
3881
-      'default_argument' => '',
3882
-      'validate_type' => 'none',
3883
-      'validate_fail' => 'not found',
3884
-      'must_not_be' => 0,
3885
-      'id' => 'null',
3886
-      'table' => 'views',
3887
-      'field' => 'null',
3888
-      'validate_user_argument_type' => 'uid',
3889
-      'validate_user_roles' => array(
3873
+        'default_action' => 'default',
3874
+        'style_plugin' => 'default_summary',
3875
+        'style_options' => array(),
3876
+        'wildcard' => 'all',
3877
+        'wildcard_substitution' => 'All',
3878
+        'title' => '',
3879
+        'breadcrumb' => '',
3880
+        'default_argument_type' => 'fixed',
3881
+        'default_argument' => '',
3882
+        'validate_type' => 'none',
3883
+        'validate_fail' => 'not found',
3884
+        'must_not_be' => 0,
3885
+        'id' => 'null',
3886
+        'table' => 'views',
3887
+        'field' => 'null',
3888
+        'validate_user_argument_type' => 'uid',
3889
+        'validate_user_roles' => array(
3890 3890
         2 => 0,
3891 3891
         3 => 0,
3892
-      ),
3893
-      'relationship' => 'none',
3894
-      'default_options_div_prefix' => '',
3895
-      'default_argument_fixed' => '0',
3896
-      'default_argument_user' => 0,
3897
-      'default_argument_php' => '',
3898
-      'validate_argument_node_type' => array(
3892
+        ),
3893
+        'relationship' => 'none',
3894
+        'default_options_div_prefix' => '',
3895
+        'default_argument_fixed' => '0',
3896
+        'default_argument_user' => 0,
3897
+        'default_argument_php' => '',
3898
+        'validate_argument_node_type' => array(
3899 3899
         'forum' => 0,
3900 3900
         'job_post' => 0,
3901 3901
         'news' => 0,
@@ -3903,98 +3903,98 @@  discard block
 block discarded – undo
3903 3903
         'profile' => 0,
3904 3904
         'story' => 0,
3905 3905
         'team' => 0,
3906
-      ),
3907
-      'validate_argument_node_access' => 0,
3908
-      'validate_argument_nid_type' => 'nid',
3909
-      'validate_argument_vocabulary' => array(
3906
+        ),
3907
+        'validate_argument_node_access' => 0,
3908
+        'validate_argument_nid_type' => 'nid',
3909
+        'validate_argument_vocabulary' => array(
3910 3910
         1 => 0,
3911
-      ),
3912
-      'validate_argument_type' => 'tid',
3913
-      'validate_argument_transform' => 0,
3914
-      'validate_user_restrict_roles' => 0,
3915
-      'validate_argument_php' => '',
3916
-    ),
3917
-  ));
3918
-  $handler->override_option('access', array(
3911
+        ),
3912
+        'validate_argument_type' => 'tid',
3913
+        'validate_argument_transform' => 0,
3914
+        'validate_user_restrict_roles' => 0,
3915
+        'validate_argument_php' => '',
3916
+    ),
3917
+    ));
3918
+    $handler->override_option('access', array(
3919 3919
     'type' => 'none',
3920
-  ));
3921
-  $handler->override_option('cache', array(
3920
+    ));
3921
+    $handler->override_option('cache', array(
3922 3922
     'type' => 'none',
3923
-  ));
3924
-  $handler->override_option('items_per_page', 0);
3925
-  $handler->override_option('distinct', 0);
3926
-  $handler->override_option('style_plugin', 'grid');
3927
-  $handler->override_option('style_options', array(
3923
+    ));
3924
+    $handler->override_option('items_per_page', 0);
3925
+    $handler->override_option('distinct', 0);
3926
+    $handler->override_option('style_plugin', 'grid');
3927
+    $handler->override_option('style_options', array(
3928 3928
     'grouping' => '',
3929 3929
     'columns' => '2',
3930 3930
     'alignment' => 'vertical',
3931 3931
     'fill_single_line' => 1,
3932
-  ));
3933
-  $handler->override_option('row_options', array(
3932
+    ));
3933
+    $handler->override_option('row_options', array(
3934 3934
     'inline' => array(),
3935 3935
     'separator' => '',
3936 3936
     'hide_empty' => 0,
3937
-  ));
3938
-  $handler = $view->new_display('page', 'Page', 'page_1');
3939
-  $handler->override_option('row_options', array());
3940
-  $handler->override_option('path', 'host');
3941
-  $handler->override_option('menu', array(
3937
+    ));
3938
+    $handler = $view->new_display('page', 'Page', 'page_1');
3939
+    $handler->override_option('row_options', array());
3940
+    $handler->override_option('path', 'host');
3941
+    $handler->override_option('menu', array(
3942 3942
     'type' => 'none',
3943 3943
     'title' => 'All computers',
3944 3944
     'description' => 'Show all computers associated with the account',
3945 3945
     'weight' => '1',
3946 3946
     'name' => 'navigation',
3947
-  ));
3948
-  $handler->override_option('tab_options', array(
3947
+    ));
3948
+    $handler->override_option('tab_options', array(
3949 3949
     'type' => 'none',
3950 3950
     'title' => '',
3951 3951
     'description' => '',
3952 3952
     'weight' => 0,
3953 3953
     'name' => 'navigation',
3954
-  ));
3954
+    ));
3955 3955
 
3956
-  $views[$view->name] = $view;
3956
+    $views[$view->name] = $view;
3957 3957
 
3958
-  // Exported view: boinc_host_apps
3959
-  $view = new view;
3960
-  $view->name = 'boinc_host_apps';
3961
-  $view->description = '';
3962
-  $view->tag = '';
3963
-  $view->base_table = 'host';
3964
-  $view->core = 6;
3965
-  $view->api_version = '2';
3966
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
3967
-  $handler = $view->new_display('default', 'Defaults', 'default');
3968
-  $handler->override_option('relationships', array(
3958
+    // Exported view: boinc_host_apps
3959
+    $view = new view;
3960
+    $view->name = 'boinc_host_apps';
3961
+    $view->description = '';
3962
+    $view->tag = '';
3963
+    $view->base_table = 'host';
3964
+    $view->core = 6;
3965
+    $view->api_version = '2';
3966
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
3967
+    $handler = $view->new_display('default', 'Defaults', 'default');
3968
+    $handler->override_option('relationships', array(
3969 3969
     'app_version_id' => array(
3970
-      'label' => 'App version',
3971
-      'required' => 1,
3972
-      'id' => 'app_version_id',
3973
-      'table' => 'host_app_version',
3974
-      'field' => 'app_version_id',
3975
-      'relationship' => 'none',
3970
+        'label' => 'App version',
3971
+        'required' => 1,
3972
+        'id' => 'app_version_id',
3973
+        'table' => 'host_app_version',
3974
+        'field' => 'app_version_id',
3975
+        'relationship' => 'none',
3976 3976
     ),
3977 3977
     'appid' => array(
3978
-      'label' => 'App ID',
3979
-      'required' => 1,
3980
-      'id' => 'appid',
3981
-      'table' => 'app_version',
3982
-      'field' => 'appid',
3983
-      'relationship' => 'app_version_id',
3978
+        'label' => 'App ID',
3979
+        'required' => 1,
3980
+        'id' => 'appid',
3981
+        'table' => 'app_version',
3982
+        'field' => 'appid',
3983
+        'relationship' => 'app_version_id',
3984 3984
     ),
3985 3985
     'platformid' => array(
3986
-      'label' => 'Platform ID',
3987
-      'required' => 1,
3988
-      'id' => 'platformid',
3989
-      'table' => 'app_version',
3990
-      'field' => 'platformid',
3991
-      'relationship' => 'app_version_id',
3992
-    ),
3993
-  ));
3994
-  $handler->override_option('fields', array(
3986
+        'label' => 'Platform ID',
3987
+        'required' => 1,
3988
+        'id' => 'platformid',
3989
+        'table' => 'app_version',
3990
+        'field' => 'platformid',
3991
+        'relationship' => 'app_version_id',
3992
+    ),
3993
+    ));
3994
+    $handler->override_option('fields', array(
3995 3995
     'user_friendly_name' => array(
3996
-      'label' => '',
3997
-      'alter' => array(
3996
+        'label' => '',
3997
+        'alter' => array(
3998 3998
         'alter_text' => 0,
3999 3999
         'text' => '',
4000 4000
         'make_link' => 0,
@@ -4013,20 +4013,20 @@  discard block
 block discarded – undo
4013 4013
         'ellipsis' => 1,
4014 4014
         'html' => 0,
4015 4015
         'strip_tags' => 0,
4016
-      ),
4017
-      'empty' => '',
4018
-      'hide_empty' => 0,
4019
-      'empty_zero' => 0,
4020
-      'hide_alter_empty' => 1,
4021
-      'exclude' => 0,
4022
-      'id' => 'user_friendly_name',
4023
-      'table' => 'app',
4024
-      'field' => 'user_friendly_name',
4025
-      'relationship' => 'appid',
4016
+        ),
4017
+        'empty' => '',
4018
+        'hide_empty' => 0,
4019
+        'empty_zero' => 0,
4020
+        'hide_alter_empty' => 1,
4021
+        'exclude' => 0,
4022
+        'id' => 'user_friendly_name',
4023
+        'table' => 'app',
4024
+        'field' => 'user_friendly_name',
4025
+        'relationship' => 'appid',
4026 4026
     ),
4027 4027
     'version_num' => array(
4028
-      'label' => '',
4029
-      'alter' => array(
4028
+        'label' => '',
4029
+        'alter' => array(
4030 4030
         'alter_text' => 0,
4031 4031
         'text' => '',
4032 4032
         'make_link' => 0,
@@ -4045,29 +4045,29 @@  discard block
 block discarded – undo
4045 4045
         'ellipsis' => 1,
4046 4046
         'html' => 0,
4047 4047
         'strip_tags' => 0,
4048
-      ),
4049
-      'empty' => '',
4050
-      'hide_empty' => 0,
4051
-      'empty_zero' => 0,
4052
-      'hide_alter_empty' => 1,
4053
-      'exclude' => 0,
4054
-      'set_precision' => 0,
4055
-      'precision' => '2',
4056
-      'decimal' => '.',
4057
-      'separator' => '',
4058
-      'format_plural' => 0,
4059
-      'format_plural_singular' => '1',
4060
-      'format_plural_plural' => '@count',
4061
-      'prefix' => '',
4062
-      'suffix' => '',
4063
-      'id' => 'version_num',
4064
-      'table' => 'app_version',
4065
-      'field' => 'version_num',
4066
-      'relationship' => 'app_version_id',
4048
+        ),
4049
+        'empty' => '',
4050
+        'hide_empty' => 0,
4051
+        'empty_zero' => 0,
4052
+        'hide_alter_empty' => 1,
4053
+        'exclude' => 0,
4054
+        'set_precision' => 0,
4055
+        'precision' => '2',
4056
+        'decimal' => '.',
4057
+        'separator' => '',
4058
+        'format_plural' => 0,
4059
+        'format_plural_singular' => '1',
4060
+        'format_plural_plural' => '@count',
4061
+        'prefix' => '',
4062
+        'suffix' => '',
4063
+        'id' => 'version_num',
4064
+        'table' => 'app_version',
4065
+        'field' => 'version_num',
4066
+        'relationship' => 'app_version_id',
4067 4067
     ),
4068 4068
     'name' => array(
4069
-      'label' => '',
4070
-      'alter' => array(
4069
+        'label' => '',
4070
+        'alter' => array(
4071 4071
         'alter_text' => 0,
4072 4072
         'text' => '',
4073 4073
         'make_link' => 0,
@@ -4086,20 +4086,20 @@  discard block
 block discarded – undo
4086 4086
         'ellipsis' => 1,
4087 4087
         'html' => 0,
4088 4088
         'strip_tags' => 0,
4089
-      ),
4090
-      'empty' => '',
4091
-      'hide_empty' => 0,
4092
-      'empty_zero' => 0,
4093
-      'hide_alter_empty' => 1,
4094
-      'exclude' => 0,
4095
-      'id' => 'name',
4096
-      'table' => 'platform',
4097
-      'field' => 'name',
4098
-      'relationship' => 'platformid',
4089
+        ),
4090
+        'empty' => '',
4091
+        'hide_empty' => 0,
4092
+        'empty_zero' => 0,
4093
+        'hide_alter_empty' => 1,
4094
+        'exclude' => 0,
4095
+        'id' => 'name',
4096
+        'table' => 'platform',
4097
+        'field' => 'name',
4098
+        'relationship' => 'platformid',
4099 4099
     ),
4100 4100
     'plan_class' => array(
4101
-      'label' => '',
4102
-      'alter' => array(
4101
+        'label' => '',
4102
+        'alter' => array(
4103 4103
         'alter_text' => 1,
4104 4104
         'text' => '([plan_class])',
4105 4105
         'make_link' => 0,
@@ -4118,20 +4118,20 @@  discard block
 block discarded – undo
4118 4118
         'ellipsis' => 1,
4119 4119
         'html' => 0,
4120 4120
         'strip_tags' => 0,
4121
-      ),
4122
-      'empty' => '',
4123
-      'hide_empty' => 0,
4124
-      'empty_zero' => 0,
4125
-      'hide_alter_empty' => 1,
4126
-      'exclude' => 0,
4127
-      'id' => 'plan_class',
4128
-      'table' => 'app_version',
4129
-      'field' => 'plan_class',
4130
-      'relationship' => 'app_version_id',
4121
+        ),
4122
+        'empty' => '',
4123
+        'hide_empty' => 0,
4124
+        'empty_zero' => 0,
4125
+        'hide_alter_empty' => 1,
4126
+        'exclude' => 0,
4127
+        'id' => 'plan_class',
4128
+        'table' => 'app_version',
4129
+        'field' => 'plan_class',
4130
+        'relationship' => 'app_version_id',
4131 4131
     ),
4132 4132
     'et_n' => array(
4133
-      'label' => 'Number of tasks completed',
4134
-      'alter' => array(
4133
+        'label' => 'Number of tasks completed',
4134
+        'alter' => array(
4135 4135
         'alter_text' => 0,
4136 4136
         'text' => '',
4137 4137
         'make_link' => 0,
@@ -4150,29 +4150,29 @@  discard block
 block discarded – undo
4150 4150
         'ellipsis' => 1,
4151 4151
         'html' => 0,
4152 4152
         'strip_tags' => 0,
4153
-      ),
4154
-      'empty' => '',
4155
-      'hide_empty' => 0,
4156
-      'empty_zero' => 0,
4157
-      'hide_alter_empty' => 0,
4158
-      'set_precision' => FALSE,
4159
-      'precision' => 0,
4160
-      'decimal' => '.',
4161
-      'separator' => '',
4162
-      'format_plural' => 0,
4163
-      'format_plural_singular' => '1',
4164
-      'format_plural_plural' => '@count',
4165
-      'prefix' => '',
4166
-      'suffix' => '',
4167
-      'exclude' => 0,
4168
-      'id' => 'et_n',
4169
-      'table' => 'host_app_version',
4170
-      'field' => 'et_n',
4171
-      'relationship' => 'none',
4153
+        ),
4154
+        'empty' => '',
4155
+        'hide_empty' => 0,
4156
+        'empty_zero' => 0,
4157
+        'hide_alter_empty' => 0,
4158
+        'set_precision' => FALSE,
4159
+        'precision' => 0,
4160
+        'decimal' => '.',
4161
+        'separator' => '',
4162
+        'format_plural' => 0,
4163
+        'format_plural_singular' => '1',
4164
+        'format_plural_plural' => '@count',
4165
+        'prefix' => '',
4166
+        'suffix' => '',
4167
+        'exclude' => 0,
4168
+        'id' => 'et_n',
4169
+        'table' => 'host_app_version',
4170
+        'field' => 'et_n',
4171
+        'relationship' => 'none',
4172 4172
     ),
4173 4173
     'max_jobs_per_day' => array(
4174
-      'label' => 'Max tasks per day',
4175
-      'alter' => array(
4174
+        'label' => 'Max tasks per day',
4175
+        'alter' => array(
4176 4176
         'alter_text' => 0,
4177 4177
         'text' => '',
4178 4178
         'make_link' => 0,
@@ -4191,29 +4191,29 @@  discard block
 block discarded – undo
4191 4191
         'ellipsis' => 1,
4192 4192
         'html' => 0,
4193 4193
         'strip_tags' => 0,
4194
-      ),
4195
-      'empty' => '',
4196
-      'hide_empty' => 0,
4197
-      'empty_zero' => 0,
4198
-      'hide_alter_empty' => 0,
4199
-      'set_precision' => FALSE,
4200
-      'precision' => 0,
4201
-      'decimal' => '.',
4202
-      'separator' => '',
4203
-      'format_plural' => 0,
4204
-      'format_plural_singular' => '1',
4205
-      'format_plural_plural' => '@count',
4206
-      'prefix' => '',
4207
-      'suffix' => '',
4208
-      'exclude' => 0,
4209
-      'id' => 'max_jobs_per_day',
4210
-      'table' => 'host_app_version',
4211
-      'field' => 'max_jobs_per_day',
4212
-      'relationship' => 'none',
4194
+        ),
4195
+        'empty' => '',
4196
+        'hide_empty' => 0,
4197
+        'empty_zero' => 0,
4198
+        'hide_alter_empty' => 0,
4199
+        'set_precision' => FALSE,
4200
+        'precision' => 0,
4201
+        'decimal' => '.',
4202
+        'separator' => '',
4203
+        'format_plural' => 0,
4204
+        'format_plural_singular' => '1',
4205
+        'format_plural_plural' => '@count',
4206
+        'prefix' => '',
4207
+        'suffix' => '',
4208
+        'exclude' => 0,
4209
+        'id' => 'max_jobs_per_day',
4210
+        'table' => 'host_app_version',
4211
+        'field' => 'max_jobs_per_day',
4212
+        'relationship' => 'none',
4213 4213
     ),
4214 4214
     'n_jobs_today' => array(
4215
-      'label' => 'Number of tasks today',
4216
-      'alter' => array(
4215
+        'label' => 'Number of tasks today',
4216
+        'alter' => array(
4217 4217
         'alter_text' => 0,
4218 4218
         'text' => '',
4219 4219
         'make_link' => 0,
@@ -4232,29 +4232,29 @@  discard block
 block discarded – undo
4232 4232
         'ellipsis' => 1,
4233 4233
         'html' => 0,
4234 4234
         'strip_tags' => 0,
4235
-      ),
4236
-      'empty' => '',
4237
-      'hide_empty' => 0,
4238
-      'empty_zero' => 0,
4239
-      'hide_alter_empty' => 0,
4240
-      'set_precision' => FALSE,
4241
-      'precision' => 0,
4242
-      'decimal' => '.',
4243
-      'separator' => '',
4244
-      'format_plural' => 0,
4245
-      'format_plural_singular' => '1',
4246
-      'format_plural_plural' => '@count',
4247
-      'prefix' => '',
4248
-      'suffix' => '',
4249
-      'exclude' => 0,
4250
-      'id' => 'n_jobs_today',
4251
-      'table' => 'host_app_version',
4252
-      'field' => 'n_jobs_today',
4253
-      'relationship' => 'none',
4235
+        ),
4236
+        'empty' => '',
4237
+        'hide_empty' => 0,
4238
+        'empty_zero' => 0,
4239
+        'hide_alter_empty' => 0,
4240
+        'set_precision' => FALSE,
4241
+        'precision' => 0,
4242
+        'decimal' => '.',
4243
+        'separator' => '',
4244
+        'format_plural' => 0,
4245
+        'format_plural_singular' => '1',
4246
+        'format_plural_plural' => '@count',
4247
+        'prefix' => '',
4248
+        'suffix' => '',
4249
+        'exclude' => 0,
4250
+        'id' => 'n_jobs_today',
4251
+        'table' => 'host_app_version',
4252
+        'field' => 'n_jobs_today',
4253
+        'relationship' => 'none',
4254 4254
     ),
4255 4255
     'consecutive_valid' => array(
4256
-      'label' => 'Consecutive valid tasks',
4257
-      'alter' => array(
4256
+        'label' => 'Consecutive valid tasks',
4257
+        'alter' => array(
4258 4258
         'alter_text' => 0,
4259 4259
         'text' => '',
4260 4260
         'make_link' => 0,
@@ -4273,29 +4273,29 @@  discard block
 block discarded – undo
4273 4273
         'ellipsis' => 1,
4274 4274
         'html' => 0,
4275 4275
         'strip_tags' => 0,
4276
-      ),
4277
-      'empty' => '',
4278
-      'hide_empty' => 0,
4279
-      'empty_zero' => 0,
4280
-      'hide_alter_empty' => 0,
4281
-      'set_precision' => FALSE,
4282
-      'precision' => 0,
4283
-      'decimal' => '.',
4284
-      'separator' => '',
4285
-      'format_plural' => 0,
4286
-      'format_plural_singular' => '1',
4287
-      'format_plural_plural' => '@count',
4288
-      'prefix' => '',
4289
-      'suffix' => '',
4290
-      'exclude' => 0,
4291
-      'id' => 'consecutive_valid',
4292
-      'table' => 'host_app_version',
4293
-      'field' => 'consecutive_valid',
4294
-      'relationship' => 'none',
4276
+        ),
4277
+        'empty' => '',
4278
+        'hide_empty' => 0,
4279
+        'empty_zero' => 0,
4280
+        'hide_alter_empty' => 0,
4281
+        'set_precision' => FALSE,
4282
+        'precision' => 0,
4283
+        'decimal' => '.',
4284
+        'separator' => '',
4285
+        'format_plural' => 0,
4286
+        'format_plural_singular' => '1',
4287
+        'format_plural_plural' => '@count',
4288
+        'prefix' => '',
4289
+        'suffix' => '',
4290
+        'exclude' => 0,
4291
+        'id' => 'consecutive_valid',
4292
+        'table' => 'host_app_version',
4293
+        'field' => 'consecutive_valid',
4294
+        'relationship' => 'none',
4295 4295
     ),
4296 4296
     'et_avg' => array(
4297
-      'label' => 'Average processing rate',
4298
-      'alter' => array(
4297
+        'label' => 'Average processing rate',
4298
+        'alter' => array(
4299 4299
         'alter_text' => 0,
4300 4300
         'text' => '',
4301 4301
         'make_link' => 0,
@@ -4314,29 +4314,29 @@  discard block
 block discarded – undo
4314 4314
         'ellipsis' => 1,
4315 4315
         'html' => 0,
4316 4316
         'strip_tags' => 0,
4317
-      ),
4318
-      'empty' => '',
4319
-      'hide_empty' => 0,
4320
-      'empty_zero' => 0,
4321
-      'hide_alter_empty' => 1,
4322
-      'exclude' => 0,
4323
-      'set_precision' => FALSE,
4324
-      'precision' => 0,
4325
-      'decimal' => '.',
4326
-      'separator' => ',',
4327
-      'format_plural' => 0,
4328
-      'format_plural_singular' => '1',
4329
-      'format_plural_plural' => '@count',
4330
-      'prefix' => '',
4331
-      'suffix' => '',
4332
-      'id' => 'et_avg',
4333
-      'table' => 'host_app_version',
4334
-      'field' => 'et_avg',
4335
-      'relationship' => 'none',
4317
+        ),
4318
+        'empty' => '',
4319
+        'hide_empty' => 0,
4320
+        'empty_zero' => 0,
4321
+        'hide_alter_empty' => 1,
4322
+        'exclude' => 0,
4323
+        'set_precision' => FALSE,
4324
+        'precision' => 0,
4325
+        'decimal' => '.',
4326
+        'separator' => ',',
4327
+        'format_plural' => 0,
4328
+        'format_plural_singular' => '1',
4329
+        'format_plural_plural' => '@count',
4330
+        'prefix' => '',
4331
+        'suffix' => '',
4332
+        'id' => 'et_avg',
4333
+        'table' => 'host_app_version',
4334
+        'field' => 'et_avg',
4335
+        'relationship' => 'none',
4336 4336
     ),
4337 4337
     'turnaround_avg' => array(
4338
-      'label' => 'Average turnaround time',
4339
-      'alter' => array(
4338
+        'label' => 'Average turnaround time',
4339
+        'alter' => array(
4340 4340
         'alter_text' => 0,
4341 4341
         'text' => '',
4342 4342
         'make_link' => 0,
@@ -4355,45 +4355,45 @@  discard block
 block discarded – undo
4355 4355
         'ellipsis' => 1,
4356 4356
         'html' => 0,
4357 4357
         'strip_tags' => 0,
4358
-      ),
4359
-      'empty' => '',
4360
-      'hide_empty' => 0,
4361
-      'empty_zero' => 0,
4362
-      'hide_alter_empty' => 1,
4363
-      'exclude' => 0,
4364
-      'set_precision' => 0,
4365
-      'precision' => '2',
4366
-      'decimal' => '.',
4367
-      'separator' => '',
4368
-      'format_plural' => 0,
4369
-      'format_plural_singular' => '1',
4370
-      'format_plural_plural' => '@count',
4371
-      'prefix' => '',
4372
-      'suffix' => '',
4373
-      'id' => 'turnaround_avg',
4374
-      'table' => 'host_app_version',
4375
-      'field' => 'turnaround_avg',
4376
-      'relationship' => 'none',
4358
+        ),
4359
+        'empty' => '',
4360
+        'hide_empty' => 0,
4361
+        'empty_zero' => 0,
4362
+        'hide_alter_empty' => 1,
4363
+        'exclude' => 0,
4364
+        'set_precision' => 0,
4365
+        'precision' => '2',
4366
+        'decimal' => '.',
4367
+        'separator' => '',
4368
+        'format_plural' => 0,
4369
+        'format_plural_singular' => '1',
4370
+        'format_plural_plural' => '@count',
4371
+        'prefix' => '',
4372
+        'suffix' => '',
4373
+        'id' => 'turnaround_avg',
4374
+        'table' => 'host_app_version',
4375
+        'field' => 'turnaround_avg',
4376
+        'relationship' => 'none',
4377 4377
     ),
4378
-  ));
4379
-  $handler->override_option('arguments', array(
4378
+    ));
4379
+    $handler->override_option('arguments', array(
4380 4380
     'host_id' => array(
4381
-      'default_action' => 'not found',
4382
-      'style_plugin' => 'default_summary',
4383
-      'style_options' => array(),
4384
-      'wildcard' => 'all',
4385
-      'wildcard_substitution' => 'All',
4386
-      'title' => '',
4387
-      'breadcrumb' => '',
4388
-      'default_argument_type' => 'fixed',
4389
-      'default_argument' => '',
4390
-      'validate_type' => 'numeric',
4391
-      'validate_fail' => 'not found',
4392
-      'id' => 'host_id',
4393
-      'table' => 'host_app_version',
4394
-      'field' => 'host_id',
4395
-      'validate_user_argument_type' => 'uid',
4396
-      'validate_user_roles' => array(
4381
+        'default_action' => 'not found',
4382
+        'style_plugin' => 'default_summary',
4383
+        'style_options' => array(),
4384
+        'wildcard' => 'all',
4385
+        'wildcard_substitution' => 'All',
4386
+        'title' => '',
4387
+        'breadcrumb' => '',
4388
+        'default_argument_type' => 'fixed',
4389
+        'default_argument' => '',
4390
+        'validate_type' => 'numeric',
4391
+        'validate_fail' => 'not found',
4392
+        'id' => 'host_id',
4393
+        'table' => 'host_app_version',
4394
+        'field' => 'host_id',
4395
+        'validate_user_argument_type' => 'uid',
4396
+        'validate_user_roles' => array(
4397 4397
         2 => 0,
4398 4398
         3519698132 => 0,
4399 4399
         1110965548 => 0,
@@ -4401,10 +4401,10 @@  discard block
 block discarded – undo
4401 4401
         1257454314 => 0,
4402 4402
         1271379760 => 0,
4403 4403
         933038561 => 0,
4404
-      ),
4405
-      'me_redirect' => 0,
4406
-      'me_validate_user_argument_type' => 'uid',
4407
-      'me_validate_user_roles' => array(
4404
+        ),
4405
+        'me_redirect' => 0,
4406
+        'me_validate_user_argument_type' => 'uid',
4407
+        'me_validate_user_roles' => array(
4408 4408
         2 => 0,
4409 4409
         3519698132 => 0,
4410 4410
         1110965548 => 0,
@@ -4412,20 +4412,20 @@  discard block
 block discarded – undo
4412 4412
         1257454314 => 0,
4413 4413
         1271379760 => 0,
4414 4414
         933038561 => 0,
4415
-      ),
4416
-      'relationship' => 'none',
4417
-      'default_options_div_prefix' => '',
4418
-      'default_taxonomy_tid_term_page' => 0,
4419
-      'default_taxonomy_tid_node' => 0,
4420
-      'default_taxonomy_tid_limit' => 0,
4421
-      'default_taxonomy_tid_vids' => array(
4415
+        ),
4416
+        'relationship' => 'none',
4417
+        'default_options_div_prefix' => '',
4418
+        'default_taxonomy_tid_term_page' => 0,
4419
+        'default_taxonomy_tid_node' => 0,
4420
+        'default_taxonomy_tid_limit' => 0,
4421
+        'default_taxonomy_tid_vids' => array(
4422 4422
         1 => 0,
4423 4423
         2 => 0,
4424
-      ),
4425
-      'default_argument_user' => 0,
4426
-      'default_argument_fixed' => '',
4427
-      'default_argument_php' => '',
4428
-      'validate_argument_node_type' => array(
4424
+        ),
4425
+        'default_argument_user' => 0,
4426
+        'default_argument_fixed' => '',
4427
+        'default_argument_php' => '',
4428
+        'validate_argument_node_type' => array(
4429 4429
         'page' => 0,
4430 4430
         'news' => 0,
4431 4431
         'team' => 0,
@@ -4434,51 +4434,51 @@  discard block
 block discarded – undo
4434 4434
         'forum' => 0,
4435 4435
         'panel' => 0,
4436 4436
         'story' => 0,
4437
-      ),
4438
-      'validate_argument_node_access' => 0,
4439
-      'validate_argument_nid_type' => 'nid',
4440
-      'validate_argument_vocabulary' => array(
4437
+        ),
4438
+        'validate_argument_node_access' => 0,
4439
+        'validate_argument_nid_type' => 'nid',
4440
+        'validate_argument_vocabulary' => array(
4441 4441
         1 => 0,
4442 4442
         2 => 0,
4443
-      ),
4444
-      'validate_argument_type' => 'tid',
4445
-      'validate_argument_transform' => 0,
4446
-      'validate_user_restrict_roles' => 0,
4447
-      'validate_argument_node_flag_name' => '*relationship*',
4448
-      'validate_argument_node_flag_test' => 'flaggable',
4449
-      'validate_argument_node_flag_id_type' => 'id',
4450
-      'validate_argument_user_flag_name' => '*relationship*',
4451
-      'validate_argument_user_flag_test' => 'flaggable',
4452
-      'validate_argument_user_flag_id_type' => 'id',
4453
-      'validate_argument_php' => '',
4454
-      'me_validate_user_restrict_roles' => 0,
4455
-    ),
4456
-  ));
4457
-  $handler->override_option('access', array(
4443
+        ),
4444
+        'validate_argument_type' => 'tid',
4445
+        'validate_argument_transform' => 0,
4446
+        'validate_user_restrict_roles' => 0,
4447
+        'validate_argument_node_flag_name' => '*relationship*',
4448
+        'validate_argument_node_flag_test' => 'flaggable',
4449
+        'validate_argument_node_flag_id_type' => 'id',
4450
+        'validate_argument_user_flag_name' => '*relationship*',
4451
+        'validate_argument_user_flag_test' => 'flaggable',
4452
+        'validate_argument_user_flag_id_type' => 'id',
4453
+        'validate_argument_php' => '',
4454
+        'me_validate_user_restrict_roles' => 0,
4455
+    ),
4456
+    ));
4457
+    $handler->override_option('access', array(
4458 4458
     'type' => 'none',
4459
-  ));
4460
-  $handler->override_option('cache', array(
4459
+    ));
4460
+    $handler->override_option('cache', array(
4461 4461
     'type' => 'none',
4462
-  ));
4463
-  $handler->override_option('use_pager', '1');
4464
-  $handler->override_option('style_options', array(
4462
+    ));
4463
+    $handler->override_option('use_pager', '1');
4464
+    $handler->override_option('style_options', array(
4465 4465
     'grouping' => '',
4466
-  ));
4467
-  $handler->override_option('row_options', array(
4466
+    ));
4467
+    $handler->override_option('row_options', array(
4468 4468
     'inline' => array(
4469
-      'user_friendly_name' => 'user_friendly_name',
4470
-      'version_num' => 'version_num',
4471
-      'name' => 'name',
4472
-      'plan_class' => 'plan_class',
4469
+        'user_friendly_name' => 'user_friendly_name',
4470
+        'version_num' => 'version_num',
4471
+        'name' => 'name',
4472
+        'plan_class' => 'plan_class',
4473 4473
     ),
4474 4474
     'separator' => ' ',
4475 4475
     'hide_empty' => 0,
4476
-  ));
4477
-  $handler = $view->new_display('page', 'Page', 'page_1');
4478
-  $handler->override_option('fields', array(
4476
+    ));
4477
+    $handler = $view->new_display('page', 'Page', 'page_1');
4478
+    $handler->override_option('fields', array(
4479 4479
     'user_friendly_name' => array(
4480
-      'label' => '',
4481
-      'alter' => array(
4480
+        'label' => '',
4481
+        'alter' => array(
4482 4482
         'alter_text' => 1,
4483 4483
         'text' => '<b>[user_friendly_name]',
4484 4484
         'make_link' => 0,
@@ -4497,23 +4497,23 @@  discard block
 block discarded – undo
4497 4497
         'ellipsis' => 1,
4498 4498
         'html' => 0,
4499 4499
         'strip_tags' => 0,
4500
-      ),
4501
-      'empty' => '',
4502
-      'hide_empty' => 0,
4503
-      'empty_zero' => 0,
4504
-      'hide_alter_empty' => 1,
4505
-      'exclude' => 0,
4506
-      'id' => 'user_friendly_name',
4507
-      'table' => 'app',
4508
-      'field' => 'user_friendly_name',
4509
-      'relationship' => 'appid',
4510
-      'override' => array(
4500
+        ),
4501
+        'empty' => '',
4502
+        'hide_empty' => 0,
4503
+        'empty_zero' => 0,
4504
+        'hide_alter_empty' => 1,
4505
+        'exclude' => 0,
4506
+        'id' => 'user_friendly_name',
4507
+        'table' => 'app',
4508
+        'field' => 'user_friendly_name',
4509
+        'relationship' => 'appid',
4510
+        'override' => array(
4511 4511
         'button' => 'Use default',
4512
-      ),
4512
+        ),
4513 4513
     ),
4514 4514
     'version_num' => array(
4515
-      'label' => '',
4516
-      'alter' => array(
4515
+        'label' => '',
4516
+        'alter' => array(
4517 4517
         'alter_text' => 0,
4518 4518
         'text' => '',
4519 4519
         'make_link' => 0,
@@ -4532,29 +4532,29 @@  discard block
 block discarded – undo
4532 4532
         'ellipsis' => 1,
4533 4533
         'html' => 0,
4534 4534
         'strip_tags' => 0,
4535
-      ),
4536
-      'empty' => '',
4537
-      'hide_empty' => 0,
4538
-      'empty_zero' => 0,
4539
-      'hide_alter_empty' => 1,
4540
-      'exclude' => 0,
4541
-      'set_precision' => 0,
4542
-      'precision' => '2',
4543
-      'decimal' => '.',
4544
-      'separator' => '',
4545
-      'format_plural' => 0,
4546
-      'format_plural_singular' => '1',
4547
-      'format_plural_plural' => '@count',
4548
-      'prefix' => '',
4549
-      'suffix' => '',
4550
-      'id' => 'version_num',
4551
-      'table' => 'app_version',
4552
-      'field' => 'version_num',
4553
-      'relationship' => 'app_version_id',
4535
+        ),
4536
+        'empty' => '',
4537
+        'hide_empty' => 0,
4538
+        'empty_zero' => 0,
4539
+        'hide_alter_empty' => 1,
4540
+        'exclude' => 0,
4541
+        'set_precision' => 0,
4542
+        'precision' => '2',
4543
+        'decimal' => '.',
4544
+        'separator' => '',
4545
+        'format_plural' => 0,
4546
+        'format_plural_singular' => '1',
4547
+        'format_plural_plural' => '@count',
4548
+        'prefix' => '',
4549
+        'suffix' => '',
4550
+        'id' => 'version_num',
4551
+        'table' => 'app_version',
4552
+        'field' => 'version_num',
4553
+        'relationship' => 'app_version_id',
4554 4554
     ),
4555 4555
     'name' => array(
4556
-      'label' => '',
4557
-      'alter' => array(
4556
+        'label' => '',
4557
+        'alter' => array(
4558 4558
         'alter_text' => 0,
4559 4559
         'text' => '',
4560 4560
         'make_link' => 0,
@@ -4573,20 +4573,20 @@  discard block
 block discarded – undo
4573 4573
         'ellipsis' => 1,
4574 4574
         'html' => 0,
4575 4575
         'strip_tags' => 0,
4576
-      ),
4577
-      'empty' => '',
4578
-      'hide_empty' => 0,
4579
-      'empty_zero' => 0,
4580
-      'hide_alter_empty' => 1,
4581
-      'exclude' => 0,
4582
-      'id' => 'name',
4583
-      'table' => 'platform',
4584
-      'field' => 'name',
4585
-      'relationship' => 'platformid',
4576
+        ),
4577
+        'empty' => '',
4578
+        'hide_empty' => 0,
4579
+        'empty_zero' => 0,
4580
+        'hide_alter_empty' => 1,
4581
+        'exclude' => 0,
4582
+        'id' => 'name',
4583
+        'table' => 'platform',
4584
+        'field' => 'name',
4585
+        'relationship' => 'platformid',
4586 4586
     ),
4587 4587
     'plan_class' => array(
4588
-      'label' => '',
4589
-      'alter' => array(
4588
+        'label' => '',
4589
+        'alter' => array(
4590 4590
         'alter_text' => 1,
4591 4591
         'text' => '([plan_class])</b>',
4592 4592
         'make_link' => 0,
@@ -4605,23 +4605,23 @@  discard block
 block discarded – undo
4605 4605
         'ellipsis' => 1,
4606 4606
         'html' => 0,
4607 4607
         'strip_tags' => 0,
4608
-      ),
4609
-      'empty' => '',
4610
-      'hide_empty' => 0,
4611
-      'empty_zero' => 0,
4612
-      'hide_alter_empty' => 0,
4613
-      'exclude' => 0,
4614
-      'id' => 'plan_class',
4615
-      'table' => 'app_version',
4616
-      'field' => 'plan_class',
4617
-      'relationship' => 'app_version_id',
4618
-      'override' => array(
4608
+        ),
4609
+        'empty' => '',
4610
+        'hide_empty' => 0,
4611
+        'empty_zero' => 0,
4612
+        'hide_alter_empty' => 0,
4613
+        'exclude' => 0,
4614
+        'id' => 'plan_class',
4615
+        'table' => 'app_version',
4616
+        'field' => 'plan_class',
4617
+        'relationship' => 'app_version_id',
4618
+        'override' => array(
4619 4619
         'button' => 'Use default',
4620
-      ),
4620
+        ),
4621 4621
     ),
4622 4622
     'et_n' => array(
4623
-      'label' => 'Number of tasks completed',
4624
-      'alter' => array(
4623
+        'label' => 'Number of tasks completed',
4624
+        'alter' => array(
4625 4625
         'alter_text' => 0,
4626 4626
         'text' => '',
4627 4627
         'make_link' => 0,
@@ -4640,29 +4640,29 @@  discard block
 block discarded – undo
4640 4640
         'ellipsis' => 1,
4641 4641
         'html' => 0,
4642 4642
         'strip_tags' => 0,
4643
-      ),
4644
-      'empty' => '',
4645
-      'hide_empty' => 0,
4646
-      'empty_zero' => 0,
4647
-      'hide_alter_empty' => 0,
4648
-      'set_precision' => FALSE,
4649
-      'precision' => 0,
4650
-      'decimal' => '.',
4651
-      'separator' => '',
4652
-      'format_plural' => 0,
4653
-      'format_plural_singular' => '1',
4654
-      'format_plural_plural' => '@count',
4655
-      'prefix' => '',
4656
-      'suffix' => '',
4657
-      'exclude' => 0,
4658
-      'id' => 'et_n',
4659
-      'table' => 'host_app_version',
4660
-      'field' => 'et_n',
4661
-      'relationship' => 'none',
4643
+        ),
4644
+        'empty' => '',
4645
+        'hide_empty' => 0,
4646
+        'empty_zero' => 0,
4647
+        'hide_alter_empty' => 0,
4648
+        'set_precision' => FALSE,
4649
+        'precision' => 0,
4650
+        'decimal' => '.',
4651
+        'separator' => '',
4652
+        'format_plural' => 0,
4653
+        'format_plural_singular' => '1',
4654
+        'format_plural_plural' => '@count',
4655
+        'prefix' => '',
4656
+        'suffix' => '',
4657
+        'exclude' => 0,
4658
+        'id' => 'et_n',
4659
+        'table' => 'host_app_version',
4660
+        'field' => 'et_n',
4661
+        'relationship' => 'none',
4662 4662
     ),
4663 4663
     'max_jobs_per_day' => array(
4664
-      'label' => 'Max tasks per day',
4665
-      'alter' => array(
4664
+        'label' => 'Max tasks per day',
4665
+        'alter' => array(
4666 4666
         'alter_text' => 0,
4667 4667
         'text' => '',
4668 4668
         'make_link' => 0,
@@ -4681,29 +4681,29 @@  discard block
 block discarded – undo
4681 4681
         'ellipsis' => 1,
4682 4682
         'html' => 0,
4683 4683
         'strip_tags' => 0,
4684
-      ),
4685
-      'empty' => '',
4686
-      'hide_empty' => 0,
4687
-      'empty_zero' => 0,
4688
-      'hide_alter_empty' => 0,
4689
-      'set_precision' => FALSE,
4690
-      'precision' => 0,
4691
-      'decimal' => '.',
4692
-      'separator' => '',
4693
-      'format_plural' => 0,
4694
-      'format_plural_singular' => '1',
4695
-      'format_plural_plural' => '@count',
4696
-      'prefix' => '',
4697
-      'suffix' => '',
4698
-      'exclude' => 0,
4699
-      'id' => 'max_jobs_per_day',
4700
-      'table' => 'host_app_version',
4701
-      'field' => 'max_jobs_per_day',
4702
-      'relationship' => 'none',
4684
+        ),
4685
+        'empty' => '',
4686
+        'hide_empty' => 0,
4687
+        'empty_zero' => 0,
4688
+        'hide_alter_empty' => 0,
4689
+        'set_precision' => FALSE,
4690
+        'precision' => 0,
4691
+        'decimal' => '.',
4692
+        'separator' => '',
4693
+        'format_plural' => 0,
4694
+        'format_plural_singular' => '1',
4695
+        'format_plural_plural' => '@count',
4696
+        'prefix' => '',
4697
+        'suffix' => '',
4698
+        'exclude' => 0,
4699
+        'id' => 'max_jobs_per_day',
4700
+        'table' => 'host_app_version',
4701
+        'field' => 'max_jobs_per_day',
4702
+        'relationship' => 'none',
4703 4703
     ),
4704 4704
     'n_jobs_today' => array(
4705
-      'label' => 'Number of tasks today',
4706
-      'alter' => array(
4705
+        'label' => 'Number of tasks today',
4706
+        'alter' => array(
4707 4707
         'alter_text' => 0,
4708 4708
         'text' => '',
4709 4709
         'make_link' => 0,
@@ -4722,29 +4722,29 @@  discard block
 block discarded – undo
4722 4722
         'ellipsis' => 1,
4723 4723
         'html' => 0,
4724 4724
         'strip_tags' => 0,
4725
-      ),
4726
-      'empty' => '',
4727
-      'hide_empty' => 0,
4728
-      'empty_zero' => 0,
4729
-      'hide_alter_empty' => 0,
4730
-      'set_precision' => FALSE,
4731
-      'precision' => 0,
4732
-      'decimal' => '.',
4733
-      'separator' => '',
4734
-      'format_plural' => 0,
4735
-      'format_plural_singular' => '1',
4736
-      'format_plural_plural' => '@count',
4737
-      'prefix' => '',
4738
-      'suffix' => '',
4739
-      'exclude' => 0,
4740
-      'id' => 'n_jobs_today',
4741
-      'table' => 'host_app_version',
4742
-      'field' => 'n_jobs_today',
4743
-      'relationship' => 'none',
4725
+        ),
4726
+        'empty' => '',
4727
+        'hide_empty' => 0,
4728
+        'empty_zero' => 0,
4729
+        'hide_alter_empty' => 0,
4730
+        'set_precision' => FALSE,
4731
+        'precision' => 0,
4732
+        'decimal' => '.',
4733
+        'separator' => '',
4734
+        'format_plural' => 0,
4735
+        'format_plural_singular' => '1',
4736
+        'format_plural_plural' => '@count',
4737
+        'prefix' => '',
4738
+        'suffix' => '',
4739
+        'exclude' => 0,
4740
+        'id' => 'n_jobs_today',
4741
+        'table' => 'host_app_version',
4742
+        'field' => 'n_jobs_today',
4743
+        'relationship' => 'none',
4744 4744
     ),
4745 4745
     'consecutive_valid' => array(
4746
-      'label' => 'Consecutive valid tasks',
4747
-      'alter' => array(
4746
+        'label' => 'Consecutive valid tasks',
4747
+        'alter' => array(
4748 4748
         'alter_text' => 0,
4749 4749
         'text' => '',
4750 4750
         'make_link' => 0,
@@ -4763,29 +4763,29 @@  discard block
 block discarded – undo
4763 4763
         'ellipsis' => 1,
4764 4764
         'html' => 0,
4765 4765
         'strip_tags' => 0,
4766
-      ),
4767
-      'empty' => '',
4768
-      'hide_empty' => 0,
4769
-      'empty_zero' => 0,
4770
-      'hide_alter_empty' => 0,
4771
-      'set_precision' => FALSE,
4772
-      'precision' => 0,
4773
-      'decimal' => '.',
4774
-      'separator' => '',
4775
-      'format_plural' => 0,
4776
-      'format_plural_singular' => '1',
4777
-      'format_plural_plural' => '@count',
4778
-      'prefix' => '',
4779
-      'suffix' => '',
4780
-      'exclude' => 0,
4781
-      'id' => 'consecutive_valid',
4782
-      'table' => 'host_app_version',
4783
-      'field' => 'consecutive_valid',
4784
-      'relationship' => 'none',
4766
+        ),
4767
+        'empty' => '',
4768
+        'hide_empty' => 0,
4769
+        'empty_zero' => 0,
4770
+        'hide_alter_empty' => 0,
4771
+        'set_precision' => FALSE,
4772
+        'precision' => 0,
4773
+        'decimal' => '.',
4774
+        'separator' => '',
4775
+        'format_plural' => 0,
4776
+        'format_plural_singular' => '1',
4777
+        'format_plural_plural' => '@count',
4778
+        'prefix' => '',
4779
+        'suffix' => '',
4780
+        'exclude' => 0,
4781
+        'id' => 'consecutive_valid',
4782
+        'table' => 'host_app_version',
4783
+        'field' => 'consecutive_valid',
4784
+        'relationship' => 'none',
4785 4785
     ),
4786 4786
     'et_avg' => array(
4787
-      'label' => 'Average processing rate',
4788
-      'alter' => array(
4787
+        'label' => 'Average processing rate',
4788
+        'alter' => array(
4789 4789
         'alter_text' => 0,
4790 4790
         'text' => '',
4791 4791
         'make_link' => 0,
@@ -4804,29 +4804,29 @@  discard block
 block discarded – undo
4804 4804
         'ellipsis' => 1,
4805 4805
         'html' => 0,
4806 4806
         'strip_tags' => 0,
4807
-      ),
4808
-      'empty' => '',
4809
-      'hide_empty' => 0,
4810
-      'empty_zero' => 0,
4811
-      'hide_alter_empty' => 1,
4812
-      'exclude' => 0,
4813
-      'set_precision' => FALSE,
4814
-      'precision' => 0,
4815
-      'decimal' => '.',
4816
-      'separator' => ',',
4817
-      'format_plural' => 0,
4818
-      'format_plural_singular' => '1',
4819
-      'format_plural_plural' => '@count',
4820
-      'prefix' => '',
4821
-      'suffix' => '',
4822
-      'id' => 'et_avg',
4823
-      'table' => 'host_app_version',
4824
-      'field' => 'et_avg',
4825
-      'relationship' => 'none',
4807
+        ),
4808
+        'empty' => '',
4809
+        'hide_empty' => 0,
4810
+        'empty_zero' => 0,
4811
+        'hide_alter_empty' => 1,
4812
+        'exclude' => 0,
4813
+        'set_precision' => FALSE,
4814
+        'precision' => 0,
4815
+        'decimal' => '.',
4816
+        'separator' => ',',
4817
+        'format_plural' => 0,
4818
+        'format_plural_singular' => '1',
4819
+        'format_plural_plural' => '@count',
4820
+        'prefix' => '',
4821
+        'suffix' => '',
4822
+        'id' => 'et_avg',
4823
+        'table' => 'host_app_version',
4824
+        'field' => 'et_avg',
4825
+        'relationship' => 'none',
4826 4826
     ),
4827 4827
     'turnaround_avg' => array(
4828
-      'label' => 'Average turnaround time',
4829
-      'alter' => array(
4828
+        'label' => 'Average turnaround time',
4829
+        'alter' => array(
4830 4830
         'alter_text' => 0,
4831 4831
         'text' => '',
4832 4832
         'make_link' => 0,
@@ -4845,67 +4845,67 @@  discard block
 block discarded – undo
4845 4845
         'ellipsis' => 1,
4846 4846
         'html' => 0,
4847 4847
         'strip_tags' => 0,
4848
-      ),
4849
-      'empty' => '',
4850
-      'hide_empty' => 0,
4851
-      'empty_zero' => 0,
4852
-      'hide_alter_empty' => 1,
4853
-      'exclude' => 0,
4854
-      'set_precision' => 0,
4855
-      'precision' => '2',
4856
-      'decimal' => '.',
4857
-      'separator' => '',
4858
-      'format_plural' => 0,
4859
-      'format_plural_singular' => '1',
4860
-      'format_plural_plural' => '@count',
4861
-      'prefix' => '',
4862
-      'suffix' => '',
4863
-      'id' => 'turnaround_avg',
4864
-      'table' => 'host_app_version',
4865
-      'field' => 'turnaround_avg',
4866
-      'relationship' => 'none',
4848
+        ),
4849
+        'empty' => '',
4850
+        'hide_empty' => 0,
4851
+        'empty_zero' => 0,
4852
+        'hide_alter_empty' => 1,
4853
+        'exclude' => 0,
4854
+        'set_precision' => 0,
4855
+        'precision' => '2',
4856
+        'decimal' => '.',
4857
+        'separator' => '',
4858
+        'format_plural' => 0,
4859
+        'format_plural_singular' => '1',
4860
+        'format_plural_plural' => '@count',
4861
+        'prefix' => '',
4862
+        'suffix' => '',
4863
+        'id' => 'turnaround_avg',
4864
+        'table' => 'host_app_version',
4865
+        'field' => 'turnaround_avg',
4866
+        'relationship' => 'none',
4867 4867
     ),
4868
-  ));
4869
-  $handler->override_option('title', 'Application details');
4870
-  $handler->override_option('path', 'host/%/apps');
4871
-  $handler->override_option('menu', array(
4868
+    ));
4869
+    $handler->override_option('title', 'Application details');
4870
+    $handler->override_option('path', 'host/%/apps');
4871
+    $handler->override_option('menu', array(
4872 4872
     'type' => 'none',
4873 4873
     'title' => '',
4874 4874
     'description' => '',
4875 4875
     'weight' => 0,
4876 4876
     'name' => 'primary-links',
4877
-  ));
4878
-  $handler->override_option('tab_options', array(
4877
+    ));
4878
+    $handler->override_option('tab_options', array(
4879 4879
     'type' => 'none',
4880 4880
     'title' => '',
4881 4881
     'description' => '',
4882 4882
     'weight' => 0,
4883 4883
     'name' => 'navigation',
4884
-  ));
4884
+    ));
4885 4885
 
4886
-  $views[$view->name] = $view;
4886
+    $views[$view->name] = $view;
4887 4887
 
4888
-  // Exported view: boinc_host_list
4889
-  $view = new view;
4890
-  $view->name = 'boinc_host_list';
4891
-  $view->description = 'A list of computers associated with a given user';
4892
-  $view->tag = '';
4893
-  $view->base_table = 'host';
4894
-  $view->core = 0;
4895
-  $view->api_version = '2';
4896
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
4897
-  $handler = $view->new_display('default', 'Defaults', 'default');
4898
-  $handler->override_option('relationships', array(
4888
+    // Exported view: boinc_host_list
4889
+    $view = new view;
4890
+    $view->name = 'boinc_host_list';
4891
+    $view->description = 'A list of computers associated with a given user';
4892
+    $view->tag = '';
4893
+    $view->base_table = 'host';
4894
+    $view->core = 0;
4895
+    $view->api_version = '2';
4896
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
4897
+    $handler = $view->new_display('default', 'Defaults', 'default');
4898
+    $handler->override_option('relationships', array(
4899 4899
     'userid' => array(
4900
-      'id' => 'userid',
4901
-      'table' => 'host',
4902
-      'field' => 'userid',
4900
+        'id' => 'userid',
4901
+        'table' => 'host',
4902
+        'field' => 'userid',
4903 4903
     ),
4904
-  ));
4905
-  $handler->override_option('fields', array(
4904
+    ));
4905
+    $handler->override_option('fields', array(
4906 4906
     'id' => array(
4907
-      'label' => 'Computer ID',
4908
-      'alter' => array(
4907
+        'label' => 'Computer ID',
4908
+        'alter' => array(
4909 4909
         'alter_text' => 0,
4910 4910
         'text' => 'ID: [id]
4911 4911
 <a href="">Details</a> | <a href="">Tasks</a>
@@ -4925,25 +4925,25 @@  discard block
 block discarded – undo
4925 4925
         'ellipsis' => 1,
4926 4926
         'html' => 0,
4927 4927
         'strip_tags' => 0,
4928
-      ),
4929
-      'empty' => '',
4930
-      'hide_empty' => 0,
4931
-      'empty_zero' => 0,
4932
-      'set_precision' => FALSE,
4933
-      'precision' => 0,
4934
-      'decimal' => '.',
4935
-      'separator' => '',
4936
-      'prefix' => 'ID: ',
4937
-      'suffix' => '',
4938
-      'exclude' => 0,
4939
-      'id' => 'id',
4940
-      'table' => 'host',
4941
-      'field' => 'id',
4942
-      'relationship' => 'none',
4928
+        ),
4929
+        'empty' => '',
4930
+        'hide_empty' => 0,
4931
+        'empty_zero' => 0,
4932
+        'set_precision' => FALSE,
4933
+        'precision' => 0,
4934
+        'decimal' => '.',
4935
+        'separator' => '',
4936
+        'prefix' => 'ID: ',
4937
+        'suffix' => '',
4938
+        'exclude' => 0,
4939
+        'id' => 'id',
4940
+        'table' => 'host',
4941
+        'field' => 'id',
4942
+        'relationship' => 'none',
4943 4943
     ),
4944 4944
     'phpcode_3' => array(
4945
-      'label' => 'Computer links',
4946
-      'alter' => array(
4945
+        'label' => 'Computer links',
4946
+        'alter' => array(
4947 4947
         'alter_text' => 0,
4948 4948
         'text' => '',
4949 4949
         'make_link' => 0,
@@ -4962,23 +4962,23 @@  discard block
 block discarded – undo
4962 4962
         'ellipsis' => 1,
4963 4963
         'html' => 0,
4964 4964
         'strip_tags' => 0,
4965
-      ),
4966
-      'empty' => '',
4967
-      'hide_empty' => 0,
4968
-      'empty_zero' => 0,
4969
-      'hide_alter_empty' => 1,
4970
-      'value' => '<?php
4965
+        ),
4966
+        'empty' => '',
4967
+        'hide_empty' => 0,
4968
+        'empty_zero' => 0,
4969
+        'hide_alter_empty' => 1,
4970
+        'value' => '<?php
4971 4971
   echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \'&nbsp;|&nbsp;\' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0");
4972 4972
 ?>',
4973
-      'exclude' => 0,
4974
-      'id' => 'phpcode_3',
4975
-      'table' => 'customfield',
4976
-      'field' => 'phpcode',
4977
-      'relationship' => 'none',
4973
+        'exclude' => 0,
4974
+        'id' => 'phpcode_3',
4975
+        'table' => 'customfield',
4976
+        'field' => 'phpcode',
4977
+        'relationship' => 'none',
4978 4978
     ),
4979 4979
     'host_cpid' => array(
4980
-      'label' => 'Cross project ID',
4981
-      'alter' => array(
4980
+        'label' => 'Cross project ID',
4981
+        'alter' => array(
4982 4982
         'alter_text' => 0,
4983 4983
         'text' => '',
4984 4984
         'make_link' => 0,
@@ -4995,19 +4995,19 @@  discard block
 block discarded – undo
4995 4995
         'ellipsis' => 1,
4996 4996
         'html' => 0,
4997 4997
         'strip_tags' => 0,
4998
-      ),
4999
-      'empty' => '',
5000
-      'hide_empty' => 0,
5001
-      'empty_zero' => 0,
5002
-      'exclude' => 1,
5003
-      'id' => 'host_cpid',
5004
-      'table' => 'host',
5005
-      'field' => 'host_cpid',
5006
-      'relationship' => 'none',
4998
+        ),
4999
+        'empty' => '',
5000
+        'hide_empty' => 0,
5001
+        'empty_zero' => 0,
5002
+        'exclude' => 1,
5003
+        'id' => 'host_cpid',
5004
+        'table' => 'host',
5005
+        'field' => 'host_cpid',
5006
+        'relationship' => 'none',
5007 5007
     ),
5008 5008
     'phpcode_4' => array(
5009
-      'label' => 'Cross-project statistics',
5010
-      'alter' => array(
5009
+        'label' => 'Cross-project statistics',
5010
+        'alter' => array(
5011 5011
         'alter_text' => 0,
5012 5012
         'text' => '',
5013 5013
         'make_link' => 0,
@@ -5024,11 +5024,11 @@  discard block
 block discarded – undo
5024 5024
         'ellipsis' => 1,
5025 5025
         'html' => 0,
5026 5026
         'strip_tags' => 0,
5027
-      ),
5028
-      'empty' => '',
5029
-      'hide_empty' => 0,
5030
-      'empty_zero' => 0,
5031
-      'value' => '<?php
5027
+        ),
5028
+        'empty' => '',
5029
+        'hide_empty' => 0,
5030
+        'empty_zero' => 0,
5031
+        'value' => '<?php
5032 5032
   require_boinc(\'stats_sites\');
5033 5033
   global $host_sites;
5034 5034
   $x = "";
@@ -5041,15 +5041,15 @@  discard block
 block discarded – undo
5041 5041
   }
5042 5042
   echo "Cross-project stats: {$x}";
5043 5043
 ?>',
5044
-      'exclude' => 0,
5045
-      'id' => 'phpcode_4',
5046
-      'table' => 'customfield',
5047
-      'field' => 'phpcode',
5048
-      'relationship' => 'none',
5044
+        'exclude' => 0,
5045
+        'id' => 'phpcode_4',
5046
+        'table' => 'customfield',
5047
+        'field' => 'phpcode',
5048
+        'relationship' => 'none',
5049 5049
     ),
5050 5050
     'rownumber' => array(
5051
-      'label' => 'Rank',
5052
-      'alter' => array(
5051
+        'label' => 'Rank',
5052
+        'alter' => array(
5053 5053
         'alter_text' => 0,
5054 5054
         'text' => '',
5055 5055
         'make_link' => 0,
@@ -5066,19 +5066,19 @@  discard block
 block discarded – undo
5066 5066
         'ellipsis' => 1,
5067 5067
         'html' => 0,
5068 5068
         'strip_tags' => 0,
5069
-      ),
5070
-      'empty' => '',
5071
-      'hide_empty' => 0,
5072
-      'empty_zero' => 0,
5073
-      'exclude' => 0,
5074
-      'id' => 'rownumber',
5075
-      'table' => 'customfield',
5076
-      'field' => 'rownumber',
5077
-      'relationship' => 'none',
5069
+        ),
5070
+        'empty' => '',
5071
+        'hide_empty' => 0,
5072
+        'empty_zero' => 0,
5073
+        'exclude' => 0,
5074
+        'id' => 'rownumber',
5075
+        'table' => 'customfield',
5076
+        'field' => 'rownumber',
5077
+        'relationship' => 'none',
5078 5078
     ),
5079 5079
     'expavg_credit' => array(
5080
-      'label' => 'Avg. credit',
5081
-      'alter' => array(
5080
+        'label' => 'Avg. credit',
5081
+        'alter' => array(
5082 5082
         'alter_text' => 0,
5083 5083
         'text' => '',
5084 5084
         'make_link' => 0,
@@ -5095,25 +5095,25 @@  discard block
 block discarded – undo
5095 5095
         'ellipsis' => 1,
5096 5096
         'html' => 0,
5097 5097
         'strip_tags' => 0,
5098
-      ),
5099
-      'empty' => '',
5100
-      'hide_empty' => 0,
5101
-      'empty_zero' => 0,
5102
-      'set_precision' => 1,
5103
-      'precision' => '2',
5104
-      'decimal' => '.',
5105
-      'separator' => ',',
5106
-      'prefix' => '',
5107
-      'suffix' => '',
5108
-      'exclude' => 0,
5109
-      'id' => 'expavg_credit',
5110
-      'table' => 'host',
5111
-      'field' => 'expavg_credit',
5112
-      'relationship' => 'none',
5098
+        ),
5099
+        'empty' => '',
5100
+        'hide_empty' => 0,
5101
+        'empty_zero' => 0,
5102
+        'set_precision' => 1,
5103
+        'precision' => '2',
5104
+        'decimal' => '.',
5105
+        'separator' => ',',
5106
+        'prefix' => '',
5107
+        'suffix' => '',
5108
+        'exclude' => 0,
5109
+        'id' => 'expavg_credit',
5110
+        'table' => 'host',
5111
+        'field' => 'expavg_credit',
5112
+        'relationship' => 'none',
5113 5113
     ),
5114 5114
     'total_credit' => array(
5115
-      'label' => 'Total credit',
5116
-      'alter' => array(
5115
+        'label' => 'Total credit',
5116
+        'alter' => array(
5117 5117
         'alter_text' => 0,
5118 5118
         'text' => '',
5119 5119
         'make_link' => 0,
@@ -5132,29 +5132,29 @@  discard block
 block discarded – undo
5132 5132
         'ellipsis' => 1,
5133 5133
         'html' => 0,
5134 5134
         'strip_tags' => 0,
5135
-      ),
5136
-      'empty' => '',
5137
-      'hide_empty' => 0,
5138
-      'empty_zero' => 0,
5139
-      'hide_alter_empty' => 1,
5140
-      'set_precision' => 1,
5141
-      'precision' => '0',
5142
-      'decimal' => '.',
5143
-      'separator' => ',',
5144
-      'format_plural' => 0,
5145
-      'format_plural_singular' => '1',
5146
-      'format_plural_plural' => '@count',
5147
-      'prefix' => '',
5148
-      'suffix' => '',
5149
-      'exclude' => 0,
5150
-      'id' => 'total_credit',
5151
-      'table' => 'host',
5152
-      'field' => 'total_credit',
5153
-      'relationship' => 'none',
5135
+        ),
5136
+        'empty' => '',
5137
+        'hide_empty' => 0,
5138
+        'empty_zero' => 0,
5139
+        'hide_alter_empty' => 1,
5140
+        'set_precision' => 1,
5141
+        'precision' => '0',
5142
+        'decimal' => '.',
5143
+        'separator' => ',',
5144
+        'format_plural' => 0,
5145
+        'format_plural_singular' => '1',
5146
+        'format_plural_plural' => '@count',
5147
+        'prefix' => '',
5148
+        'suffix' => '',
5149
+        'exclude' => 0,
5150
+        'id' => 'total_credit',
5151
+        'table' => 'host',
5152
+        'field' => 'total_credit',
5153
+        'relationship' => 'none',
5154 5154
     ),
5155 5155
     'serialnum' => array(
5156
-      'label' => 'Serial Number',
5157
-      'alter' => array(
5156
+        'label' => 'Serial Number',
5157
+        'alter' => array(
5158 5158
         'alter_text' => 0,
5159 5159
         'text' => '',
5160 5160
         'make_link' => 0,
@@ -5171,19 +5171,19 @@  discard block
 block discarded – undo
5171 5171
         'ellipsis' => 1,
5172 5172
         'html' => 0,
5173 5173
         'strip_tags' => 0,
5174
-      ),
5175
-      'empty' => '',
5176
-      'hide_empty' => 0,
5177
-      'empty_zero' => 0,
5178
-      'exclude' => 1,
5179
-      'id' => 'serialnum',
5180
-      'table' => 'host',
5181
-      'field' => 'serialnum',
5182
-      'relationship' => 'none',
5174
+        ),
5175
+        'empty' => '',
5176
+        'hide_empty' => 0,
5177
+        'empty_zero' => 0,
5178
+        'exclude' => 1,
5179
+        'id' => 'serialnum',
5180
+        'table' => 'host',
5181
+        'field' => 'serialnum',
5182
+        'relationship' => 'none',
5183 5183
     ),
5184 5184
     'phpcode' => array(
5185
-      'label' => 'BOINC version',
5186
-      'alter' => array(
5185
+        'label' => 'BOINC version',
5186
+        'alter' => array(
5187 5187
         'alter_text' => 0,
5188 5188
         'text' => '',
5189 5189
         'make_link' => 0,
@@ -5200,23 +5200,23 @@  discard block
 block discarded – undo
5200 5200
         'ellipsis' => 1,
5201 5201
         'html' => 0,
5202 5202
         'strip_tags' => 0,
5203
-      ),
5204
-      'empty' => '',
5205
-      'hide_empty' => 0,
5206
-      'empty_zero' => 0,
5207
-      'value' => '<?php
5203
+        ),
5204
+        'empty' => '',
5205
+        'hide_empty' => 0,
5206
+        'empty_zero' => 0,
5207
+        'value' => '<?php
5208 5208
   require_boinc(\'host\');
5209 5209
   echo boinc_version($data->host_serialnum);
5210 5210
 ?>',
5211
-      'exclude' => 0,
5212
-      'id' => 'phpcode',
5213
-      'table' => 'customfield',
5214
-      'field' => 'phpcode',
5215
-      'relationship' => 'none',
5211
+        'exclude' => 0,
5212
+        'id' => 'phpcode',
5213
+        'table' => 'customfield',
5214
+        'field' => 'phpcode',
5215
+        'relationship' => 'none',
5216 5216
     ),
5217 5217
     'p_vendor' => array(
5218
-      'label' => 'CPU',
5219
-      'alter' => array(
5218
+        'label' => 'CPU',
5219
+        'alter' => array(
5220 5220
         'alter_text' => 0,
5221 5221
         'text' => '',
5222 5222
         'make_link' => 0,
@@ -5233,22 +5233,22 @@  discard block
 block discarded – undo
5233 5233
         'ellipsis' => 1,
5234 5234
         'html' => 0,
5235 5235
         'strip_tags' => 0,
5236
-      ),
5237
-      'empty' => '',
5238
-      'hide_empty' => 0,
5239
-      'empty_zero' => 0,
5240
-      'exclude' => 0,
5241
-      'id' => 'p_vendor',
5242
-      'table' => 'host',
5243
-      'field' => 'p_vendor',
5244
-      'relationship' => 'none',
5245
-      'override' => array(
5236
+        ),
5237
+        'empty' => '',
5238
+        'hide_empty' => 0,
5239
+        'empty_zero' => 0,
5240
+        'exclude' => 0,
5241
+        'id' => 'p_vendor',
5242
+        'table' => 'host',
5243
+        'field' => 'p_vendor',
5244
+        'relationship' => 'none',
5245
+        'override' => array(
5246 5246
         'button' => 'Override',
5247
-      ),
5247
+        ),
5248 5248
     ),
5249 5249
     'p_model' => array(
5250
-      'label' => 'CPU model',
5251
-      'alter' => array(
5250
+        'label' => 'CPU model',
5251
+        'alter' => array(
5252 5252
         'alter_text' => 0,
5253 5253
         'text' => '',
5254 5254
         'make_link' => 0,
@@ -5265,19 +5265,19 @@  discard block
 block discarded – undo
5265 5265
         'ellipsis' => 1,
5266 5266
         'html' => 0,
5267 5267
         'strip_tags' => 0,
5268
-      ),
5269
-      'empty' => '',
5270
-      'hide_empty' => 0,
5271
-      'empty_zero' => 0,
5272
-      'exclude' => 0,
5273
-      'id' => 'p_model',
5274
-      'table' => 'host',
5275
-      'field' => 'p_model',
5276
-      'relationship' => 'none',
5268
+        ),
5269
+        'empty' => '',
5270
+        'hide_empty' => 0,
5271
+        'empty_zero' => 0,
5272
+        'exclude' => 0,
5273
+        'id' => 'p_model',
5274
+        'table' => 'host',
5275
+        'field' => 'p_model',
5276
+        'relationship' => 'none',
5277 5277
     ),
5278 5278
     'p_ncpus' => array(
5279
-      'label' => 'Number of CPUs',
5280
-      'alter' => array(
5279
+        'label' => 'Number of CPUs',
5280
+        'alter' => array(
5281 5281
         'alter_text' => 1,
5282 5282
         'text' => '([p_ncpus] processors)',
5283 5283
         'make_link' => 0,
@@ -5294,19 +5294,19 @@  discard block
 block discarded – undo
5294 5294
         'ellipsis' => 1,
5295 5295
         'html' => 0,
5296 5296
         'strip_tags' => 0,
5297
-      ),
5298
-      'empty' => '',
5299
-      'hide_empty' => 0,
5300
-      'empty_zero' => 0,
5301
-      'exclude' => 0,
5302
-      'id' => 'p_ncpus',
5303
-      'table' => 'host',
5304
-      'field' => 'p_ncpus',
5305
-      'relationship' => 'none',
5297
+        ),
5298
+        'empty' => '',
5299
+        'hide_empty' => 0,
5300
+        'empty_zero' => 0,
5301
+        'exclude' => 0,
5302
+        'id' => 'p_ncpus',
5303
+        'table' => 'host',
5304
+        'field' => 'p_ncpus',
5305
+        'relationship' => 'none',
5306 5306
     ),
5307 5307
     'phpcode_1' => array(
5308
-      'label' => 'GPU',
5309
-      'alter' => array(
5308
+        'label' => 'GPU',
5309
+        'alter' => array(
5310 5310
         'alter_text' => 0,
5311 5311
         'text' => '',
5312 5312
         'make_link' => 0,
@@ -5323,23 +5323,23 @@  discard block
 block discarded – undo
5323 5323
         'ellipsis' => 1,
5324 5324
         'html' => 0,
5325 5325
         'strip_tags' => 0,
5326
-      ),
5327
-      'empty' => '',
5328
-      'hide_empty' => 0,
5329
-      'empty_zero' => 0,
5330
-      'value' => '<?php
5326
+        ),
5327
+        'empty' => '',
5328
+        'hide_empty' => 0,
5329
+        'empty_zero' => 0,
5330
+        'value' => '<?php
5331 5331
   require_boinc(\'host\');
5332 5332
   echo gpu_desc($data->host_serialnum);
5333 5333
 ?>',
5334
-      'exclude' => 0,
5335
-      'id' => 'phpcode_1',
5336
-      'table' => 'customfield',
5337
-      'field' => 'phpcode',
5338
-      'relationship' => 'none',
5334
+        'exclude' => 0,
5335
+        'id' => 'phpcode_1',
5336
+        'table' => 'customfield',
5337
+        'field' => 'phpcode',
5338
+        'relationship' => 'none',
5339 5339
     ),
5340 5340
     'os_name' => array(
5341
-      'label' => 'Operating system',
5342
-      'alter' => array(
5341
+        'label' => 'Operating system',
5342
+        'alter' => array(
5343 5343
         'alter_text' => 0,
5344 5344
         'text' => '',
5345 5345
         'make_link' => 0,
@@ -5356,19 +5356,19 @@  discard block
 block discarded – undo
5356 5356
         'ellipsis' => 1,
5357 5357
         'html' => 0,
5358 5358
         'strip_tags' => 0,
5359
-      ),
5360
-      'empty' => '',
5361
-      'hide_empty' => 0,
5362
-      'empty_zero' => 0,
5363
-      'exclude' => 0,
5364
-      'id' => 'os_name',
5365
-      'table' => 'host',
5366
-      'field' => 'os_name',
5367
-      'relationship' => 'none',
5359
+        ),
5360
+        'empty' => '',
5361
+        'hide_empty' => 0,
5362
+        'empty_zero' => 0,
5363
+        'exclude' => 0,
5364
+        'id' => 'os_name',
5365
+        'table' => 'host',
5366
+        'field' => 'os_name',
5367
+        'relationship' => 'none',
5368 5368
     ),
5369 5369
     'os_version' => array(
5370
-      'label' => 'Operating system version',
5371
-      'alter' => array(
5370
+        'label' => 'Operating system version',
5371
+        'alter' => array(
5372 5372
         'alter_text' => 0,
5373 5373
         'text' => '',
5374 5374
         'make_link' => 0,
@@ -5385,19 +5385,19 @@  discard block
 block discarded – undo
5385 5385
         'ellipsis' => 1,
5386 5386
         'html' => 0,
5387 5387
         'strip_tags' => 0,
5388
-      ),
5389
-      'empty' => '',
5390
-      'hide_empty' => 0,
5391
-      'empty_zero' => 0,
5392
-      'exclude' => 0,
5393
-      'id' => 'os_version',
5394
-      'table' => 'host',
5395
-      'field' => 'os_version',
5396
-      'relationship' => 'none',
5388
+        ),
5389
+        'empty' => '',
5390
+        'hide_empty' => 0,
5391
+        'empty_zero' => 0,
5392
+        'exclude' => 0,
5393
+        'id' => 'os_version',
5394
+        'table' => 'host',
5395
+        'field' => 'os_version',
5396
+        'relationship' => 'none',
5397 5397
     ),
5398 5398
     'rpc_time' => array(
5399
-      'label' => 'Last contact',
5400
-      'alter' => array(
5399
+        'label' => 'Last contact',
5400
+        'alter' => array(
5401 5401
         'alter_text' => 0,
5402 5402
         'text' => '',
5403 5403
         'make_link' => 0,
@@ -5416,22 +5416,22 @@  discard block
 block discarded – undo
5416 5416
         'ellipsis' => 1,
5417 5417
         'html' => 0,
5418 5418
         'strip_tags' => 0,
5419
-      ),
5420
-      'empty' => '',
5421
-      'hide_empty' => 0,
5422
-      'empty_zero' => 0,
5423
-      'hide_alter_empty' => 1,
5424
-      'date_format' => 'custom',
5425
-      'custom_date_format' => 'j M Y G:i:s T',
5426
-      'exclude' => 1,
5427
-      'id' => 'rpc_time',
5428
-      'table' => 'host',
5429
-      'field' => 'rpc_time',
5430
-      'relationship' => 'none',
5419
+        ),
5420
+        'empty' => '',
5421
+        'hide_empty' => 0,
5422
+        'empty_zero' => 0,
5423
+        'hide_alter_empty' => 1,
5424
+        'date_format' => 'custom',
5425
+        'custom_date_format' => 'j M Y G:i:s T',
5426
+        'exclude' => 1,
5427
+        'id' => 'rpc_time',
5428
+        'table' => 'host',
5429
+        'field' => 'rpc_time',
5430
+        'relationship' => 'none',
5431 5431
     ),
5432 5432
     'phpcode_2' => array(
5433
-      'label' => 'Last contact',
5434
-      'alter' => array(
5433
+        'label' => 'Last contact',
5434
+        'alter' => array(
5435 5435
         'alter_text' => 0,
5436 5436
         'text' => '',
5437 5437
         'make_link' => 0,
@@ -5450,48 +5450,48 @@  discard block
 block discarded – undo
5450 5450
         'ellipsis' => 1,
5451 5451
         'html' => 0,
5452 5452
         'strip_tags' => 0,
5453
-      ),
5454
-      'empty' => '',
5455
-      'hide_empty' => 0,
5456
-      'empty_zero' => 0,
5457
-      'hide_alter_empty' => 1,
5458
-      'value' => '<?php
5453
+        ),
5454
+        'empty' => '',
5455
+        'hide_empty' => 0,
5456
+        'empty_zero' => 0,
5457
+        'hide_alter_empty' => 1,
5458
+        'value' => '<?php
5459 5459
   echo boincwork_host_last_contact($data->host_rpc_time, $data->id);
5460 5460
 ?>',
5461
-      'exclude' => 0,
5462
-      'id' => 'phpcode_2',
5463
-      'table' => 'customfield',
5464
-      'field' => 'phpcode',
5465
-      'relationship' => 'none',
5466
-    ),
5467
-  ));
5468
-  $handler->override_option('arguments', array(
5461
+        'exclude' => 0,
5462
+        'id' => 'phpcode_2',
5463
+        'table' => 'customfield',
5464
+        'field' => 'phpcode',
5465
+        'relationship' => 'none',
5466
+    ),
5467
+    ));
5468
+    $handler->override_option('arguments', array(
5469 5469
     'userid' => array(
5470
-      'default_action' => 'not found',
5471
-      'style_plugin' => 'default_summary',
5472
-      'style_options' => array(),
5473
-      'wildcard' => 'all',
5474
-      'wildcard_substitution' => 'All',
5475
-      'title' => '',
5476
-      'breadcrumb' => '',
5477
-      'default_argument_type' => 'fixed',
5478
-      'default_argument' => '',
5479
-      'validate_type' => 'numeric',
5480
-      'validate_fail' => 'not found',
5481
-      'id' => 'userid',
5482
-      'table' => 'host',
5483
-      'field' => 'userid',
5484
-      'validate_user_argument_type' => 'uid',
5485
-      'validate_user_roles' => array(
5470
+        'default_action' => 'not found',
5471
+        'style_plugin' => 'default_summary',
5472
+        'style_options' => array(),
5473
+        'wildcard' => 'all',
5474
+        'wildcard_substitution' => 'All',
5475
+        'title' => '',
5476
+        'breadcrumb' => '',
5477
+        'default_argument_type' => 'fixed',
5478
+        'default_argument' => '',
5479
+        'validate_type' => 'numeric',
5480
+        'validate_fail' => 'not found',
5481
+        'id' => 'userid',
5482
+        'table' => 'host',
5483
+        'field' => 'userid',
5484
+        'validate_user_argument_type' => 'uid',
5485
+        'validate_user_roles' => array(
5486 5486
         2 => 0,
5487 5487
         3 => 0,
5488
-      ),
5489
-      'relationship' => 'none',
5490
-      'default_options_div_prefix' => '',
5491
-      'default_argument_fixed' => '',
5492
-      'default_argument_user' => 0,
5493
-      'default_argument_php' => '',
5494
-      'validate_argument_node_type' => array(
5488
+        ),
5489
+        'relationship' => 'none',
5490
+        'default_options_div_prefix' => '',
5491
+        'default_argument_fixed' => '',
5492
+        'default_argument_user' => 0,
5493
+        'default_argument_php' => '',
5494
+        'validate_argument_node_type' => array(
5495 5495
         'forum' => 0,
5496 5496
         'job_post' => 0,
5497 5497
         'news' => 0,
@@ -5499,215 +5499,215 @@  discard block
 block discarded – undo
5499 5499
         'profile' => 0,
5500 5500
         'story' => 0,
5501 5501
         'team' => 0,
5502
-      ),
5503
-      'validate_argument_node_access' => 0,
5504
-      'validate_argument_nid_type' => 'nid',
5505
-      'validate_argument_vocabulary' => array(
5502
+        ),
5503
+        'validate_argument_node_access' => 0,
5504
+        'validate_argument_nid_type' => 'nid',
5505
+        'validate_argument_vocabulary' => array(
5506 5506
         1 => 0,
5507
-      ),
5508
-      'validate_argument_type' => 'tid',
5509
-      'validate_argument_transform' => 0,
5510
-      'validate_user_restrict_roles' => 0,
5511
-      'validate_argument_php' => '',
5512
-    ),
5513
-  ));
5514
-  $handler->override_option('filters', array(
5507
+        ),
5508
+        'validate_argument_type' => 'tid',
5509
+        'validate_argument_transform' => 0,
5510
+        'validate_user_restrict_roles' => 0,
5511
+        'validate_argument_php' => '',
5512
+    ),
5513
+    ));
5514
+    $handler->override_option('filters', array(
5515 5515
     'show_hosts' => array(
5516
-      'operator' => '=',
5517
-      'value' => array(
5516
+        'operator' => '=',
5517
+        'value' => array(
5518 5518
         'value' => '1',
5519 5519
         'min' => '',
5520 5520
         'max' => '',
5521
-      ),
5522
-      'group' => '0',
5523
-      'exposed' => FALSE,
5524
-      'expose' => array(
5521
+        ),
5522
+        'group' => '0',
5523
+        'exposed' => FALSE,
5524
+        'expose' => array(
5525 5525
         'operator' => FALSE,
5526 5526
         'label' => '',
5527
-      ),
5528
-      'id' => 'show_hosts',
5529
-      'table' => 'user',
5530
-      'field' => 'show_hosts',
5531
-      'relationship' => 'userid',
5532
-    ),
5533
-  ));
5534
-  $handler->override_option('access', array(
5527
+        ),
5528
+        'id' => 'show_hosts',
5529
+        'table' => 'user',
5530
+        'field' => 'show_hosts',
5531
+        'relationship' => 'userid',
5532
+    ),
5533
+    ));
5534
+    $handler->override_option('access', array(
5535 5535
     'type' => 'none',
5536
-  ));
5537
-  $handler->override_option('cache', array(
5536
+    ));
5537
+    $handler->override_option('cache', array(
5538 5538
     'type' => 'none',
5539
-  ));
5540
-  $handler->override_option('empty_format', '1');
5541
-  $handler->override_option('items_per_page', 20);
5542
-  $handler->override_option('use_pager', '1');
5543
-  $handler->override_option('style_plugin', 'table');
5544
-  $handler->override_option('style_options', array(
5539
+    ));
5540
+    $handler->override_option('empty_format', '1');
5541
+    $handler->override_option('items_per_page', 20);
5542
+    $handler->override_option('use_pager', '1');
5543
+    $handler->override_option('style_plugin', 'table');
5544
+    $handler->override_option('style_options', array(
5545 5545
     'grouping' => '',
5546 5546
     'override' => 1,
5547 5547
     'sticky' => 1,
5548 5548
     'order' => 'desc',
5549 5549
     'summary' => '',
5550 5550
     'columns' => array(
5551
-      'id' => 'id',
5552
-      'phpcode_3' => 'id',
5553
-      'host_cpid' => 'host_cpid',
5554
-      'phpcode_4' => 'id',
5555
-      'rownumber' => 'rownumber',
5556
-      'expavg_credit' => 'expavg_credit',
5557
-      'total_credit' => 'total_credit',
5558
-      'serialnum' => 'serialnum',
5559
-      'phpcode' => 'phpcode',
5560
-      'p_vendor' => 'p_vendor',
5561
-      'p_model' => 'p_vendor',
5562
-      'p_ncpus' => 'p_vendor',
5563
-      'phpcode_1' => 'phpcode_1',
5564
-      'os_name' => 'os_name',
5565
-      'os_version' => 'os_name',
5566
-      'rpc_time' => 'rpc_time',
5567
-      'phpcode_2' => 'phpcode_2',
5551
+        'id' => 'id',
5552
+        'phpcode_3' => 'id',
5553
+        'host_cpid' => 'host_cpid',
5554
+        'phpcode_4' => 'id',
5555
+        'rownumber' => 'rownumber',
5556
+        'expavg_credit' => 'expavg_credit',
5557
+        'total_credit' => 'total_credit',
5558
+        'serialnum' => 'serialnum',
5559
+        'phpcode' => 'phpcode',
5560
+        'p_vendor' => 'p_vendor',
5561
+        'p_model' => 'p_vendor',
5562
+        'p_ncpus' => 'p_vendor',
5563
+        'phpcode_1' => 'phpcode_1',
5564
+        'os_name' => 'os_name',
5565
+        'os_version' => 'os_name',
5566
+        'rpc_time' => 'rpc_time',
5567
+        'phpcode_2' => 'phpcode_2',
5568 5568
     ),
5569 5569
     'info' => array(
5570
-      'id' => array(
5570
+        'id' => array(
5571 5571
         'sortable' => 1,
5572 5572
         'separator' => '<br/>',
5573
-      ),
5574
-      'phpcode_3' => array(
5573
+        ),
5574
+        'phpcode_3' => array(
5575 5575
         'separator' => '',
5576
-      ),
5577
-      'host_cpid' => array(
5576
+        ),
5577
+        'host_cpid' => array(
5578 5578
         'sortable' => 0,
5579 5579
         'separator' => '',
5580
-      ),
5581
-      'phpcode_4' => array(
5580
+        ),
5581
+        'phpcode_4' => array(
5582 5582
         'separator' => '',
5583
-      ),
5584
-      'rownumber' => array(
5583
+        ),
5584
+        'rownumber' => array(
5585 5585
         'separator' => '',
5586
-      ),
5587
-      'expavg_credit' => array(
5586
+        ),
5587
+        'expavg_credit' => array(
5588 5588
         'sortable' => 1,
5589 5589
         'separator' => '',
5590
-      ),
5591
-      'total_credit' => array(
5590
+        ),
5591
+        'total_credit' => array(
5592 5592
         'sortable' => 1,
5593 5593
         'separator' => '',
5594
-      ),
5595
-      'serialnum' => array(
5594
+        ),
5595
+        'serialnum' => array(
5596 5596
         'sortable' => 0,
5597 5597
         'separator' => '',
5598
-      ),
5599
-      'phpcode' => array(
5598
+        ),
5599
+        'phpcode' => array(
5600 5600
         'separator' => '',
5601
-      ),
5602
-      'p_vendor' => array(
5601
+        ),
5602
+        'p_vendor' => array(
5603 5603
         'sortable' => 1,
5604 5604
         'separator' => '<br/>',
5605
-      ),
5606
-      'p_model' => array(
5605
+        ),
5606
+        'p_model' => array(
5607 5607
         'sortable' => 0,
5608 5608
         'separator' => '',
5609
-      ),
5610
-      'p_ncpus' => array(
5609
+        ),
5610
+        'p_ncpus' => array(
5611 5611
         'sortable' => 0,
5612 5612
         'separator' => '',
5613
-      ),
5614
-      'phpcode_1' => array(
5613
+        ),
5614
+        'phpcode_1' => array(
5615 5615
         'separator' => '',
5616
-      ),
5617
-      'os_name' => array(
5616
+        ),
5617
+        'os_name' => array(
5618 5618
         'sortable' => 1,
5619 5619
         'separator' => '<br/>',
5620
-      ),
5621
-      'os_version' => array(
5620
+        ),
5621
+        'os_version' => array(
5622 5622
         'sortable' => 0,
5623 5623
         'separator' => '',
5624
-      ),
5625
-      'rpc_time' => array(
5624
+        ),
5625
+        'rpc_time' => array(
5626 5626
         'sortable' => 1,
5627 5627
         'separator' => '',
5628
-      ),
5629
-      'phpcode_2' => array(
5628
+        ),
5629
+        'phpcode_2' => array(
5630 5630
         'separator' => '',
5631
-      ),
5631
+        ),
5632 5632
     ),
5633 5633
     'default' => 'rpc_time',
5634
-  ));
5635
-  $handler = $view->new_display('page', 'User active hosts', 'page_1');
5636
-  $handler->override_option('filters', array(
5634
+    ));
5635
+    $handler = $view->new_display('page', 'User active hosts', 'page_1');
5636
+    $handler->override_option('filters', array(
5637 5637
     'rpc_time' => array(
5638
-      'operator' => '>',
5639
-      'value' => array(
5638
+        'operator' => '>',
5639
+        'value' => array(
5640 5640
         'type' => 'offset',
5641 5641
         'value' => '-30 days',
5642 5642
         'min' => '',
5643 5643
         'max' => '',
5644
-      ),
5645
-      'group' => '0',
5646
-      'exposed' => FALSE,
5647
-      'expose' => array(
5644
+        ),
5645
+        'group' => '0',
5646
+        'exposed' => FALSE,
5647
+        'expose' => array(
5648 5648
         'operator' => FALSE,
5649 5649
         'label' => '',
5650
-      ),
5651
-      'id' => 'rpc_time',
5652
-      'table' => 'host',
5653
-      'field' => 'rpc_time',
5654
-      'relationship' => 'none',
5650
+        ),
5651
+        'id' => 'rpc_time',
5652
+        'table' => 'host',
5653
+        'field' => 'rpc_time',
5654
+        'relationship' => 'none',
5655 5655
     ),
5656 5656
     'show_hosts' => array(
5657
-      'operator' => '=',
5658
-      'value' => array(
5657
+        'operator' => '=',
5658
+        'value' => array(
5659 5659
         'value' => '1',
5660 5660
         'min' => '',
5661 5661
         'max' => '',
5662
-      ),
5663
-      'group' => '0',
5664
-      'exposed' => FALSE,
5665
-      'expose' => array(
5662
+        ),
5663
+        'group' => '0',
5664
+        'exposed' => FALSE,
5665
+        'expose' => array(
5666 5666
         'operator' => FALSE,
5667 5667
         'label' => '',
5668
-      ),
5669
-      'id' => 'show_hosts',
5670
-      'table' => 'user',
5671
-      'field' => 'show_hosts',
5672
-      'relationship' => 'userid',
5673
-    ),
5674
-  ));
5675
-  $handler->override_option('path', 'account/%/computers/active');
5676
-  $handler->override_option('menu', array(
5668
+        ),
5669
+        'id' => 'show_hosts',
5670
+        'table' => 'user',
5671
+        'field' => 'show_hosts',
5672
+        'relationship' => 'userid',
5673
+    ),
5674
+    ));
5675
+    $handler->override_option('path', 'account/%/computers/active');
5676
+    $handler->override_option('menu', array(
5677 5677
     'type' => 'default tab',
5678 5678
     'title' => 'Active in past 30 days',
5679 5679
     'description' => 'Show only computers that have been active in the past month',
5680 5680
     'weight' => '0',
5681 5681
     'name' => 'navigation',
5682
-  ));
5683
-  $handler->override_option('tab_options', array(
5682
+    ));
5683
+    $handler->override_option('tab_options', array(
5684 5684
     'type' => 'tab',
5685 5685
     'title' => 'Computers',
5686 5686
     'description' => 'Show the computers associated with this user',
5687 5687
     'weight' => '0',
5688 5688
     'name' => 'secondary-links',
5689
-  ));
5690
-  $handler = $view->new_display('page', 'User all hosts', 'page_2');
5691
-  $handler->override_option('path', 'account/%/computers/all');
5692
-  $handler->override_option('menu', array(
5689
+    ));
5690
+    $handler = $view->new_display('page', 'User all hosts', 'page_2');
5691
+    $handler->override_option('path', 'account/%/computers/all');
5692
+    $handler->override_option('menu', array(
5693 5693
     'type' => 'tab',
5694 5694
     'title' => 'All computers',
5695 5695
     'description' => 'Show all computers associated with the account',
5696 5696
     'weight' => '1',
5697 5697
     'name' => 'navigation',
5698
-  ));
5699
-  $handler->override_option('tab_options', array(
5698
+    ));
5699
+    $handler->override_option('tab_options', array(
5700 5700
     'type' => 'none',
5701 5701
     'title' => '',
5702 5702
     'description' => '',
5703 5703
     'weight' => 0,
5704 5704
     'name' => 'navigation',
5705
-  ));
5706
-  $handler = $view->new_display('page', 'Top hosts', 'page_3');
5707
-  $handler->override_option('fields', array(
5705
+    ));
5706
+    $handler = $view->new_display('page', 'Top hosts', 'page_3');
5707
+    $handler->override_option('fields', array(
5708 5708
     'id_1' => array(
5709
-      'label' => 'Id',
5710
-      'alter' => array(
5709
+        'label' => 'Id',
5710
+        'alter' => array(
5711 5711
         'alter_text' => 0,
5712 5712
         'text' => '',
5713 5713
         'make_link' => 0,
@@ -5726,32 +5726,32 @@  discard block
 block discarded – undo
5726 5726
         'ellipsis' => 1,
5727 5727
         'html' => 0,
5728 5728
         'strip_tags' => 0,
5729
-      ),
5730
-      'empty' => '',
5731
-      'hide_empty' => 0,
5732
-      'empty_zero' => 0,
5733
-      'hide_alter_empty' => 1,
5734
-      'set_precision' => FALSE,
5735
-      'precision' => 0,
5736
-      'decimal' => '.',
5737
-      'separator' => ',',
5738
-      'format_plural' => 0,
5739
-      'format_plural_singular' => '1',
5740
-      'format_plural_plural' => '@count',
5741
-      'prefix' => '',
5742
-      'suffix' => '',
5743
-      'exclude' => 1,
5744
-      'id' => 'id_1',
5745
-      'table' => 'user',
5746
-      'field' => 'id',
5747
-      'relationship' => 'userid',
5748
-      'override' => array(
5729
+        ),
5730
+        'empty' => '',
5731
+        'hide_empty' => 0,
5732
+        'empty_zero' => 0,
5733
+        'hide_alter_empty' => 1,
5734
+        'set_precision' => FALSE,
5735
+        'precision' => 0,
5736
+        'decimal' => '.',
5737
+        'separator' => ',',
5738
+        'format_plural' => 0,
5739
+        'format_plural_singular' => '1',
5740
+        'format_plural_plural' => '@count',
5741
+        'prefix' => '',
5742
+        'suffix' => '',
5743
+        'exclude' => 1,
5744
+        'id' => 'id_1',
5745
+        'table' => 'user',
5746
+        'field' => 'id',
5747
+        'relationship' => 'userid',
5748
+        'override' => array(
5749 5749
         'button' => 'Use default',
5750
-      ),
5750
+        ),
5751 5751
     ),
5752 5752
     'name' => array(
5753
-      'label' => 'Name',
5754
-      'alter' => array(
5753
+        'label' => 'Name',
5754
+        'alter' => array(
5755 5755
         'alter_text' => 0,
5756 5756
         'text' => '',
5757 5757
         'make_link' => 0,
@@ -5770,23 +5770,23 @@  discard block
 block discarded – undo
5770 5770
         'ellipsis' => 1,
5771 5771
         'html' => 0,
5772 5772
         'strip_tags' => 0,
5773
-      ),
5774
-      'empty' => '',
5775
-      'hide_empty' => 0,
5776
-      'empty_zero' => 0,
5777
-      'hide_alter_empty' => 1,
5778
-      'exclude' => 1,
5779
-      'id' => 'name',
5780
-      'table' => 'user',
5781
-      'field' => 'name',
5782
-      'relationship' => 'userid',
5783
-      'override' => array(
5773
+        ),
5774
+        'empty' => '',
5775
+        'hide_empty' => 0,
5776
+        'empty_zero' => 0,
5777
+        'hide_alter_empty' => 1,
5778
+        'exclude' => 1,
5779
+        'id' => 'name',
5780
+        'table' => 'user',
5781
+        'field' => 'name',
5782
+        'relationship' => 'userid',
5783
+        'override' => array(
5784 5784
         'button' => 'Use default',
5785
-      ),
5785
+        ),
5786 5786
     ),
5787 5787
     'show_hosts' => array(
5788
-      'label' => 'Show Hosts',
5789
-      'alter' => array(
5788
+        'label' => 'Show Hosts',
5789
+        'alter' => array(
5790 5790
         'alter_text' => 0,
5791 5791
         'text' => '',
5792 5792
         'make_link' => 0,
@@ -5805,32 +5805,32 @@  discard block
 block discarded – undo
5805 5805
         'ellipsis' => 1,
5806 5806
         'html' => 0,
5807 5807
         'strip_tags' => 0,
5808
-      ),
5809
-      'empty' => '',
5810
-      'hide_empty' => 0,
5811
-      'empty_zero' => 0,
5812
-      'hide_alter_empty' => 1,
5813
-      'set_precision' => FALSE,
5814
-      'precision' => 0,
5815
-      'decimal' => '.',
5816
-      'separator' => ',',
5817
-      'format_plural' => 0,
5818
-      'format_plural_singular' => '1',
5819
-      'format_plural_plural' => '@count',
5820
-      'prefix' => '',
5821
-      'suffix' => '',
5822
-      'exclude' => 1,
5823
-      'id' => 'show_hosts',
5824
-      'table' => 'user',
5825
-      'field' => 'show_hosts',
5826
-      'relationship' => 'userid',
5827
-      'override' => array(
5808
+        ),
5809
+        'empty' => '',
5810
+        'hide_empty' => 0,
5811
+        'empty_zero' => 0,
5812
+        'hide_alter_empty' => 1,
5813
+        'set_precision' => FALSE,
5814
+        'precision' => 0,
5815
+        'decimal' => '.',
5816
+        'separator' => ',',
5817
+        'format_plural' => 0,
5818
+        'format_plural_singular' => '1',
5819
+        'format_plural_plural' => '@count',
5820
+        'prefix' => '',
5821
+        'suffix' => '',
5822
+        'exclude' => 1,
5823
+        'id' => 'show_hosts',
5824
+        'table' => 'user',
5825
+        'field' => 'show_hosts',
5826
+        'relationship' => 'userid',
5827
+        'override' => array(
5828 5828
         'button' => 'Use default',
5829
-      ),
5829
+        ),
5830 5830
     ),
5831 5831
     'id' => array(
5832
-      'label' => 'Computer ID',
5833
-      'alter' => array(
5832
+        'label' => 'Computer ID',
5833
+        'alter' => array(
5834 5834
         'alter_text' => 0,
5835 5835
         'text' => 'ID: [id]
5836 5836
 <a href="">Details</a> | <a href="">Tasks</a>
@@ -5850,25 +5850,25 @@  discard block
 block discarded – undo
5850 5850
         'ellipsis' => 1,
5851 5851
         'html' => 0,
5852 5852
         'strip_tags' => 0,
5853
-      ),
5854
-      'empty' => '',
5855
-      'hide_empty' => 0,
5856
-      'empty_zero' => 0,
5857
-      'set_precision' => FALSE,
5858
-      'precision' => 0,
5859
-      'decimal' => '.',
5860
-      'separator' => '',
5861
-      'prefix' => 'ID: ',
5862
-      'suffix' => '',
5863
-      'exclude' => 0,
5864
-      'id' => 'id',
5865
-      'table' => 'host',
5866
-      'field' => 'id',
5867
-      'relationship' => 'none',
5853
+        ),
5854
+        'empty' => '',
5855
+        'hide_empty' => 0,
5856
+        'empty_zero' => 0,
5857
+        'set_precision' => FALSE,
5858
+        'precision' => 0,
5859
+        'decimal' => '.',
5860
+        'separator' => '',
5861
+        'prefix' => 'ID: ',
5862
+        'suffix' => '',
5863
+        'exclude' => 0,
5864
+        'id' => 'id',
5865
+        'table' => 'host',
5866
+        'field' => 'id',
5867
+        'relationship' => 'none',
5868 5868
     ),
5869 5869
     'phpcode_3' => array(
5870
-      'label' => 'Computer links',
5871
-      'alter' => array(
5870
+        'label' => 'Computer links',
5871
+        'alter' => array(
5872 5872
         'alter_text' => 0,
5873 5873
         'text' => '',
5874 5874
         'make_link' => 0,
@@ -5887,26 +5887,26 @@  discard block
 block discarded – undo
5887 5887
         'ellipsis' => 1,
5888 5888
         'html' => 0,
5889 5889
         'strip_tags' => 0,
5890
-      ),
5891
-      'empty' => '',
5892
-      'hide_empty' => 0,
5893
-      'empty_zero' => 0,
5894
-      'hide_alter_empty' => 1,
5895
-      'value' => '<?php
5890
+        ),
5891
+        'empty' => '',
5892
+        'hide_empty' => 0,
5893
+        'empty_zero' => 0,
5894
+        'hide_alter_empty' => 1,
5895
+        'value' => '<?php
5896 5896
   echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \'&nbsp;|&nbsp;\' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0");
5897 5897
 ?>',
5898
-      'exclude' => 0,
5899
-      'id' => 'phpcode_3',
5900
-      'table' => 'customfield',
5901
-      'field' => 'phpcode',
5902
-      'relationship' => 'none',
5903
-      'override' => array(
5898
+        'exclude' => 0,
5899
+        'id' => 'phpcode_3',
5900
+        'table' => 'customfield',
5901
+        'field' => 'phpcode',
5902
+        'relationship' => 'none',
5903
+        'override' => array(
5904 5904
         'button' => 'Use default',
5905
-      ),
5905
+        ),
5906 5906
     ),
5907 5907
     'host_cpid' => array(
5908
-      'label' => 'Cross project ID',
5909
-      'alter' => array(
5908
+        'label' => 'Cross project ID',
5909
+        'alter' => array(
5910 5910
         'alter_text' => 0,
5911 5911
         'text' => '',
5912 5912
         'make_link' => 0,
@@ -5923,19 +5923,19 @@  discard block
 block discarded – undo
5923 5923
         'ellipsis' => 1,
5924 5924
         'html' => 0,
5925 5925
         'strip_tags' => 0,
5926
-      ),
5927
-      'empty' => '',
5928
-      'hide_empty' => 0,
5929
-      'empty_zero' => 0,
5930
-      'exclude' => 1,
5931
-      'id' => 'host_cpid',
5932
-      'table' => 'host',
5933
-      'field' => 'host_cpid',
5934
-      'relationship' => 'none',
5926
+        ),
5927
+        'empty' => '',
5928
+        'hide_empty' => 0,
5929
+        'empty_zero' => 0,
5930
+        'exclude' => 1,
5931
+        'id' => 'host_cpid',
5932
+        'table' => 'host',
5933
+        'field' => 'host_cpid',
5934
+        'relationship' => 'none',
5935 5935
     ),
5936 5936
     'phpcode_4' => array(
5937
-      'label' => 'Cross-project statistics',
5938
-      'alter' => array(
5937
+        'label' => 'Cross-project statistics',
5938
+        'alter' => array(
5939 5939
         'alter_text' => 0,
5940 5940
         'text' => '',
5941 5941
         'make_link' => 0,
@@ -5954,12 +5954,12 @@  discard block
 block discarded – undo
5954 5954
         'ellipsis' => 1,
5955 5955
         'html' => 0,
5956 5956
         'strip_tags' => 0,
5957
-      ),
5958
-      'empty' => '',
5959
-      'hide_empty' => 0,
5960
-      'empty_zero' => 0,
5961
-      'hide_alter_empty' => 1,
5962
-      'value' => '<?php
5957
+        ),
5958
+        'empty' => '',
5959
+        'hide_empty' => 0,
5960
+        'empty_zero' => 0,
5961
+        'hide_alter_empty' => 1,
5962
+        'value' => '<?php
5963 5963
   require_boinc(\'stats_sites\');
5964 5964
   global $host_sites;
5965 5965
   $x = "";
@@ -5972,18 +5972,18 @@  discard block
 block discarded – undo
5972 5972
   }
5973 5973
   echo "Cross-project stats: {$x}";
5974 5974
 ?>',
5975
-      'exclude' => 0,
5976
-      'id' => 'phpcode_4',
5977
-      'table' => 'customfield',
5978
-      'field' => 'phpcode',
5979
-      'relationship' => 'none',
5980
-      'override' => array(
5975
+        'exclude' => 0,
5976
+        'id' => 'phpcode_4',
5977
+        'table' => 'customfield',
5978
+        'field' => 'phpcode',
5979
+        'relationship' => 'none',
5980
+        'override' => array(
5981 5981
         'button' => 'Use default',
5982
-      ),
5982
+        ),
5983 5983
     ),
5984 5984
     'rownumber' => array(
5985
-      'label' => 'Rank',
5986
-      'alter' => array(
5985
+        'label' => 'Rank',
5986
+        'alter' => array(
5987 5987
         'alter_text' => 0,
5988 5988
         'text' => '',
5989 5989
         'make_link' => 0,
@@ -6000,19 +6000,19 @@  discard block
 block discarded – undo
6000 6000
         'ellipsis' => 1,
6001 6001
         'html' => 0,
6002 6002
         'strip_tags' => 0,
6003
-      ),
6004
-      'empty' => '',
6005
-      'hide_empty' => 0,
6006
-      'empty_zero' => 0,
6007
-      'exclude' => 0,
6008
-      'id' => 'rownumber',
6009
-      'table' => 'customfield',
6010
-      'field' => 'rownumber',
6011
-      'relationship' => 'none',
6003
+        ),
6004
+        'empty' => '',
6005
+        'hide_empty' => 0,
6006
+        'empty_zero' => 0,
6007
+        'exclude' => 0,
6008
+        'id' => 'rownumber',
6009
+        'table' => 'customfield',
6010
+        'field' => 'rownumber',
6011
+        'relationship' => 'none',
6012 6012
     ),
6013 6013
     'phpcode_5' => array(
6014
-      'label' => 'Owner',
6015
-      'alter' => array(
6014
+        'label' => 'Owner',
6015
+        'alter' => array(
6016 6016
         'alter_text' => 0,
6017 6017
         'text' => '',
6018 6018
         'make_link' => 0,
@@ -6031,12 +6031,12 @@  discard block
 block discarded – undo
6031 6031
         'ellipsis' => 1,
6032 6032
         'html' => 0,
6033 6033
         'strip_tags' => 0,
6034
-      ),
6035
-      'empty' => '',
6036
-      'hide_empty' => 0,
6037
-      'empty_zero' => 0,
6038
-      'hide_alter_empty' => 1,
6039
-      'value' => '<?php
6034
+        ),
6035
+        'empty' => '',
6036
+        'hide_empty' => 0,
6037
+        'empty_zero' => 0,
6038
+        'hide_alter_empty' => 1,
6039
+        'value' => '<?php
6040 6040
 $uid = get_drupal_id($data->user_host_id);
6041 6041
 if ($data->user_host_show_hosts) {
6042 6042
   echo l($data->user_host_name, "account/{$uid}");
@@ -6044,18 +6044,18 @@  discard block
 block discarded – undo
6044 6044
 else {
6045 6045
   echo bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
6046 6046
 }',
6047
-      'exclude' => 0,
6048
-      'id' => 'phpcode_5',
6049
-      'table' => 'customfield',
6050
-      'field' => 'phpcode',
6051
-      'override' => array(
6047
+        'exclude' => 0,
6048
+        'id' => 'phpcode_5',
6049
+        'table' => 'customfield',
6050
+        'field' => 'phpcode',
6051
+        'override' => array(
6052 6052
         'button' => 'Use default',
6053
-      ),
6054
-      'relationship' => 'none',
6053
+        ),
6054
+        'relationship' => 'none',
6055 6055
     ),
6056 6056
     'expavg_credit' => array(
6057
-      'label' => 'Avg. credit',
6058
-      'alter' => array(
6057
+        'label' => 'Avg. credit',
6058
+        'alter' => array(
6059 6059
         'alter_text' => 0,
6060 6060
         'text' => '',
6061 6061
         'make_link' => 0,
@@ -6072,25 +6072,25 @@  discard block
 block discarded – undo
6072 6072
         'ellipsis' => 1,
6073 6073
         'html' => 0,
6074 6074
         'strip_tags' => 0,
6075
-      ),
6076
-      'empty' => '',
6077
-      'hide_empty' => 0,
6078
-      'empty_zero' => 0,
6079
-      'set_precision' => 1,
6080
-      'precision' => '2',
6081
-      'decimal' => '.',
6082
-      'separator' => ',',
6083
-      'prefix' => '',
6084
-      'suffix' => '',
6085
-      'exclude' => 0,
6086
-      'id' => 'expavg_credit',
6087
-      'table' => 'host',
6088
-      'field' => 'expavg_credit',
6089
-      'relationship' => 'none',
6075
+        ),
6076
+        'empty' => '',
6077
+        'hide_empty' => 0,
6078
+        'empty_zero' => 0,
6079
+        'set_precision' => 1,
6080
+        'precision' => '2',
6081
+        'decimal' => '.',
6082
+        'separator' => ',',
6083
+        'prefix' => '',
6084
+        'suffix' => '',
6085
+        'exclude' => 0,
6086
+        'id' => 'expavg_credit',
6087
+        'table' => 'host',
6088
+        'field' => 'expavg_credit',
6089
+        'relationship' => 'none',
6090 6090
     ),
6091 6091
     'total_credit' => array(
6092
-      'label' => 'Total credit',
6093
-      'alter' => array(
6092
+        'label' => 'Total credit',
6093
+        'alter' => array(
6094 6094
         'alter_text' => 0,
6095 6095
         'text' => '',
6096 6096
         'make_link' => 0,
@@ -6109,32 +6109,32 @@  discard block
 block discarded – undo
6109 6109
         'ellipsis' => 1,
6110 6110
         'html' => 0,
6111 6111
         'strip_tags' => 0,
6112
-      ),
6113
-      'empty' => '',
6114
-      'hide_empty' => 0,
6115
-      'empty_zero' => 0,
6116
-      'hide_alter_empty' => 1,
6117
-      'set_precision' => 1,
6118
-      'precision' => '0',
6119
-      'decimal' => '.',
6120
-      'separator' => ',',
6121
-      'format_plural' => 0,
6122
-      'format_plural_singular' => '1',
6123
-      'format_plural_plural' => '@count',
6124
-      'prefix' => '',
6125
-      'suffix' => '',
6126
-      'exclude' => 0,
6127
-      'id' => 'total_credit',
6128
-      'table' => 'host',
6129
-      'field' => 'total_credit',
6130
-      'relationship' => 'none',
6131
-      'override' => array(
6112
+        ),
6113
+        'empty' => '',
6114
+        'hide_empty' => 0,
6115
+        'empty_zero' => 0,
6116
+        'hide_alter_empty' => 1,
6117
+        'set_precision' => 1,
6118
+        'precision' => '0',
6119
+        'decimal' => '.',
6120
+        'separator' => ',',
6121
+        'format_plural' => 0,
6122
+        'format_plural_singular' => '1',
6123
+        'format_plural_plural' => '@count',
6124
+        'prefix' => '',
6125
+        'suffix' => '',
6126
+        'exclude' => 0,
6127
+        'id' => 'total_credit',
6128
+        'table' => 'host',
6129
+        'field' => 'total_credit',
6130
+        'relationship' => 'none',
6131
+        'override' => array(
6132 6132
         'button' => 'Use default',
6133
-      ),
6133
+        ),
6134 6134
     ),
6135 6135
     'serialnum' => array(
6136
-      'label' => 'Serial Number',
6137
-      'alter' => array(
6136
+        'label' => 'Serial Number',
6137
+        'alter' => array(
6138 6138
         'alter_text' => 0,
6139 6139
         'text' => '',
6140 6140
         'make_link' => 0,
@@ -6151,19 +6151,19 @@  discard block
 block discarded – undo
6151 6151
         'ellipsis' => 1,
6152 6152
         'html' => 0,
6153 6153
         'strip_tags' => 0,
6154
-      ),
6155
-      'empty' => '',
6156
-      'hide_empty' => 0,
6157
-      'empty_zero' => 0,
6158
-      'exclude' => 1,
6159
-      'id' => 'serialnum',
6160
-      'table' => 'host',
6161
-      'field' => 'serialnum',
6162
-      'relationship' => 'none',
6154
+        ),
6155
+        'empty' => '',
6156
+        'hide_empty' => 0,
6157
+        'empty_zero' => 0,
6158
+        'exclude' => 1,
6159
+        'id' => 'serialnum',
6160
+        'table' => 'host',
6161
+        'field' => 'serialnum',
6162
+        'relationship' => 'none',
6163 6163
     ),
6164 6164
     'phpcode' => array(
6165
-      'label' => 'BOINC version',
6166
-      'alter' => array(
6165
+        'label' => 'BOINC version',
6166
+        'alter' => array(
6167 6167
         'alter_text' => 0,
6168 6168
         'text' => '',
6169 6169
         'make_link' => 0,
@@ -6180,23 +6180,23 @@  discard block
 block discarded – undo
6180 6180
         'ellipsis' => 1,
6181 6181
         'html' => 0,
6182 6182
         'strip_tags' => 0,
6183
-      ),
6184
-      'empty' => '',
6185
-      'hide_empty' => 0,
6186
-      'empty_zero' => 0,
6187
-      'value' => '<?php
6183
+        ),
6184
+        'empty' => '',
6185
+        'hide_empty' => 0,
6186
+        'empty_zero' => 0,
6187
+        'value' => '<?php
6188 6188
   require_boinc(\'host\');
6189 6189
   echo boinc_version($data->host_serialnum);
6190 6190
 ?>',
6191
-      'exclude' => 0,
6192
-      'id' => 'phpcode',
6193
-      'table' => 'customfield',
6194
-      'field' => 'phpcode',
6195
-      'relationship' => 'none',
6191
+        'exclude' => 0,
6192
+        'id' => 'phpcode',
6193
+        'table' => 'customfield',
6194
+        'field' => 'phpcode',
6195
+        'relationship' => 'none',
6196 6196
     ),
6197 6197
     'p_vendor' => array(
6198
-      'label' => 'CPU',
6199
-      'alter' => array(
6198
+        'label' => 'CPU',
6199
+        'alter' => array(
6200 6200
         'alter_text' => 0,
6201 6201
         'text' => '',
6202 6202
         'make_link' => 0,
@@ -6213,22 +6213,22 @@  discard block
 block discarded – undo
6213 6213
         'ellipsis' => 1,
6214 6214
         'html' => 0,
6215 6215
         'strip_tags' => 0,
6216
-      ),
6217
-      'empty' => '',
6218
-      'hide_empty' => 0,
6219
-      'empty_zero' => 0,
6220
-      'exclude' => 0,
6221
-      'id' => 'p_vendor',
6222
-      'table' => 'host',
6223
-      'field' => 'p_vendor',
6224
-      'relationship' => 'none',
6225
-      'override' => array(
6216
+        ),
6217
+        'empty' => '',
6218
+        'hide_empty' => 0,
6219
+        'empty_zero' => 0,
6220
+        'exclude' => 0,
6221
+        'id' => 'p_vendor',
6222
+        'table' => 'host',
6223
+        'field' => 'p_vendor',
6224
+        'relationship' => 'none',
6225
+        'override' => array(
6226 6226
         'button' => 'Override',
6227
-      ),
6227
+        ),
6228 6228
     ),
6229 6229
     'p_model' => array(
6230
-      'label' => 'CPU model',
6231
-      'alter' => array(
6230
+        'label' => 'CPU model',
6231
+        'alter' => array(
6232 6232
         'alter_text' => 0,
6233 6233
         'text' => '',
6234 6234
         'make_link' => 0,
@@ -6245,19 +6245,19 @@  discard block
 block discarded – undo
6245 6245
         'ellipsis' => 1,
6246 6246
         'html' => 0,
6247 6247
         'strip_tags' => 0,
6248
-      ),
6249
-      'empty' => '',
6250
-      'hide_empty' => 0,
6251
-      'empty_zero' => 0,
6252
-      'exclude' => 0,
6253
-      'id' => 'p_model',
6254
-      'table' => 'host',
6255
-      'field' => 'p_model',
6256
-      'relationship' => 'none',
6248
+        ),
6249
+        'empty' => '',
6250
+        'hide_empty' => 0,
6251
+        'empty_zero' => 0,
6252
+        'exclude' => 0,
6253
+        'id' => 'p_model',
6254
+        'table' => 'host',
6255
+        'field' => 'p_model',
6256
+        'relationship' => 'none',
6257 6257
     ),
6258 6258
     'p_ncpus' => array(
6259
-      'label' => 'Number of CPUs',
6260
-      'alter' => array(
6259
+        'label' => 'Number of CPUs',
6260
+        'alter' => array(
6261 6261
         'alter_text' => 1,
6262 6262
         'text' => '([p_ncpus] processors)',
6263 6263
         'make_link' => 0,
@@ -6274,19 +6274,19 @@  discard block
 block discarded – undo
6274 6274
         'ellipsis' => 1,
6275 6275
         'html' => 0,
6276 6276
         'strip_tags' => 0,
6277
-      ),
6278
-      'empty' => '',
6279
-      'hide_empty' => 0,
6280
-      'empty_zero' => 0,
6281
-      'exclude' => 0,
6282
-      'id' => 'p_ncpus',
6283
-      'table' => 'host',
6284
-      'field' => 'p_ncpus',
6285
-      'relationship' => 'none',
6277
+        ),
6278
+        'empty' => '',
6279
+        'hide_empty' => 0,
6280
+        'empty_zero' => 0,
6281
+        'exclude' => 0,
6282
+        'id' => 'p_ncpus',
6283
+        'table' => 'host',
6284
+        'field' => 'p_ncpus',
6285
+        'relationship' => 'none',
6286 6286
     ),
6287 6287
     'phpcode_1' => array(
6288
-      'label' => 'GPU',
6289
-      'alter' => array(
6288
+        'label' => 'GPU',
6289
+        'alter' => array(
6290 6290
         'alter_text' => 0,
6291 6291
         'text' => '',
6292 6292
         'make_link' => 0,
@@ -6303,23 +6303,23 @@  discard block
 block discarded – undo
6303 6303
         'ellipsis' => 1,
6304 6304
         'html' => 0,
6305 6305
         'strip_tags' => 0,
6306
-      ),
6307
-      'empty' => '',
6308
-      'hide_empty' => 0,
6309
-      'empty_zero' => 0,
6310
-      'value' => '<?php
6306
+        ),
6307
+        'empty' => '',
6308
+        'hide_empty' => 0,
6309
+        'empty_zero' => 0,
6310
+        'value' => '<?php
6311 6311
   require_boinc(\'host\');
6312 6312
   echo gpu_desc($data->host_serialnum);
6313 6313
 ?>',
6314
-      'exclude' => 0,
6315
-      'id' => 'phpcode_1',
6316
-      'table' => 'customfield',
6317
-      'field' => 'phpcode',
6318
-      'relationship' => 'none',
6314
+        'exclude' => 0,
6315
+        'id' => 'phpcode_1',
6316
+        'table' => 'customfield',
6317
+        'field' => 'phpcode',
6318
+        'relationship' => 'none',
6319 6319
     ),
6320 6320
     'os_name' => array(
6321
-      'label' => 'Operating system',
6322
-      'alter' => array(
6321
+        'label' => 'Operating system',
6322
+        'alter' => array(
6323 6323
         'alter_text' => 0,
6324 6324
         'text' => '',
6325 6325
         'make_link' => 0,
@@ -6336,19 +6336,19 @@  discard block
 block discarded – undo
6336 6336
         'ellipsis' => 1,
6337 6337
         'html' => 0,
6338 6338
         'strip_tags' => 0,
6339
-      ),
6340
-      'empty' => '',
6341
-      'hide_empty' => 0,
6342
-      'empty_zero' => 0,
6343
-      'exclude' => 0,
6344
-      'id' => 'os_name',
6345
-      'table' => 'host',
6346
-      'field' => 'os_name',
6347
-      'relationship' => 'none',
6339
+        ),
6340
+        'empty' => '',
6341
+        'hide_empty' => 0,
6342
+        'empty_zero' => 0,
6343
+        'exclude' => 0,
6344
+        'id' => 'os_name',
6345
+        'table' => 'host',
6346
+        'field' => 'os_name',
6347
+        'relationship' => 'none',
6348 6348
     ),
6349 6349
     'os_version' => array(
6350
-      'label' => 'Operating system version',
6351
-      'alter' => array(
6350
+        'label' => 'Operating system version',
6351
+        'alter' => array(
6352 6352
         'alter_text' => 0,
6353 6353
         'text' => '',
6354 6354
         'make_link' => 0,
@@ -6365,164 +6365,164 @@  discard block
 block discarded – undo
6365 6365
         'ellipsis' => 1,
6366 6366
         'html' => 0,
6367 6367
         'strip_tags' => 0,
6368
-      ),
6369
-      'empty' => '',
6370
-      'hide_empty' => 0,
6371
-      'empty_zero' => 0,
6372
-      'exclude' => 0,
6373
-      'id' => 'os_version',
6374
-      'table' => 'host',
6375
-      'field' => 'os_version',
6376
-      'relationship' => 'none',
6368
+        ),
6369
+        'empty' => '',
6370
+        'hide_empty' => 0,
6371
+        'empty_zero' => 0,
6372
+        'exclude' => 0,
6373
+        'id' => 'os_version',
6374
+        'table' => 'host',
6375
+        'field' => 'os_version',
6376
+        'relationship' => 'none',
6377 6377
     ),
6378
-  ));
6379
-  $handler->override_option('arguments', array());
6380
-  $handler->override_option('filters', array(
6378
+    ));
6379
+    $handler->override_option('arguments', array());
6380
+    $handler->override_option('filters', array(
6381 6381
     'total_credit' => array(
6382
-      'operator' => '>=',
6383
-      'value' => array(
6382
+        'operator' => '>=',
6383
+        'value' => array(
6384 6384
         'value' => '1',
6385 6385
         'min' => '',
6386 6386
         'max' => '',
6387
-      ),
6388
-      'group' => '0',
6389
-      'exposed' => FALSE,
6390
-      'expose' => array(
6387
+        ),
6388
+        'group' => '0',
6389
+        'exposed' => FALSE,
6390
+        'expose' => array(
6391 6391
         'operator' => FALSE,
6392 6392
         'label' => '',
6393
-      ),
6394
-      'id' => 'total_credit',
6395
-      'table' => 'host',
6396
-      'field' => 'total_credit',
6397
-      'override' => array(
6393
+        ),
6394
+        'id' => 'total_credit',
6395
+        'table' => 'host',
6396
+        'field' => 'total_credit',
6397
+        'override' => array(
6398 6398
         'button' => 'Use default',
6399
-      ),
6400
-      'relationship' => 'none',
6399
+        ),
6400
+        'relationship' => 'none',
6401 6401
     ),
6402
-  ));
6403
-  $handler->override_option('items_per_page', 50);
6404
-  $handler->override_option('use_pager', '0');
6405
-  $handler->override_option('style_options', array(
6402
+    ));
6403
+    $handler->override_option('items_per_page', 50);
6404
+    $handler->override_option('use_pager', '0');
6405
+    $handler->override_option('style_options', array(
6406 6406
     'grouping' => '',
6407 6407
     'override' => 1,
6408 6408
     'sticky' => 1,
6409 6409
     'order' => 'desc',
6410 6410
     'summary' => '',
6411 6411
     'columns' => array(
6412
-      'id_1' => 'id_1',
6413
-      'name' => 'name',
6414
-      'show_hosts' => 'show_hosts',
6415
-      'id' => 'id',
6416
-      'phpcode_3' => 'id',
6417
-      'host_cpid' => 'host_cpid',
6418
-      'phpcode_4' => 'id',
6419
-      'rownumber' => 'rownumber',
6420
-      'phpcode_5' => 'phpcode_5',
6421
-      'expavg_credit' => 'expavg_credit',
6422
-      'total_credit' => 'total_credit',
6423
-      'serialnum' => 'serialnum',
6424
-      'phpcode' => 'phpcode',
6425
-      'p_vendor' => 'p_vendor',
6426
-      'p_model' => 'p_vendor',
6427
-      'p_ncpus' => 'p_vendor',
6428
-      'phpcode_1' => 'phpcode_1',
6429
-      'os_name' => 'os_name',
6430
-      'os_version' => 'os_name',
6412
+        'id_1' => 'id_1',
6413
+        'name' => 'name',
6414
+        'show_hosts' => 'show_hosts',
6415
+        'id' => 'id',
6416
+        'phpcode_3' => 'id',
6417
+        'host_cpid' => 'host_cpid',
6418
+        'phpcode_4' => 'id',
6419
+        'rownumber' => 'rownumber',
6420
+        'phpcode_5' => 'phpcode_5',
6421
+        'expavg_credit' => 'expavg_credit',
6422
+        'total_credit' => 'total_credit',
6423
+        'serialnum' => 'serialnum',
6424
+        'phpcode' => 'phpcode',
6425
+        'p_vendor' => 'p_vendor',
6426
+        'p_model' => 'p_vendor',
6427
+        'p_ncpus' => 'p_vendor',
6428
+        'phpcode_1' => 'phpcode_1',
6429
+        'os_name' => 'os_name',
6430
+        'os_version' => 'os_name',
6431 6431
     ),
6432 6432
     'info' => array(
6433
-      'id_1' => array(
6433
+        'id_1' => array(
6434 6434
         'sortable' => 0,
6435 6435
         'separator' => '',
6436
-      ),
6437
-      'name' => array(
6436
+        ),
6437
+        'name' => array(
6438 6438
         'sortable' => 0,
6439 6439
         'separator' => '',
6440
-      ),
6441
-      'show_hosts' => array(
6440
+        ),
6441
+        'show_hosts' => array(
6442 6442
         'sortable' => 0,
6443 6443
         'separator' => '',
6444
-      ),
6445
-      'id' => array(
6444
+        ),
6445
+        'id' => array(
6446 6446
         'sortable' => 0,
6447 6447
         'separator' => '<br/>',
6448
-      ),
6449
-      'phpcode_3' => array(
6448
+        ),
6449
+        'phpcode_3' => array(
6450 6450
         'separator' => '',
6451
-      ),
6452
-      'host_cpid' => array(
6451
+        ),
6452
+        'host_cpid' => array(
6453 6453
         'sortable' => 0,
6454 6454
         'separator' => '',
6455
-      ),
6456
-      'phpcode_4' => array(
6455
+        ),
6456
+        'phpcode_4' => array(
6457 6457
         'separator' => '',
6458
-      ),
6459
-      'rownumber' => array(
6458
+        ),
6459
+        'rownumber' => array(
6460 6460
         'separator' => '',
6461
-      ),
6462
-      'phpcode_5' => array(
6461
+        ),
6462
+        'phpcode_5' => array(
6463 6463
         'separator' => '',
6464
-      ),
6465
-      'expavg_credit' => array(
6464
+        ),
6465
+        'expavg_credit' => array(
6466 6466
         'sortable' => 1,
6467 6467
         'separator' => '',
6468
-      ),
6469
-      'total_credit' => array(
6468
+        ),
6469
+        'total_credit' => array(
6470 6470
         'sortable' => 1,
6471 6471
         'separator' => '',
6472
-      ),
6473
-      'serialnum' => array(
6472
+        ),
6473
+        'serialnum' => array(
6474 6474
         'sortable' => 0,
6475 6475
         'separator' => '',
6476
-      ),
6477
-      'phpcode' => array(
6476
+        ),
6477
+        'phpcode' => array(
6478 6478
         'separator' => '',
6479
-      ),
6480
-      'p_vendor' => array(
6479
+        ),
6480
+        'p_vendor' => array(
6481 6481
         'sortable' => 0,
6482 6482
         'separator' => '<br/>',
6483
-      ),
6484
-      'p_model' => array(
6483
+        ),
6484
+        'p_model' => array(
6485 6485
         'sortable' => 0,
6486 6486
         'separator' => '',
6487
-      ),
6488
-      'p_ncpus' => array(
6487
+        ),
6488
+        'p_ncpus' => array(
6489 6489
         'sortable' => 0,
6490 6490
         'separator' => '',
6491
-      ),
6492
-      'phpcode_1' => array(
6491
+        ),
6492
+        'phpcode_1' => array(
6493 6493
         'separator' => '',
6494
-      ),
6495
-      'os_name' => array(
6494
+        ),
6495
+        'os_name' => array(
6496 6496
         'sortable' => 0,
6497 6497
         'separator' => '<br/>',
6498
-      ),
6499
-      'os_version' => array(
6498
+        ),
6499
+        'os_version' => array(
6500 6500
         'sortable' => 0,
6501 6501
         'separator' => '',
6502
-      ),
6502
+        ),
6503 6503
     ),
6504 6504
     'default' => 'expavg_credit',
6505
-  ));
6506
-  $handler->override_option('path', 'community/stats/hosts');
6507
-  $handler->override_option('menu', array(
6505
+    ));
6506
+    $handler->override_option('path', 'community/stats/hosts');
6507
+    $handler->override_option('menu', array(
6508 6508
     'type' => 'tab',
6509 6509
     'title' => 'Top Computers',
6510 6510
     'description' => '',
6511 6511
     'weight' => '10',
6512 6512
     'name' => 'primary-links',
6513
-  ));
6514
-  $handler->override_option('tab_options', array(
6513
+    ));
6514
+    $handler->override_option('tab_options', array(
6515 6515
     'type' => 'none',
6516 6516
     'title' => '',
6517 6517
     'description' => '',
6518 6518
     'weight' => 0,
6519 6519
     'name' => 'navigation',
6520
-  ));
6521
-  $handler = $view->new_display('panel_pane', 'Top hosts pane', 'panel_pane_1');
6522
-  $handler->override_option('fields', array(
6520
+    ));
6521
+    $handler = $view->new_display('panel_pane', 'Top hosts pane', 'panel_pane_1');
6522
+    $handler->override_option('fields', array(
6523 6523
     'id_1' => array(
6524
-      'label' => 'Id',
6525
-      'alter' => array(
6524
+        'label' => 'Id',
6525
+        'alter' => array(
6526 6526
         'alter_text' => 0,
6527 6527
         'text' => '',
6528 6528
         'make_link' => 0,
@@ -6541,32 +6541,32 @@  discard block
 block discarded – undo
6541 6541
         'ellipsis' => 1,
6542 6542
         'html' => 0,
6543 6543
         'strip_tags' => 0,
6544
-      ),
6545
-      'empty' => '',
6546
-      'hide_empty' => 0,
6547
-      'empty_zero' => 0,
6548
-      'hide_alter_empty' => 1,
6549
-      'set_precision' => FALSE,
6550
-      'precision' => 0,
6551
-      'decimal' => '.',
6552
-      'separator' => '',
6553
-      'format_plural' => 0,
6554
-      'format_plural_singular' => '1',
6555
-      'format_plural_plural' => '@count',
6556
-      'prefix' => '',
6557
-      'suffix' => '',
6558
-      'exclude' => 1,
6559
-      'id' => 'id_1',
6560
-      'table' => 'user',
6561
-      'field' => 'id',
6562
-      'relationship' => 'userid',
6563
-      'override' => array(
6544
+        ),
6545
+        'empty' => '',
6546
+        'hide_empty' => 0,
6547
+        'empty_zero' => 0,
6548
+        'hide_alter_empty' => 1,
6549
+        'set_precision' => FALSE,
6550
+        'precision' => 0,
6551
+        'decimal' => '.',
6552
+        'separator' => '',
6553
+        'format_plural' => 0,
6554
+        'format_plural_singular' => '1',
6555
+        'format_plural_plural' => '@count',
6556
+        'prefix' => '',
6557
+        'suffix' => '',
6558
+        'exclude' => 1,
6559
+        'id' => 'id_1',
6560
+        'table' => 'user',
6561
+        'field' => 'id',
6562
+        'relationship' => 'userid',
6563
+        'override' => array(
6564 6564
         'button' => 'Use default',
6565
-      ),
6565
+        ),
6566 6566
     ),
6567 6567
     'name' => array(
6568
-      'label' => 'Name',
6569
-      'alter' => array(
6568
+        'label' => 'Name',
6569
+        'alter' => array(
6570 6570
         'alter_text' => 0,
6571 6571
         'text' => '',
6572 6572
         'make_link' => 0,
@@ -6585,23 +6585,23 @@  discard block
 block discarded – undo
6585 6585
         'ellipsis' => 1,
6586 6586
         'html' => 0,
6587 6587
         'strip_tags' => 0,
6588
-      ),
6589
-      'empty' => '',
6590
-      'hide_empty' => 0,
6591
-      'empty_zero' => 0,
6592
-      'hide_alter_empty' => 1,
6593
-      'exclude' => 1,
6594
-      'id' => 'name',
6595
-      'table' => 'user',
6596
-      'field' => 'name',
6597
-      'relationship' => 'userid',
6598
-      'override' => array(
6588
+        ),
6589
+        'empty' => '',
6590
+        'hide_empty' => 0,
6591
+        'empty_zero' => 0,
6592
+        'hide_alter_empty' => 1,
6593
+        'exclude' => 1,
6594
+        'id' => 'name',
6595
+        'table' => 'user',
6596
+        'field' => 'name',
6597
+        'relationship' => 'userid',
6598
+        'override' => array(
6599 6599
         'button' => 'Use default',
6600
-      ),
6600
+        ),
6601 6601
     ),
6602 6602
     'show_hosts' => array(
6603
-      'label' => 'Show Hosts',
6604
-      'alter' => array(
6603
+        'label' => 'Show Hosts',
6604
+        'alter' => array(
6605 6605
         'alter_text' => 0,
6606 6606
         'text' => '',
6607 6607
         'make_link' => 0,
@@ -6620,32 +6620,32 @@  discard block
 block discarded – undo
6620 6620
         'ellipsis' => 1,
6621 6621
         'html' => 0,
6622 6622
         'strip_tags' => 0,
6623
-      ),
6624
-      'empty' => '',
6625
-      'hide_empty' => 0,
6626
-      'empty_zero' => 0,
6627
-      'hide_alter_empty' => 1,
6628
-      'set_precision' => FALSE,
6629
-      'precision' => 0,
6630
-      'decimal' => '.',
6631
-      'separator' => '',
6632
-      'format_plural' => 0,
6633
-      'format_plural_singular' => '1',
6634
-      'format_plural_plural' => '@count',
6635
-      'prefix' => '',
6636
-      'suffix' => '',
6637
-      'exclude' => 1,
6638
-      'id' => 'show_hosts',
6639
-      'table' => 'user',
6640
-      'field' => 'show_hosts',
6641
-      'relationship' => 'userid',
6642
-      'override' => array(
6623
+        ),
6624
+        'empty' => '',
6625
+        'hide_empty' => 0,
6626
+        'empty_zero' => 0,
6627
+        'hide_alter_empty' => 1,
6628
+        'set_precision' => FALSE,
6629
+        'precision' => 0,
6630
+        'decimal' => '.',
6631
+        'separator' => '',
6632
+        'format_plural' => 0,
6633
+        'format_plural_singular' => '1',
6634
+        'format_plural_plural' => '@count',
6635
+        'prefix' => '',
6636
+        'suffix' => '',
6637
+        'exclude' => 1,
6638
+        'id' => 'show_hosts',
6639
+        'table' => 'user',
6640
+        'field' => 'show_hosts',
6641
+        'relationship' => 'userid',
6642
+        'override' => array(
6643 6643
         'button' => 'Use default',
6644
-      ),
6644
+        ),
6645 6645
     ),
6646 6646
     'rownumber' => array(
6647
-      'label' => 'Rank',
6648
-      'alter' => array(
6647
+        'label' => 'Rank',
6648
+        'alter' => array(
6649 6649
         'alter_text' => 0,
6650 6650
         'text' => '',
6651 6651
         'make_link' => 0,
@@ -6662,19 +6662,19 @@  discard block
 block discarded – undo
6662 6662
         'ellipsis' => 1,
6663 6663
         'html' => 0,
6664 6664
         'strip_tags' => 0,
6665
-      ),
6666
-      'empty' => '',
6667
-      'hide_empty' => 0,
6668
-      'empty_zero' => 0,
6669
-      'exclude' => 0,
6670
-      'id' => 'rownumber',
6671
-      'table' => 'customfield',
6672
-      'field' => 'rownumber',
6673
-      'relationship' => 'none',
6665
+        ),
6666
+        'empty' => '',
6667
+        'hide_empty' => 0,
6668
+        'empty_zero' => 0,
6669
+        'exclude' => 0,
6670
+        'id' => 'rownumber',
6671
+        'table' => 'customfield',
6672
+        'field' => 'rownumber',
6673
+        'relationship' => 'none',
6674 6674
     ),
6675 6675
     'id' => array(
6676
-      'label' => 'Computer ID',
6677
-      'alter' => array(
6676
+        'label' => 'Computer ID',
6677
+        'alter' => array(
6678 6678
         'alter_text' => 0,
6679 6679
         'text' => 'ID: [id]
6680 6680
 <a href="">Details</a> | <a href="">Tasks</a>
@@ -6696,32 +6696,32 @@  discard block
 block discarded – undo
6696 6696
         'ellipsis' => 1,
6697 6697
         'html' => 0,
6698 6698
         'strip_tags' => 0,
6699
-      ),
6700
-      'empty' => '',
6701
-      'hide_empty' => 0,
6702
-      'empty_zero' => 0,
6703
-      'hide_alter_empty' => 1,
6704
-      'set_precision' => FALSE,
6705
-      'precision' => 0,
6706
-      'decimal' => '.',
6707
-      'separator' => '',
6708
-      'format_plural' => 0,
6709
-      'format_plural_singular' => '1',
6710
-      'format_plural_plural' => '@count',
6711
-      'prefix' => '',
6712
-      'suffix' => '',
6713
-      'exclude' => 0,
6714
-      'id' => 'id',
6715
-      'table' => 'host',
6716
-      'field' => 'id',
6717
-      'relationship' => 'none',
6718
-      'override' => array(
6699
+        ),
6700
+        'empty' => '',
6701
+        'hide_empty' => 0,
6702
+        'empty_zero' => 0,
6703
+        'hide_alter_empty' => 1,
6704
+        'set_precision' => FALSE,
6705
+        'precision' => 0,
6706
+        'decimal' => '.',
6707
+        'separator' => '',
6708
+        'format_plural' => 0,
6709
+        'format_plural_singular' => '1',
6710
+        'format_plural_plural' => '@count',
6711
+        'prefix' => '',
6712
+        'suffix' => '',
6713
+        'exclude' => 0,
6714
+        'id' => 'id',
6715
+        'table' => 'host',
6716
+        'field' => 'id',
6717
+        'relationship' => 'none',
6718
+        'override' => array(
6719 6719
         'button' => 'Use default',
6720
-      ),
6720
+        ),
6721 6721
     ),
6722 6722
     'phpcode_3' => array(
6723
-      'label' => 'Computer links',
6724
-      'alter' => array(
6723
+        'label' => 'Computer links',
6724
+        'alter' => array(
6725 6725
         'alter_text' => 0,
6726 6726
         'text' => '',
6727 6727
         'make_link' => 0,
@@ -6740,26 +6740,26 @@  discard block
 block discarded – undo
6740 6740
         'ellipsis' => 1,
6741 6741
         'html' => 0,
6742 6742
         'strip_tags' => 0,
6743
-      ),
6744
-      'empty' => '',
6745
-      'hide_empty' => 0,
6746
-      'empty_zero' => 0,
6747
-      'hide_alter_empty' => 1,
6748
-      'value' => '<?php
6743
+        ),
6744
+        'empty' => '',
6745
+        'hide_empty' => 0,
6746
+        'empty_zero' => 0,
6747
+        'hide_alter_empty' => 1,
6748
+        'value' => '<?php
6749 6749
   echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \'&nbsp;|&nbsp;\' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0");
6750 6750
 ?>',
6751
-      'exclude' => 1,
6752
-      'id' => 'phpcode_3',
6753
-      'table' => 'customfield',
6754
-      'field' => 'phpcode',
6755
-      'relationship' => 'none',
6756
-      'override' => array(
6751
+        'exclude' => 1,
6752
+        'id' => 'phpcode_3',
6753
+        'table' => 'customfield',
6754
+        'field' => 'phpcode',
6755
+        'relationship' => 'none',
6756
+        'override' => array(
6757 6757
         'button' => 'Use default',
6758
-      ),
6758
+        ),
6759 6759
     ),
6760 6760
     'host_cpid' => array(
6761
-      'label' => 'Cross project ID',
6762
-      'alter' => array(
6761
+        'label' => 'Cross project ID',
6762
+        'alter' => array(
6763 6763
         'alter_text' => 0,
6764 6764
         'text' => '',
6765 6765
         'make_link' => 0,
@@ -6776,19 +6776,19 @@  discard block
 block discarded – undo
6776 6776
         'ellipsis' => 1,
6777 6777
         'html' => 0,
6778 6778
         'strip_tags' => 0,
6779
-      ),
6780
-      'empty' => '',
6781
-      'hide_empty' => 0,
6782
-      'empty_zero' => 0,
6783
-      'exclude' => 1,
6784
-      'id' => 'host_cpid',
6785
-      'table' => 'host',
6786
-      'field' => 'host_cpid',
6787
-      'relationship' => 'none',
6779
+        ),
6780
+        'empty' => '',
6781
+        'hide_empty' => 0,
6782
+        'empty_zero' => 0,
6783
+        'exclude' => 1,
6784
+        'id' => 'host_cpid',
6785
+        'table' => 'host',
6786
+        'field' => 'host_cpid',
6787
+        'relationship' => 'none',
6788 6788
     ),
6789 6789
     'phpcode_4' => array(
6790
-      'label' => 'Cross-project statistics',
6791
-      'alter' => array(
6790
+        'label' => 'Cross-project statistics',
6791
+        'alter' => array(
6792 6792
         'alter_text' => 0,
6793 6793
         'text' => '',
6794 6794
         'make_link' => 0,
@@ -6807,12 +6807,12 @@  discard block
 block discarded – undo
6807 6807
         'ellipsis' => 1,
6808 6808
         'html' => 0,
6809 6809
         'strip_tags' => 0,
6810
-      ),
6811
-      'empty' => '',
6812
-      'hide_empty' => 0,
6813
-      'empty_zero' => 0,
6814
-      'hide_alter_empty' => 1,
6815
-      'value' => '<?php
6810
+        ),
6811
+        'empty' => '',
6812
+        'hide_empty' => 0,
6813
+        'empty_zero' => 0,
6814
+        'hide_alter_empty' => 1,
6815
+        'value' => '<?php
6816 6816
   require_boinc(\'stats_sites\');
6817 6817
   global $host_sites;
6818 6818
   $x = "";
@@ -6825,18 +6825,18 @@  discard block
 block discarded – undo
6825 6825
   }
6826 6826
   echo "Cross-project stats: {$x}";
6827 6827
 ?>',
6828
-      'exclude' => 1,
6829
-      'id' => 'phpcode_4',
6830
-      'table' => 'customfield',
6831
-      'field' => 'phpcode',
6832
-      'relationship' => 'none',
6833
-      'override' => array(
6828
+        'exclude' => 1,
6829
+        'id' => 'phpcode_4',
6830
+        'table' => 'customfield',
6831
+        'field' => 'phpcode',
6832
+        'relationship' => 'none',
6833
+        'override' => array(
6834 6834
         'button' => 'Use default',
6835
-      ),
6835
+        ),
6836 6836
     ),
6837 6837
     'phpcode_5' => array(
6838
-      'label' => 'Owner',
6839
-      'alter' => array(
6838
+        'label' => 'Owner',
6839
+        'alter' => array(
6840 6840
         'alter_text' => 0,
6841 6841
         'text' => '',
6842 6842
         'make_link' => 0,
@@ -6855,12 +6855,12 @@  discard block
 block discarded – undo
6855 6855
         'ellipsis' => 1,
6856 6856
         'html' => 0,
6857 6857
         'strip_tags' => 0,
6858
-      ),
6859
-      'empty' => '',
6860
-      'hide_empty' => 0,
6861
-      'empty_zero' => 0,
6862
-      'hide_alter_empty' => 1,
6863
-      'value' => '<?php
6858
+        ),
6859
+        'empty' => '',
6860
+        'hide_empty' => 0,
6861
+        'empty_zero' => 0,
6862
+        'hide_alter_empty' => 1,
6863
+        'value' => '<?php
6864 6864
 $uid = get_drupal_id($data->user_host_id);
6865 6865
 if ($data->user_host_show_hosts) {
6866 6866
   echo l($data->user_host_name, "account/{$uid}");
@@ -6868,18 +6868,18 @@  discard block
 block discarded – undo
6868 6868
 else {
6869 6869
   echo bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
6870 6870
 }',
6871
-      'exclude' => 0,
6872
-      'id' => 'phpcode_5',
6873
-      'table' => 'customfield',
6874
-      'field' => 'phpcode',
6875
-      'override' => array(
6871
+        'exclude' => 0,
6872
+        'id' => 'phpcode_5',
6873
+        'table' => 'customfield',
6874
+        'field' => 'phpcode',
6875
+        'override' => array(
6876 6876
         'button' => 'Use default',
6877
-      ),
6878
-      'relationship' => 'none',
6877
+        ),
6878
+        'relationship' => 'none',
6879 6879
     ),
6880 6880
     'expavg_credit' => array(
6881
-      'label' => 'Recent average credit',
6882
-      'alter' => array(
6881
+        'label' => 'Recent average credit',
6882
+        'alter' => array(
6883 6883
         'alter_text' => 0,
6884 6884
         'text' => '',
6885 6885
         'make_link' => 0,
@@ -6898,32 +6898,32 @@  discard block
 block discarded – undo
6898 6898
         'ellipsis' => 1,
6899 6899
         'html' => 0,
6900 6900
         'strip_tags' => 0,
6901
-      ),
6902
-      'empty' => '',
6903
-      'hide_empty' => 0,
6904
-      'empty_zero' => 0,
6905
-      'hide_alter_empty' => 1,
6906
-      'set_precision' => 1,
6907
-      'precision' => '2',
6908
-      'decimal' => '.',
6909
-      'separator' => ',',
6910
-      'format_plural' => 0,
6911
-      'format_plural_singular' => '1',
6912
-      'format_plural_plural' => '@count',
6913
-      'prefix' => '',
6914
-      'suffix' => '',
6915
-      'exclude' => 0,
6916
-      'id' => 'expavg_credit',
6917
-      'table' => 'host',
6918
-      'field' => 'expavg_credit',
6919
-      'relationship' => 'none',
6920
-      'override' => array(
6901
+        ),
6902
+        'empty' => '',
6903
+        'hide_empty' => 0,
6904
+        'empty_zero' => 0,
6905
+        'hide_alter_empty' => 1,
6906
+        'set_precision' => 1,
6907
+        'precision' => '2',
6908
+        'decimal' => '.',
6909
+        'separator' => ',',
6910
+        'format_plural' => 0,
6911
+        'format_plural_singular' => '1',
6912
+        'format_plural_plural' => '@count',
6913
+        'prefix' => '',
6914
+        'suffix' => '',
6915
+        'exclude' => 0,
6916
+        'id' => 'expavg_credit',
6917
+        'table' => 'host',
6918
+        'field' => 'expavg_credit',
6919
+        'relationship' => 'none',
6920
+        'override' => array(
6921 6921
         'button' => 'Use default',
6922
-      ),
6922
+        ),
6923 6923
     ),
6924 6924
     'total_credit' => array(
6925
-      'label' => 'Total credit',
6926
-      'alter' => array(
6925
+        'label' => 'Total credit',
6926
+        'alter' => array(
6927 6927
         'alter_text' => 0,
6928 6928
         'text' => '',
6929 6929
         'make_link' => 0,
@@ -6942,32 +6942,32 @@  discard block
 block discarded – undo
6942 6942
         'ellipsis' => 1,
6943 6943
         'html' => 0,
6944 6944
         'strip_tags' => 0,
6945
-      ),
6946
-      'empty' => '',
6947
-      'hide_empty' => 0,
6948
-      'empty_zero' => 0,
6949
-      'hide_alter_empty' => 1,
6950
-      'set_precision' => 1,
6951
-      'precision' => '0',
6952
-      'decimal' => '.',
6953
-      'separator' => ',',
6954
-      'format_plural' => 0,
6955
-      'format_plural_singular' => '1',
6956
-      'format_plural_plural' => '@count',
6957
-      'prefix' => '',
6958
-      'suffix' => '',
6959
-      'exclude' => 0,
6960
-      'id' => 'total_credit',
6961
-      'table' => 'host',
6962
-      'field' => 'total_credit',
6963
-      'relationship' => 'none',
6964
-      'override' => array(
6945
+        ),
6946
+        'empty' => '',
6947
+        'hide_empty' => 0,
6948
+        'empty_zero' => 0,
6949
+        'hide_alter_empty' => 1,
6950
+        'set_precision' => 1,
6951
+        'precision' => '0',
6952
+        'decimal' => '.',
6953
+        'separator' => ',',
6954
+        'format_plural' => 0,
6955
+        'format_plural_singular' => '1',
6956
+        'format_plural_plural' => '@count',
6957
+        'prefix' => '',
6958
+        'suffix' => '',
6959
+        'exclude' => 0,
6960
+        'id' => 'total_credit',
6961
+        'table' => 'host',
6962
+        'field' => 'total_credit',
6963
+        'relationship' => 'none',
6964
+        'override' => array(
6965 6965
         'button' => 'Use default',
6966
-      ),
6966
+        ),
6967 6967
     ),
6968 6968
     'serialnum' => array(
6969
-      'label' => 'Serial Number',
6970
-      'alter' => array(
6969
+        'label' => 'Serial Number',
6970
+        'alter' => array(
6971 6971
         'alter_text' => 0,
6972 6972
         'text' => '',
6973 6973
         'make_link' => 0,
@@ -6984,19 +6984,19 @@  discard block
 block discarded – undo
6984 6984
         'ellipsis' => 1,
6985 6985
         'html' => 0,
6986 6986
         'strip_tags' => 0,
6987
-      ),
6988
-      'empty' => '',
6989
-      'hide_empty' => 0,
6990
-      'empty_zero' => 0,
6991
-      'exclude' => 1,
6992
-      'id' => 'serialnum',
6993
-      'table' => 'host',
6994
-      'field' => 'serialnum',
6995
-      'relationship' => 'none',
6987
+        ),
6988
+        'empty' => '',
6989
+        'hide_empty' => 0,
6990
+        'empty_zero' => 0,
6991
+        'exclude' => 1,
6992
+        'id' => 'serialnum',
6993
+        'table' => 'host',
6994
+        'field' => 'serialnum',
6995
+        'relationship' => 'none',
6996 6996
     ),
6997 6997
     'phpcode' => array(
6998
-      'label' => 'BOINC version',
6999
-      'alter' => array(
6998
+        'label' => 'BOINC version',
6999
+        'alter' => array(
7000 7000
         'alter_text' => 0,
7001 7001
         'text' => '',
7002 7002
         'make_link' => 0,
@@ -7015,27 +7015,27 @@  discard block
 block discarded – undo
7015 7015
         'ellipsis' => 1,
7016 7016
         'html' => 0,
7017 7017
         'strip_tags' => 0,
7018
-      ),
7019
-      'empty' => '',
7020
-      'hide_empty' => 0,
7021
-      'empty_zero' => 0,
7022
-      'hide_alter_empty' => 1,
7023
-      'value' => '<?php
7018
+        ),
7019
+        'empty' => '',
7020
+        'hide_empty' => 0,
7021
+        'empty_zero' => 0,
7022
+        'hide_alter_empty' => 1,
7023
+        'value' => '<?php
7024 7024
   require_boinc(\'host\');
7025 7025
   echo boinc_version($data->host_serialnum);
7026 7026
 ?>',
7027
-      'exclude' => 1,
7028
-      'id' => 'phpcode',
7029
-      'table' => 'customfield',
7030
-      'field' => 'phpcode',
7031
-      'relationship' => 'none',
7032
-      'override' => array(
7027
+        'exclude' => 1,
7028
+        'id' => 'phpcode',
7029
+        'table' => 'customfield',
7030
+        'field' => 'phpcode',
7031
+        'relationship' => 'none',
7032
+        'override' => array(
7033 7033
         'button' => 'Use default',
7034
-      ),
7034
+        ),
7035 7035
     ),
7036 7036
     'p_vendor' => array(
7037
-      'label' => 'CPU',
7038
-      'alter' => array(
7037
+        'label' => 'CPU',
7038
+        'alter' => array(
7039 7039
         'alter_text' => 0,
7040 7040
         'text' => '',
7041 7041
         'make_link' => 0,
@@ -7054,23 +7054,23 @@  discard block
 block discarded – undo
7054 7054
         'ellipsis' => 1,
7055 7055
         'html' => 0,
7056 7056
         'strip_tags' => 0,
7057
-      ),
7058
-      'empty' => '',
7059
-      'hide_empty' => 0,
7060
-      'empty_zero' => 0,
7061
-      'hide_alter_empty' => 1,
7062
-      'exclude' => 1,
7063
-      'id' => 'p_vendor',
7064
-      'table' => 'host',
7065
-      'field' => 'p_vendor',
7066
-      'relationship' => 'none',
7067
-      'override' => array(
7057
+        ),
7058
+        'empty' => '',
7059
+        'hide_empty' => 0,
7060
+        'empty_zero' => 0,
7061
+        'hide_alter_empty' => 1,
7062
+        'exclude' => 1,
7063
+        'id' => 'p_vendor',
7064
+        'table' => 'host',
7065
+        'field' => 'p_vendor',
7066
+        'relationship' => 'none',
7067
+        'override' => array(
7068 7068
         'button' => 'Use default',
7069
-      ),
7069
+        ),
7070 7070
     ),
7071 7071
     'p_model' => array(
7072
-      'label' => 'CPU model',
7073
-      'alter' => array(
7072
+        'label' => 'CPU model',
7073
+        'alter' => array(
7074 7074
         'alter_text' => 0,
7075 7075
         'text' => '',
7076 7076
         'make_link' => 0,
@@ -7089,23 +7089,23 @@  discard block
 block discarded – undo
7089 7089
         'ellipsis' => 1,
7090 7090
         'html' => 0,
7091 7091
         'strip_tags' => 0,
7092
-      ),
7093
-      'empty' => '',
7094
-      'hide_empty' => 0,
7095
-      'empty_zero' => 0,
7096
-      'hide_alter_empty' => 1,
7097
-      'exclude' => 1,
7098
-      'id' => 'p_model',
7099
-      'table' => 'host',
7100
-      'field' => 'p_model',
7101
-      'relationship' => 'none',
7102
-      'override' => array(
7092
+        ),
7093
+        'empty' => '',
7094
+        'hide_empty' => 0,
7095
+        'empty_zero' => 0,
7096
+        'hide_alter_empty' => 1,
7097
+        'exclude' => 1,
7098
+        'id' => 'p_model',
7099
+        'table' => 'host',
7100
+        'field' => 'p_model',
7101
+        'relationship' => 'none',
7102
+        'override' => array(
7103 7103
         'button' => 'Use default',
7104
-      ),
7104
+        ),
7105 7105
     ),
7106 7106
     'p_ncpus' => array(
7107
-      'label' => 'Number of CPUs',
7108
-      'alter' => array(
7107
+        'label' => 'Number of CPUs',
7108
+        'alter' => array(
7109 7109
         'alter_text' => 1,
7110 7110
         'text' => '([p_ncpus] processors)',
7111 7111
         'make_link' => 0,
@@ -7124,23 +7124,23 @@  discard block
 block discarded – undo
7124 7124
         'ellipsis' => 1,
7125 7125
         'html' => 0,
7126 7126
         'strip_tags' => 0,
7127
-      ),
7128
-      'empty' => '',
7129
-      'hide_empty' => 0,
7130
-      'empty_zero' => 0,
7131
-      'hide_alter_empty' => 1,
7132
-      'exclude' => 1,
7133
-      'id' => 'p_ncpus',
7134
-      'table' => 'host',
7135
-      'field' => 'p_ncpus',
7136
-      'relationship' => 'none',
7137
-      'override' => array(
7127
+        ),
7128
+        'empty' => '',
7129
+        'hide_empty' => 0,
7130
+        'empty_zero' => 0,
7131
+        'hide_alter_empty' => 1,
7132
+        'exclude' => 1,
7133
+        'id' => 'p_ncpus',
7134
+        'table' => 'host',
7135
+        'field' => 'p_ncpus',
7136
+        'relationship' => 'none',
7137
+        'override' => array(
7138 7138
         'button' => 'Use default',
7139
-      ),
7139
+        ),
7140 7140
     ),
7141 7141
     'phpcode_1' => array(
7142
-      'label' => 'GPU',
7143
-      'alter' => array(
7142
+        'label' => 'GPU',
7143
+        'alter' => array(
7144 7144
         'alter_text' => 0,
7145 7145
         'text' => '',
7146 7146
         'make_link' => 0,
@@ -7159,27 +7159,27 @@  discard block
 block discarded – undo
7159 7159
         'ellipsis' => 1,
7160 7160
         'html' => 0,
7161 7161
         'strip_tags' => 0,
7162
-      ),
7163
-      'empty' => '',
7164
-      'hide_empty' => 0,
7165
-      'empty_zero' => 0,
7166
-      'hide_alter_empty' => 1,
7167
-      'value' => '<?php
7162
+        ),
7163
+        'empty' => '',
7164
+        'hide_empty' => 0,
7165
+        'empty_zero' => 0,
7166
+        'hide_alter_empty' => 1,
7167
+        'value' => '<?php
7168 7168
   require_boinc(\'host\');
7169 7169
   echo gpu_desc($data->host_serialnum);
7170 7170
 ?>',
7171
-      'exclude' => 1,
7172
-      'id' => 'phpcode_1',
7173
-      'table' => 'customfield',
7174
-      'field' => 'phpcode',
7175
-      'relationship' => 'none',
7176
-      'override' => array(
7171
+        'exclude' => 1,
7172
+        'id' => 'phpcode_1',
7173
+        'table' => 'customfield',
7174
+        'field' => 'phpcode',
7175
+        'relationship' => 'none',
7176
+        'override' => array(
7177 7177
         'button' => 'Use default',
7178
-      ),
7178
+        ),
7179 7179
     ),
7180 7180
     'os_name' => array(
7181
-      'label' => 'Operating system',
7182
-      'alter' => array(
7181
+        'label' => 'Operating system',
7182
+        'alter' => array(
7183 7183
         'alter_text' => 0,
7184 7184
         'text' => '',
7185 7185
         'make_link' => 0,
@@ -7198,23 +7198,23 @@  discard block
 block discarded – undo
7198 7198
         'ellipsis' => 1,
7199 7199
         'html' => 0,
7200 7200
         'strip_tags' => 0,
7201
-      ),
7202
-      'empty' => '',
7203
-      'hide_empty' => 0,
7204
-      'empty_zero' => 0,
7205
-      'hide_alter_empty' => 1,
7206
-      'exclude' => 1,
7207
-      'id' => 'os_name',
7208
-      'table' => 'host',
7209
-      'field' => 'os_name',
7210
-      'relationship' => 'none',
7211
-      'override' => array(
7201
+        ),
7202
+        'empty' => '',
7203
+        'hide_empty' => 0,
7204
+        'empty_zero' => 0,
7205
+        'hide_alter_empty' => 1,
7206
+        'exclude' => 1,
7207
+        'id' => 'os_name',
7208
+        'table' => 'host',
7209
+        'field' => 'os_name',
7210
+        'relationship' => 'none',
7211
+        'override' => array(
7212 7212
         'button' => 'Use default',
7213
-      ),
7213
+        ),
7214 7214
     ),
7215 7215
     'os_version' => array(
7216
-      'label' => 'Operating system version',
7217
-      'alter' => array(
7216
+        'label' => 'Operating system version',
7217
+        'alter' => array(
7218 7218
         'alter_text' => 0,
7219 7219
         'text' => '',
7220 7220
         'make_link' => 0,
@@ -7233,178 +7233,178 @@  discard block
 block discarded – undo
7233 7233
         'ellipsis' => 1,
7234 7234
         'html' => 0,
7235 7235
         'strip_tags' => 0,
7236
-      ),
7237
-      'empty' => '',
7238
-      'hide_empty' => 0,
7239
-      'empty_zero' => 0,
7240
-      'hide_alter_empty' => 1,
7241
-      'exclude' => 1,
7242
-      'id' => 'os_version',
7243
-      'table' => 'host',
7244
-      'field' => 'os_version',
7245
-      'relationship' => 'none',
7246
-      'override' => array(
7236
+        ),
7237
+        'empty' => '',
7238
+        'hide_empty' => 0,
7239
+        'empty_zero' => 0,
7240
+        'hide_alter_empty' => 1,
7241
+        'exclude' => 1,
7242
+        'id' => 'os_version',
7243
+        'table' => 'host',
7244
+        'field' => 'os_version',
7245
+        'relationship' => 'none',
7246
+        'override' => array(
7247 7247
         'button' => 'Use default',
7248
-      ),
7248
+        ),
7249 7249
     ),
7250
-  ));
7251
-  $handler->override_option('arguments', array());
7252
-  $handler->override_option('filters', array(
7250
+    ));
7251
+    $handler->override_option('arguments', array());
7252
+    $handler->override_option('filters', array(
7253 7253
     'show_hosts' => array(
7254
-      'operator' => '=',
7255
-      'value' => array(
7254
+        'operator' => '=',
7255
+        'value' => array(
7256 7256
         'value' => '1',
7257 7257
         'min' => '',
7258 7258
         'max' => '',
7259
-      ),
7260
-      'group' => '0',
7261
-      'exposed' => FALSE,
7262
-      'expose' => array(
7259
+        ),
7260
+        'group' => '0',
7261
+        'exposed' => FALSE,
7262
+        'expose' => array(
7263 7263
         'operator' => FALSE,
7264 7264
         'label' => '',
7265
-      ),
7266
-      'id' => 'show_hosts',
7267
-      'table' => 'user',
7268
-      'field' => 'show_hosts',
7269
-      'relationship' => 'userid',
7265
+        ),
7266
+        'id' => 'show_hosts',
7267
+        'table' => 'user',
7268
+        'field' => 'show_hosts',
7269
+        'relationship' => 'userid',
7270 7270
     ),
7271 7271
     'total_credit' => array(
7272
-      'operator' => '>=',
7273
-      'value' => array(
7272
+        'operator' => '>=',
7273
+        'value' => array(
7274 7274
         'value' => '1',
7275 7275
         'min' => '',
7276 7276
         'max' => '',
7277
-      ),
7278
-      'group' => '0',
7279
-      'exposed' => FALSE,
7280
-      'expose' => array(
7277
+        ),
7278
+        'group' => '0',
7279
+        'exposed' => FALSE,
7280
+        'expose' => array(
7281 7281
         'operator' => FALSE,
7282 7282
         'label' => '',
7283
-      ),
7284
-      'id' => 'total_credit',
7285
-      'table' => 'host',
7286
-      'field' => 'total_credit',
7287
-      'override' => array(
7283
+        ),
7284
+        'id' => 'total_credit',
7285
+        'table' => 'host',
7286
+        'field' => 'total_credit',
7287
+        'override' => array(
7288 7288
         'button' => 'Use default',
7289
-      ),
7290
-      'relationship' => 'none',
7291
-    ),
7292
-  ));
7293
-  $handler->override_option('title', 'Top computers');
7294
-  $handler->override_option('items_per_page', 10);
7295
-  $handler->override_option('use_pager', '0');
7296
-  $handler->override_option('use_more', 1);
7297
-  $handler->override_option('use_more_always', 0);
7298
-  $handler->override_option('use_more_text', 'view more');
7299
-  $handler->override_option('link_display', 'page_3');
7300
-  $handler->override_option('style_options', array(
7289
+        ),
7290
+        'relationship' => 'none',
7291
+    ),
7292
+    ));
7293
+    $handler->override_option('title', 'Top computers');
7294
+    $handler->override_option('items_per_page', 10);
7295
+    $handler->override_option('use_pager', '0');
7296
+    $handler->override_option('use_more', 1);
7297
+    $handler->override_option('use_more_always', 0);
7298
+    $handler->override_option('use_more_text', 'view more');
7299
+    $handler->override_option('link_display', 'page_3');
7300
+    $handler->override_option('style_options', array(
7301 7301
     'grouping' => '',
7302 7302
     'override' => 1,
7303 7303
     'sticky' => 0,
7304 7304
     'order' => 'desc',
7305 7305
     'summary' => '',
7306 7306
     'columns' => array(
7307
-      'id_1' => 'id_1',
7308
-      'name' => 'name',
7309
-      'show_hosts' => 'show_hosts',
7310
-      'rownumber' => 'rownumber',
7311
-      'id' => 'id',
7312
-      'phpcode_3' => 'id',
7313
-      'host_cpid' => 'host_cpid',
7314
-      'phpcode_4' => 'id',
7315
-      'phpcode_5' => 'phpcode_5',
7316
-      'expavg_credit' => 'expavg_credit',
7317
-      'total_credit' => 'total_credit',
7318
-      'serialnum' => 'serialnum',
7319
-      'phpcode' => 'phpcode',
7320
-      'p_vendor' => 'p_vendor',
7321
-      'p_model' => 'p_vendor',
7322
-      'p_ncpus' => 'p_vendor',
7323
-      'phpcode_1' => 'phpcode_1',
7324
-      'os_name' => 'os_name',
7325
-      'os_version' => 'os_name',
7307
+        'id_1' => 'id_1',
7308
+        'name' => 'name',
7309
+        'show_hosts' => 'show_hosts',
7310
+        'rownumber' => 'rownumber',
7311
+        'id' => 'id',
7312
+        'phpcode_3' => 'id',
7313
+        'host_cpid' => 'host_cpid',
7314
+        'phpcode_4' => 'id',
7315
+        'phpcode_5' => 'phpcode_5',
7316
+        'expavg_credit' => 'expavg_credit',
7317
+        'total_credit' => 'total_credit',
7318
+        'serialnum' => 'serialnum',
7319
+        'phpcode' => 'phpcode',
7320
+        'p_vendor' => 'p_vendor',
7321
+        'p_model' => 'p_vendor',
7322
+        'p_ncpus' => 'p_vendor',
7323
+        'phpcode_1' => 'phpcode_1',
7324
+        'os_name' => 'os_name',
7325
+        'os_version' => 'os_name',
7326 7326
     ),
7327 7327
     'info' => array(
7328
-      'id_1' => array(
7328
+        'id_1' => array(
7329 7329
         'sortable' => 0,
7330 7330
         'separator' => '',
7331
-      ),
7332
-      'name' => array(
7331
+        ),
7332
+        'name' => array(
7333 7333
         'sortable' => 0,
7334 7334
         'separator' => '',
7335
-      ),
7336
-      'show_hosts' => array(
7335
+        ),
7336
+        'show_hosts' => array(
7337 7337
         'sortable' => 0,
7338 7338
         'separator' => '',
7339
-      ),
7340
-      'rownumber' => array(
7339
+        ),
7340
+        'rownumber' => array(
7341 7341
         'separator' => '',
7342
-      ),
7343
-      'id' => array(
7342
+        ),
7343
+        'id' => array(
7344 7344
         'sortable' => 0,
7345 7345
         'separator' => ' | ',
7346
-      ),
7347
-      'phpcode_3' => array(
7346
+        ),
7347
+        'phpcode_3' => array(
7348 7348
         'separator' => '',
7349
-      ),
7350
-      'host_cpid' => array(
7349
+        ),
7350
+        'host_cpid' => array(
7351 7351
         'sortable' => 0,
7352 7352
         'separator' => '',
7353
-      ),
7354
-      'phpcode_4' => array(
7353
+        ),
7354
+        'phpcode_4' => array(
7355 7355
         'separator' => '',
7356
-      ),
7357
-      'phpcode_5' => array(
7356
+        ),
7357
+        'phpcode_5' => array(
7358 7358
         'separator' => '',
7359
-      ),
7360
-      'expavg_credit' => array(
7359
+        ),
7360
+        'expavg_credit' => array(
7361 7361
         'sortable' => 1,
7362 7362
         'separator' => '',
7363
-      ),
7364
-      'total_credit' => array(
7363
+        ),
7364
+        'total_credit' => array(
7365 7365
         'sortable' => 1,
7366 7366
         'separator' => '',
7367
-      ),
7368
-      'serialnum' => array(
7367
+        ),
7368
+        'serialnum' => array(
7369 7369
         'sortable' => 0,
7370 7370
         'separator' => '',
7371
-      ),
7372
-      'phpcode' => array(
7371
+        ),
7372
+        'phpcode' => array(
7373 7373
         'separator' => '',
7374
-      ),
7375
-      'p_vendor' => array(
7374
+        ),
7375
+        'p_vendor' => array(
7376 7376
         'sortable' => 1,
7377 7377
         'separator' => '<br/>',
7378
-      ),
7379
-      'p_model' => array(
7378
+        ),
7379
+        'p_model' => array(
7380 7380
         'sortable' => 0,
7381 7381
         'separator' => '',
7382
-      ),
7383
-      'p_ncpus' => array(
7382
+        ),
7383
+        'p_ncpus' => array(
7384 7384
         'sortable' => 0,
7385 7385
         'separator' => '',
7386
-      ),
7387
-      'phpcode_1' => array(
7386
+        ),
7387
+        'phpcode_1' => array(
7388 7388
         'separator' => '',
7389
-      ),
7390
-      'os_name' => array(
7389
+        ),
7390
+        'os_name' => array(
7391 7391
         'sortable' => 1,
7392 7392
         'separator' => '<br/>',
7393
-      ),
7394
-      'os_version' => array(
7393
+        ),
7394
+        'os_version' => array(
7395 7395
         'sortable' => 0,
7396 7396
         'separator' => '',
7397
-      ),
7397
+        ),
7398 7398
     ),
7399 7399
     'default' => 'expavg_credit',
7400
-  ));
7401
-  $handler->override_option('pane_title', '');
7402
-  $handler->override_option('pane_description', '');
7403
-  $handler->override_option('pane_category', array(
7400
+    ));
7401
+    $handler->override_option('pane_title', '');
7402
+    $handler->override_option('pane_description', '');
7403
+    $handler->override_option('pane_category', array(
7404 7404
     'name' => 'View panes',
7405 7405
     'weight' => 0,
7406
-  ));
7407
-  $handler->override_option('allow', array(
7406
+    ));
7407
+    $handler->override_option('allow', array(
7408 7408
     'use_pager' => FALSE,
7409 7409
     'items_per_page' => FALSE,
7410 7410
     'offset' => FALSE,
@@ -7414,27 +7414,27 @@  discard block
 block discarded – undo
7414 7414
     'title_override' => FALSE,
7415 7415
     'exposed_form' => FALSE,
7416 7416
     'fields_override' => FALSE,
7417
-  ));
7418
-  $handler->override_option('argument_input', array());
7419
-  $handler->override_option('link_to_view', 0);
7420
-  $handler->override_option('inherit_panels_path', 0);
7417
+    ));
7418
+    $handler->override_option('argument_input', array());
7419
+    $handler->override_option('link_to_view', 0);
7420
+    $handler->override_option('inherit_panels_path', 0);
7421 7421
 
7422
-  $views[$view->name] = $view;
7422
+    $views[$view->name] = $view;
7423 7423
 
7424
-  // Exported view: boinc_host_tasks_all
7425
-  $view = new view;
7426
-  $view->name = 'boinc_host_tasks_all';
7427
-  $view->description = 'A list of all tasks for the given host';
7428
-  $view->tag = '';
7429
-  $view->base_table = 'result';
7430
-  $view->core = 0;
7431
-  $view->api_version = '2';
7432
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
7433
-  $handler = $view->new_display('default', 'Defaults', 'default');
7434
-  $handler->override_option('fields', array(
7424
+    // Exported view: boinc_host_tasks_all
7425
+    $view = new view;
7426
+    $view->name = 'boinc_host_tasks_all';
7427
+    $view->description = 'A list of all tasks for the given host';
7428
+    $view->tag = '';
7429
+    $view->base_table = 'result';
7430
+    $view->core = 0;
7431
+    $view->api_version = '2';
7432
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
7433
+    $handler = $view->new_display('default', 'Defaults', 'default');
7434
+    $handler->override_option('fields', array(
7435 7435
     'name' => array(
7436
-      'label' => 'Name',
7437
-      'alter' => array(
7436
+        'label' => 'Name',
7437
+        'alter' => array(
7438 7438
         'alter_text' => 0,
7439 7439
         'text' => '',
7440 7440
         'make_link' => 0,
@@ -7453,20 +7453,20 @@  discard block
 block discarded – undo
7453 7453
         'ellipsis' => 1,
7454 7454
         'html' => 0,
7455 7455
         'strip_tags' => 0,
7456
-      ),
7457
-      'empty' => '',
7458
-      'hide_empty' => 0,
7459
-      'empty_zero' => 0,
7460
-      'hide_alter_empty' => 1,
7461
-      'exclude' => 1,
7462
-      'id' => 'name',
7463
-      'table' => 'result',
7464
-      'field' => 'name',
7465
-      'relationship' => 'none',
7456
+        ),
7457
+        'empty' => '',
7458
+        'hide_empty' => 0,
7459
+        'empty_zero' => 0,
7460
+        'hide_alter_empty' => 1,
7461
+        'exclude' => 1,
7462
+        'id' => 'name',
7463
+        'table' => 'result',
7464
+        'field' => 'name',
7465
+        'relationship' => 'none',
7466 7466
     ),
7467 7467
     'id' => array(
7468
-      'label' => 'Task ID',
7469
-      'alter' => array(
7468
+        'label' => 'Task ID',
7469
+        'alter' => array(
7470 7470
         'alter_text' => 0,
7471 7471
         'text' => '',
7472 7472
         'make_link' => 0,
@@ -7485,29 +7485,29 @@  discard block
 block discarded – undo
7485 7485
         'ellipsis' => 1,
7486 7486
         'html' => 0,
7487 7487
         'strip_tags' => 0,
7488
-      ),
7489
-      'empty' => '',
7490
-      'hide_empty' => 0,
7491
-      'empty_zero' => 0,
7492
-      'hide_alter_empty' => 1,
7493
-      'set_precision' => FALSE,
7494
-      'precision' => 0,
7495
-      'decimal' => '.',
7496
-      'separator' => '',
7497
-      'format_plural' => 0,
7498
-      'format_plural_singular' => '1',
7499
-      'format_plural_plural' => '@count',
7500
-      'prefix' => '',
7501
-      'suffix' => '',
7502
-      'exclude' => 0,
7503
-      'id' => 'id',
7504
-      'table' => 'result',
7505
-      'field' => 'id',
7506
-      'relationship' => 'none',
7488
+        ),
7489
+        'empty' => '',
7490
+        'hide_empty' => 0,
7491
+        'empty_zero' => 0,
7492
+        'hide_alter_empty' => 1,
7493
+        'set_precision' => FALSE,
7494
+        'precision' => 0,
7495
+        'decimal' => '.',
7496
+        'separator' => '',
7497
+        'format_plural' => 0,
7498
+        'format_plural_singular' => '1',
7499
+        'format_plural_plural' => '@count',
7500
+        'prefix' => '',
7501
+        'suffix' => '',
7502
+        'exclude' => 0,
7503
+        'id' => 'id',
7504
+        'table' => 'result',
7505
+        'field' => 'id',
7506
+        'relationship' => 'none',
7507 7507
     ),
7508 7508
     'workunitid' => array(
7509
-      'label' => 'Workunit ID',
7510
-      'alter' => array(
7509
+        'label' => 'Workunit ID',
7510
+        'alter' => array(
7511 7511
         'alter_text' => 0,
7512 7512
         'text' => '',
7513 7513
         'make_link' => 1,
@@ -7524,25 +7524,25 @@  discard block
 block discarded – undo
7524 7524
         'ellipsis' => 1,
7525 7525
         'html' => 0,
7526 7526
         'strip_tags' => 0,
7527
-      ),
7528
-      'empty' => '',
7529
-      'hide_empty' => 0,
7530
-      'empty_zero' => 0,
7531
-      'set_precision' => FALSE,
7532
-      'precision' => 0,
7533
-      'decimal' => '.',
7534
-      'separator' => '',
7535
-      'prefix' => '',
7536
-      'suffix' => '',
7537
-      'exclude' => 0,
7538
-      'id' => 'workunitid',
7539
-      'table' => 'result',
7540
-      'field' => 'workunitid',
7541
-      'relationship' => 'none',
7527
+        ),
7528
+        'empty' => '',
7529
+        'hide_empty' => 0,
7530
+        'empty_zero' => 0,
7531
+        'set_precision' => FALSE,
7532
+        'precision' => 0,
7533
+        'decimal' => '.',
7534
+        'separator' => '',
7535
+        'prefix' => '',
7536
+        'suffix' => '',
7537
+        'exclude' => 0,
7538
+        'id' => 'workunitid',
7539
+        'table' => 'result',
7540
+        'field' => 'workunitid',
7541
+        'relationship' => 'none',
7542 7542
     ),
7543 7543
     'sent_time' => array(
7544
-      'label' => 'Sent',
7545
-      'alter' => array(
7544
+        'label' => 'Sent',
7545
+        'alter' => array(
7546 7546
         'alter_text' => 0,
7547 7547
         'text' => '',
7548 7548
         'make_link' => 0,
@@ -7559,21 +7559,21 @@  discard block
 block discarded – undo
7559 7559
         'ellipsis' => 1,
7560 7560
         'html' => 0,
7561 7561
         'strip_tags' => 0,
7562
-      ),
7563
-      'empty' => '',
7564
-      'hide_empty' => 0,
7565
-      'empty_zero' => 0,
7566
-      'date_format' => 'custom',
7567
-      'custom_date_format' => 'j M Y G:i:s e',
7568
-      'exclude' => 1,
7569
-      'id' => 'sent_time',
7570
-      'table' => 'result',
7571
-      'field' => 'sent_time',
7572
-      'relationship' => 'none',
7562
+        ),
7563
+        'empty' => '',
7564
+        'hide_empty' => 0,
7565
+        'empty_zero' => 0,
7566
+        'date_format' => 'custom',
7567
+        'custom_date_format' => 'j M Y G:i:s e',
7568
+        'exclude' => 1,
7569
+        'id' => 'sent_time',
7570
+        'table' => 'result',
7571
+        'field' => 'sent_time',
7572
+        'relationship' => 'none',
7573 7573
     ),
7574 7574
     'received_time' => array(
7575
-      'label' => 'Received time',
7576
-      'alter' => array(
7575
+        'label' => 'Received time',
7576
+        'alter' => array(
7577 7577
         'alter_text' => 0,
7578 7578
         'text' => '',
7579 7579
         'make_link' => 0,
@@ -7590,21 +7590,21 @@  discard block
 block discarded – undo
7590 7590
         'ellipsis' => 1,
7591 7591
         'html' => 0,
7592 7592
         'strip_tags' => 0,
7593
-      ),
7594
-      'empty' => '',
7595
-      'hide_empty' => 0,
7596
-      'empty_zero' => 0,
7597
-      'date_format' => 'small',
7598
-      'custom_date_format' => '',
7599
-      'exclude' => 1,
7600
-      'id' => 'received_time',
7601
-      'table' => 'result',
7602
-      'field' => 'received_time',
7603
-      'relationship' => 'none',
7593
+        ),
7594
+        'empty' => '',
7595
+        'hide_empty' => 0,
7596
+        'empty_zero' => 0,
7597
+        'date_format' => 'small',
7598
+        'custom_date_format' => '',
7599
+        'exclude' => 1,
7600
+        'id' => 'received_time',
7601
+        'table' => 'result',
7602
+        'field' => 'received_time',
7603
+        'relationship' => 'none',
7604 7604
     ),
7605 7605
     'report_deadline' => array(
7606
-      'label' => 'Report deadline',
7607
-      'alter' => array(
7606
+        'label' => 'Report deadline',
7607
+        'alter' => array(
7608 7608
         'alter_text' => 0,
7609 7609
         'text' => '',
7610 7610
         'make_link' => 0,
@@ -7621,21 +7621,21 @@  discard block
 block discarded – undo
7621 7621
         'ellipsis' => 1,
7622 7622
         'html' => 0,
7623 7623
         'strip_tags' => 0,
7624
-      ),
7625
-      'empty' => '',
7626
-      'hide_empty' => 0,
7627
-      'empty_zero' => 0,
7628
-      'date_format' => 'small',
7629
-      'custom_date_format' => '',
7630
-      'exclude' => 1,
7631
-      'id' => 'report_deadline',
7632
-      'table' => 'result',
7633
-      'field' => 'report_deadline',
7634
-      'relationship' => 'none',
7624
+        ),
7625
+        'empty' => '',
7626
+        'hide_empty' => 0,
7627
+        'empty_zero' => 0,
7628
+        'date_format' => 'small',
7629
+        'custom_date_format' => '',
7630
+        'exclude' => 1,
7631
+        'id' => 'report_deadline',
7632
+        'table' => 'result',
7633
+        'field' => 'report_deadline',
7634
+        'relationship' => 'none',
7635 7635
     ),
7636 7636
     'phpcode_3' => array(
7637
-      'label' => 'Sent',
7638
-      'alter' => array(
7637
+        'label' => 'Sent',
7638
+        'alter' => array(
7639 7639
         'alter_text' => 0,
7640 7640
         'text' => '',
7641 7641
         'make_link' => 0,
@@ -7654,24 +7654,24 @@  discard block
 block discarded – undo
7654 7654
         'ellipsis' => 1,
7655 7655
         'html' => 0,
7656 7656
         'strip_tags' => 0,
7657
-      ),
7658
-      'empty' => '',
7659
-      'hide_empty' => 0,
7660
-      'empty_zero' => 0,
7661
-      'hide_alter_empty' => 1,
7662
-      'value' => '<?php
7657
+        ),
7658
+        'empty' => '',
7659
+        'hide_empty' => 0,
7660
+        'empty_zero' => 0,
7661
+        'hide_alter_empty' => 1,
7662
+        'value' => '<?php
7663 7663
   require_boinc(\'util\');
7664 7664
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
7665 7665
 ?>',
7666
-      'exclude' => 0,
7667
-      'id' => 'phpcode_3',
7668
-      'table' => 'customfield',
7669
-      'field' => 'phpcode',
7670
-      'relationship' => 'none',
7666
+        'exclude' => 0,
7667
+        'id' => 'phpcode_3',
7668
+        'table' => 'customfield',
7669
+        'field' => 'phpcode',
7670
+        'relationship' => 'none',
7671 7671
     ),
7672 7672
     'phpcode' => array(
7673
-      'label' => 'Time reported or deadline',
7674
-      'alter' => array(
7673
+        'label' => 'Time reported or deadline',
7674
+        'alter' => array(
7675 7675
         'alter_text' => 0,
7676 7676
         'text' => '',
7677 7677
         'make_link' => 0,
@@ -7690,24 +7690,24 @@  discard block
 block discarded – undo
7690 7690
         'ellipsis' => 1,
7691 7691
         'html' => 0,
7692 7692
         'strip_tags' => 0,
7693
-      ),
7694
-      'empty' => '',
7695
-      'hide_empty' => 0,
7696
-      'empty_zero' => 0,
7697
-      'hide_alter_empty' => 1,
7698
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
7699
-      'exclude' => 0,
7700
-      'id' => 'phpcode',
7701
-      'table' => 'customfield',
7702
-      'field' => 'phpcode',
7703
-      'override' => array(
7693
+        ),
7694
+        'empty' => '',
7695
+        'hide_empty' => 0,
7696
+        'empty_zero' => 0,
7697
+        'hide_alter_empty' => 1,
7698
+        'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
7699
+        'exclude' => 0,
7700
+        'id' => 'phpcode',
7701
+        'table' => 'customfield',
7702
+        'field' => 'phpcode',
7703
+        'override' => array(
7704 7704
         'button' => 'Override',
7705
-      ),
7706
-      'relationship' => 'none',
7705
+        ),
7706
+        'relationship' => 'none',
7707 7707
     ),
7708 7708
     'server_state' => array(
7709
-      'label' => 'Server state',
7710
-      'alter' => array(
7709
+        'label' => 'Server state',
7710
+        'alter' => array(
7711 7711
         'alter_text' => 0,
7712 7712
         'text' => '',
7713 7713
         'make_link' => 0,
@@ -7724,25 +7724,25 @@  discard block
 block discarded – undo
7724 7724
         'ellipsis' => 1,
7725 7725
         'html' => 0,
7726 7726
         'strip_tags' => 0,
7727
-      ),
7728
-      'empty' => '',
7729
-      'hide_empty' => 0,
7730
-      'empty_zero' => 0,
7731
-      'set_precision' => FALSE,
7732
-      'precision' => 0,
7733
-      'decimal' => '.',
7734
-      'separator' => '',
7735
-      'prefix' => '',
7736
-      'suffix' => '',
7737
-      'exclude' => 1,
7738
-      'id' => 'server_state',
7739
-      'table' => 'result',
7740
-      'field' => 'server_state',
7741
-      'relationship' => 'none',
7727
+        ),
7728
+        'empty' => '',
7729
+        'hide_empty' => 0,
7730
+        'empty_zero' => 0,
7731
+        'set_precision' => FALSE,
7732
+        'precision' => 0,
7733
+        'decimal' => '.',
7734
+        'separator' => '',
7735
+        'prefix' => '',
7736
+        'suffix' => '',
7737
+        'exclude' => 1,
7738
+        'id' => 'server_state',
7739
+        'table' => 'result',
7740
+        'field' => 'server_state',
7741
+        'relationship' => 'none',
7742 7742
     ),
7743 7743
     'outcome' => array(
7744
-      'label' => 'Outcome',
7745
-      'alter' => array(
7744
+        'label' => 'Outcome',
7745
+        'alter' => array(
7746 7746
         'alter_text' => 0,
7747 7747
         'text' => '',
7748 7748
         'make_link' => 0,
@@ -7759,25 +7759,25 @@  discard block
 block discarded – undo
7759 7759
         'ellipsis' => 1,
7760 7760
         'html' => 0,
7761 7761
         'strip_tags' => 0,
7762
-      ),
7763
-      'empty' => '',
7764
-      'hide_empty' => 0,
7765
-      'empty_zero' => 0,
7766
-      'set_precision' => FALSE,
7767
-      'precision' => 0,
7768
-      'decimal' => '.',
7769
-      'separator' => '',
7770
-      'prefix' => '',
7771
-      'suffix' => '',
7772
-      'exclude' => 1,
7773
-      'id' => 'outcome',
7774
-      'table' => 'result',
7775
-      'field' => 'outcome',
7776
-      'relationship' => 'none',
7762
+        ),
7763
+        'empty' => '',
7764
+        'hide_empty' => 0,
7765
+        'empty_zero' => 0,
7766
+        'set_precision' => FALSE,
7767
+        'precision' => 0,
7768
+        'decimal' => '.',
7769
+        'separator' => '',
7770
+        'prefix' => '',
7771
+        'suffix' => '',
7772
+        'exclude' => 1,
7773
+        'id' => 'outcome',
7774
+        'table' => 'result',
7775
+        'field' => 'outcome',
7776
+        'relationship' => 'none',
7777 7777
     ),
7778 7778
     'client_state' => array(
7779
-      'label' => 'Client state',
7780
-      'alter' => array(
7779
+        'label' => 'Client state',
7780
+        'alter' => array(
7781 7781
         'alter_text' => 0,
7782 7782
         'text' => '',
7783 7783
         'make_link' => 0,
@@ -7794,25 +7794,25 @@  discard block
 block discarded – undo
7794 7794
         'ellipsis' => 1,
7795 7795
         'html' => 0,
7796 7796
         'strip_tags' => 0,
7797
-      ),
7798
-      'empty' => '',
7799
-      'hide_empty' => 0,
7800
-      'empty_zero' => 0,
7801
-      'set_precision' => FALSE,
7802
-      'precision' => 0,
7803
-      'decimal' => '.',
7804
-      'separator' => '',
7805
-      'prefix' => '',
7806
-      'suffix' => '',
7807
-      'exclude' => 1,
7808
-      'id' => 'client_state',
7809
-      'table' => 'result',
7810
-      'field' => 'client_state',
7811
-      'relationship' => 'none',
7797
+        ),
7798
+        'empty' => '',
7799
+        'hide_empty' => 0,
7800
+        'empty_zero' => 0,
7801
+        'set_precision' => FALSE,
7802
+        'precision' => 0,
7803
+        'decimal' => '.',
7804
+        'separator' => '',
7805
+        'prefix' => '',
7806
+        'suffix' => '',
7807
+        'exclude' => 1,
7808
+        'id' => 'client_state',
7809
+        'table' => 'result',
7810
+        'field' => 'client_state',
7811
+        'relationship' => 'none',
7812 7812
     ),
7813 7813
     'validate_state' => array(
7814
-      'label' => 'Validation state',
7815
-      'alter' => array(
7814
+        'label' => 'Validation state',
7815
+        'alter' => array(
7816 7816
         'alter_text' => 0,
7817 7817
         'text' => '',
7818 7818
         'make_link' => 0,
@@ -7829,25 +7829,25 @@  discard block
 block discarded – undo
7829 7829
         'ellipsis' => 1,
7830 7830
         'html' => 0,
7831 7831
         'strip_tags' => 0,
7832
-      ),
7833
-      'empty' => '',
7834
-      'hide_empty' => 0,
7835
-      'empty_zero' => 0,
7836
-      'set_precision' => FALSE,
7837
-      'precision' => 0,
7838
-      'decimal' => '.',
7839
-      'separator' => '',
7840
-      'prefix' => '',
7841
-      'suffix' => '',
7842
-      'exclude' => 1,
7843
-      'id' => 'validate_state',
7844
-      'table' => 'result',
7845
-      'field' => 'validate_state',
7846
-      'relationship' => 'none',
7832
+        ),
7833
+        'empty' => '',
7834
+        'hide_empty' => 0,
7835
+        'empty_zero' => 0,
7836
+        'set_precision' => FALSE,
7837
+        'precision' => 0,
7838
+        'decimal' => '.',
7839
+        'separator' => '',
7840
+        'prefix' => '',
7841
+        'suffix' => '',
7842
+        'exclude' => 1,
7843
+        'id' => 'validate_state',
7844
+        'table' => 'result',
7845
+        'field' => 'validate_state',
7846
+        'relationship' => 'none',
7847 7847
     ),
7848 7848
     'exit_status' => array(
7849
-      'label' => 'Exit status',
7850
-      'alter' => array(
7849
+        'label' => 'Exit status',
7850
+        'alter' => array(
7851 7851
         'alter_text' => 0,
7852 7852
         'text' => '',
7853 7853
         'make_link' => 0,
@@ -7864,25 +7864,25 @@  discard block
 block discarded – undo
7864 7864
         'ellipsis' => 1,
7865 7865
         'html' => 0,
7866 7866
         'strip_tags' => 0,
7867
-      ),
7868
-      'empty' => '',
7869
-      'hide_empty' => 0,
7870
-      'empty_zero' => 0,
7871
-      'set_precision' => FALSE,
7872
-      'precision' => 0,
7873
-      'decimal' => '.',
7874
-      'separator' => '',
7875
-      'prefix' => '',
7876
-      'suffix' => '',
7877
-      'exclude' => 1,
7878
-      'id' => 'exit_status',
7879
-      'table' => 'result',
7880
-      'field' => 'exit_status',
7881
-      'relationship' => 'none',
7867
+        ),
7868
+        'empty' => '',
7869
+        'hide_empty' => 0,
7870
+        'empty_zero' => 0,
7871
+        'set_precision' => FALSE,
7872
+        'precision' => 0,
7873
+        'decimal' => '.',
7874
+        'separator' => '',
7875
+        'prefix' => '',
7876
+        'suffix' => '',
7877
+        'exclude' => 1,
7878
+        'id' => 'exit_status',
7879
+        'table' => 'result',
7880
+        'field' => 'exit_status',
7881
+        'relationship' => 'none',
7882 7882
     ),
7883 7883
     'phpcode_1' => array(
7884
-      'label' => 'Status',
7885
-      'alter' => array(
7884
+        'label' => 'Status',
7885
+        'alter' => array(
7886 7886
         'alter_text' => 0,
7887 7887
         'text' => '',
7888 7888
         'make_link' => 0,
@@ -7899,11 +7899,11 @@  discard block
 block discarded – undo
7899 7899
         'ellipsis' => 1,
7900 7900
         'html' => 0,
7901 7901
         'strip_tags' => 0,
7902
-      ),
7903
-      'empty' => '',
7904
-      'hide_empty' => 0,
7905
-      'empty_zero' => 0,
7906
-      'value' => '<?php
7902
+        ),
7903
+        'empty' => '',
7904
+        'hide_empty' => 0,
7905
+        'empty_zero' => 0,
7906
+        'value' => '<?php
7907 7907
   require_boinc(\'result\');
7908 7908
   $result = new stdClass();
7909 7909
   $result->server_state = $data->result_server_state;
@@ -7913,18 +7913,18 @@  discard block
 block discarded – undo
7913 7913
   $result->exit_status = $data->result_exit_status;
7914 7914
   return state_string($result);
7915 7915
 ?>',
7916
-      'exclude' => 0,
7917
-      'id' => 'phpcode_1',
7918
-      'table' => 'customfield',
7919
-      'field' => 'phpcode',
7920
-      'override' => array(
7916
+        'exclude' => 0,
7917
+        'id' => 'phpcode_1',
7918
+        'table' => 'customfield',
7919
+        'field' => 'phpcode',
7920
+        'override' => array(
7921 7921
         'button' => 'Override',
7922
-      ),
7923
-      'relationship' => 'none',
7922
+        ),
7923
+        'relationship' => 'none',
7924 7924
     ),
7925 7925
     'elapsed_time' => array(
7926
-      'label' => 'Run time',
7927
-      'alter' => array(
7926
+        'label' => 'Run time',
7927
+        'alter' => array(
7928 7928
         'alter_text' => 0,
7929 7929
         'text' => '',
7930 7930
         'make_link' => 0,
@@ -7943,29 +7943,29 @@  discard block
 block discarded – undo
7943 7943
         'ellipsis' => 1,
7944 7944
         'html' => 0,
7945 7945
         'strip_tags' => 0,
7946
-      ),
7947
-      'empty' => '',
7948
-      'hide_empty' => 0,
7949
-      'empty_zero' => 0,
7950
-      'hide_alter_empty' => 1,
7951
-      'set_precision' => 1,
7952
-      'precision' => '2',
7953
-      'decimal' => '.',
7954
-      'separator' => ',',
7955
-      'format_plural' => 0,
7956
-      'format_plural_singular' => '1',
7957
-      'format_plural_plural' => '@count',
7958
-      'prefix' => '',
7959
-      'suffix' => '',
7960
-      'exclude' => 0,
7961
-      'id' => 'elapsed_time',
7962
-      'table' => 'result',
7963
-      'field' => 'elapsed_time',
7964
-      'relationship' => 'none',
7946
+        ),
7947
+        'empty' => '',
7948
+        'hide_empty' => 0,
7949
+        'empty_zero' => 0,
7950
+        'hide_alter_empty' => 1,
7951
+        'set_precision' => 1,
7952
+        'precision' => '2',
7953
+        'decimal' => '.',
7954
+        'separator' => ',',
7955
+        'format_plural' => 0,
7956
+        'format_plural_singular' => '1',
7957
+        'format_plural_plural' => '@count',
7958
+        'prefix' => '',
7959
+        'suffix' => '',
7960
+        'exclude' => 0,
7961
+        'id' => 'elapsed_time',
7962
+        'table' => 'result',
7963
+        'field' => 'elapsed_time',
7964
+        'relationship' => 'none',
7965 7965
     ),
7966 7966
     'cpu_time' => array(
7967
-      'label' => 'CPU time',
7968
-      'alter' => array(
7967
+        'label' => 'CPU time',
7968
+        'alter' => array(
7969 7969
         'alter_text' => 0,
7970 7970
         'text' => '',
7971 7971
         'make_link' => 0,
@@ -7984,29 +7984,29 @@  discard block
 block discarded – undo
7984 7984
         'ellipsis' => 1,
7985 7985
         'html' => 0,
7986 7986
         'strip_tags' => 0,
7987
-      ),
7988
-      'empty' => '',
7989
-      'hide_empty' => 0,
7990
-      'empty_zero' => 0,
7991
-      'hide_alter_empty' => 1,
7992
-      'set_precision' => 1,
7993
-      'precision' => '2',
7994
-      'decimal' => '.',
7995
-      'separator' => ',',
7996
-      'format_plural' => 0,
7997
-      'format_plural_singular' => '1',
7998
-      'format_plural_plural' => '@count',
7999
-      'prefix' => '',
8000
-      'suffix' => '',
8001
-      'exclude' => 0,
8002
-      'id' => 'cpu_time',
8003
-      'table' => 'result',
8004
-      'field' => 'cpu_time',
8005
-      'relationship' => 'none',
7987
+        ),
7988
+        'empty' => '',
7989
+        'hide_empty' => 0,
7990
+        'empty_zero' => 0,
7991
+        'hide_alter_empty' => 1,
7992
+        'set_precision' => 1,
7993
+        'precision' => '2',
7994
+        'decimal' => '.',
7995
+        'separator' => ',',
7996
+        'format_plural' => 0,
7997
+        'format_plural_singular' => '1',
7998
+        'format_plural_plural' => '@count',
7999
+        'prefix' => '',
8000
+        'suffix' => '',
8001
+        'exclude' => 0,
8002
+        'id' => 'cpu_time',
8003
+        'table' => 'result',
8004
+        'field' => 'cpu_time',
8005
+        'relationship' => 'none',
8006 8006
     ),
8007 8007
     'granted_credit' => array(
8008
-      'label' => 'Granted credit',
8009
-      'alter' => array(
8008
+        'label' => 'Granted credit',
8009
+        'alter' => array(
8010 8010
         'alter_text' => 0,
8011 8011
         'text' => '',
8012 8012
         'make_link' => 0,
@@ -8025,29 +8025,29 @@  discard block
 block discarded – undo
8025 8025
         'ellipsis' => 1,
8026 8026
         'html' => 0,
8027 8027
         'strip_tags' => 0,
8028
-      ),
8029
-      'empty' => '',
8030
-      'hide_empty' => 0,
8031
-      'empty_zero' => 0,
8032
-      'hide_alter_empty' => 0,
8033
-      'set_precision' => 1,
8034
-      'precision' => '0',
8035
-      'decimal' => '.',
8036
-      'separator' => ',',
8037
-      'format_plural' => 0,
8038
-      'format_plural_singular' => '1',
8039
-      'format_plural_plural' => '@count',
8040
-      'prefix' => '',
8041
-      'suffix' => '',
8042
-      'exclude' => 0,
8043
-      'id' => 'granted_credit',
8044
-      'table' => 'result',
8045
-      'field' => 'granted_credit',
8046
-      'relationship' => 'none',
8028
+        ),
8029
+        'empty' => '',
8030
+        'hide_empty' => 0,
8031
+        'empty_zero' => 0,
8032
+        'hide_alter_empty' => 0,
8033
+        'set_precision' => 1,
8034
+        'precision' => '0',
8035
+        'decimal' => '.',
8036
+        'separator' => ',',
8037
+        'format_plural' => 0,
8038
+        'format_plural_singular' => '1',
8039
+        'format_plural_plural' => '@count',
8040
+        'prefix' => '',
8041
+        'suffix' => '',
8042
+        'exclude' => 0,
8043
+        'id' => 'granted_credit',
8044
+        'table' => 'result',
8045
+        'field' => 'granted_credit',
8046
+        'relationship' => 'none',
8047 8047
     ),
8048 8048
     'appid' => array(
8049
-      'label' => 'Application ID',
8050
-      'alter' => array(
8049
+        'label' => 'Application ID',
8050
+        'alter' => array(
8051 8051
         'alter_text' => 0,
8052 8052
         'text' => '',
8053 8053
         'make_link' => 0,
@@ -8066,29 +8066,29 @@  discard block
 block discarded – undo
8066 8066
         'ellipsis' => 1,
8067 8067
         'html' => 0,
8068 8068
         'strip_tags' => 0,
8069
-      ),
8070
-      'empty' => '',
8071
-      'hide_empty' => 0,
8072
-      'empty_zero' => 0,
8073
-      'hide_alter_empty' => 1,
8074
-      'set_precision' => FALSE,
8075
-      'precision' => 0,
8076
-      'decimal' => '.',
8077
-      'separator' => '',
8078
-      'format_plural' => 0,
8079
-      'format_plural_singular' => '1',
8080
-      'format_plural_plural' => '@count',
8081
-      'prefix' => '',
8082
-      'suffix' => '',
8083
-      'exclude' => 1,
8084
-      'id' => 'appid',
8085
-      'table' => 'result',
8086
-      'field' => 'appid',
8087
-      'relationship' => 'none',
8069
+        ),
8070
+        'empty' => '',
8071
+        'hide_empty' => 0,
8072
+        'empty_zero' => 0,
8073
+        'hide_alter_empty' => 1,
8074
+        'set_precision' => FALSE,
8075
+        'precision' => 0,
8076
+        'decimal' => '.',
8077
+        'separator' => '',
8078
+        'format_plural' => 0,
8079
+        'format_plural_singular' => '1',
8080
+        'format_plural_plural' => '@count',
8081
+        'prefix' => '',
8082
+        'suffix' => '',
8083
+        'exclude' => 1,
8084
+        'id' => 'appid',
8085
+        'table' => 'result',
8086
+        'field' => 'appid',
8087
+        'relationship' => 'none',
8088 8088
     ),
8089 8089
     'app_version_id' => array(
8090
-      'label' => 'Application version',
8091
-      'alter' => array(
8090
+        'label' => 'Application version',
8091
+        'alter' => array(
8092 8092
         'alter_text' => 0,
8093 8093
         'text' => '',
8094 8094
         'make_link' => 0,
@@ -8105,25 +8105,25 @@  discard block
 block discarded – undo
8105 8105
         'ellipsis' => 1,
8106 8106
         'html' => 0,
8107 8107
         'strip_tags' => 0,
8108
-      ),
8109
-      'empty' => '',
8110
-      'hide_empty' => 0,
8111
-      'empty_zero' => 0,
8112
-      'set_precision' => FALSE,
8113
-      'precision' => 0,
8114
-      'decimal' => '.',
8115
-      'separator' => '',
8116
-      'prefix' => '',
8117
-      'suffix' => '',
8118
-      'exclude' => 1,
8119
-      'id' => 'app_version_id',
8120
-      'table' => 'result',
8121
-      'field' => 'app_version_id',
8122
-      'relationship' => 'none',
8108
+        ),
8109
+        'empty' => '',
8110
+        'hide_empty' => 0,
8111
+        'empty_zero' => 0,
8112
+        'set_precision' => FALSE,
8113
+        'precision' => 0,
8114
+        'decimal' => '.',
8115
+        'separator' => '',
8116
+        'prefix' => '',
8117
+        'suffix' => '',
8118
+        'exclude' => 1,
8119
+        'id' => 'app_version_id',
8120
+        'table' => 'result',
8121
+        'field' => 'app_version_id',
8122
+        'relationship' => 'none',
8123 8123
     ),
8124 8124
     'phpcode_2' => array(
8125
-      'label' => 'Application',
8126
-      'alter' => array(
8125
+        'label' => 'Application',
8126
+        'alter' => array(
8127 8127
         'alter_text' => 0,
8128 8128
         'text' => '',
8129 8129
         'make_link' => 0,
@@ -8142,55 +8142,55 @@  discard block
 block discarded – undo
8142 8142
         'ellipsis' => 1,
8143 8143
         'html' => 0,
8144 8144
         'strip_tags' => 0,
8145
-      ),
8146
-      'empty' => '',
8147
-      'hide_empty' => 0,
8148
-      'empty_zero' => 0,
8149
-      'hide_alter_empty' => 1,
8150
-      'value' => '<?php
8145
+        ),
8146
+        'empty' => '',
8147
+        'hide_empty' => 0,
8148
+        'empty_zero' => 0,
8149
+        'hide_alter_empty' => 1,
8150
+        'value' => '<?php
8151 8151
   require_boinc(\'result\');
8152 8152
   $result = new stdClass();
8153 8153
   $result->appid = $data->result_appid;
8154 8154
   $result->app_version_id = $data->result_app_version_id;
8155 8155
   return app_version_string($result);
8156 8156
 ?>',
8157
-      'exclude' => 0,
8158
-      'id' => 'phpcode_2',
8159
-      'table' => 'customfield',
8160
-      'field' => 'phpcode',
8161
-      'override' => array(
8157
+        'exclude' => 0,
8158
+        'id' => 'phpcode_2',
8159
+        'table' => 'customfield',
8160
+        'field' => 'phpcode',
8161
+        'override' => array(
8162 8162
         'button' => 'Override',
8163
-      ),
8164
-      'relationship' => 'none',
8163
+        ),
8164
+        'relationship' => 'none',
8165 8165
     ),
8166
-  ));
8167
-  $handler->override_option('arguments', array(
8166
+    ));
8167
+    $handler->override_option('arguments', array(
8168 8168
     'hostid' => array(
8169
-      'default_action' => 'not found',
8170
-      'style_plugin' => 'default_summary',
8171
-      'style_options' => array(),
8172
-      'wildcard' => 'all',
8173
-      'wildcard_substitution' => 'All',
8174
-      'title' => 'Tasks for computer %1',
8175
-      'breadcrumb' => '',
8176
-      'default_argument_type' => 'fixed',
8177
-      'default_argument' => '',
8178
-      'validate_type' => 'numeric',
8179
-      'validate_fail' => 'not found',
8180
-      'id' => 'hostid',
8181
-      'table' => 'result',
8182
-      'field' => 'hostid',
8183
-      'validate_user_argument_type' => 'uid',
8184
-      'validate_user_roles' => array(
8169
+        'default_action' => 'not found',
8170
+        'style_plugin' => 'default_summary',
8171
+        'style_options' => array(),
8172
+        'wildcard' => 'all',
8173
+        'wildcard_substitution' => 'All',
8174
+        'title' => 'Tasks for computer %1',
8175
+        'breadcrumb' => '',
8176
+        'default_argument_type' => 'fixed',
8177
+        'default_argument' => '',
8178
+        'validate_type' => 'numeric',
8179
+        'validate_fail' => 'not found',
8180
+        'id' => 'hostid',
8181
+        'table' => 'result',
8182
+        'field' => 'hostid',
8183
+        'validate_user_argument_type' => 'uid',
8184
+        'validate_user_roles' => array(
8185 8185
         2 => 0,
8186 8186
         3 => 0,
8187
-      ),
8188
-      'relationship' => 'none',
8189
-      'default_options_div_prefix' => '',
8190
-      'default_argument_fixed' => '',
8191
-      'default_argument_user' => 0,
8192
-      'default_argument_php' => '',
8193
-      'validate_argument_node_type' => array(
8187
+        ),
8188
+        'relationship' => 'none',
8189
+        'default_options_div_prefix' => '',
8190
+        'default_argument_fixed' => '',
8191
+        'default_argument_user' => 0,
8192
+        'default_argument_php' => '',
8193
+        'validate_argument_node_type' => array(
8194 8194
         'forum' => 0,
8195 8195
         'job_post' => 0,
8196 8196
         'news' => 0,
@@ -8198,687 +8198,687 @@  discard block
 block discarded – undo
8198 8198
         'profile' => 0,
8199 8199
         'story' => 0,
8200 8200
         'team' => 0,
8201
-      ),
8202
-      'validate_argument_node_access' => 0,
8203
-      'validate_argument_nid_type' => 'nid',
8204
-      'validate_argument_vocabulary' => array(
8201
+        ),
8202
+        'validate_argument_node_access' => 0,
8203
+        'validate_argument_nid_type' => 'nid',
8204
+        'validate_argument_vocabulary' => array(
8205 8205
         1 => 0,
8206
-      ),
8207
-      'validate_argument_type' => 'tid',
8208
-      'validate_argument_transform' => 0,
8209
-      'validate_user_restrict_roles' => 0,
8210
-      'validate_argument_php' => '',
8211
-    ),
8212
-  ));
8213
-  $handler->override_option('access', array(
8206
+        ),
8207
+        'validate_argument_type' => 'tid',
8208
+        'validate_argument_transform' => 0,
8209
+        'validate_user_restrict_roles' => 0,
8210
+        'validate_argument_php' => '',
8211
+    ),
8212
+    ));
8213
+    $handler->override_option('access', array(
8214 8214
     'type' => 'none',
8215
-  ));
8216
-  $handler->override_option('cache', array(
8215
+    ));
8216
+    $handler->override_option('cache', array(
8217 8217
     'type' => 'none',
8218
-  ));
8219
-  $handler->override_option('items_per_page', 20);
8220
-  $handler->override_option('use_pager', '1');
8221
-  $handler->override_option('style_plugin', 'table');
8222
-  $handler->override_option('style_options', array(
8218
+    ));
8219
+    $handler->override_option('items_per_page', 20);
8220
+    $handler->override_option('use_pager', '1');
8221
+    $handler->override_option('style_plugin', 'table');
8222
+    $handler->override_option('style_options', array(
8223 8223
     'grouping' => '',
8224 8224
     'override' => 1,
8225 8225
     'sticky' => 1,
8226 8226
     'order' => 'desc',
8227 8227
     'summary' => '',
8228 8228
     'columns' => array(
8229
-      'id' => 'id',
8230
-      'workunitid' => 'workunitid',
8231
-      'sent_time' => 'sent_time',
8232
-      'received_time' => 'received_time',
8233
-      'report_deadline' => 'report_deadline',
8234
-      'phpcode_3' => 'phpcode_3',
8235
-      'phpcode' => 'phpcode',
8236
-      'server_state' => 'server_state',
8237
-      'outcome' => 'outcome',
8238
-      'client_state' => 'client_state',
8239
-      'validate_state' => 'validate_state',
8240
-      'exit_status' => 'exit_status',
8241
-      'phpcode_1' => 'phpcode_1',
8242
-      'elapsed_time' => 'elapsed_time',
8243
-      'cpu_time' => 'cpu_time',
8244
-      'claimed_credit_1' => 'claimed_credit_1',
8245
-      'granted_credit' => 'granted_credit',
8246
-      'app_version_id' => 'app_version_id',
8247
-      'phpcode_2' => 'phpcode_2',
8229
+        'id' => 'id',
8230
+        'workunitid' => 'workunitid',
8231
+        'sent_time' => 'sent_time',
8232
+        'received_time' => 'received_time',
8233
+        'report_deadline' => 'report_deadline',
8234
+        'phpcode_3' => 'phpcode_3',
8235
+        'phpcode' => 'phpcode',
8236
+        'server_state' => 'server_state',
8237
+        'outcome' => 'outcome',
8238
+        'client_state' => 'client_state',
8239
+        'validate_state' => 'validate_state',
8240
+        'exit_status' => 'exit_status',
8241
+        'phpcode_1' => 'phpcode_1',
8242
+        'elapsed_time' => 'elapsed_time',
8243
+        'cpu_time' => 'cpu_time',
8244
+        'claimed_credit_1' => 'claimed_credit_1',
8245
+        'granted_credit' => 'granted_credit',
8246
+        'app_version_id' => 'app_version_id',
8247
+        'phpcode_2' => 'phpcode_2',
8248 8248
     ),
8249 8249
     'info' => array(
8250
-      'id' => array(
8250
+        'id' => array(
8251 8251
         'sortable' => 1,
8252 8252
         'separator' => '',
8253
-      ),
8254
-      'workunitid' => array(
8253
+        ),
8254
+        'workunitid' => array(
8255 8255
         'sortable' => 1,
8256 8256
         'separator' => '',
8257
-      ),
8258
-      'sent_time' => array(
8257
+        ),
8258
+        'sent_time' => array(
8259 8259
         'sortable' => 1,
8260 8260
         'separator' => '',
8261
-      ),
8262
-      'received_time' => array(
8261
+        ),
8262
+        'received_time' => array(
8263 8263
         'sortable' => 1,
8264 8264
         'separator' => '',
8265
-      ),
8266
-      'report_deadline' => array(
8265
+        ),
8266
+        'report_deadline' => array(
8267 8267
         'sortable' => 1,
8268 8268
         'separator' => '',
8269
-      ),
8270
-      'phpcode_3' => array(
8269
+        ),
8270
+        'phpcode_3' => array(
8271 8271
         'separator' => '',
8272
-      ),
8273
-      'phpcode' => array(
8272
+        ),
8273
+        'phpcode' => array(
8274 8274
         'separator' => '',
8275
-      ),
8276
-      'server_state' => array(
8275
+        ),
8276
+        'server_state' => array(
8277 8277
         'sortable' => 0,
8278 8278
         'separator' => '',
8279
-      ),
8280
-      'outcome' => array(
8279
+        ),
8280
+        'outcome' => array(
8281 8281
         'sortable' => 0,
8282 8282
         'separator' => '',
8283
-      ),
8284
-      'client_state' => array(
8283
+        ),
8284
+        'client_state' => array(
8285 8285
         'sortable' => 0,
8286 8286
         'separator' => '',
8287
-      ),
8288
-      'validate_state' => array(
8287
+        ),
8288
+        'validate_state' => array(
8289 8289
         'sortable' => 0,
8290 8290
         'separator' => '',
8291
-      ),
8292
-      'exit_status' => array(
8291
+        ),
8292
+        'exit_status' => array(
8293 8293
         'sortable' => 0,
8294 8294
         'separator' => '',
8295
-      ),
8296
-      'phpcode_1' => array(
8295
+        ),
8296
+        'phpcode_1' => array(
8297 8297
         'separator' => '',
8298
-      ),
8299
-      'elapsed_time' => array(
8298
+        ),
8299
+        'elapsed_time' => array(
8300 8300
         'sortable' => 1,
8301 8301
         'separator' => '',
8302
-      ),
8303
-      'cpu_time' => array(
8302
+        ),
8303
+        'cpu_time' => array(
8304 8304
         'sortable' => 1,
8305 8305
         'separator' => '',
8306
-      ),
8307
-      'claimed_credit_1' => array(
8306
+        ),
8307
+        'claimed_credit_1' => array(
8308 8308
         'sortable' => 1,
8309 8309
         'separator' => '',
8310
-      ),
8311
-      'granted_credit' => array(
8310
+        ),
8311
+        'granted_credit' => array(
8312 8312
         'sortable' => 1,
8313 8313
         'separator' => '',
8314
-      ),
8315
-      'app_version_id' => array(
8314
+        ),
8315
+        'app_version_id' => array(
8316 8316
         'sortable' => 1,
8317 8317
         'separator' => '',
8318
-      ),
8319
-      'phpcode_2' => array(
8318
+        ),
8319
+        'phpcode_2' => array(
8320 8320
         'separator' => '',
8321
-      ),
8321
+        ),
8322 8322
     ),
8323 8323
     'default' => 'id',
8324
-  ));
8325
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
8326
-  $handler->override_option('path', 'host/%/tasks/all');
8327
-  $handler->override_option('menu', array(
8324
+    ));
8325
+    $handler = $view->new_display('page', 'All tasks', 'page_1');
8326
+    $handler->override_option('path', 'host/%/tasks/all');
8327
+    $handler->override_option('menu', array(
8328 8328
     'type' => 'default tab',
8329 8329
     'title' => 'All tasks',
8330 8330
     'description' => 'Show all tasks associated with the host',
8331 8331
     'weight' => '0',
8332 8332
     'name' => 'navigation',
8333
-  ));
8334
-  $handler->override_option('tab_options', array(
8333
+    ));
8334
+    $handler->override_option('tab_options', array(
8335 8335
     'type' => 'tab',
8336 8336
     'title' => 'Tasks',
8337 8337
     'description' => 'Show all tasks',
8338 8338
     'weight' => '0',
8339 8339
     'name' => 'secondary-links',
8340
-  ));
8341
-  $handler = $view->new_display('page', 'Error', 'page_2');
8342
-  $handler->override_option('filters', array(
8340
+    ));
8341
+    $handler = $view->new_display('page', 'Error', 'page_2');
8342
+    $handler->override_option('filters', array(
8343 8343
     'server_state' => array(
8344
-      'operator' => '=',
8345
-      'value' => array(
8344
+        'operator' => '=',
8345
+        'value' => array(
8346 8346
         'value' => '5',
8347 8347
         'min' => '',
8348 8348
         'max' => '',
8349
-      ),
8350
-      'group' => '0',
8351
-      'exposed' => FALSE,
8352
-      'expose' => array(
8349
+        ),
8350
+        'group' => '0',
8351
+        'exposed' => FALSE,
8352
+        'expose' => array(
8353 8353
         'operator' => FALSE,
8354 8354
         'label' => '',
8355
-      ),
8356
-      'id' => 'server_state',
8357
-      'table' => 'result',
8358
-      'field' => 'server_state',
8359
-      'override' => array(
8355
+        ),
8356
+        'id' => 'server_state',
8357
+        'table' => 'result',
8358
+        'field' => 'server_state',
8359
+        'override' => array(
8360 8360
         'button' => 'Use default',
8361
-      ),
8362
-      'relationship' => 'none',
8361
+        ),
8362
+        'relationship' => 'none',
8363 8363
     ),
8364 8364
     'outcome' => array(
8365
-      'operator' => '>=',
8366
-      'value' => array(
8365
+        'operator' => '>=',
8366
+        'value' => array(
8367 8367
         'value' => '3',
8368 8368
         'min' => '',
8369 8369
         'max' => '',
8370
-      ),
8371
-      'group' => '0',
8372
-      'exposed' => FALSE,
8373
-      'expose' => array(
8370
+        ),
8371
+        'group' => '0',
8372
+        'exposed' => FALSE,
8373
+        'expose' => array(
8374 8374
         'operator' => FALSE,
8375 8375
         'label' => '',
8376
-      ),
8377
-      'id' => 'outcome',
8378
-      'table' => 'result',
8379
-      'field' => 'outcome',
8380
-      'override' => array(
8376
+        ),
8377
+        'id' => 'outcome',
8378
+        'table' => 'result',
8379
+        'field' => 'outcome',
8380
+        'override' => array(
8381 8381
         'button' => 'Use default',
8382
-      ),
8383
-      'relationship' => 'none',
8382
+        ),
8383
+        'relationship' => 'none',
8384 8384
     ),
8385 8385
     'outcome_1' => array(
8386
-      'operator' => 'not between',
8387
-      'value' => array(
8386
+        'operator' => 'not between',
8387
+        'value' => array(
8388 8388
         'value' => '',
8389 8389
         'min' => '4',
8390 8390
         'max' => '7',
8391
-      ),
8392
-      'group' => '0',
8393
-      'exposed' => FALSE,
8394
-      'expose' => array(
8391
+        ),
8392
+        'group' => '0',
8393
+        'exposed' => FALSE,
8394
+        'expose' => array(
8395 8395
         'operator' => FALSE,
8396 8396
         'label' => '',
8397
-      ),
8398
-      'id' => 'outcome_1',
8399
-      'table' => 'result',
8400
-      'field' => 'outcome',
8401
-      'override' => array(
8397
+        ),
8398
+        'id' => 'outcome_1',
8399
+        'table' => 'result',
8400
+        'field' => 'outcome',
8401
+        'override' => array(
8402 8402
         'button' => 'Use default',
8403
-      ),
8404
-      'relationship' => 'none',
8403
+        ),
8404
+        'relationship' => 'none',
8405 8405
     ),
8406 8406
     'outcome_2' => array(
8407
-      'operator' => '<=',
8408
-      'value' => array(
8407
+        'operator' => '<=',
8408
+        'value' => array(
8409 8409
         'value' => '7',
8410 8410
         'min' => '',
8411 8411
         'max' => '',
8412
-      ),
8413
-      'group' => '0',
8414
-      'exposed' => FALSE,
8415
-      'expose' => array(
8412
+        ),
8413
+        'group' => '0',
8414
+        'exposed' => FALSE,
8415
+        'expose' => array(
8416 8416
         'operator' => FALSE,
8417 8417
         'label' => '',
8418
-      ),
8419
-      'id' => 'outcome_2',
8420
-      'table' => 'result',
8421
-      'field' => 'outcome',
8422
-      'override' => array(
8418
+        ),
8419
+        'id' => 'outcome_2',
8420
+        'table' => 'result',
8421
+        'field' => 'outcome',
8422
+        'override' => array(
8423 8423
         'button' => 'Use default',
8424
-      ),
8425
-      'relationship' => 'none',
8424
+        ),
8425
+        'relationship' => 'none',
8426 8426
     ),
8427
-  ));
8428
-  $handler->override_option('path', 'host/%/tasks/error');
8429
-  $handler->override_option('menu', array(
8427
+    ));
8428
+    $handler->override_option('path', 'host/%/tasks/error');
8429
+    $handler->override_option('menu', array(
8430 8430
     'type' => 'tab',
8431 8431
     'title' => 'Error',
8432 8432
     'description' => 'Show tasks with errors associated with the host',
8433 8433
     'weight' => '5',
8434 8434
     'name' => 'navigation',
8435
-  ));
8436
-  $handler->override_option('tab_options', array(
8435
+    ));
8436
+    $handler->override_option('tab_options', array(
8437 8437
     'type' => 'none',
8438 8438
     'title' => '',
8439 8439
     'description' => '',
8440 8440
     'weight' => 0,
8441 8441
     'name' => 'navigation',
8442
-  ));
8443
-  $handler = $view->new_display('page', 'In progress', 'page_3');
8444
-  $handler->override_option('filters', array(
8442
+    ));
8443
+    $handler = $view->new_display('page', 'In progress', 'page_3');
8444
+    $handler->override_option('filters', array(
8445 8445
     'server_state' => array(
8446
-      'operator' => '=',
8447
-      'value' => array(
8446
+        'operator' => '=',
8447
+        'value' => array(
8448 8448
         'value' => '4',
8449 8449
         'min' => '',
8450 8450
         'max' => '',
8451
-      ),
8452
-      'group' => '0',
8453
-      'exposed' => FALSE,
8454
-      'expose' => array(
8451
+        ),
8452
+        'group' => '0',
8453
+        'exposed' => FALSE,
8454
+        'expose' => array(
8455 8455
         'operator' => FALSE,
8456 8456
         'label' => '',
8457
-      ),
8458
-      'id' => 'server_state',
8459
-      'table' => 'result',
8460
-      'field' => 'server_state',
8461
-      'override' => array(
8457
+        ),
8458
+        'id' => 'server_state',
8459
+        'table' => 'result',
8460
+        'field' => 'server_state',
8461
+        'override' => array(
8462 8462
         'button' => 'Use default',
8463
-      ),
8464
-      'relationship' => 'none',
8463
+        ),
8464
+        'relationship' => 'none',
8465 8465
     ),
8466
-  ));
8467
-  $handler->override_option('path', 'host/%/tasks/active');
8468
-  $handler->override_option('menu', array(
8466
+    ));
8467
+    $handler->override_option('path', 'host/%/tasks/active');
8468
+    $handler->override_option('menu', array(
8469 8469
     'type' => 'tab',
8470 8470
     'title' => 'In progress',
8471 8471
     'description' => 'Show tasks in progress associated with the host',
8472 8472
     'weight' => '1',
8473 8473
     'name' => 'navigation',
8474
-  ));
8475
-  $handler->override_option('tab_options', array(
8474
+    ));
8475
+    $handler->override_option('tab_options', array(
8476 8476
     'type' => 'none',
8477 8477
     'title' => '',
8478 8478
     'description' => '',
8479 8479
     'weight' => 0,
8480 8480
     'name' => 'navigation',
8481
-  ));
8482
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
8483
-  $handler->override_option('filters', array(
8481
+    ));
8482
+    $handler = $view->new_display('page', 'Invalidated', 'page_4');
8483
+    $handler->override_option('filters', array(
8484 8484
     'server_state' => array(
8485
-      'operator' => '=',
8486
-      'value' => array(
8485
+        'operator' => '=',
8486
+        'value' => array(
8487 8487
         'value' => '5',
8488 8488
         'min' => '',
8489 8489
         'max' => '',
8490
-      ),
8491
-      'group' => '0',
8492
-      'exposed' => FALSE,
8493
-      'expose' => array(
8490
+        ),
8491
+        'group' => '0',
8492
+        'exposed' => FALSE,
8493
+        'expose' => array(
8494 8494
         'operator' => FALSE,
8495 8495
         'label' => '',
8496
-      ),
8497
-      'id' => 'server_state',
8498
-      'table' => 'result',
8499
-      'field' => 'server_state',
8500
-      'override' => array(
8496
+        ),
8497
+        'id' => 'server_state',
8498
+        'table' => 'result',
8499
+        'field' => 'server_state',
8500
+        'override' => array(
8501 8501
         'button' => 'Use default',
8502
-      ),
8503
-      'relationship' => 'none',
8502
+        ),
8503
+        'relationship' => 'none',
8504 8504
     ),
8505 8505
     'views_or_begin_2' => array(
8506
-      'id' => 'views_or_begin_2',
8507
-      'table' => 'views_or',
8508
-      'field' => 'views_or_begin',
8506
+        'id' => 'views_or_begin_2',
8507
+        'table' => 'views_or',
8508
+        'field' => 'views_or_begin',
8509 8509
     ),
8510 8510
     'outcome' => array(
8511
-      'operator' => '=',
8512
-      'value' => array(
8511
+        'operator' => '=',
8512
+        'value' => array(
8513 8513
         'value' => '6',
8514 8514
         'min' => '',
8515 8515
         'max' => '',
8516
-      ),
8517
-      'group' => '0',
8518
-      'exposed' => FALSE,
8519
-      'expose' => array(
8516
+        ),
8517
+        'group' => '0',
8518
+        'exposed' => FALSE,
8519
+        'expose' => array(
8520 8520
         'operator' => FALSE,
8521 8521
         'label' => '',
8522
-      ),
8523
-      'id' => 'outcome',
8524
-      'table' => 'result',
8525
-      'field' => 'outcome',
8526
-      'override' => array(
8522
+        ),
8523
+        'id' => 'outcome',
8524
+        'table' => 'result',
8525
+        'field' => 'outcome',
8526
+        'override' => array(
8527 8527
         'button' => 'Use default',
8528
-      ),
8529
-      'relationship' => 'none',
8528
+        ),
8529
+        'relationship' => 'none',
8530 8530
     ),
8531 8531
     'views_or_next_3' => array(
8532
-      'id' => 'views_or_next_3',
8533
-      'table' => 'views_or',
8534
-      'field' => 'views_or_next',
8532
+        'id' => 'views_or_next_3',
8533
+        'table' => 'views_or',
8534
+        'field' => 'views_or_next',
8535 8535
     ),
8536 8536
     'outcome_1' => array(
8537
-      'operator' => '=',
8538
-      'value' => array(
8537
+        'operator' => '=',
8538
+        'value' => array(
8539 8539
         'value' => '1',
8540 8540
         'min' => '',
8541 8541
         'max' => '',
8542
-      ),
8543
-      'group' => '0',
8544
-      'exposed' => FALSE,
8545
-      'expose' => array(
8542
+        ),
8543
+        'group' => '0',
8544
+        'exposed' => FALSE,
8545
+        'expose' => array(
8546 8546
         'operator' => FALSE,
8547 8547
         'label' => '',
8548
-      ),
8549
-      'id' => 'outcome_1',
8550
-      'table' => 'result',
8551
-      'field' => 'outcome',
8552
-      'override' => array(
8548
+        ),
8549
+        'id' => 'outcome_1',
8550
+        'table' => 'result',
8551
+        'field' => 'outcome',
8552
+        'override' => array(
8553 8553
         'button' => 'Use default',
8554
-      ),
8555
-      'relationship' => 'none',
8554
+        ),
8555
+        'relationship' => 'none',
8556 8556
     ),
8557 8557
     'views_or_begin' => array(
8558
-      'id' => 'views_or_begin',
8559
-      'table' => 'views_or',
8560
-      'field' => 'views_or_begin',
8558
+        'id' => 'views_or_begin',
8559
+        'table' => 'views_or',
8560
+        'field' => 'views_or_begin',
8561 8561
     ),
8562 8562
     'validate_state' => array(
8563
-      'operator' => '=',
8564
-      'value' => array(
8563
+        'operator' => '=',
8564
+        'value' => array(
8565 8565
         'value' => '2',
8566 8566
         'min' => '',
8567 8567
         'max' => '',
8568
-      ),
8569
-      'group' => '0',
8570
-      'exposed' => FALSE,
8571
-      'expose' => array(
8568
+        ),
8569
+        'group' => '0',
8570
+        'exposed' => FALSE,
8571
+        'expose' => array(
8572 8572
         'operator' => FALSE,
8573 8573
         'label' => '',
8574
-      ),
8575
-      'id' => 'validate_state',
8576
-      'table' => 'result',
8577
-      'field' => 'validate_state',
8578
-      'override' => array(
8574
+        ),
8575
+        'id' => 'validate_state',
8576
+        'table' => 'result',
8577
+        'field' => 'validate_state',
8578
+        'override' => array(
8579 8579
         'button' => 'Use default',
8580
-      ),
8581
-      'relationship' => 'none',
8580
+        ),
8581
+        'relationship' => 'none',
8582 8582
     ),
8583 8583
     'views_or_next_4' => array(
8584
-      'id' => 'views_or_next_4',
8585
-      'table' => 'views_or',
8586
-      'field' => 'views_or_next',
8584
+        'id' => 'views_or_next_4',
8585
+        'table' => 'views_or',
8586
+        'field' => 'views_or_next',
8587 8587
     ),
8588 8588
     'validate_state_1' => array(
8589
-      'operator' => '=',
8590
-      'value' => array(
8589
+        'operator' => '=',
8590
+        'value' => array(
8591 8591
         'value' => '3',
8592 8592
         'min' => '',
8593 8593
         'max' => '',
8594
-      ),
8595
-      'group' => '0',
8596
-      'exposed' => FALSE,
8597
-      'expose' => array(
8594
+        ),
8595
+        'group' => '0',
8596
+        'exposed' => FALSE,
8597
+        'expose' => array(
8598 8598
         'operator' => FALSE,
8599 8599
         'label' => '',
8600
-      ),
8601
-      'id' => 'validate_state_1',
8602
-      'table' => 'result',
8603
-      'field' => 'validate_state',
8604
-      'override' => array(
8600
+        ),
8601
+        'id' => 'validate_state_1',
8602
+        'table' => 'result',
8603
+        'field' => 'validate_state',
8604
+        'override' => array(
8605 8605
         'button' => 'Use default',
8606
-      ),
8607
-      'relationship' => 'none',
8606
+        ),
8607
+        'relationship' => 'none',
8608 8608
     ),
8609 8609
     'views_or_next' => array(
8610
-      'id' => 'views_or_next',
8611
-      'table' => 'views_or',
8612
-      'field' => 'views_or_next',
8610
+        'id' => 'views_or_next',
8611
+        'table' => 'views_or',
8612
+        'field' => 'views_or_next',
8613 8613
     ),
8614 8614
     'validate_state_2' => array(
8615
-      'operator' => '=',
8616
-      'value' => array(
8615
+        'operator' => '=',
8616
+        'value' => array(
8617 8617
         'value' => '5',
8618 8618
         'min' => '',
8619 8619
         'max' => '',
8620
-      ),
8621
-      'group' => '0',
8622
-      'exposed' => FALSE,
8623
-      'expose' => array(
8620
+        ),
8621
+        'group' => '0',
8622
+        'exposed' => FALSE,
8623
+        'expose' => array(
8624 8624
         'operator' => FALSE,
8625 8625
         'label' => '',
8626
-      ),
8627
-      'id' => 'validate_state_2',
8628
-      'table' => 'result',
8629
-      'field' => 'validate_state',
8630
-      'override' => array(
8626
+        ),
8627
+        'id' => 'validate_state_2',
8628
+        'table' => 'result',
8629
+        'field' => 'validate_state',
8630
+        'override' => array(
8631 8631
         'button' => 'Use default',
8632
-      ),
8633
-      'relationship' => 'none',
8632
+        ),
8633
+        'relationship' => 'none',
8634 8634
     ),
8635 8635
     'views_or_end_3' => array(
8636
-      'id' => 'views_or_end_3',
8637
-      'table' => 'views_or',
8638
-      'field' => 'views_or_end',
8636
+        'id' => 'views_or_end_3',
8637
+        'table' => 'views_or',
8638
+        'field' => 'views_or_end',
8639 8639
     ),
8640 8640
     'views_or_end_2' => array(
8641
-      'id' => 'views_or_end_2',
8642
-      'table' => 'views_or',
8643
-      'field' => 'views_or_end',
8641
+        'id' => 'views_or_end_2',
8642
+        'table' => 'views_or',
8643
+        'field' => 'views_or_end',
8644 8644
     ),
8645
-  ));
8646
-  $handler->override_option('path', 'host/%/tasks/invalid');
8647
-  $handler->override_option('menu', array(
8645
+    ));
8646
+    $handler->override_option('path', 'host/%/tasks/invalid');
8647
+    $handler->override_option('menu', array(
8648 8648
     'type' => 'tab',
8649 8649
     'title' => 'Invalid',
8650 8650
     'description' => 'Show invalidated tasks associated with the host',
8651 8651
     'weight' => '4',
8652 8652
     'name' => 'navigation',
8653
-  ));
8654
-  $handler->override_option('tab_options', array(
8653
+    ));
8654
+    $handler->override_option('tab_options', array(
8655 8655
     'type' => 'none',
8656 8656
     'title' => '',
8657 8657
     'description' => '',
8658 8658
     'weight' => 0,
8659 8659
     'name' => 'navigation',
8660
-  ));
8661
-  $handler = $view->new_display('page', 'Pending', 'page_5');
8662
-  $handler->override_option('filters', array(
8660
+    ));
8661
+    $handler = $view->new_display('page', 'Pending', 'page_5');
8662
+    $handler->override_option('filters', array(
8663 8663
     'server_state' => array(
8664
-      'operator' => '=',
8665
-      'value' => array(
8664
+        'operator' => '=',
8665
+        'value' => array(
8666 8666
         'value' => '5',
8667 8667
         'min' => '',
8668 8668
         'max' => '',
8669
-      ),
8670
-      'group' => '0',
8671
-      'exposed' => FALSE,
8672
-      'expose' => array(
8669
+        ),
8670
+        'group' => '0',
8671
+        'exposed' => FALSE,
8672
+        'expose' => array(
8673 8673
         'operator' => FALSE,
8674 8674
         'label' => '',
8675
-      ),
8676
-      'id' => 'server_state',
8677
-      'table' => 'result',
8678
-      'field' => 'server_state',
8679
-      'override' => array(
8675
+        ),
8676
+        'id' => 'server_state',
8677
+        'table' => 'result',
8678
+        'field' => 'server_state',
8679
+        'override' => array(
8680 8680
         'button' => 'Use default',
8681
-      ),
8682
-      'relationship' => 'none',
8681
+        ),
8682
+        'relationship' => 'none',
8683 8683
     ),
8684 8684
     'outcome' => array(
8685
-      'operator' => '=',
8686
-      'value' => array(
8685
+        'operator' => '=',
8686
+        'value' => array(
8687 8687
         'value' => '1',
8688 8688
         'min' => '',
8689 8689
         'max' => '',
8690
-      ),
8691
-      'group' => '0',
8692
-      'exposed' => FALSE,
8693
-      'expose' => array(
8690
+        ),
8691
+        'group' => '0',
8692
+        'exposed' => FALSE,
8693
+        'expose' => array(
8694 8694
         'operator' => FALSE,
8695 8695
         'label' => '',
8696
-      ),
8697
-      'id' => 'outcome',
8698
-      'table' => 'result',
8699
-      'field' => 'outcome',
8700
-      'override' => array(
8696
+        ),
8697
+        'id' => 'outcome',
8698
+        'table' => 'result',
8699
+        'field' => 'outcome',
8700
+        'override' => array(
8701 8701
         'button' => 'Use default',
8702
-      ),
8703
-      'relationship' => 'none',
8702
+        ),
8703
+        'relationship' => 'none',
8704 8704
     ),
8705 8705
     'validate_state' => array(
8706
-      'operator' => '>=',
8707
-      'value' => array(
8706
+        'operator' => '>=',
8707
+        'value' => array(
8708 8708
         'value' => '0',
8709 8709
         'min' => '',
8710 8710
         'max' => '',
8711
-      ),
8712
-      'group' => '0',
8713
-      'exposed' => FALSE,
8714
-      'expose' => array(
8711
+        ),
8712
+        'group' => '0',
8713
+        'exposed' => FALSE,
8714
+        'expose' => array(
8715 8715
         'operator' => FALSE,
8716 8716
         'label' => '',
8717
-      ),
8718
-      'id' => 'validate_state',
8719
-      'table' => 'result',
8720
-      'field' => 'validate_state',
8721
-      'override' => array(
8717
+        ),
8718
+        'id' => 'validate_state',
8719
+        'table' => 'result',
8720
+        'field' => 'validate_state',
8721
+        'override' => array(
8722 8722
         'button' => 'Use default',
8723
-      ),
8724
-      'relationship' => 'none',
8723
+        ),
8724
+        'relationship' => 'none',
8725 8725
     ),
8726 8726
     'validate_state_1' => array(
8727
-      'operator' => 'not between',
8728
-      'value' => array(
8727
+        'operator' => 'not between',
8728
+        'value' => array(
8729 8729
         'value' => '',
8730 8730
         'min' => '0',
8731 8731
         'max' => '4',
8732
-      ),
8733
-      'group' => '0',
8734
-      'exposed' => FALSE,
8735
-      'expose' => array(
8732
+        ),
8733
+        'group' => '0',
8734
+        'exposed' => FALSE,
8735
+        'expose' => array(
8736 8736
         'operator' => FALSE,
8737 8737
         'label' => '',
8738
-      ),
8739
-      'id' => 'validate_state_1',
8740
-      'table' => 'result',
8741
-      'field' => 'validate_state',
8742
-      'override' => array(
8738
+        ),
8739
+        'id' => 'validate_state_1',
8740
+        'table' => 'result',
8741
+        'field' => 'validate_state',
8742
+        'override' => array(
8743 8743
         'button' => 'Use default',
8744
-      ),
8745
-      'relationship' => 'none',
8744
+        ),
8745
+        'relationship' => 'none',
8746 8746
     ),
8747 8747
     'validate_state_2' => array(
8748
-      'operator' => '<=',
8749
-      'value' => array(
8748
+        'operator' => '<=',
8749
+        'value' => array(
8750 8750
         'value' => '4',
8751 8751
         'min' => '',
8752 8752
         'max' => '',
8753
-      ),
8754
-      'group' => '0',
8755
-      'exposed' => FALSE,
8756
-      'expose' => array(
8753
+        ),
8754
+        'group' => '0',
8755
+        'exposed' => FALSE,
8756
+        'expose' => array(
8757 8757
         'operator' => FALSE,
8758 8758
         'label' => '',
8759
-      ),
8760
-      'id' => 'validate_state_2',
8761
-      'table' => 'result',
8762
-      'field' => 'validate_state',
8763
-      'override' => array(
8759
+        ),
8760
+        'id' => 'validate_state_2',
8761
+        'table' => 'result',
8762
+        'field' => 'validate_state',
8763
+        'override' => array(
8764 8764
         'button' => 'Use default',
8765
-      ),
8766
-      'relationship' => 'none',
8765
+        ),
8766
+        'relationship' => 'none',
8767 8767
     ),
8768
-  ));
8769
-  $handler->override_option('path', 'host/%/tasks/pending');
8770
-  $handler->override_option('menu', array(
8768
+    ));
8769
+    $handler->override_option('path', 'host/%/tasks/pending');
8770
+    $handler->override_option('menu', array(
8771 8771
     'type' => 'tab',
8772 8772
     'title' => 'Pending',
8773 8773
     'description' => 'Show tasks associated with the host with results pending',
8774 8774
     'weight' => '2',
8775 8775
     'name' => 'navigation',
8776
-  ));
8777
-  $handler->override_option('tab_options', array(
8776
+    ));
8777
+    $handler->override_option('tab_options', array(
8778 8778
     'type' => 'none',
8779 8779
     'title' => '',
8780 8780
     'description' => '',
8781 8781
     'weight' => 0,
8782 8782
     'name' => 'navigation',
8783
-  ));
8784
-  $handler = $view->new_display('page', 'Validated', 'page_6');
8785
-  $handler->override_option('filters', array(
8783
+    ));
8784
+    $handler = $view->new_display('page', 'Validated', 'page_6');
8785
+    $handler->override_option('filters', array(
8786 8786
     'server_state' => array(
8787
-      'operator' => '=',
8788
-      'value' => array(
8787
+        'operator' => '=',
8788
+        'value' => array(
8789 8789
         'value' => '5',
8790 8790
         'min' => '',
8791 8791
         'max' => '',
8792
-      ),
8793
-      'group' => '0',
8794
-      'exposed' => FALSE,
8795
-      'expose' => array(
8792
+        ),
8793
+        'group' => '0',
8794
+        'exposed' => FALSE,
8795
+        'expose' => array(
8796 8796
         'operator' => FALSE,
8797 8797
         'label' => '',
8798
-      ),
8799
-      'id' => 'server_state',
8800
-      'table' => 'result',
8801
-      'field' => 'server_state',
8802
-      'override' => array(
8798
+        ),
8799
+        'id' => 'server_state',
8800
+        'table' => 'result',
8801
+        'field' => 'server_state',
8802
+        'override' => array(
8803 8803
         'button' => 'Use default',
8804
-      ),
8805
-      'relationship' => 'none',
8804
+        ),
8805
+        'relationship' => 'none',
8806 8806
     ),
8807 8807
     'outcome' => array(
8808
-      'operator' => '=',
8809
-      'value' => array(
8808
+        'operator' => '=',
8809
+        'value' => array(
8810 8810
         'value' => '1',
8811 8811
         'min' => '',
8812 8812
         'max' => '',
8813
-      ),
8814
-      'group' => '0',
8815
-      'exposed' => FALSE,
8816
-      'expose' => array(
8813
+        ),
8814
+        'group' => '0',
8815
+        'exposed' => FALSE,
8816
+        'expose' => array(
8817 8817
         'operator' => FALSE,
8818 8818
         'label' => '',
8819
-      ),
8820
-      'id' => 'outcome',
8821
-      'table' => 'result',
8822
-      'field' => 'outcome',
8823
-      'override' => array(
8819
+        ),
8820
+        'id' => 'outcome',
8821
+        'table' => 'result',
8822
+        'field' => 'outcome',
8823
+        'override' => array(
8824 8824
         'button' => 'Use default',
8825
-      ),
8826
-      'relationship' => 'none',
8825
+        ),
8826
+        'relationship' => 'none',
8827 8827
     ),
8828 8828
     'validate_state' => array(
8829
-      'operator' => '=',
8830
-      'value' => array(
8829
+        'operator' => '=',
8830
+        'value' => array(
8831 8831
         'value' => '1',
8832 8832
         'min' => '',
8833 8833
         'max' => '',
8834
-      ),
8835
-      'group' => '0',
8836
-      'exposed' => FALSE,
8837
-      'expose' => array(
8834
+        ),
8835
+        'group' => '0',
8836
+        'exposed' => FALSE,
8837
+        'expose' => array(
8838 8838
         'operator' => FALSE,
8839 8839
         'label' => '',
8840
-      ),
8841
-      'id' => 'validate_state',
8842
-      'table' => 'result',
8843
-      'field' => 'validate_state',
8844
-      'override' => array(
8840
+        ),
8841
+        'id' => 'validate_state',
8842
+        'table' => 'result',
8843
+        'field' => 'validate_state',
8844
+        'override' => array(
8845 8845
         'button' => 'Use default',
8846
-      ),
8847
-      'relationship' => 'none',
8846
+        ),
8847
+        'relationship' => 'none',
8848 8848
     ),
8849
-  ));
8850
-  $handler->override_option('path', 'host/%/tasks/valid');
8851
-  $handler->override_option('menu', array(
8849
+    ));
8850
+    $handler->override_option('path', 'host/%/tasks/valid');
8851
+    $handler->override_option('menu', array(
8852 8852
     'type' => 'tab',
8853 8853
     'title' => 'Valid',
8854 8854
     'description' => 'Show validated tasks associated with the host',
8855 8855
     'weight' => '3',
8856 8856
     'name' => 'navigation',
8857
-  ));
8858
-  $handler->override_option('tab_options', array(
8857
+    ));
8858
+    $handler->override_option('tab_options', array(
8859 8859
     'type' => 'none',
8860 8860
     'title' => '',
8861 8861
     'description' => '',
8862 8862
     'weight' => 0,
8863 8863
     'name' => 'navigation',
8864
-  ));
8864
+    ));
8865 8865
 
8866
-  $views[$view->name] = $view;
8866
+    $views[$view->name] = $view;
8867 8867
 
8868
-  // Exported view: boinc_task
8869
-  $view = new view;
8870
-  $view->name = 'boinc_task';
8871
-  $view->description = 'Details for a specific task';
8872
-  $view->tag = '';
8873
-  $view->base_table = 'result';
8874
-  $view->core = 0;
8875
-  $view->api_version = '2';
8876
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
8877
-  $handler = $view->new_display('default', 'Defaults', 'default');
8878
-  $handler->override_option('fields', array(
8868
+    // Exported view: boinc_task
8869
+    $view = new view;
8870
+    $view->name = 'boinc_task';
8871
+    $view->description = 'Details for a specific task';
8872
+    $view->tag = '';
8873
+    $view->base_table = 'result';
8874
+    $view->core = 0;
8875
+    $view->api_version = '2';
8876
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
8877
+    $handler = $view->new_display('default', 'Defaults', 'default');
8878
+    $handler->override_option('fields', array(
8879 8879
     'name' => array(
8880
-      'label' => 'Name',
8881
-      'alter' => array(
8880
+        'label' => 'Name',
8881
+        'alter' => array(
8882 8882
         'alter_text' => 0,
8883 8883
         'text' => '',
8884 8884
         'make_link' => 0,
@@ -8895,19 +8895,19 @@  discard block
 block discarded – undo
8895 8895
         'ellipsis' => 1,
8896 8896
         'html' => 0,
8897 8897
         'strip_tags' => 0,
8898
-      ),
8899
-      'empty' => '',
8900
-      'hide_empty' => 0,
8901
-      'empty_zero' => 0,
8902
-      'exclude' => 0,
8903
-      'id' => 'name',
8904
-      'table' => 'result',
8905
-      'field' => 'name',
8906
-      'relationship' => 'none',
8898
+        ),
8899
+        'empty' => '',
8900
+        'hide_empty' => 0,
8901
+        'empty_zero' => 0,
8902
+        'exclude' => 0,
8903
+        'id' => 'name',
8904
+        'table' => 'result',
8905
+        'field' => 'name',
8906
+        'relationship' => 'none',
8907 8907
     ),
8908 8908
     'workunitid' => array(
8909
-      'label' => 'Workunit ID',
8910
-      'alter' => array(
8909
+        'label' => 'Workunit ID',
8910
+        'alter' => array(
8911 8911
         'alter_text' => 0,
8912 8912
         'text' => '',
8913 8913
         'make_link' => 1,
@@ -8924,25 +8924,25 @@  discard block
 block discarded – undo
8924 8924
         'ellipsis' => 1,
8925 8925
         'html' => 0,
8926 8926
         'strip_tags' => 0,
8927
-      ),
8928
-      'empty' => '',
8929
-      'hide_empty' => 0,
8930
-      'empty_zero' => 0,
8931
-      'set_precision' => FALSE,
8932
-      'precision' => 0,
8933
-      'decimal' => '.',
8934
-      'separator' => '',
8935
-      'prefix' => '',
8936
-      'suffix' => '',
8937
-      'exclude' => 0,
8938
-      'id' => 'workunitid',
8939
-      'table' => 'result',
8940
-      'field' => 'workunitid',
8941
-      'relationship' => 'none',
8927
+        ),
8928
+        'empty' => '',
8929
+        'hide_empty' => 0,
8930
+        'empty_zero' => 0,
8931
+        'set_precision' => FALSE,
8932
+        'precision' => 0,
8933
+        'decimal' => '.',
8934
+        'separator' => '',
8935
+        'prefix' => '',
8936
+        'suffix' => '',
8937
+        'exclude' => 0,
8938
+        'id' => 'workunitid',
8939
+        'table' => 'result',
8940
+        'field' => 'workunitid',
8941
+        'relationship' => 'none',
8942 8942
     ),
8943 8943
     'create_time' => array(
8944
-      'label' => 'Created',
8945
-      'alter' => array(
8944
+        'label' => 'Created',
8945
+        'alter' => array(
8946 8946
         'alter_text' => 0,
8947 8947
         'text' => '',
8948 8948
         'make_link' => 0,
@@ -8961,22 +8961,22 @@  discard block
 block discarded – undo
8961 8961
         'ellipsis' => 1,
8962 8962
         'html' => 0,
8963 8963
         'strip_tags' => 0,
8964
-      ),
8965
-      'empty' => '',
8966
-      'hide_empty' => 0,
8967
-      'empty_zero' => 0,
8968
-      'hide_alter_empty' => 1,
8969
-      'date_format' => 'custom',
8970
-      'custom_date_format' => 'j M Y G:i:s T',
8971
-      'exclude' => 1,
8972
-      'id' => 'create_time',
8973
-      'table' => 'result',
8974
-      'field' => 'create_time',
8975
-      'relationship' => 'none',
8964
+        ),
8965
+        'empty' => '',
8966
+        'hide_empty' => 0,
8967
+        'empty_zero' => 0,
8968
+        'hide_alter_empty' => 1,
8969
+        'date_format' => 'custom',
8970
+        'custom_date_format' => 'j M Y G:i:s T',
8971
+        'exclude' => 1,
8972
+        'id' => 'create_time',
8973
+        'table' => 'result',
8974
+        'field' => 'create_time',
8975
+        'relationship' => 'none',
8976 8976
     ),
8977 8977
     'sent_time' => array(
8978
-      'label' => 'Sent',
8979
-      'alter' => array(
8978
+        'label' => 'Sent',
8979
+        'alter' => array(
8980 8980
         'alter_text' => 0,
8981 8981
         'text' => '',
8982 8982
         'make_link' => 0,
@@ -8995,22 +8995,22 @@  discard block
 block discarded – undo
8995 8995
         'ellipsis' => 1,
8996 8996
         'html' => 0,
8997 8997
         'strip_tags' => 0,
8998
-      ),
8999
-      'empty' => '',
9000
-      'hide_empty' => 0,
9001
-      'empty_zero' => 0,
9002
-      'hide_alter_empty' => 1,
9003
-      'date_format' => 'custom',
9004
-      'custom_date_format' => 'j M Y G:i:s T',
9005
-      'exclude' => 1,
9006
-      'id' => 'sent_time',
9007
-      'table' => 'result',
9008
-      'field' => 'sent_time',
9009
-      'relationship' => 'none',
8998
+        ),
8999
+        'empty' => '',
9000
+        'hide_empty' => 0,
9001
+        'empty_zero' => 0,
9002
+        'hide_alter_empty' => 1,
9003
+        'date_format' => 'custom',
9004
+        'custom_date_format' => 'j M Y G:i:s T',
9005
+        'exclude' => 1,
9006
+        'id' => 'sent_time',
9007
+        'table' => 'result',
9008
+        'field' => 'sent_time',
9009
+        'relationship' => 'none',
9010 9010
     ),
9011 9011
     'report_deadline' => array(
9012
-      'label' => 'Report deadline',
9013
-      'alter' => array(
9012
+        'label' => 'Report deadline',
9013
+        'alter' => array(
9014 9014
         'alter_text' => 0,
9015 9015
         'text' => '',
9016 9016
         'make_link' => 0,
@@ -9029,22 +9029,22 @@  discard block
 block discarded – undo
9029 9029
         'ellipsis' => 1,
9030 9030
         'html' => 0,
9031 9031
         'strip_tags' => 0,
9032
-      ),
9033
-      'empty' => '',
9034
-      'hide_empty' => 0,
9035
-      'empty_zero' => 0,
9036
-      'hide_alter_empty' => 1,
9037
-      'date_format' => 'custom',
9038
-      'custom_date_format' => 'j M Y G:i:s T',
9039
-      'exclude' => 1,
9040
-      'id' => 'report_deadline',
9041
-      'table' => 'result',
9042
-      'field' => 'report_deadline',
9043
-      'relationship' => 'none',
9032
+        ),
9033
+        'empty' => '',
9034
+        'hide_empty' => 0,
9035
+        'empty_zero' => 0,
9036
+        'hide_alter_empty' => 1,
9037
+        'date_format' => 'custom',
9038
+        'custom_date_format' => 'j M Y G:i:s T',
9039
+        'exclude' => 1,
9040
+        'id' => 'report_deadline',
9041
+        'table' => 'result',
9042
+        'field' => 'report_deadline',
9043
+        'relationship' => 'none',
9044 9044
     ),
9045 9045
     'received_time' => array(
9046
-      'label' => 'Received',
9047
-      'alter' => array(
9046
+        'label' => 'Received',
9047
+        'alter' => array(
9048 9048
         'alter_text' => 0,
9049 9049
         'text' => '',
9050 9050
         'make_link' => 0,
@@ -9063,22 +9063,22 @@  discard block
 block discarded – undo
9063 9063
         'ellipsis' => 1,
9064 9064
         'html' => 0,
9065 9065
         'strip_tags' => 0,
9066
-      ),
9067
-      'empty' => '',
9068
-      'hide_empty' => 0,
9069
-      'empty_zero' => 0,
9070
-      'hide_alter_empty' => 1,
9071
-      'date_format' => 'custom',
9072
-      'custom_date_format' => 'j M Y G:i:s T',
9073
-      'exclude' => 1,
9074
-      'id' => 'received_time',
9075
-      'table' => 'result',
9076
-      'field' => 'received_time',
9077
-      'relationship' => 'none',
9066
+        ),
9067
+        'empty' => '',
9068
+        'hide_empty' => 0,
9069
+        'empty_zero' => 0,
9070
+        'hide_alter_empty' => 1,
9071
+        'date_format' => 'custom',
9072
+        'custom_date_format' => 'j M Y G:i:s T',
9073
+        'exclude' => 1,
9074
+        'id' => 'received_time',
9075
+        'table' => 'result',
9076
+        'field' => 'received_time',
9077
+        'relationship' => 'none',
9078 9078
     ),
9079 9079
     'phpcode' => array(
9080
-      'label' => 'Created',
9081
-      'alter' => array(
9080
+        'label' => 'Created',
9081
+        'alter' => array(
9082 9082
         'alter_text' => 0,
9083 9083
         'text' => '',
9084 9084
         'make_link' => 0,
@@ -9097,23 +9097,23 @@  discard block
 block discarded – undo
9097 9097
         'ellipsis' => 1,
9098 9098
         'html' => 0,
9099 9099
         'strip_tags' => 0,
9100
-      ),
9101
-      'empty' => '',
9102
-      'hide_empty' => 0,
9103
-      'empty_zero' => 0,
9104
-      'hide_alter_empty' => 1,
9105
-      'value' => '<?php
9100
+        ),
9101
+        'empty' => '',
9102
+        'hide_empty' => 0,
9103
+        'empty_zero' => 0,
9104
+        'hide_alter_empty' => 1,
9105
+        'value' => '<?php
9106 9106
 echo date(\'j M Y G:i:s T\', $data->result_create_time);
9107 9107
 ?>',
9108
-      'exclude' => 0,
9109
-      'id' => 'phpcode',
9110
-      'table' => 'customfield',
9111
-      'field' => 'phpcode',
9112
-      'relationship' => 'none',
9108
+        'exclude' => 0,
9109
+        'id' => 'phpcode',
9110
+        'table' => 'customfield',
9111
+        'field' => 'phpcode',
9112
+        'relationship' => 'none',
9113 9113
     ),
9114 9114
     'phpcode_1' => array(
9115
-      'label' => 'Sent',
9116
-      'alter' => array(
9115
+        'label' => 'Sent',
9116
+        'alter' => array(
9117 9117
         'alter_text' => 0,
9118 9118
         'text' => '',
9119 9119
         'make_link' => 0,
@@ -9132,24 +9132,24 @@  discard block
 block discarded – undo
9132 9132
         'ellipsis' => 1,
9133 9133
         'html' => 0,
9134 9134
         'strip_tags' => 0,
9135
-      ),
9136
-      'empty' => '',
9137
-      'hide_empty' => 0,
9138
-      'empty_zero' => 0,
9139
-      'hide_alter_empty' => 1,
9140
-      'value' => '<?php
9135
+        ),
9136
+        'empty' => '',
9137
+        'hide_empty' => 0,
9138
+        'empty_zero' => 0,
9139
+        'hide_alter_empty' => 1,
9140
+        'value' => '<?php
9141 9141
 echo date(\'j M Y G:i:s T\', $data->result_sent_time);
9142 9142
 ?>
9143 9143
 ',
9144
-      'exclude' => 0,
9145
-      'id' => 'phpcode_1',
9146
-      'table' => 'customfield',
9147
-      'field' => 'phpcode',
9148
-      'relationship' => 'none',
9144
+        'exclude' => 0,
9145
+        'id' => 'phpcode_1',
9146
+        'table' => 'customfield',
9147
+        'field' => 'phpcode',
9148
+        'relationship' => 'none',
9149 9149
     ),
9150 9150
     'phpcode_8' => array(
9151
-      'label' => 'Report deadline',
9152
-      'alter' => array(
9151
+        'label' => 'Report deadline',
9152
+        'alter' => array(
9153 9153
         'alter_text' => 0,
9154 9154
         'text' => '',
9155 9155
         'make_link' => 0,
@@ -9168,24 +9168,24 @@  discard block
 block discarded – undo
9168 9168
         'ellipsis' => 1,
9169 9169
         'html' => 0,
9170 9170
         'strip_tags' => 0,
9171
-      ),
9172
-      'empty' => '',
9173
-      'hide_empty' => 0,
9174
-      'empty_zero' => 0,
9175
-      'hide_alter_empty' => 1,
9176
-      'value' => '<?php
9171
+        ),
9172
+        'empty' => '',
9173
+        'hide_empty' => 0,
9174
+        'empty_zero' => 0,
9175
+        'hide_alter_empty' => 1,
9176
+        'value' => '<?php
9177 9177
 echo date(\'j M Y G:i:s T\', $data->result_report_deadline);
9178 9178
 ?>
9179 9179
 ',
9180
-      'exclude' => 0,
9181
-      'id' => 'phpcode_8',
9182
-      'table' => 'customfield',
9183
-      'field' => 'phpcode',
9184
-      'relationship' => 'none',
9180
+        'exclude' => 0,
9181
+        'id' => 'phpcode_8',
9182
+        'table' => 'customfield',
9183
+        'field' => 'phpcode',
9184
+        'relationship' => 'none',
9185 9185
     ),
9186 9186
     'phpcode_9' => array(
9187
-      'label' => 'Received',
9188
-      'alter' => array(
9187
+        'label' => 'Received',
9188
+        'alter' => array(
9189 9189
         'alter_text' => 0,
9190 9190
         'text' => '',
9191 9191
         'make_link' => 0,
@@ -9204,24 +9204,24 @@  discard block
 block discarded – undo
9204 9204
         'ellipsis' => 1,
9205 9205
         'html' => 0,
9206 9206
         'strip_tags' => 0,
9207
-      ),
9208
-      'empty' => '',
9209
-      'hide_empty' => 0,
9210
-      'empty_zero' => 0,
9211
-      'hide_alter_empty' => 1,
9212
-      'value' => '<?php
9207
+        ),
9208
+        'empty' => '',
9209
+        'hide_empty' => 0,
9210
+        'empty_zero' => 0,
9211
+        'hide_alter_empty' => 1,
9212
+        'value' => '<?php
9213 9213
 echo date(\'j M Y G:i:s T\', $data->result_received_time);
9214 9214
 ?>
9215 9215
 ',
9216
-      'exclude' => 0,
9217
-      'id' => 'phpcode_9',
9218
-      'table' => 'customfield',
9219
-      'field' => 'phpcode',
9220
-      'relationship' => 'none',
9216
+        'exclude' => 0,
9217
+        'id' => 'phpcode_9',
9218
+        'table' => 'customfield',
9219
+        'field' => 'phpcode',
9220
+        'relationship' => 'none',
9221 9221
     ),
9222 9222
     'server_state' => array(
9223
-      'label' => 'Server state',
9224
-      'alter' => array(
9223
+        'label' => 'Server state',
9224
+        'alter' => array(
9225 9225
         'alter_text' => 0,
9226 9226
         'text' => '',
9227 9227
         'make_link' => 0,
@@ -9240,29 +9240,29 @@  discard block
 block discarded – undo
9240 9240
         'ellipsis' => 1,
9241 9241
         'html' => 0,
9242 9242
         'strip_tags' => 0,
9243
-      ),
9244
-      'empty' => '',
9245
-      'hide_empty' => 0,
9246
-      'empty_zero' => 0,
9247
-      'hide_alter_empty' => 1,
9248
-      'set_precision' => FALSE,
9249
-      'precision' => 0,
9250
-      'decimal' => '.',
9251
-      'separator' => '',
9252
-      'format_plural' => 0,
9253
-      'format_plural_singular' => '1',
9254
-      'format_plural_plural' => '@count',
9255
-      'prefix' => '',
9256
-      'suffix' => '',
9257
-      'exclude' => 1,
9258
-      'id' => 'server_state',
9259
-      'table' => 'result',
9260
-      'field' => 'server_state',
9261
-      'relationship' => 'none',
9243
+        ),
9244
+        'empty' => '',
9245
+        'hide_empty' => 0,
9246
+        'empty_zero' => 0,
9247
+        'hide_alter_empty' => 1,
9248
+        'set_precision' => FALSE,
9249
+        'precision' => 0,
9250
+        'decimal' => '.',
9251
+        'separator' => '',
9252
+        'format_plural' => 0,
9253
+        'format_plural_singular' => '1',
9254
+        'format_plural_plural' => '@count',
9255
+        'prefix' => '',
9256
+        'suffix' => '',
9257
+        'exclude' => 1,
9258
+        'id' => 'server_state',
9259
+        'table' => 'result',
9260
+        'field' => 'server_state',
9261
+        'relationship' => 'none',
9262 9262
     ),
9263 9263
     'phpcode_3' => array(
9264
-      'label' => 'Server state',
9265
-      'alter' => array(
9264
+        'label' => 'Server state',
9265
+        'alter' => array(
9266 9266
         'alter_text' => 0,
9267 9267
         'text' => '',
9268 9268
         'make_link' => 0,
@@ -9281,26 +9281,26 @@  discard block
 block discarded – undo
9281 9281
         'ellipsis' => 1,
9282 9282
         'html' => 0,
9283 9283
         'strip_tags' => 0,
9284
-      ),
9285
-      'empty' => '',
9286
-      'hide_empty' => 0,
9287
-      'empty_zero' => 0,
9288
-      'hide_alter_empty' => 1,
9289
-      'value' => '<?php
9284
+        ),
9285
+        'empty' => '',
9286
+        'hide_empty' => 0,
9287
+        'empty_zero' => 0,
9288
+        'hide_alter_empty' => 1,
9289
+        'value' => '<?php
9290 9290
   require_boinc(array(\'result\', \'util\'));
9291 9291
   $result = new stdClass();
9292 9292
   $result->server_state = $data->result_server_state;
9293 9293
   return result_server_state_string($result);
9294 9294
 ?>',
9295
-      'exclude' => 0,
9296
-      'id' => 'phpcode_3',
9297
-      'table' => 'customfield',
9298
-      'field' => 'phpcode',
9299
-      'relationship' => 'none',
9295
+        'exclude' => 0,
9296
+        'id' => 'phpcode_3',
9297
+        'table' => 'customfield',
9298
+        'field' => 'phpcode',
9299
+        'relationship' => 'none',
9300 9300
     ),
9301 9301
     'outcome' => array(
9302
-      'label' => 'Outcome',
9303
-      'alter' => array(
9302
+        'label' => 'Outcome',
9303
+        'alter' => array(
9304 9304
         'alter_text' => 0,
9305 9305
         'text' => '',
9306 9306
         'make_link' => 0,
@@ -9319,29 +9319,29 @@  discard block
 block discarded – undo
9319 9319
         'ellipsis' => 1,
9320 9320
         'html' => 0,
9321 9321
         'strip_tags' => 0,
9322
-      ),
9323
-      'empty' => '',
9324
-      'hide_empty' => 0,
9325
-      'empty_zero' => 0,
9326
-      'hide_alter_empty' => 1,
9327
-      'set_precision' => FALSE,
9328
-      'precision' => 0,
9329
-      'decimal' => '.',
9330
-      'separator' => '',
9331
-      'format_plural' => 0,
9332
-      'format_plural_singular' => '1',
9333
-      'format_plural_plural' => '@count',
9334
-      'prefix' => '',
9335
-      'suffix' => '',
9336
-      'exclude' => 1,
9337
-      'id' => 'outcome',
9338
-      'table' => 'result',
9339
-      'field' => 'outcome',
9340
-      'relationship' => 'none',
9322
+        ),
9323
+        'empty' => '',
9324
+        'hide_empty' => 0,
9325
+        'empty_zero' => 0,
9326
+        'hide_alter_empty' => 1,
9327
+        'set_precision' => FALSE,
9328
+        'precision' => 0,
9329
+        'decimal' => '.',
9330
+        'separator' => '',
9331
+        'format_plural' => 0,
9332
+        'format_plural_singular' => '1',
9333
+        'format_plural_plural' => '@count',
9334
+        'prefix' => '',
9335
+        'suffix' => '',
9336
+        'exclude' => 1,
9337
+        'id' => 'outcome',
9338
+        'table' => 'result',
9339
+        'field' => 'outcome',
9340
+        'relationship' => 'none',
9341 9341
     ),
9342 9342
     'phpcode_4' => array(
9343
-      'label' => 'Outcome',
9344
-      'alter' => array(
9343
+        'label' => 'Outcome',
9344
+        'alter' => array(
9345 9345
         'alter_text' => 0,
9346 9346
         'text' => '',
9347 9347
         'make_link' => 0,
@@ -9360,26 +9360,26 @@  discard block
 block discarded – undo
9360 9360
         'ellipsis' => 1,
9361 9361
         'html' => 0,
9362 9362
         'strip_tags' => 0,
9363
-      ),
9364
-      'empty' => '',
9365
-      'hide_empty' => 0,
9366
-      'empty_zero' => 0,
9367
-      'hide_alter_empty' => 1,
9368
-      'value' => '<?php
9363
+        ),
9364
+        'empty' => '',
9365
+        'hide_empty' => 0,
9366
+        'empty_zero' => 0,
9367
+        'hide_alter_empty' => 1,
9368
+        'value' => '<?php
9369 9369
   require_boinc(array(\'result\', \'util\'));
9370 9370
   $result = new stdClass();
9371 9371
   $result->outcome = $data->result_outcome;
9372 9372
   return result_outcome_string($result);
9373 9373
 ?>',
9374
-      'exclude' => 0,
9375
-      'id' => 'phpcode_4',
9376
-      'table' => 'customfield',
9377
-      'field' => 'phpcode',
9378
-      'relationship' => 'none',
9374
+        'exclude' => 0,
9375
+        'id' => 'phpcode_4',
9376
+        'table' => 'customfield',
9377
+        'field' => 'phpcode',
9378
+        'relationship' => 'none',
9379 9379
     ),
9380 9380
     'client_state' => array(
9381
-      'label' => 'Client state',
9382
-      'alter' => array(
9381
+        'label' => 'Client state',
9382
+        'alter' => array(
9383 9383
         'alter_text' => 0,
9384 9384
         'text' => '',
9385 9385
         'make_link' => 0,
@@ -9398,29 +9398,29 @@  discard block
 block discarded – undo
9398 9398
         'ellipsis' => 1,
9399 9399
         'html' => 0,
9400 9400
         'strip_tags' => 0,
9401
-      ),
9402
-      'empty' => '',
9403
-      'hide_empty' => 0,
9404
-      'empty_zero' => 0,
9405
-      'hide_alter_empty' => 1,
9406
-      'set_precision' => FALSE,
9407
-      'precision' => 0,
9408
-      'decimal' => '.',
9409
-      'separator' => '',
9410
-      'format_plural' => 0,
9411
-      'format_plural_singular' => '1',
9412
-      'format_plural_plural' => '@count',
9413
-      'prefix' => '',
9414
-      'suffix' => '',
9415
-      'exclude' => 1,
9416
-      'id' => 'client_state',
9417
-      'table' => 'result',
9418
-      'field' => 'client_state',
9419
-      'relationship' => 'none',
9401
+        ),
9402
+        'empty' => '',
9403
+        'hide_empty' => 0,
9404
+        'empty_zero' => 0,
9405
+        'hide_alter_empty' => 1,
9406
+        'set_precision' => FALSE,
9407
+        'precision' => 0,
9408
+        'decimal' => '.',
9409
+        'separator' => '',
9410
+        'format_plural' => 0,
9411
+        'format_plural_singular' => '1',
9412
+        'format_plural_plural' => '@count',
9413
+        'prefix' => '',
9414
+        'suffix' => '',
9415
+        'exclude' => 1,
9416
+        'id' => 'client_state',
9417
+        'table' => 'result',
9418
+        'field' => 'client_state',
9419
+        'relationship' => 'none',
9420 9420
     ),
9421 9421
     'phpcode_5' => array(
9422
-      'label' => 'Client state',
9423
-      'alter' => array(
9422
+        'label' => 'Client state',
9423
+        'alter' => array(
9424 9424
         'alter_text' => 0,
9425 9425
         'text' => '',
9426 9426
         'make_link' => 0,
@@ -9439,26 +9439,26 @@  discard block
 block discarded – undo
9439 9439
         'ellipsis' => 1,
9440 9440
         'html' => 0,
9441 9441
         'strip_tags' => 0,
9442
-      ),
9443
-      'empty' => '',
9444
-      'hide_empty' => 0,
9445
-      'empty_zero' => 0,
9446
-      'hide_alter_empty' => 1,
9447
-      'value' => '<?php
9442
+        ),
9443
+        'empty' => '',
9444
+        'hide_empty' => 0,
9445
+        'empty_zero' => 0,
9446
+        'hide_alter_empty' => 1,
9447
+        'value' => '<?php
9448 9448
   require_boinc(array(\'result\', \'util\'));
9449 9449
   $result = new stdClass();
9450 9450
   $result->client_state = $data->result_client_state;
9451 9451
   return result_client_state_string($result);
9452 9452
 ?>',
9453
-      'exclude' => 0,
9454
-      'id' => 'phpcode_5',
9455
-      'table' => 'customfield',
9456
-      'field' => 'phpcode',
9457
-      'relationship' => 'none',
9453
+        'exclude' => 0,
9454
+        'id' => 'phpcode_5',
9455
+        'table' => 'customfield',
9456
+        'field' => 'phpcode',
9457
+        'relationship' => 'none',
9458 9458
     ),
9459 9459
     'exit_status' => array(
9460
-      'label' => 'Exit status',
9461
-      'alter' => array(
9460
+        'label' => 'Exit status',
9461
+        'alter' => array(
9462 9462
         'alter_text' => 0,
9463 9463
         'text' => '',
9464 9464
         'make_link' => 0,
@@ -9477,29 +9477,29 @@  discard block
 block discarded – undo
9477 9477
         'ellipsis' => 1,
9478 9478
         'html' => 0,
9479 9479
         'strip_tags' => 0,
9480
-      ),
9481
-      'empty' => '',
9482
-      'hide_empty' => 0,
9483
-      'empty_zero' => 0,
9484
-      'hide_alter_empty' => 1,
9485
-      'set_precision' => FALSE,
9486
-      'precision' => 0,
9487
-      'decimal' => '.',
9488
-      'separator' => '',
9489
-      'format_plural' => 0,
9490
-      'format_plural_singular' => '1',
9491
-      'format_plural_plural' => '@count',
9492
-      'prefix' => '',
9493
-      'suffix' => '',
9494
-      'exclude' => 1,
9495
-      'id' => 'exit_status',
9496
-      'table' => 'result',
9497
-      'field' => 'exit_status',
9498
-      'relationship' => 'none',
9480
+        ),
9481
+        'empty' => '',
9482
+        'hide_empty' => 0,
9483
+        'empty_zero' => 0,
9484
+        'hide_alter_empty' => 1,
9485
+        'set_precision' => FALSE,
9486
+        'precision' => 0,
9487
+        'decimal' => '.',
9488
+        'separator' => '',
9489
+        'format_plural' => 0,
9490
+        'format_plural_singular' => '1',
9491
+        'format_plural_plural' => '@count',
9492
+        'prefix' => '',
9493
+        'suffix' => '',
9494
+        'exclude' => 1,
9495
+        'id' => 'exit_status',
9496
+        'table' => 'result',
9497
+        'field' => 'exit_status',
9498
+        'relationship' => 'none',
9499 9499
     ),
9500 9500
     'phpcode_6' => array(
9501
-      'label' => 'Exit status',
9502
-      'alter' => array(
9501
+        'label' => 'Exit status',
9502
+        'alter' => array(
9503 9503
         'alter_text' => 0,
9504 9504
         'text' => '',
9505 9505
         'make_link' => 0,
@@ -9518,24 +9518,24 @@  discard block
 block discarded – undo
9518 9518
         'ellipsis' => 1,
9519 9519
         'html' => 0,
9520 9520
         'strip_tags' => 0,
9521
-      ),
9522
-      'empty' => '',
9523
-      'hide_empty' => 0,
9524
-      'empty_zero' => 0,
9525
-      'hide_alter_empty' => 1,
9526
-      'value' => '<?php
9521
+        ),
9522
+        'empty' => '',
9523
+        'hide_empty' => 0,
9524
+        'empty_zero' => 0,
9525
+        'hide_alter_empty' => 1,
9526
+        'value' => '<?php
9527 9527
   require_boinc(array(\'result\', \'util\'));
9528 9528
   return exit_status_string($data->result_exit_status);
9529 9529
 ?>',
9530
-      'exclude' => 0,
9531
-      'id' => 'phpcode_6',
9532
-      'table' => 'customfield',
9533
-      'field' => 'phpcode',
9534
-      'relationship' => 'none',
9530
+        'exclude' => 0,
9531
+        'id' => 'phpcode_6',
9532
+        'table' => 'customfield',
9533
+        'field' => 'phpcode',
9534
+        'relationship' => 'none',
9535 9535
     ),
9536 9536
     'hostid' => array(
9537
-      'label' => 'Computer',
9538
-      'alter' => array(
9537
+        'label' => 'Computer',
9538
+        'alter' => array(
9539 9539
         'alter_text' => 0,
9540 9540
         'text' => '',
9541 9541
         'make_link' => 1,
@@ -9552,25 +9552,25 @@  discard block
 block discarded – undo
9552 9552
         'ellipsis' => 1,
9553 9553
         'html' => 0,
9554 9554
         'strip_tags' => 0,
9555
-      ),
9556
-      'empty' => '',
9557
-      'hide_empty' => 0,
9558
-      'empty_zero' => 0,
9559
-      'set_precision' => FALSE,
9560
-      'precision' => 0,
9561
-      'decimal' => '.',
9562
-      'separator' => '',
9563
-      'prefix' => '',
9564
-      'suffix' => '',
9565
-      'exclude' => 0,
9566
-      'id' => 'hostid',
9567
-      'table' => 'result',
9568
-      'field' => 'hostid',
9569
-      'relationship' => 'none',
9555
+        ),
9556
+        'empty' => '',
9557
+        'hide_empty' => 0,
9558
+        'empty_zero' => 0,
9559
+        'set_precision' => FALSE,
9560
+        'precision' => 0,
9561
+        'decimal' => '.',
9562
+        'separator' => '',
9563
+        'prefix' => '',
9564
+        'suffix' => '',
9565
+        'exclude' => 0,
9566
+        'id' => 'hostid',
9567
+        'table' => 'result',
9568
+        'field' => 'hostid',
9569
+        'relationship' => 'none',
9570 9570
     ),
9571 9571
     'elapsed_time' => array(
9572
-      'label' => 'Run time (sec)',
9573
-      'alter' => array(
9572
+        'label' => 'Run time (sec)',
9573
+        'alter' => array(
9574 9574
         'alter_text' => 0,
9575 9575
         'text' => '',
9576 9576
         'make_link' => 0,
@@ -9587,25 +9587,25 @@  discard block
 block discarded – undo
9587 9587
         'ellipsis' => 1,
9588 9588
         'html' => 0,
9589 9589
         'strip_tags' => 0,
9590
-      ),
9591
-      'empty' => '',
9592
-      'hide_empty' => 0,
9593
-      'empty_zero' => 0,
9594
-      'set_precision' => 1,
9595
-      'precision' => '2',
9596
-      'decimal' => '.',
9597
-      'separator' => ',',
9598
-      'prefix' => '',
9599
-      'suffix' => '',
9600
-      'exclude' => 0,
9601
-      'id' => 'elapsed_time',
9602
-      'table' => 'result',
9603
-      'field' => 'elapsed_time',
9604
-      'relationship' => 'none',
9590
+        ),
9591
+        'empty' => '',
9592
+        'hide_empty' => 0,
9593
+        'empty_zero' => 0,
9594
+        'set_precision' => 1,
9595
+        'precision' => '2',
9596
+        'decimal' => '.',
9597
+        'separator' => ',',
9598
+        'prefix' => '',
9599
+        'suffix' => '',
9600
+        'exclude' => 0,
9601
+        'id' => 'elapsed_time',
9602
+        'table' => 'result',
9603
+        'field' => 'elapsed_time',
9604
+        'relationship' => 'none',
9605 9605
     ),
9606 9606
     'cpu_time' => array(
9607
-      'label' => 'CPU time (sec)',
9608
-      'alter' => array(
9607
+        'label' => 'CPU time (sec)',
9608
+        'alter' => array(
9609 9609
         'alter_text' => 0,
9610 9610
         'text' => '',
9611 9611
         'make_link' => 0,
@@ -9622,25 +9622,25 @@  discard block
 block discarded – undo
9622 9622
         'ellipsis' => 1,
9623 9623
         'html' => 0,
9624 9624
         'strip_tags' => 0,
9625
-      ),
9626
-      'empty' => '',
9627
-      'hide_empty' => 0,
9628
-      'empty_zero' => 0,
9629
-      'set_precision' => 1,
9630
-      'precision' => '2',
9631
-      'decimal' => '.',
9632
-      'separator' => ',',
9633
-      'prefix' => '',
9634
-      'suffix' => '',
9635
-      'exclude' => 0,
9636
-      'id' => 'cpu_time',
9637
-      'table' => 'result',
9638
-      'field' => 'cpu_time',
9639
-      'relationship' => 'none',
9625
+        ),
9626
+        'empty' => '',
9627
+        'hide_empty' => 0,
9628
+        'empty_zero' => 0,
9629
+        'set_precision' => 1,
9630
+        'precision' => '2',
9631
+        'decimal' => '.',
9632
+        'separator' => ',',
9633
+        'prefix' => '',
9634
+        'suffix' => '',
9635
+        'exclude' => 0,
9636
+        'id' => 'cpu_time',
9637
+        'table' => 'result',
9638
+        'field' => 'cpu_time',
9639
+        'relationship' => 'none',
9640 9640
     ),
9641 9641
     'peak_working_set_size' => array(
9642
-      'label' => 'Peak working set size (MB)',
9643
-      'alter' => array(
9642
+        'label' => 'Peak working set size (MB)',
9643
+        'alter' => array(
9644 9644
         'alter_text' => 0,
9645 9645
         'text' => '',
9646 9646
         'make_link' => 0,
@@ -9659,29 +9659,29 @@  discard block
 block discarded – undo
9659 9659
         'ellipsis' => 1,
9660 9660
         'html' => 0,
9661 9661
         'strip_tags' => 0,
9662
-      ),
9663
-      'empty' => '',
9664
-      'hide_empty' => 0,
9665
-      'empty_zero' => 0,
9666
-      'hide_alter_empty' => 1,
9667
-      'set_precision' => FALSE,
9668
-      'precision' => 0,
9669
-      'decimal' => '.',
9670
-      'separator' => ',',
9671
-      'format_plural' => 0,
9672
-      'format_plural_singular' => '1',
9673
-      'format_plural_plural' => '@count',
9674
-      'prefix' => '',
9675
-      'suffix' => '',
9676
-      'exclude' => 0,
9677
-      'id' => 'peak_working_set_size',
9678
-      'table' => 'result',
9679
-      'field' => 'peak_working_set_size',
9680
-      'relationship' => 'none',
9662
+        ),
9663
+        'empty' => '',
9664
+        'hide_empty' => 0,
9665
+        'empty_zero' => 0,
9666
+        'hide_alter_empty' => 1,
9667
+        'set_precision' => FALSE,
9668
+        'precision' => 0,
9669
+        'decimal' => '.',
9670
+        'separator' => ',',
9671
+        'format_plural' => 0,
9672
+        'format_plural_singular' => '1',
9673
+        'format_plural_plural' => '@count',
9674
+        'prefix' => '',
9675
+        'suffix' => '',
9676
+        'exclude' => 0,
9677
+        'id' => 'peak_working_set_size',
9678
+        'table' => 'result',
9679
+        'field' => 'peak_working_set_size',
9680
+        'relationship' => 'none',
9681 9681
     ),
9682 9682
     'peak_swap_size' => array(
9683
-      'label' => 'Peak swap size (MB)',
9684
-      'alter' => array(
9683
+        'label' => 'Peak swap size (MB)',
9684
+        'alter' => array(
9685 9685
         'alter_text' => 0,
9686 9686
         'text' => '',
9687 9687
         'make_link' => 0,
@@ -9700,29 +9700,29 @@  discard block
 block discarded – undo
9700 9700
         'ellipsis' => 1,
9701 9701
         'html' => 0,
9702 9702
         'strip_tags' => 0,
9703
-      ),
9704
-      'empty' => '',
9705
-      'hide_empty' => 0,
9706
-      'empty_zero' => 0,
9707
-      'hide_alter_empty' => 1,
9708
-      'set_precision' => FALSE,
9709
-      'precision' => 0,
9710
-      'decimal' => '.',
9711
-      'separator' => ',',
9712
-      'format_plural' => 0,
9713
-      'format_plural_singular' => '1',
9714
-      'format_plural_plural' => '@count',
9715
-      'prefix' => '',
9716
-      'suffix' => '',
9717
-      'exclude' => 0,
9718
-      'id' => 'peak_swap_size',
9719
-      'table' => 'result',
9720
-      'field' => 'peak_swap_size',
9721
-      'relationship' => 'none',
9703
+        ),
9704
+        'empty' => '',
9705
+        'hide_empty' => 0,
9706
+        'empty_zero' => 0,
9707
+        'hide_alter_empty' => 1,
9708
+        'set_precision' => FALSE,
9709
+        'precision' => 0,
9710
+        'decimal' => '.',
9711
+        'separator' => ',',
9712
+        'format_plural' => 0,
9713
+        'format_plural_singular' => '1',
9714
+        'format_plural_plural' => '@count',
9715
+        'prefix' => '',
9716
+        'suffix' => '',
9717
+        'exclude' => 0,
9718
+        'id' => 'peak_swap_size',
9719
+        'table' => 'result',
9720
+        'field' => 'peak_swap_size',
9721
+        'relationship' => 'none',
9722 9722
     ),
9723 9723
     'peak_disk_usage' => array(
9724
-      'label' => 'Peak disk usage (MB)',
9725
-      'alter' => array(
9724
+        'label' => 'Peak disk usage (MB)',
9725
+        'alter' => array(
9726 9726
         'alter_text' => 0,
9727 9727
         'text' => '',
9728 9728
         'make_link' => 0,
@@ -9741,29 +9741,29 @@  discard block
 block discarded – undo
9741 9741
         'ellipsis' => 1,
9742 9742
         'html' => 0,
9743 9743
         'strip_tags' => 0,
9744
-      ),
9745
-      'empty' => '',
9746
-      'hide_empty' => 0,
9747
-      'empty_zero' => 0,
9748
-      'hide_alter_empty' => 1,
9749
-      'set_precision' => FALSE,
9750
-      'precision' => 0,
9751
-      'decimal' => '.',
9752
-      'separator' => ',',
9753
-      'format_plural' => 0,
9754
-      'format_plural_singular' => '1',
9755
-      'format_plural_plural' => '@count',
9756
-      'prefix' => '',
9757
-      'suffix' => '',
9758
-      'exclude' => 0,
9759
-      'id' => 'peak_disk_usage',
9760
-      'table' => 'result',
9761
-      'field' => 'peak_disk_usage',
9762
-      'relationship' => 'none',
9744
+        ),
9745
+        'empty' => '',
9746
+        'hide_empty' => 0,
9747
+        'empty_zero' => 0,
9748
+        'hide_alter_empty' => 1,
9749
+        'set_precision' => FALSE,
9750
+        'precision' => 0,
9751
+        'decimal' => '.',
9752
+        'separator' => ',',
9753
+        'format_plural' => 0,
9754
+        'format_plural_singular' => '1',
9755
+        'format_plural_plural' => '@count',
9756
+        'prefix' => '',
9757
+        'suffix' => '',
9758
+        'exclude' => 0,
9759
+        'id' => 'peak_disk_usage',
9760
+        'table' => 'result',
9761
+        'field' => 'peak_disk_usage',
9762
+        'relationship' => 'none',
9763 9763
     ),
9764 9764
     'validate_state' => array(
9765
-      'label' => 'Validation state',
9766
-      'alter' => array(
9765
+        'label' => 'Validation state',
9766
+        'alter' => array(
9767 9767
         'alter_text' => 0,
9768 9768
         'text' => '',
9769 9769
         'make_link' => 0,
@@ -9782,29 +9782,29 @@  discard block
 block discarded – undo
9782 9782
         'ellipsis' => 1,
9783 9783
         'html' => 0,
9784 9784
         'strip_tags' => 0,
9785
-      ),
9786
-      'empty' => '',
9787
-      'hide_empty' => 0,
9788
-      'empty_zero' => 0,
9789
-      'hide_alter_empty' => 1,
9790
-      'set_precision' => FALSE,
9791
-      'precision' => 0,
9792
-      'decimal' => '.',
9793
-      'separator' => '',
9794
-      'format_plural' => 0,
9795
-      'format_plural_singular' => '1',
9796
-      'format_plural_plural' => '@count',
9797
-      'prefix' => '',
9798
-      'suffix' => '',
9799
-      'exclude' => 1,
9800
-      'id' => 'validate_state',
9801
-      'table' => 'result',
9802
-      'field' => 'validate_state',
9803
-      'relationship' => 'none',
9785
+        ),
9786
+        'empty' => '',
9787
+        'hide_empty' => 0,
9788
+        'empty_zero' => 0,
9789
+        'hide_alter_empty' => 1,
9790
+        'set_precision' => FALSE,
9791
+        'precision' => 0,
9792
+        'decimal' => '.',
9793
+        'separator' => '',
9794
+        'format_plural' => 0,
9795
+        'format_plural_singular' => '1',
9796
+        'format_plural_plural' => '@count',
9797
+        'prefix' => '',
9798
+        'suffix' => '',
9799
+        'exclude' => 1,
9800
+        'id' => 'validate_state',
9801
+        'table' => 'result',
9802
+        'field' => 'validate_state',
9803
+        'relationship' => 'none',
9804 9804
     ),
9805 9805
     'phpcode_7' => array(
9806
-      'label' => 'Validation state',
9807
-      'alter' => array(
9806
+        'label' => 'Validation state',
9807
+        'alter' => array(
9808 9808
         'alter_text' => 0,
9809 9809
         'text' => '',
9810 9810
         'make_link' => 0,
@@ -9823,26 +9823,26 @@  discard block
 block discarded – undo
9823 9823
         'ellipsis' => 1,
9824 9824
         'html' => 0,
9825 9825
         'strip_tags' => 0,
9826
-      ),
9827
-      'empty' => '',
9828
-      'hide_empty' => 0,
9829
-      'empty_zero' => 0,
9830
-      'hide_alter_empty' => 1,
9831
-      'value' => '<?php
9826
+        ),
9827
+        'empty' => '',
9828
+        'hide_empty' => 0,
9829
+        'empty_zero' => 0,
9830
+        'hide_alter_empty' => 1,
9831
+        'value' => '<?php
9832 9832
   require_boinc(array(\'result\', \'util\'));
9833 9833
   $result = new stdClass();
9834 9834
   $result->validate_state = $data->result_validate_state;
9835 9835
   return validate_state_str($result);
9836 9836
 ?>',
9837
-      'exclude' => 0,
9838
-      'id' => 'phpcode_7',
9839
-      'table' => 'customfield',
9840
-      'field' => 'phpcode',
9841
-      'relationship' => 'none',
9837
+        'exclude' => 0,
9838
+        'id' => 'phpcode_7',
9839
+        'table' => 'customfield',
9840
+        'field' => 'phpcode',
9841
+        'relationship' => 'none',
9842 9842
     ),
9843 9843
     'granted_credit' => array(
9844
-      'label' => 'Granted credit',
9845
-      'alter' => array(
9844
+        'label' => 'Granted credit',
9845
+        'alter' => array(
9846 9846
         'alter_text' => 0,
9847 9847
         'text' => '',
9848 9848
         'make_link' => 0,
@@ -9861,29 +9861,29 @@  discard block
 block discarded – undo
9861 9861
         'ellipsis' => 1,
9862 9862
         'html' => 0,
9863 9863
         'strip_tags' => 0,
9864
-      ),
9865
-      'empty' => '',
9866
-      'hide_empty' => 0,
9867
-      'empty_zero' => 0,
9868
-      'hide_alter_empty' => 0,
9869
-      'set_precision' => 1,
9870
-      'precision' => '0',
9871
-      'decimal' => '.',
9872
-      'separator' => ',',
9873
-      'format_plural' => 0,
9874
-      'format_plural_singular' => '1',
9875
-      'format_plural_plural' => '@count',
9876
-      'prefix' => '',
9877
-      'suffix' => '',
9878
-      'exclude' => 0,
9879
-      'id' => 'granted_credit',
9880
-      'table' => 'result',
9881
-      'field' => 'granted_credit',
9882
-      'relationship' => 'none',
9864
+        ),
9865
+        'empty' => '',
9866
+        'hide_empty' => 0,
9867
+        'empty_zero' => 0,
9868
+        'hide_alter_empty' => 0,
9869
+        'set_precision' => 1,
9870
+        'precision' => '0',
9871
+        'decimal' => '.',
9872
+        'separator' => ',',
9873
+        'format_plural' => 0,
9874
+        'format_plural_singular' => '1',
9875
+        'format_plural_plural' => '@count',
9876
+        'prefix' => '',
9877
+        'suffix' => '',
9878
+        'exclude' => 0,
9879
+        'id' => 'granted_credit',
9880
+        'table' => 'result',
9881
+        'field' => 'granted_credit',
9882
+        'relationship' => 'none',
9883 9883
     ),
9884 9884
     'appid' => array(
9885
-      'label' => 'Application ID',
9886
-      'alter' => array(
9885
+        'label' => 'Application ID',
9886
+        'alter' => array(
9887 9887
         'alter_text' => 0,
9888 9888
         'text' => '',
9889 9889
         'make_link' => 0,
@@ -9902,29 +9902,29 @@  discard block
 block discarded – undo
9902 9902
         'ellipsis' => 1,
9903 9903
         'html' => 0,
9904 9904
         'strip_tags' => 0,
9905
-      ),
9906
-      'empty' => '',
9907
-      'hide_empty' => 0,
9908
-      'empty_zero' => 0,
9909
-      'hide_alter_empty' => 1,
9910
-      'set_precision' => FALSE,
9911
-      'precision' => 0,
9912
-      'decimal' => '.',
9913
-      'separator' => ',',
9914
-      'format_plural' => 0,
9915
-      'format_plural_singular' => '1',
9916
-      'format_plural_plural' => '@count',
9917
-      'prefix' => '',
9918
-      'suffix' => '',
9919
-      'exclude' => 1,
9920
-      'id' => 'appid',
9921
-      'table' => 'result',
9922
-      'field' => 'appid',
9923
-      'relationship' => 'none',
9905
+        ),
9906
+        'empty' => '',
9907
+        'hide_empty' => 0,
9908
+        'empty_zero' => 0,
9909
+        'hide_alter_empty' => 1,
9910
+        'set_precision' => FALSE,
9911
+        'precision' => 0,
9912
+        'decimal' => '.',
9913
+        'separator' => ',',
9914
+        'format_plural' => 0,
9915
+        'format_plural_singular' => '1',
9916
+        'format_plural_plural' => '@count',
9917
+        'prefix' => '',
9918
+        'suffix' => '',
9919
+        'exclude' => 1,
9920
+        'id' => 'appid',
9921
+        'table' => 'result',
9922
+        'field' => 'appid',
9923
+        'relationship' => 'none',
9924 9924
     ),
9925 9925
     'app_version_id' => array(
9926
-      'label' => 'Application version',
9927
-      'alter' => array(
9926
+        'label' => 'Application version',
9927
+        'alter' => array(
9928 9928
         'alter_text' => 0,
9929 9929
         'text' => '',
9930 9930
         'make_link' => 0,
@@ -9943,29 +9943,29 @@  discard block
 block discarded – undo
9943 9943
         'ellipsis' => 1,
9944 9944
         'html' => 0,
9945 9945
         'strip_tags' => 0,
9946
-      ),
9947
-      'empty' => '',
9948
-      'hide_empty' => 0,
9949
-      'empty_zero' => 0,
9950
-      'hide_alter_empty' => 1,
9951
-      'set_precision' => FALSE,
9952
-      'precision' => 0,
9953
-      'decimal' => '.',
9954
-      'separator' => '',
9955
-      'format_plural' => 0,
9956
-      'format_plural_singular' => '1',
9957
-      'format_plural_plural' => '@count',
9958
-      'prefix' => '',
9959
-      'suffix' => '',
9960
-      'exclude' => 1,
9961
-      'id' => 'app_version_id',
9962
-      'table' => 'result',
9963
-      'field' => 'app_version_id',
9964
-      'relationship' => 'none',
9946
+        ),
9947
+        'empty' => '',
9948
+        'hide_empty' => 0,
9949
+        'empty_zero' => 0,
9950
+        'hide_alter_empty' => 1,
9951
+        'set_precision' => FALSE,
9952
+        'precision' => 0,
9953
+        'decimal' => '.',
9954
+        'separator' => '',
9955
+        'format_plural' => 0,
9956
+        'format_plural_singular' => '1',
9957
+        'format_plural_plural' => '@count',
9958
+        'prefix' => '',
9959
+        'suffix' => '',
9960
+        'exclude' => 1,
9961
+        'id' => 'app_version_id',
9962
+        'table' => 'result',
9963
+        'field' => 'app_version_id',
9964
+        'relationship' => 'none',
9965 9965
     ),
9966 9966
     'phpcode_2' => array(
9967
-      'label' => 'Application',
9968
-      'alter' => array(
9967
+        'label' => 'Application',
9968
+        'alter' => array(
9969 9969
         'alter_text' => 0,
9970 9970
         'text' => '',
9971 9971
         'make_link' => 0,
@@ -9984,30 +9984,30 @@  discard block
 block discarded – undo
9984 9984
         'ellipsis' => 1,
9985 9985
         'html' => 0,
9986 9986
         'strip_tags' => 0,
9987
-      ),
9988
-      'empty' => '',
9989
-      'hide_empty' => 0,
9990
-      'empty_zero' => 0,
9991
-      'hide_alter_empty' => 1,
9992
-      'value' => '<?php
9987
+        ),
9988
+        'empty' => '',
9989
+        'hide_empty' => 0,
9990
+        'empty_zero' => 0,
9991
+        'hide_alter_empty' => 1,
9992
+        'value' => '<?php
9993 9993
   require_boinc(array(\'result\', \'util\'));
9994 9994
   $result = new stdClass();
9995 9995
   $result->appid = $data->result_appid;
9996 9996
   $result->app_version_id = $data->result_app_version_id;
9997 9997
   return app_version_string($result);
9998 9998
 ?>',
9999
-      'exclude' => 0,
10000
-      'id' => 'phpcode_2',
10001
-      'table' => 'customfield',
10002
-      'field' => 'phpcode',
10003
-      'override' => array(
9999
+        'exclude' => 0,
10000
+        'id' => 'phpcode_2',
10001
+        'table' => 'customfield',
10002
+        'field' => 'phpcode',
10003
+        'override' => array(
10004 10004
         'button' => 'Override',
10005
-      ),
10006
-      'relationship' => 'none',
10005
+        ),
10006
+        'relationship' => 'none',
10007 10007
     ),
10008 10008
     'stderr_out' => array(
10009
-      'label' => 'Stderr output',
10010
-      'alter' => array(
10009
+        'label' => 'Stderr output',
10010
+        'alter' => array(
10011 10011
         'alter_text' => 0,
10012 10012
         'text' => '<pre>[stderr_out]</pre>',
10013 10013
         'make_link' => 0,
@@ -10024,47 +10024,47 @@  discard block
 block discarded – undo
10024 10024
         'ellipsis' => 1,
10025 10025
         'html' => 0,
10026 10026
         'strip_tags' => 0,
10027
-      ),
10028
-      'empty' => '',
10029
-      'hide_empty' => 0,
10030
-      'empty_zero' => 0,
10031
-      'exclude' => 1,
10032
-      'id' => 'stderr_out',
10033
-      'table' => 'result',
10034
-      'field' => 'stderr_out',
10035
-      'override' => array(
10027
+        ),
10028
+        'empty' => '',
10029
+        'hide_empty' => 0,
10030
+        'empty_zero' => 0,
10031
+        'exclude' => 1,
10032
+        'id' => 'stderr_out',
10033
+        'table' => 'result',
10034
+        'field' => 'stderr_out',
10035
+        'override' => array(
10036 10036
         'button' => 'Override',
10037
-      ),
10038
-      'relationship' => 'none',
10037
+        ),
10038
+        'relationship' => 'none',
10039 10039
     ),
10040
-  ));
10041
-  $handler->override_option('arguments', array(
10040
+    ));
10041
+    $handler->override_option('arguments', array(
10042 10042
     'id' => array(
10043
-      'default_action' => 'not found',
10044
-      'style_plugin' => 'default_summary',
10045
-      'style_options' => array(),
10046
-      'wildcard' => 'all',
10047
-      'wildcard_substitution' => 'All',
10048
-      'title' => 'Task %1',
10049
-      'breadcrumb' => '',
10050
-      'default_argument_type' => 'fixed',
10051
-      'default_argument' => '',
10052
-      'validate_type' => 'numeric',
10053
-      'validate_fail' => 'not found',
10054
-      'id' => 'id',
10055
-      'table' => 'result',
10056
-      'field' => 'id',
10057
-      'validate_user_argument_type' => 'uid',
10058
-      'validate_user_roles' => array(
10043
+        'default_action' => 'not found',
10044
+        'style_plugin' => 'default_summary',
10045
+        'style_options' => array(),
10046
+        'wildcard' => 'all',
10047
+        'wildcard_substitution' => 'All',
10048
+        'title' => 'Task %1',
10049
+        'breadcrumb' => '',
10050
+        'default_argument_type' => 'fixed',
10051
+        'default_argument' => '',
10052
+        'validate_type' => 'numeric',
10053
+        'validate_fail' => 'not found',
10054
+        'id' => 'id',
10055
+        'table' => 'result',
10056
+        'field' => 'id',
10057
+        'validate_user_argument_type' => 'uid',
10058
+        'validate_user_roles' => array(
10059 10059
         2 => 0,
10060 10060
         3 => 0,
10061
-      ),
10062
-      'relationship' => 'none',
10063
-      'default_options_div_prefix' => '',
10064
-      'default_argument_fixed' => '',
10065
-      'default_argument_user' => 0,
10066
-      'default_argument_php' => '',
10067
-      'validate_argument_node_type' => array(
10061
+        ),
10062
+        'relationship' => 'none',
10063
+        'default_options_div_prefix' => '',
10064
+        'default_argument_fixed' => '',
10065
+        'default_argument_user' => 0,
10066
+        'default_argument_php' => '',
10067
+        'validate_argument_node_type' => array(
10068 10068
         'forum' => 0,
10069 10069
         'job_post' => 0,
10070 10070
         'news' => 0,
@@ -10072,69 +10072,69 @@  discard block
 block discarded – undo
10072 10072
         'profile' => 0,
10073 10073
         'story' => 0,
10074 10074
         'team' => 0,
10075
-      ),
10076
-      'validate_argument_node_access' => 0,
10077
-      'validate_argument_nid_type' => 'nid',
10078
-      'validate_argument_vocabulary' => array(
10075
+        ),
10076
+        'validate_argument_node_access' => 0,
10077
+        'validate_argument_nid_type' => 'nid',
10078
+        'validate_argument_vocabulary' => array(
10079 10079
         1 => 0,
10080
-      ),
10081
-      'validate_argument_type' => 'tid',
10082
-      'validate_argument_transform' => 0,
10083
-      'validate_user_restrict_roles' => 0,
10084
-      'validate_argument_php' => '',
10085
-    ),
10086
-  ));
10087
-  $handler->override_option('access', array(
10080
+        ),
10081
+        'validate_argument_type' => 'tid',
10082
+        'validate_argument_transform' => 0,
10083
+        'validate_user_restrict_roles' => 0,
10084
+        'validate_argument_php' => '',
10085
+    ),
10086
+    ));
10087
+    $handler->override_option('access', array(
10088 10088
     'type' => 'none',
10089
-  ));
10090
-  $handler->override_option('cache', array(
10089
+    ));
10090
+    $handler->override_option('cache', array(
10091 10091
     'type' => 'none',
10092
-  ));
10093
-  $handler->override_option('footer_format', '1');
10094
-  $handler->override_option('footer_empty', 0);
10095
-  $handler->override_option('items_per_page', 0);
10096
-  $handler = $view->new_display('page', 'Page', 'page_1');
10097
-  $handler->override_option('items_per_page', 20);
10098
-  $handler->override_option('use_pager', '1');
10099
-  $handler->override_option('style_plugin', 'grid');
10100
-  $handler->override_option('style_options', array(
10092
+    ));
10093
+    $handler->override_option('footer_format', '1');
10094
+    $handler->override_option('footer_empty', 0);
10095
+    $handler->override_option('items_per_page', 0);
10096
+    $handler = $view->new_display('page', 'Page', 'page_1');
10097
+    $handler->override_option('items_per_page', 20);
10098
+    $handler->override_option('use_pager', '1');
10099
+    $handler->override_option('style_plugin', 'grid');
10100
+    $handler->override_option('style_options', array(
10101 10101
     'grouping' => '',
10102 10102
     'columns' => '2',
10103 10103
     'alignment' => 'vertical',
10104 10104
     'fill_single_line' => 1,
10105
-  ));
10106
-  $handler->override_option('path', 'task');
10107
-  $handler->override_option('menu', array(
10105
+    ));
10106
+    $handler->override_option('path', 'task');
10107
+    $handler->override_option('menu', array(
10108 10108
     'type' => 'none',
10109 10109
     'title' => 'All tasks',
10110 10110
     'description' => 'Show all tasks associated with the account',
10111 10111
     'weight' => '0',
10112 10112
     'name' => 'navigation',
10113
-  ));
10114
-  $handler->override_option('tab_options', array(
10113
+    ));
10114
+    $handler->override_option('tab_options', array(
10115 10115
     'type' => 'normal',
10116 10116
     'title' => 'Tasks',
10117 10117
     'description' => 'Show all tasks',
10118 10118
     'weight' => '0',
10119 10119
     'name' => 'secondary-links',
10120
-  ));
10120
+    ));
10121 10121
 
10122
-  $views[$view->name] = $view;
10122
+    $views[$view->name] = $view;
10123 10123
 
10124
-  // Exported view: boinc_users
10125
-  $view = new view;
10126
-  $view->name = 'boinc_users';
10127
-  $view->description = 'User lists and statistics';
10128
-  $view->tag = '';
10129
-  $view->base_table = 'user';
10130
-  $view->core = 6;
10131
-  $view->api_version = '2';
10132
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10133
-  $handler = $view->new_display('default', 'Defaults', 'default');
10134
-  $handler->override_option('fields', array(
10124
+    // Exported view: boinc_users
10125
+    $view = new view;
10126
+    $view->name = 'boinc_users';
10127
+    $view->description = 'User lists and statistics';
10128
+    $view->tag = '';
10129
+    $view->base_table = 'user';
10130
+    $view->core = 6;
10131
+    $view->api_version = '2';
10132
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10133
+    $handler = $view->new_display('default', 'Defaults', 'default');
10134
+    $handler->override_option('fields', array(
10135 10135
     'rownumber' => array(
10136
-      'label' => 'Rank',
10137
-      'alter' => array(
10136
+        'label' => 'Rank',
10137
+        'alter' => array(
10138 10138
         'alter_text' => 0,
10139 10139
         'text' => '',
10140 10140
         'make_link' => 0,
@@ -10153,20 +10153,20 @@  discard block
 block discarded – undo
10153 10153
         'ellipsis' => 1,
10154 10154
         'html' => 0,
10155 10155
         'strip_tags' => 0,
10156
-      ),
10157
-      'empty' => '',
10158
-      'hide_empty' => 0,
10159
-      'empty_zero' => 0,
10160
-      'hide_alter_empty' => 1,
10161
-      'exclude' => 0,
10162
-      'id' => 'rownumber',
10163
-      'table' => 'customfield',
10164
-      'field' => 'rownumber',
10165
-      'relationship' => 'none',
10156
+        ),
10157
+        'empty' => '',
10158
+        'hide_empty' => 0,
10159
+        'empty_zero' => 0,
10160
+        'hide_alter_empty' => 1,
10161
+        'exclude' => 0,
10162
+        'id' => 'rownumber',
10163
+        'table' => 'customfield',
10164
+        'field' => 'rownumber',
10165
+        'relationship' => 'none',
10166 10166
     ),
10167 10167
     'id' => array(
10168
-      'label' => 'Id',
10169
-      'alter' => array(
10168
+        'label' => 'Id',
10169
+        'alter' => array(
10170 10170
         'alter_text' => 0,
10171 10171
         'text' => '',
10172 10172
         'make_link' => 0,
@@ -10185,29 +10185,29 @@  discard block
 block discarded – undo
10185 10185
         'ellipsis' => 1,
10186 10186
         'html' => 0,
10187 10187
         'strip_tags' => 0,
10188
-      ),
10189
-      'empty' => '',
10190
-      'hide_empty' => 0,
10191
-      'empty_zero' => 0,
10192
-      'hide_alter_empty' => 1,
10193
-      'set_precision' => FALSE,
10194
-      'precision' => 0,
10195
-      'decimal' => '.',
10196
-      'separator' => '',
10197
-      'format_plural' => 0,
10198
-      'format_plural_singular' => '1',
10199
-      'format_plural_plural' => '@count',
10200
-      'prefix' => '',
10201
-      'suffix' => '',
10202
-      'exclude' => 1,
10203
-      'id' => 'id',
10204
-      'table' => 'user',
10205
-      'field' => 'id',
10206
-      'relationship' => 'none',
10188
+        ),
10189
+        'empty' => '',
10190
+        'hide_empty' => 0,
10191
+        'empty_zero' => 0,
10192
+        'hide_alter_empty' => 1,
10193
+        'set_precision' => FALSE,
10194
+        'precision' => 0,
10195
+        'decimal' => '.',
10196
+        'separator' => '',
10197
+        'format_plural' => 0,
10198
+        'format_plural_singular' => '1',
10199
+        'format_plural_plural' => '@count',
10200
+        'prefix' => '',
10201
+        'suffix' => '',
10202
+        'exclude' => 1,
10203
+        'id' => 'id',
10204
+        'table' => 'user',
10205
+        'field' => 'id',
10206
+        'relationship' => 'none',
10207 10207
     ),
10208 10208
     'name' => array(
10209
-      'label' => 'Name',
10210
-      'alter' => array(
10209
+        'label' => 'Name',
10210
+        'alter' => array(
10211 10211
         'alter_text' => 0,
10212 10212
         'text' => '',
10213 10213
         'make_link' => 0,
@@ -10226,20 +10226,20 @@  discard block
 block discarded – undo
10226 10226
         'ellipsis' => 1,
10227 10227
         'html' => 0,
10228 10228
         'strip_tags' => 0,
10229
-      ),
10230
-      'empty' => '',
10231
-      'hide_empty' => 0,
10232
-      'empty_zero' => 0,
10233
-      'hide_alter_empty' => 1,
10234
-      'exclude' => 1,
10235
-      'id' => 'name',
10236
-      'table' => 'user',
10237
-      'field' => 'name',
10238
-      'relationship' => 'none',
10229
+        ),
10230
+        'empty' => '',
10231
+        'hide_empty' => 0,
10232
+        'empty_zero' => 0,
10233
+        'hide_alter_empty' => 1,
10234
+        'exclude' => 1,
10235
+        'id' => 'name',
10236
+        'table' => 'user',
10237
+        'field' => 'name',
10238
+        'relationship' => 'none',
10239 10239
     ),
10240 10240
     'phpcode' => array(
10241
-      'label' => 'Name',
10242
-      'alter' => array(
10241
+        'label' => 'Name',
10242
+        'alter' => array(
10243 10243
         'alter_text' => 0,
10244 10244
         'text' => '',
10245 10245
         'make_link' => 0,
@@ -10258,12 +10258,12 @@  discard block
 block discarded – undo
10258 10258
         'ellipsis' => 1,
10259 10259
         'html' => 0,
10260 10260
         'strip_tags' => 0,
10261
-      ),
10262
-      'empty' => '',
10263
-      'hide_empty' => 0,
10264
-      'empty_zero' => 0,
10265
-      'hide_alter_empty' => 1,
10266
-      'value' => '<?php
10261
+        ),
10262
+        'empty' => '',
10263
+        'hide_empty' => 0,
10264
+        'empty_zero' => 0,
10265
+        'hide_alter_empty' => 1,
10266
+        'value' => '<?php
10267 10267
   $uid = boincuser_lookup_uid($data->id);
10268 10268
   if ($uid) {
10269 10269
     $account = user_load($uid);
@@ -10274,15 +10274,15 @@  discard block
 block discarded – undo
10274 10274
     print $data->user_name;
10275 10275
   }
10276 10276
 ?>',
10277
-      'exclude' => 0,
10278
-      'id' => 'phpcode',
10279
-      'table' => 'customfield',
10280
-      'field' => 'phpcode',
10281
-      'relationship' => 'none',
10277
+        'exclude' => 0,
10278
+        'id' => 'phpcode',
10279
+        'table' => 'customfield',
10280
+        'field' => 'phpcode',
10281
+        'relationship' => 'none',
10282 10282
     ),
10283 10283
     'expavg_credit' => array(
10284
-      'label' => 'Recent average credit',
10285
-      'alter' => array(
10284
+        'label' => 'Recent average credit',
10285
+        'alter' => array(
10286 10286
         'alter_text' => 0,
10287 10287
         'text' => '',
10288 10288
         'make_link' => 0,
@@ -10301,29 +10301,29 @@  discard block
 block discarded – undo
10301 10301
         'ellipsis' => 1,
10302 10302
         'html' => 0,
10303 10303
         'strip_tags' => 0,
10304
-      ),
10305
-      'empty' => '0',
10306
-      'hide_empty' => 0,
10307
-      'empty_zero' => 0,
10308
-      'hide_alter_empty' => 0,
10309
-      'set_precision' => 1,
10310
-      'precision' => '2',
10311
-      'decimal' => '.',
10312
-      'separator' => ',',
10313
-      'format_plural' => 0,
10314
-      'format_plural_singular' => '1',
10315
-      'format_plural_plural' => '@count',
10316
-      'prefix' => '',
10317
-      'suffix' => '',
10318
-      'exclude' => 0,
10319
-      'id' => 'expavg_credit',
10320
-      'table' => 'user',
10321
-      'field' => 'expavg_credit',
10322
-      'relationship' => 'none',
10304
+        ),
10305
+        'empty' => '0',
10306
+        'hide_empty' => 0,
10307
+        'empty_zero' => 0,
10308
+        'hide_alter_empty' => 0,
10309
+        'set_precision' => 1,
10310
+        'precision' => '2',
10311
+        'decimal' => '.',
10312
+        'separator' => ',',
10313
+        'format_plural' => 0,
10314
+        'format_plural_singular' => '1',
10315
+        'format_plural_plural' => '@count',
10316
+        'prefix' => '',
10317
+        'suffix' => '',
10318
+        'exclude' => 0,
10319
+        'id' => 'expavg_credit',
10320
+        'table' => 'user',
10321
+        'field' => 'expavg_credit',
10322
+        'relationship' => 'none',
10323 10323
     ),
10324 10324
     'total_credit' => array(
10325
-      'label' => 'Total Credit',
10326
-      'alter' => array(
10325
+        'label' => 'Total Credit',
10326
+        'alter' => array(
10327 10327
         'alter_text' => 0,
10328 10328
         'text' => '',
10329 10329
         'make_link' => 0,
@@ -10342,29 +10342,29 @@  discard block
 block discarded – undo
10342 10342
         'ellipsis' => 1,
10343 10343
         'html' => 0,
10344 10344
         'strip_tags' => 0,
10345
-      ),
10346
-      'empty' => '0',
10347
-      'hide_empty' => 0,
10348
-      'empty_zero' => 0,
10349
-      'hide_alter_empty' => 0,
10350
-      'set_precision' => 1,
10351
-      'precision' => '0',
10352
-      'decimal' => '.',
10353
-      'separator' => ',',
10354
-      'format_plural' => 0,
10355
-      'format_plural_singular' => '1',
10356
-      'format_plural_plural' => '@count',
10357
-      'prefix' => '',
10358
-      'suffix' => '',
10359
-      'exclude' => 0,
10360
-      'id' => 'total_credit',
10361
-      'table' => 'user',
10362
-      'field' => 'total_credit',
10363
-      'relationship' => 'none',
10345
+        ),
10346
+        'empty' => '0',
10347
+        'hide_empty' => 0,
10348
+        'empty_zero' => 0,
10349
+        'hide_alter_empty' => 0,
10350
+        'set_precision' => 1,
10351
+        'precision' => '0',
10352
+        'decimal' => '.',
10353
+        'separator' => ',',
10354
+        'format_plural' => 0,
10355
+        'format_plural_singular' => '1',
10356
+        'format_plural_plural' => '@count',
10357
+        'prefix' => '',
10358
+        'suffix' => '',
10359
+        'exclude' => 0,
10360
+        'id' => 'total_credit',
10361
+        'table' => 'user',
10362
+        'field' => 'total_credit',
10363
+        'relationship' => 'none',
10364 10364
     ),
10365 10365
     'country' => array(
10366
-      'label' => 'Country',
10367
-      'alter' => array(
10366
+        'label' => 'Country',
10367
+        'alter' => array(
10368 10368
         'alter_text' => 0,
10369 10369
         'text' => '',
10370 10370
         'make_link' => 0,
@@ -10383,20 +10383,20 @@  discard block
 block discarded – undo
10383 10383
         'ellipsis' => 1,
10384 10384
         'html' => 0,
10385 10385
         'strip_tags' => 0,
10386
-      ),
10387
-      'empty' => '',
10388
-      'hide_empty' => 0,
10389
-      'empty_zero' => 0,
10390
-      'hide_alter_empty' => 1,
10391
-      'exclude' => 0,
10392
-      'id' => 'country',
10393
-      'table' => 'user',
10394
-      'field' => 'country',
10395
-      'relationship' => 'none',
10386
+        ),
10387
+        'empty' => '',
10388
+        'hide_empty' => 0,
10389
+        'empty_zero' => 0,
10390
+        'hide_alter_empty' => 1,
10391
+        'exclude' => 0,
10392
+        'id' => 'country',
10393
+        'table' => 'user',
10394
+        'field' => 'country',
10395
+        'relationship' => 'none',
10396 10396
     ),
10397 10397
     'create_time' => array(
10398
-      'label' => 'Joined',
10399
-      'alter' => array(
10398
+        'label' => 'Joined',
10399
+        'alter' => array(
10400 10400
         'alter_text' => 0,
10401 10401
         'text' => '',
10402 10402
         'make_link' => 0,
@@ -10415,120 +10415,120 @@  discard block
 block discarded – undo
10415 10415
         'ellipsis' => 1,
10416 10416
         'html' => 0,
10417 10417
         'strip_tags' => 0,
10418
-      ),
10419
-      'empty' => '',
10420
-      'hide_empty' => 0,
10421
-      'empty_zero' => 0,
10422
-      'hide_alter_empty' => 1,
10423
-      'date_format' => 'time ago',
10424
-      'custom_date_format' => '',
10425
-      'exclude' => 0,
10426
-      'id' => 'create_time',
10427
-      'table' => 'user',
10428
-      'field' => 'create_time',
10429
-      'relationship' => 'none',
10418
+        ),
10419
+        'empty' => '',
10420
+        'hide_empty' => 0,
10421
+        'empty_zero' => 0,
10422
+        'hide_alter_empty' => 1,
10423
+        'date_format' => 'time ago',
10424
+        'custom_date_format' => '',
10425
+        'exclude' => 0,
10426
+        'id' => 'create_time',
10427
+        'table' => 'user',
10428
+        'field' => 'create_time',
10429
+        'relationship' => 'none',
10430 10430
     ),
10431
-  ));
10432
-  $handler->override_option('filters', array(
10431
+    ));
10432
+    $handler->override_option('filters', array(
10433 10433
     'total_credit' => array(
10434
-      'operator' => '>=',
10435
-      'value' => array(
10434
+        'operator' => '>=',
10435
+        'value' => array(
10436 10436
         'value' => '1',
10437 10437
         'min' => '',
10438 10438
         'max' => '',
10439
-      ),
10440
-      'group' => '0',
10441
-      'exposed' => FALSE,
10442
-      'expose' => array(
10439
+        ),
10440
+        'group' => '0',
10441
+        'exposed' => FALSE,
10442
+        'expose' => array(
10443 10443
         'operator' => FALSE,
10444 10444
         'label' => '',
10445
-      ),
10446
-      'id' => 'total_credit',
10447
-      'table' => 'user',
10448
-      'field' => 'total_credit',
10449
-      'relationship' => 'none',
10450
-    ),
10451
-  ));
10452
-  $handler->override_option('access', array(
10445
+        ),
10446
+        'id' => 'total_credit',
10447
+        'table' => 'user',
10448
+        'field' => 'total_credit',
10449
+        'relationship' => 'none',
10450
+    ),
10451
+    ));
10452
+    $handler->override_option('access', array(
10453 10453
     'type' => 'none',
10454
-  ));
10455
-  $handler->override_option('cache', array(
10454
+    ));
10455
+    $handler->override_option('cache', array(
10456 10456
     'type' => 'none',
10457
-  ));
10458
-  $handler->override_option('items_per_page', 100);
10459
-  $handler->override_option('use_pager', '0');
10460
-  $handler->override_option('style_plugin', 'table');
10461
-  $handler->override_option('style_options', array(
10457
+    ));
10458
+    $handler->override_option('items_per_page', 100);
10459
+    $handler->override_option('use_pager', '0');
10460
+    $handler->override_option('style_plugin', 'table');
10461
+    $handler->override_option('style_options', array(
10462 10462
     'grouping' => '',
10463 10463
     'override' => 1,
10464 10464
     'sticky' => 1,
10465 10465
     'order' => 'desc',
10466 10466
     'summary' => '',
10467 10467
     'columns' => array(
10468
-      'rownumber' => 'rownumber',
10469
-      'id' => 'id',
10470
-      'name' => 'name',
10471
-      'phpcode' => 'phpcode',
10472
-      'expavg_credit' => 'expavg_credit',
10473
-      'total_credit' => 'total_credit',
10474
-      'country' => 'country',
10475
-      'create_time' => 'create_time',
10468
+        'rownumber' => 'rownumber',
10469
+        'id' => 'id',
10470
+        'name' => 'name',
10471
+        'phpcode' => 'phpcode',
10472
+        'expavg_credit' => 'expavg_credit',
10473
+        'total_credit' => 'total_credit',
10474
+        'country' => 'country',
10475
+        'create_time' => 'create_time',
10476 10476
     ),
10477 10477
     'info' => array(
10478
-      'rownumber' => array(
10478
+        'rownumber' => array(
10479 10479
         'separator' => '',
10480
-      ),
10481
-      'id' => array(
10480
+        ),
10481
+        'id' => array(
10482 10482
         'sortable' => 0,
10483 10483
         'separator' => '',
10484
-      ),
10485
-      'name' => array(
10484
+        ),
10485
+        'name' => array(
10486 10486
         'sortable' => 0,
10487 10487
         'separator' => '',
10488
-      ),
10489
-      'phpcode' => array(
10488
+        ),
10489
+        'phpcode' => array(
10490 10490
         'separator' => '',
10491
-      ),
10492
-      'expavg_credit' => array(
10491
+        ),
10492
+        'expavg_credit' => array(
10493 10493
         'sortable' => 1,
10494 10494
         'separator' => '',
10495
-      ),
10496
-      'total_credit' => array(
10495
+        ),
10496
+        'total_credit' => array(
10497 10497
         'sortable' => 1,
10498 10498
         'separator' => '',
10499
-      ),
10500
-      'country' => array(
10499
+        ),
10500
+        'country' => array(
10501 10501
         'sortable' => 0,
10502 10502
         'separator' => '',
10503
-      ),
10504
-      'create_time' => array(
10503
+        ),
10504
+        'create_time' => array(
10505 10505
         'sortable' => 1,
10506 10506
         'separator' => '',
10507
-      ),
10507
+        ),
10508 10508
     ),
10509 10509
     'default' => 'expavg_credit',
10510
-  ));
10511
-  $handler = $view->new_display('page', 'Top users', 'page_1');
10512
-  $handler->override_option('path', 'community/stats/users');
10513
-  $handler->override_option('menu', array(
10510
+    ));
10511
+    $handler = $view->new_display('page', 'Top users', 'page_1');
10512
+    $handler->override_option('path', 'community/stats/users');
10513
+    $handler->override_option('menu', array(
10514 10514
     'type' => 'tab',
10515 10515
     'title' => 'Top Users',
10516 10516
     'description' => '',
10517 10517
     'weight' => '0',
10518 10518
     'name' => 'primary-links',
10519
-  ));
10520
-  $handler->override_option('tab_options', array(
10519
+    ));
10520
+    $handler->override_option('tab_options', array(
10521 10521
     'type' => 'none',
10522 10522
     'title' => '',
10523 10523
     'description' => '',
10524 10524
     'weight' => 0,
10525 10525
     'name' => 'navigation',
10526
-  ));
10527
-  $handler = $view->new_display('panel_pane', 'Top users pane', 'panel_pane_1');
10528
-  $handler->override_option('fields', array(
10526
+    ));
10527
+    $handler = $view->new_display('panel_pane', 'Top users pane', 'panel_pane_1');
10528
+    $handler->override_option('fields', array(
10529 10529
     'rownumber' => array(
10530
-      'label' => 'Rank',
10531
-      'alter' => array(
10530
+        'label' => 'Rank',
10531
+        'alter' => array(
10532 10532
         'alter_text' => 0,
10533 10533
         'text' => '',
10534 10534
         'make_link' => 0,
@@ -10547,20 +10547,20 @@  discard block
 block discarded – undo
10547 10547
         'ellipsis' => 1,
10548 10548
         'html' => 0,
10549 10549
         'strip_tags' => 0,
10550
-      ),
10551
-      'empty' => '',
10552
-      'hide_empty' => 0,
10553
-      'empty_zero' => 0,
10554
-      'hide_alter_empty' => 1,
10555
-      'exclude' => 0,
10556
-      'id' => 'rownumber',
10557
-      'table' => 'customfield',
10558
-      'field' => 'rownumber',
10559
-      'relationship' => 'none',
10550
+        ),
10551
+        'empty' => '',
10552
+        'hide_empty' => 0,
10553
+        'empty_zero' => 0,
10554
+        'hide_alter_empty' => 1,
10555
+        'exclude' => 0,
10556
+        'id' => 'rownumber',
10557
+        'table' => 'customfield',
10558
+        'field' => 'rownumber',
10559
+        'relationship' => 'none',
10560 10560
     ),
10561 10561
     'id' => array(
10562
-      'label' => 'Id',
10563
-      'alter' => array(
10562
+        'label' => 'Id',
10563
+        'alter' => array(
10564 10564
         'alter_text' => 0,
10565 10565
         'text' => '',
10566 10566
         'make_link' => 0,
@@ -10579,29 +10579,29 @@  discard block
 block discarded – undo
10579 10579
         'ellipsis' => 1,
10580 10580
         'html' => 0,
10581 10581
         'strip_tags' => 0,
10582
-      ),
10583
-      'empty' => '',
10584
-      'hide_empty' => 0,
10585
-      'empty_zero' => 0,
10586
-      'hide_alter_empty' => 1,
10587
-      'set_precision' => FALSE,
10588
-      'precision' => 0,
10589
-      'decimal' => '.',
10590
-      'separator' => '',
10591
-      'format_plural' => 0,
10592
-      'format_plural_singular' => '1',
10593
-      'format_plural_plural' => '@count',
10594
-      'prefix' => '',
10595
-      'suffix' => '',
10596
-      'exclude' => 1,
10597
-      'id' => 'id',
10598
-      'table' => 'user',
10599
-      'field' => 'id',
10600
-      'relationship' => 'none',
10582
+        ),
10583
+        'empty' => '',
10584
+        'hide_empty' => 0,
10585
+        'empty_zero' => 0,
10586
+        'hide_alter_empty' => 1,
10587
+        'set_precision' => FALSE,
10588
+        'precision' => 0,
10589
+        'decimal' => '.',
10590
+        'separator' => '',
10591
+        'format_plural' => 0,
10592
+        'format_plural_singular' => '1',
10593
+        'format_plural_plural' => '@count',
10594
+        'prefix' => '',
10595
+        'suffix' => '',
10596
+        'exclude' => 1,
10597
+        'id' => 'id',
10598
+        'table' => 'user',
10599
+        'field' => 'id',
10600
+        'relationship' => 'none',
10601 10601
     ),
10602 10602
     'name' => array(
10603
-      'label' => 'Name',
10604
-      'alter' => array(
10603
+        'label' => 'Name',
10604
+        'alter' => array(
10605 10605
         'alter_text' => 0,
10606 10606
         'text' => '',
10607 10607
         'make_link' => 0,
@@ -10620,20 +10620,20 @@  discard block
 block discarded – undo
10620 10620
         'ellipsis' => 1,
10621 10621
         'html' => 0,
10622 10622
         'strip_tags' => 0,
10623
-      ),
10624
-      'empty' => '',
10625
-      'hide_empty' => 0,
10626
-      'empty_zero' => 0,
10627
-      'hide_alter_empty' => 1,
10628
-      'exclude' => 1,
10629
-      'id' => 'name',
10630
-      'table' => 'user',
10631
-      'field' => 'name',
10632
-      'relationship' => 'none',
10623
+        ),
10624
+        'empty' => '',
10625
+        'hide_empty' => 0,
10626
+        'empty_zero' => 0,
10627
+        'hide_alter_empty' => 1,
10628
+        'exclude' => 1,
10629
+        'id' => 'name',
10630
+        'table' => 'user',
10631
+        'field' => 'name',
10632
+        'relationship' => 'none',
10633 10633
     ),
10634 10634
     'phpcode' => array(
10635
-      'label' => 'Name',
10636
-      'alter' => array(
10635
+        'label' => 'Name',
10636
+        'alter' => array(
10637 10637
         'alter_text' => 0,
10638 10638
         'text' => '',
10639 10639
         'make_link' => 0,
@@ -10652,12 +10652,12 @@  discard block
 block discarded – undo
10652 10652
         'ellipsis' => 1,
10653 10653
         'html' => 0,
10654 10654
         'strip_tags' => 0,
10655
-      ),
10656
-      'empty' => '',
10657
-      'hide_empty' => 0,
10658
-      'empty_zero' => 0,
10659
-      'hide_alter_empty' => 1,
10660
-      'value' => '<?php
10655
+        ),
10656
+        'empty' => '',
10657
+        'hide_empty' => 0,
10658
+        'empty_zero' => 0,
10659
+        'hide_alter_empty' => 1,
10660
+        'value' => '<?php
10661 10661
   $uid = boincuser_lookup_uid($data->id);
10662 10662
   if ($uid) {
10663 10663
     $account = user_load($uid);
@@ -10668,15 +10668,15 @@  discard block
 block discarded – undo
10668 10668
     print $data->user_name;
10669 10669
   }
10670 10670
 ?>',
10671
-      'exclude' => 0,
10672
-      'id' => 'phpcode',
10673
-      'table' => 'customfield',
10674
-      'field' => 'phpcode',
10675
-      'relationship' => 'none',
10671
+        'exclude' => 0,
10672
+        'id' => 'phpcode',
10673
+        'table' => 'customfield',
10674
+        'field' => 'phpcode',
10675
+        'relationship' => 'none',
10676 10676
     ),
10677 10677
     'country' => array(
10678
-      'label' => 'Country',
10679
-      'alter' => array(
10678
+        'label' => 'Country',
10679
+        'alter' => array(
10680 10680
         'alter_text' => 0,
10681 10681
         'text' => '',
10682 10682
         'make_link' => 0,
@@ -10695,20 +10695,20 @@  discard block
 block discarded – undo
10695 10695
         'ellipsis' => 1,
10696 10696
         'html' => 0,
10697 10697
         'strip_tags' => 0,
10698
-      ),
10699
-      'empty' => '',
10700
-      'hide_empty' => 0,
10701
-      'empty_zero' => 0,
10702
-      'hide_alter_empty' => 1,
10703
-      'exclude' => 0,
10704
-      'id' => 'country',
10705
-      'table' => 'user',
10706
-      'field' => 'country',
10707
-      'relationship' => 'none',
10698
+        ),
10699
+        'empty' => '',
10700
+        'hide_empty' => 0,
10701
+        'empty_zero' => 0,
10702
+        'hide_alter_empty' => 1,
10703
+        'exclude' => 0,
10704
+        'id' => 'country',
10705
+        'table' => 'user',
10706
+        'field' => 'country',
10707
+        'relationship' => 'none',
10708 10708
     ),
10709 10709
     'expavg_credit' => array(
10710
-      'label' => 'Recent average credit',
10711
-      'alter' => array(
10710
+        'label' => 'Recent average credit',
10711
+        'alter' => array(
10712 10712
         'alter_text' => 0,
10713 10713
         'text' => '',
10714 10714
         'make_link' => 0,
@@ -10727,32 +10727,32 @@  discard block
 block discarded – undo
10727 10727
         'ellipsis' => 1,
10728 10728
         'html' => 0,
10729 10729
         'strip_tags' => 0,
10730
-      ),
10731
-      'empty' => '0',
10732
-      'hide_empty' => 0,
10733
-      'empty_zero' => 0,
10734
-      'hide_alter_empty' => 0,
10735
-      'set_precision' => 1,
10736
-      'precision' => '2',
10737
-      'decimal' => '.',
10738
-      'separator' => ',',
10739
-      'format_plural' => 0,
10740
-      'format_plural_singular' => '1',
10741
-      'format_plural_plural' => '@count',
10742
-      'prefix' => '',
10743
-      'suffix' => '',
10744
-      'exclude' => 0,
10745
-      'id' => 'expavg_credit',
10746
-      'table' => 'user',
10747
-      'field' => 'expavg_credit',
10748
-      'relationship' => 'none',
10749
-      'override' => array(
10730
+        ),
10731
+        'empty' => '0',
10732
+        'hide_empty' => 0,
10733
+        'empty_zero' => 0,
10734
+        'hide_alter_empty' => 0,
10735
+        'set_precision' => 1,
10736
+        'precision' => '2',
10737
+        'decimal' => '.',
10738
+        'separator' => ',',
10739
+        'format_plural' => 0,
10740
+        'format_plural_singular' => '1',
10741
+        'format_plural_plural' => '@count',
10742
+        'prefix' => '',
10743
+        'suffix' => '',
10744
+        'exclude' => 0,
10745
+        'id' => 'expavg_credit',
10746
+        'table' => 'user',
10747
+        'field' => 'expavg_credit',
10748
+        'relationship' => 'none',
10749
+        'override' => array(
10750 10750
         'button' => 'Use default',
10751
-      ),
10751
+        ),
10752 10752
     ),
10753 10753
     'total_credit' => array(
10754
-      'label' => 'Total Credit',
10755
-      'alter' => array(
10754
+        'label' => 'Total Credit',
10755
+        'alter' => array(
10756 10756
         'alter_text' => 0,
10757 10757
         'text' => '',
10758 10758
         'make_link' => 0,
@@ -10771,29 +10771,29 @@  discard block
 block discarded – undo
10771 10771
         'ellipsis' => 1,
10772 10772
         'html' => 0,
10773 10773
         'strip_tags' => 0,
10774
-      ),
10775
-      'empty' => '0',
10776
-      'hide_empty' => 0,
10777
-      'empty_zero' => 0,
10778
-      'hide_alter_empty' => 0,
10779
-      'set_precision' => 1,
10780
-      'precision' => '0',
10781
-      'decimal' => '.',
10782
-      'separator' => ',',
10783
-      'format_plural' => 0,
10784
-      'format_plural_singular' => '1',
10785
-      'format_plural_plural' => '@count',
10786
-      'prefix' => '',
10787
-      'suffix' => '',
10788
-      'exclude' => 0,
10789
-      'id' => 'total_credit',
10790
-      'table' => 'user',
10791
-      'field' => 'total_credit',
10792
-      'relationship' => 'none',
10774
+        ),
10775
+        'empty' => '0',
10776
+        'hide_empty' => 0,
10777
+        'empty_zero' => 0,
10778
+        'hide_alter_empty' => 0,
10779
+        'set_precision' => 1,
10780
+        'precision' => '0',
10781
+        'decimal' => '.',
10782
+        'separator' => ',',
10783
+        'format_plural' => 0,
10784
+        'format_plural_singular' => '1',
10785
+        'format_plural_plural' => '@count',
10786
+        'prefix' => '',
10787
+        'suffix' => '',
10788
+        'exclude' => 0,
10789
+        'id' => 'total_credit',
10790
+        'table' => 'user',
10791
+        'field' => 'total_credit',
10792
+        'relationship' => 'none',
10793 10793
     ),
10794 10794
     'create_time' => array(
10795
-      'label' => 'Joined',
10796
-      'alter' => array(
10795
+        'label' => 'Joined',
10796
+        'alter' => array(
10797 10797
         'alter_text' => 0,
10798 10798
         'text' => '',
10799 10799
         'make_link' => 0,
@@ -10812,85 +10812,85 @@  discard block
 block discarded – undo
10812 10812
         'ellipsis' => 1,
10813 10813
         'html' => 0,
10814 10814
         'strip_tags' => 0,
10815
-      ),
10816
-      'empty' => '',
10817
-      'hide_empty' => 0,
10818
-      'empty_zero' => 0,
10819
-      'hide_alter_empty' => 1,
10820
-      'date_format' => 'time ago',
10821
-      'custom_date_format' => '',
10822
-      'exclude' => 1,
10823
-      'id' => 'create_time',
10824
-      'table' => 'user',
10825
-      'field' => 'create_time',
10826
-      'relationship' => 'none',
10827
-      'override' => array(
10815
+        ),
10816
+        'empty' => '',
10817
+        'hide_empty' => 0,
10818
+        'empty_zero' => 0,
10819
+        'hide_alter_empty' => 1,
10820
+        'date_format' => 'time ago',
10821
+        'custom_date_format' => '',
10822
+        'exclude' => 1,
10823
+        'id' => 'create_time',
10824
+        'table' => 'user',
10825
+        'field' => 'create_time',
10826
+        'relationship' => 'none',
10827
+        'override' => array(
10828 10828
         'button' => 'Use default',
10829
-      ),
10830
-    ),
10831
-  ));
10832
-  $handler->override_option('title', 'Top participants');
10833
-  $handler->override_option('items_per_page', 10);
10834
-  $handler->override_option('use_more', 1);
10835
-  $handler->override_option('use_more_always', 0);
10836
-  $handler->override_option('use_more_text', 'view more');
10837
-  $handler->override_option('style_options', array(
10829
+        ),
10830
+    ),
10831
+    ));
10832
+    $handler->override_option('title', 'Top participants');
10833
+    $handler->override_option('items_per_page', 10);
10834
+    $handler->override_option('use_more', 1);
10835
+    $handler->override_option('use_more_always', 0);
10836
+    $handler->override_option('use_more_text', 'view more');
10837
+    $handler->override_option('style_options', array(
10838 10838
     'grouping' => '',
10839 10839
     'override' => 1,
10840 10840
     'sticky' => 0,
10841 10841
     'order' => 'desc',
10842 10842
     'summary' => '',
10843 10843
     'columns' => array(
10844
-      'rownumber' => 'rownumber',
10845
-      'id' => 'id',
10846
-      'name' => 'name',
10847
-      'phpcode' => 'phpcode',
10848
-      'country' => 'country',
10849
-      'expavg_credit' => 'expavg_credit',
10850
-      'total_credit' => 'total_credit',
10851
-      'create_time' => 'create_time',
10844
+        'rownumber' => 'rownumber',
10845
+        'id' => 'id',
10846
+        'name' => 'name',
10847
+        'phpcode' => 'phpcode',
10848
+        'country' => 'country',
10849
+        'expavg_credit' => 'expavg_credit',
10850
+        'total_credit' => 'total_credit',
10851
+        'create_time' => 'create_time',
10852 10852
     ),
10853 10853
     'info' => array(
10854
-      'rownumber' => array(
10854
+        'rownumber' => array(
10855 10855
         'separator' => '',
10856
-      ),
10857
-      'id' => array(
10856
+        ),
10857
+        'id' => array(
10858 10858
         'sortable' => 0,
10859 10859
         'separator' => '',
10860
-      ),
10861
-      'name' => array(
10860
+        ),
10861
+        'name' => array(
10862 10862
         'sortable' => 0,
10863 10863
         'separator' => '',
10864
-      ),
10865
-      'phpcode' => array(
10864
+        ),
10865
+        'phpcode' => array(
10866 10866
         'separator' => '',
10867
-      ),
10868
-      'country' => array(
10867
+        ),
10868
+        'country' => array(
10869 10869
         'sortable' => 0,
10870 10870
         'separator' => '',
10871
-      ),
10872
-      'expavg_credit' => array(
10871
+        ),
10872
+        'expavg_credit' => array(
10873 10873
         'sortable' => 1,
10874 10874
         'separator' => '',
10875
-      ),
10876
-      'total_credit' => array(
10875
+        ),
10876
+        'total_credit' => array(
10877 10877
         'sortable' => 1,
10878 10878
         'separator' => '',
10879
-      ),
10880
-      'create_time' => array(
10879
+        ),
10880
+        'create_time' => array(
10881 10881
         'sortable' => 1,
10882 10882
         'separator' => '',
10883
-      ),
10883
+        ),
10884 10884
     ),
10885 10885
     'default' => 'expavg_credit',
10886
-  ));
10887
-  $handler->override_option('pane_title', '');
10888
-  $handler->override_option('pane_description', '');
10889
-  $handler->override_option('pane_category', array(
10886
+    ));
10887
+    $handler->override_option('pane_title', '');
10888
+    $handler->override_option('pane_description', '');
10889
+    $handler->override_option('pane_category', array(
10890 10890
     'name' => 'View panes',
10891 10891
     'weight' => 0,
10892
-  ));
10893
-  $handler->override_option('allow', array(
10892
+    ));
10893
+    $handler->override_option('allow', array(
10894 10894
     'use_pager' => FALSE,
10895 10895
     'items_per_page' => FALSE,
10896 10896
     'offset' => FALSE,
@@ -10900,37 +10900,37 @@  discard block
 block discarded – undo
10900 10900
     'title_override' => FALSE,
10901 10901
     'exposed_form' => FALSE,
10902 10902
     'fields_override' => FALSE,
10903
-  ));
10904
-  $handler->override_option('argument_input', array());
10905
-  $handler->override_option('link_to_view', 0);
10906
-  $handler->override_option('inherit_panels_path', 0);
10903
+    ));
10904
+    $handler->override_option('argument_input', array());
10905
+    $handler->override_option('link_to_view', 0);
10906
+    $handler->override_option('inherit_panels_path', 0);
10907 10907
 
10908
-  $views[$view->name] = $view;
10908
+    $views[$view->name] = $view;
10909 10909
 
10910
-  // Exported view: boinc_workunit
10911
-  $view = new view;
10912
-  $view->name = 'boinc_workunit';
10913
-  $view->description = 'Details for a specific workunit';
10914
-  $view->tag = '';
10915
-  $view->base_table = 'workunit';
10916
-  $view->core = 0;
10917
-  $view->api_version = '2';
10918
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10919
-  $handler = $view->new_display('default', 'Defaults', 'default');
10920
-  $handler->override_option('relationships', array(
10910
+    // Exported view: boinc_workunit
10911
+    $view = new view;
10912
+    $view->name = 'boinc_workunit';
10913
+    $view->description = 'Details for a specific workunit';
10914
+    $view->tag = '';
10915
+    $view->base_table = 'workunit';
10916
+    $view->core = 0;
10917
+    $view->api_version = '2';
10918
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10919
+    $handler = $view->new_display('default', 'Defaults', 'default');
10920
+    $handler->override_option('relationships', array(
10921 10921
     'appid' => array(
10922
-      'label' => 'Application',
10923
-      'required' => 1,
10924
-      'id' => 'appid',
10925
-      'table' => 'workunit',
10926
-      'field' => 'appid',
10927
-      'relationship' => 'none',
10928
-    ),
10929
-  ));
10930
-  $handler->override_option('fields', array(
10922
+        'label' => 'Application',
10923
+        'required' => 1,
10924
+        'id' => 'appid',
10925
+        'table' => 'workunit',
10926
+        'field' => 'appid',
10927
+        'relationship' => 'none',
10928
+    ),
10929
+    ));
10930
+    $handler->override_option('fields', array(
10931 10931
     'name' => array(
10932
-      'label' => 'Name',
10933
-      'alter' => array(
10932
+        'label' => 'Name',
10933
+        'alter' => array(
10934 10934
         'alter_text' => 0,
10935 10935
         'text' => '',
10936 10936
         'make_link' => 0,
@@ -10947,19 +10947,19 @@  discard block
 block discarded – undo
10947 10947
         'ellipsis' => 1,
10948 10948
         'html' => 0,
10949 10949
         'strip_tags' => 0,
10950
-      ),
10951
-      'empty' => '',
10952
-      'hide_empty' => 0,
10953
-      'empty_zero' => 0,
10954
-      'exclude' => 0,
10955
-      'id' => 'name',
10956
-      'table' => 'workunit',
10957
-      'field' => 'name',
10958
-      'relationship' => 'none',
10950
+        ),
10951
+        'empty' => '',
10952
+        'hide_empty' => 0,
10953
+        'empty_zero' => 0,
10954
+        'exclude' => 0,
10955
+        'id' => 'name',
10956
+        'table' => 'workunit',
10957
+        'field' => 'name',
10958
+        'relationship' => 'none',
10959 10959
     ),
10960 10960
     'phpcode_8' => array(
10961
-      'label' => 'dont_suppress_pending',
10962
-      'alter' => array(
10961
+        'label' => 'dont_suppress_pending',
10962
+        'alter' => array(
10963 10963
         'alter_text' => 0,
10964 10964
         'text' => '',
10965 10965
         'make_link' => 0,
@@ -10978,25 +10978,25 @@  discard block
 block discarded – undo
10978 10978
         'ellipsis' => 1,
10979 10979
         'html' => 0,
10980 10980
         'strip_tags' => 0,
10981
-      ),
10982
-      'empty' => '',
10983
-      'hide_empty' => 0,
10984
-      'empty_zero' => 0,
10985
-      'hide_alter_empty' => 1,
10986
-      'value' => '<?php
10981
+        ),
10982
+        'empty' => '',
10983
+        'hide_empty' => 0,
10984
+        'empty_zero' => 0,
10985
+        'hide_alter_empty' => 1,
10986
+        'value' => '<?php
10987 10987
   require_boinc(\'util\');
10988 10988
   $dont_suppress_pending = parse_bool(get_config(), "dont_suppress_pending");
10989 10989
   $data->dontsuppresspending = $dont_suppress_pending;
10990 10990
 ?>',
10991
-      'exclude' => 1,
10992
-      'id' => 'phpcode_8',
10993
-      'table' => 'customfield',
10994
-      'field' => 'phpcode',
10995
-      'relationship' => 'none',
10991
+        'exclude' => 1,
10992
+        'id' => 'phpcode_8',
10993
+        'table' => 'customfield',
10994
+        'field' => 'phpcode',
10995
+        'relationship' => 'none',
10996 10996
     ),
10997 10997
     'user_friendly_name' => array(
10998
-      'label' => 'Application',
10999
-      'alter' => array(
10998
+        'label' => 'Application',
10999
+        'alter' => array(
11000 11000
         'alter_text' => 0,
11001 11001
         'text' => '',
11002 11002
         'make_link' => 0,
@@ -11013,19 +11013,19 @@  discard block
 block discarded – undo
11013 11013
         'ellipsis' => 1,
11014 11014
         'html' => 0,
11015 11015
         'strip_tags' => 0,
11016
-      ),
11017
-      'empty' => '',
11018
-      'hide_empty' => 0,
11019
-      'empty_zero' => 0,
11020
-      'exclude' => 0,
11021
-      'id' => 'user_friendly_name',
11022
-      'table' => 'app',
11023
-      'field' => 'user_friendly_name',
11024
-      'relationship' => 'appid',
11016
+        ),
11017
+        'empty' => '',
11018
+        'hide_empty' => 0,
11019
+        'empty_zero' => 0,
11020
+        'exclude' => 0,
11021
+        'id' => 'user_friendly_name',
11022
+        'table' => 'app',
11023
+        'field' => 'user_friendly_name',
11024
+        'relationship' => 'appid',
11025 11025
     ),
11026 11026
     'create_time' => array(
11027
-      'label' => 'Created',
11028
-      'alter' => array(
11027
+        'label' => 'Created',
11028
+        'alter' => array(
11029 11029
         'alter_text' => 0,
11030 11030
         'text' => '',
11031 11031
         'make_link' => 0,
@@ -11044,22 +11044,22 @@  discard block
 block discarded – undo
11044 11044
         'ellipsis' => 1,
11045 11045
         'html' => 0,
11046 11046
         'strip_tags' => 0,
11047
-      ),
11048
-      'empty' => '',
11049
-      'hide_empty' => 0,
11050
-      'empty_zero' => 0,
11051
-      'hide_alter_empty' => 1,
11052
-      'date_format' => 'custom',
11053
-      'custom_date_format' => 'j M Y G:i:s T',
11054
-      'exclude' => 1,
11055
-      'id' => 'create_time',
11056
-      'table' => 'workunit',
11057
-      'field' => 'create_time',
11058
-      'relationship' => 'none',
11047
+        ),
11048
+        'empty' => '',
11049
+        'hide_empty' => 0,
11050
+        'empty_zero' => 0,
11051
+        'hide_alter_empty' => 1,
11052
+        'date_format' => 'custom',
11053
+        'custom_date_format' => 'j M Y G:i:s T',
11054
+        'exclude' => 1,
11055
+        'id' => 'create_time',
11056
+        'table' => 'workunit',
11057
+        'field' => 'create_time',
11058
+        'relationship' => 'none',
11059 11059
     ),
11060 11060
     'phpcode_2' => array(
11061
-      'label' => 'Created',
11062
-      'alter' => array(
11061
+        'label' => 'Created',
11062
+        'alter' => array(
11063 11063
         'alter_text' => 0,
11064 11064
         'text' => '',
11065 11065
         'make_link' => 0,
@@ -11078,23 +11078,23 @@  discard block
 block discarded – undo
11078 11078
         'ellipsis' => 1,
11079 11079
         'html' => 0,
11080 11080
         'strip_tags' => 0,
11081
-      ),
11082
-      'empty' => '',
11083
-      'hide_empty' => 0,
11084
-      'empty_zero' => 0,
11085
-      'hide_alter_empty' => 1,
11086
-      'value' => '<?php
11081
+        ),
11082
+        'empty' => '',
11083
+        'hide_empty' => 0,
11084
+        'empty_zero' => 0,
11085
+        'hide_alter_empty' => 1,
11086
+        'value' => '<?php
11087 11087
 echo date(\'j M Y G:i:s T\', $data->workunit_create_time);
11088 11088
 ?>',
11089
-      'exclude' => 0,
11090
-      'id' => 'phpcode_2',
11091
-      'table' => 'customfield',
11092
-      'field' => 'phpcode',
11093
-      'relationship' => 'none',
11089
+        'exclude' => 0,
11090
+        'id' => 'phpcode_2',
11091
+        'table' => 'customfield',
11092
+        'field' => 'phpcode',
11093
+        'relationship' => 'none',
11094 11094
     ),
11095 11095
     'canonical_resultid' => array(
11096
-      'label' => 'Canonical result',
11097
-      'alter' => array(
11096
+        'label' => 'Canonical result',
11097
+        'alter' => array(
11098 11098
         'alter_text' => 0,
11099 11099
         'text' => '',
11100 11100
         'make_link' => 0,
@@ -11111,25 +11111,25 @@  discard block
 block discarded – undo
11111 11111
         'ellipsis' => 1,
11112 11112
         'html' => 0,
11113 11113
         'strip_tags' => 0,
11114
-      ),
11115
-      'empty' => '',
11116
-      'hide_empty' => 0,
11117
-      'empty_zero' => 0,
11118
-      'set_precision' => FALSE,
11119
-      'precision' => 0,
11120
-      'decimal' => '.',
11121
-      'separator' => '',
11122
-      'prefix' => '',
11123
-      'suffix' => '',
11124
-      'exclude' => 1,
11125
-      'id' => 'canonical_resultid',
11126
-      'table' => 'workunit',
11127
-      'field' => 'canonical_resultid',
11128
-      'relationship' => 'none',
11114
+        ),
11115
+        'empty' => '',
11116
+        'hide_empty' => 0,
11117
+        'empty_zero' => 0,
11118
+        'set_precision' => FALSE,
11119
+        'precision' => 0,
11120
+        'decimal' => '.',
11121
+        'separator' => '',
11122
+        'prefix' => '',
11123
+        'suffix' => '',
11124
+        'exclude' => 1,
11125
+        'id' => 'canonical_resultid',
11126
+        'table' => 'workunit',
11127
+        'field' => 'canonical_resultid',
11128
+        'relationship' => 'none',
11129 11129
     ),
11130 11130
     'canonical_credit' => array(
11131
-      'label' => 'Canonical credit',
11132
-      'alter' => array(
11131
+        'label' => 'Canonical credit',
11132
+        'alter' => array(
11133 11133
         'alter_text' => 0,
11134 11134
         'text' => '',
11135 11135
         'make_link' => 0,
@@ -11146,25 +11146,25 @@  discard block
 block discarded – undo
11146 11146
         'ellipsis' => 1,
11147 11147
         'html' => 0,
11148 11148
         'strip_tags' => 0,
11149
-      ),
11150
-      'empty' => '',
11151
-      'hide_empty' => 0,
11152
-      'empty_zero' => 0,
11153
-      'set_precision' => 0,
11154
-      'precision' => '0',
11155
-      'decimal' => '.',
11156
-      'separator' => ',',
11157
-      'prefix' => '',
11158
-      'suffix' => '',
11159
-      'exclude' => 1,
11160
-      'id' => 'canonical_credit',
11161
-      'table' => 'workunit',
11162
-      'field' => 'canonical_credit',
11163
-      'relationship' => 'none',
11149
+        ),
11150
+        'empty' => '',
11151
+        'hide_empty' => 0,
11152
+        'empty_zero' => 0,
11153
+        'set_precision' => 0,
11154
+        'precision' => '0',
11155
+        'decimal' => '.',
11156
+        'separator' => ',',
11157
+        'prefix' => '',
11158
+        'suffix' => '',
11159
+        'exclude' => 1,
11160
+        'id' => 'canonical_credit',
11161
+        'table' => 'workunit',
11162
+        'field' => 'canonical_credit',
11163
+        'relationship' => 'none',
11164 11164
     ),
11165 11165
     'phpcode' => array(
11166
-      'label' => 'Canonical result',
11167
-      'alter' => array(
11166
+        'label' => 'Canonical result',
11167
+        'alter' => array(
11168 11168
         'alter_text' => 0,
11169 11169
         'text' => '',
11170 11170
         'make_link' => 0,
@@ -11181,24 +11181,24 @@  discard block
 block discarded – undo
11181 11181
         'ellipsis' => 1,
11182 11182
         'html' => 0,
11183 11183
         'strip_tags' => 0,
11184
-      ),
11185
-      'empty' => '',
11186
-      'hide_empty' => 1,
11187
-      'empty_zero' => 0,
11188
-      'value' => '<?php
11184
+        ),
11185
+        'empty' => '',
11186
+        'hide_empty' => 1,
11187
+        'empty_zero' => 0,
11188
+        'value' => '<?php
11189 11189
   if ($data->workunit_canonical_resultid) {
11190 11190
     echo l($data->workunit_canonical_resultid, "task/{$data->workunit_canonical_resultid}");
11191 11191
   }
11192 11192
 ?>',
11193
-      'exclude' => 0,
11194
-      'id' => 'phpcode',
11195
-      'table' => 'customfield',
11196
-      'field' => 'phpcode',
11197
-      'relationship' => 'none',
11193
+        'exclude' => 0,
11194
+        'id' => 'phpcode',
11195
+        'table' => 'customfield',
11196
+        'field' => 'phpcode',
11197
+        'relationship' => 'none',
11198 11198
     ),
11199 11199
     'phpcode_1' => array(
11200
-      'label' => 'Granted credit',
11201
-      'alter' => array(
11200
+        'label' => 'Granted credit',
11201
+        'alter' => array(
11202 11202
         'alter_text' => 0,
11203 11203
         'text' => '',
11204 11204
         'make_link' => 0,
@@ -11215,24 +11215,24 @@  discard block
 block discarded – undo
11215 11215
         'ellipsis' => 1,
11216 11216
         'html' => 0,
11217 11217
         'strip_tags' => 0,
11218
-      ),
11219
-      'empty' => '',
11220
-      'hide_empty' => 1,
11221
-      'empty_zero' => 0,
11222
-      'value' => '<?php
11218
+        ),
11219
+        'empty' => '',
11220
+        'hide_empty' => 1,
11221
+        'empty_zero' => 0,
11222
+        'value' => '<?php
11223 11223
   if ($data->workunit_canonical_resultid) {
11224 11224
     echo $data->workunit_canonical_credit;
11225 11225
   }
11226 11226
 ?>',
11227
-      'exclude' => 0,
11228
-      'id' => 'phpcode_1',
11229
-      'table' => 'customfield',
11230
-      'field' => 'phpcode',
11231
-      'relationship' => 'none',
11227
+        'exclude' => 0,
11228
+        'id' => 'phpcode_1',
11229
+        'table' => 'customfield',
11230
+        'field' => 'phpcode',
11231
+        'relationship' => 'none',
11232 11232
     ),
11233 11233
     'error_mask' => array(
11234
-      'label' => 'Error mask',
11235
-      'alter' => array(
11234
+        'label' => 'Error mask',
11235
+        'alter' => array(
11236 11236
         'alter_text' => 0,
11237 11237
         'text' => '',
11238 11238
         'make_link' => 0,
@@ -11249,25 +11249,25 @@  discard block
 block discarded – undo
11249 11249
         'ellipsis' => 1,
11250 11250
         'html' => 0,
11251 11251
         'strip_tags' => 0,
11252
-      ),
11253
-      'empty' => '',
11254
-      'hide_empty' => 0,
11255
-      'empty_zero' => 0,
11256
-      'set_precision' => FALSE,
11257
-      'precision' => 0,
11258
-      'decimal' => '.',
11259
-      'separator' => '',
11260
-      'prefix' => '',
11261
-      'suffix' => '',
11262
-      'exclude' => 1,
11263
-      'id' => 'error_mask',
11264
-      'table' => 'workunit',
11265
-      'field' => 'error_mask',
11266
-      'relationship' => 'none',
11252
+        ),
11253
+        'empty' => '',
11254
+        'hide_empty' => 0,
11255
+        'empty_zero' => 0,
11256
+        'set_precision' => FALSE,
11257
+        'precision' => 0,
11258
+        'decimal' => '.',
11259
+        'separator' => '',
11260
+        'prefix' => '',
11261
+        'suffix' => '',
11262
+        'exclude' => 1,
11263
+        'id' => 'error_mask',
11264
+        'table' => 'workunit',
11265
+        'field' => 'error_mask',
11266
+        'relationship' => 'none',
11267 11267
     ),
11268 11268
     'target_nresults' => array(
11269
-      'label' => 'Initial replication',
11270
-      'alter' => array(
11269
+        'label' => 'Initial replication',
11270
+        'alter' => array(
11271 11271
         'alter_text' => 0,
11272 11272
         'text' => '',
11273 11273
         'make_link' => 0,
@@ -11284,25 +11284,25 @@  discard block
 block discarded – undo
11284 11284
         'ellipsis' => 1,
11285 11285
         'html' => 0,
11286 11286
         'strip_tags' => 0,
11287
-      ),
11288
-      'empty' => '',
11289
-      'hide_empty' => 0,
11290
-      'empty_zero' => 0,
11291
-      'set_precision' => FALSE,
11292
-      'precision' => 0,
11293
-      'decimal' => '.',
11294
-      'separator' => '',
11295
-      'prefix' => '',
11296
-      'suffix' => '',
11297
-      'exclude' => 1,
11298
-      'id' => 'target_nresults',
11299
-      'table' => 'workunit',
11300
-      'field' => 'target_nresults',
11301
-      'relationship' => 'none',
11287
+        ),
11288
+        'empty' => '',
11289
+        'hide_empty' => 0,
11290
+        'empty_zero' => 0,
11291
+        'set_precision' => FALSE,
11292
+        'precision' => 0,
11293
+        'decimal' => '.',
11294
+        'separator' => '',
11295
+        'prefix' => '',
11296
+        'suffix' => '',
11297
+        'exclude' => 1,
11298
+        'id' => 'target_nresults',
11299
+        'table' => 'workunit',
11300
+        'field' => 'target_nresults',
11301
+        'relationship' => 'none',
11302 11302
     ),
11303 11303
     'max_error_results' => array(
11304
-      'label' => 'Max error tasks',
11305
-      'alter' => array(
11304
+        'label' => 'Max error tasks',
11305
+        'alter' => array(
11306 11306
         'alter_text' => 0,
11307 11307
         'text' => '',
11308 11308
         'make_link' => 0,
@@ -11319,25 +11319,25 @@  discard block
 block discarded – undo
11319 11319
         'ellipsis' => 1,
11320 11320
         'html' => 0,
11321 11321
         'strip_tags' => 0,
11322
-      ),
11323
-      'empty' => '',
11324
-      'hide_empty' => 0,
11325
-      'empty_zero' => 0,
11326
-      'set_precision' => FALSE,
11327
-      'precision' => 0,
11328
-      'decimal' => '.',
11329
-      'separator' => '',
11330
-      'prefix' => '',
11331
-      'suffix' => '',
11332
-      'exclude' => 1,
11333
-      'id' => 'max_error_results',
11334
-      'table' => 'workunit',
11335
-      'field' => 'max_error_results',
11336
-      'relationship' => 'none',
11322
+        ),
11323
+        'empty' => '',
11324
+        'hide_empty' => 0,
11325
+        'empty_zero' => 0,
11326
+        'set_precision' => FALSE,
11327
+        'precision' => 0,
11328
+        'decimal' => '.',
11329
+        'separator' => '',
11330
+        'prefix' => '',
11331
+        'suffix' => '',
11332
+        'exclude' => 1,
11333
+        'id' => 'max_error_results',
11334
+        'table' => 'workunit',
11335
+        'field' => 'max_error_results',
11336
+        'relationship' => 'none',
11337 11337
     ),
11338 11338
     'max_success_results' => array(
11339
-      'label' => 'Max success tasks',
11340
-      'alter' => array(
11339
+        'label' => 'Max success tasks',
11340
+        'alter' => array(
11341 11341
         'alter_text' => 0,
11342 11342
         'text' => '',
11343 11343
         'make_link' => 0,
@@ -11354,25 +11354,25 @@  discard block
 block discarded – undo
11354 11354
         'ellipsis' => 1,
11355 11355
         'html' => 0,
11356 11356
         'strip_tags' => 0,
11357
-      ),
11358
-      'empty' => '',
11359
-      'hide_empty' => 0,
11360
-      'empty_zero' => 0,
11361
-      'set_precision' => FALSE,
11362
-      'precision' => 0,
11363
-      'decimal' => '.',
11364
-      'separator' => '',
11365
-      'prefix' => '',
11366
-      'suffix' => '',
11367
-      'exclude' => 1,
11368
-      'id' => 'max_success_results',
11369
-      'table' => 'workunit',
11370
-      'field' => 'max_success_results',
11371
-      'relationship' => 'none',
11357
+        ),
11358
+        'empty' => '',
11359
+        'hide_empty' => 0,
11360
+        'empty_zero' => 0,
11361
+        'set_precision' => FALSE,
11362
+        'precision' => 0,
11363
+        'decimal' => '.',
11364
+        'separator' => '',
11365
+        'prefix' => '',
11366
+        'suffix' => '',
11367
+        'exclude' => 1,
11368
+        'id' => 'max_success_results',
11369
+        'table' => 'workunit',
11370
+        'field' => 'max_success_results',
11371
+        'relationship' => 'none',
11372 11372
     ),
11373 11373
     'max_total_results' => array(
11374
-      'label' => 'Max total tasks',
11375
-      'alter' => array(
11374
+        'label' => 'Max total tasks',
11375
+        'alter' => array(
11376 11376
         'alter_text' => 0,
11377 11377
         'text' => '',
11378 11378
         'make_link' => 0,
@@ -11389,25 +11389,25 @@  discard block
 block discarded – undo
11389 11389
         'ellipsis' => 1,
11390 11390
         'html' => 0,
11391 11391
         'strip_tags' => 0,
11392
-      ),
11393
-      'empty' => '',
11394
-      'hide_empty' => 0,
11395
-      'empty_zero' => 0,
11396
-      'set_precision' => FALSE,
11397
-      'precision' => 0,
11398
-      'decimal' => '.',
11399
-      'separator' => '',
11400
-      'prefix' => '',
11401
-      'suffix' => '',
11402
-      'exclude' => 1,
11403
-      'id' => 'max_total_results',
11404
-      'table' => 'workunit',
11405
-      'field' => 'max_total_results',
11406
-      'relationship' => 'none',
11392
+        ),
11393
+        'empty' => '',
11394
+        'hide_empty' => 0,
11395
+        'empty_zero' => 0,
11396
+        'set_precision' => FALSE,
11397
+        'precision' => 0,
11398
+        'decimal' => '.',
11399
+        'separator' => '',
11400
+        'prefix' => '',
11401
+        'suffix' => '',
11402
+        'exclude' => 1,
11403
+        'id' => 'max_total_results',
11404
+        'table' => 'workunit',
11405
+        'field' => 'max_total_results',
11406
+        'relationship' => 'none',
11407 11407
     ),
11408 11408
     'min_quorum' => array(
11409
-      'label' => 'Minimum quorum',
11410
-      'alter' => array(
11409
+        'label' => 'Minimum quorum',
11410
+        'alter' => array(
11411 11411
         'alter_text' => 0,
11412 11412
         'text' => '',
11413 11413
         'make_link' => 0,
@@ -11424,25 +11424,25 @@  discard block
 block discarded – undo
11424 11424
         'ellipsis' => 1,
11425 11425
         'html' => 0,
11426 11426
         'strip_tags' => 0,
11427
-      ),
11428
-      'empty' => '',
11429
-      'hide_empty' => 0,
11430
-      'empty_zero' => 0,
11431
-      'set_precision' => FALSE,
11432
-      'precision' => 0,
11433
-      'decimal' => '.',
11434
-      'separator' => '',
11435
-      'prefix' => '',
11436
-      'suffix' => '',
11437
-      'exclude' => 1,
11438
-      'id' => 'min_quorum',
11439
-      'table' => 'workunit',
11440
-      'field' => 'min_quorum',
11441
-      'relationship' => 'none',
11427
+        ),
11428
+        'empty' => '',
11429
+        'hide_empty' => 0,
11430
+        'empty_zero' => 0,
11431
+        'set_precision' => FALSE,
11432
+        'precision' => 0,
11433
+        'decimal' => '.',
11434
+        'separator' => '',
11435
+        'prefix' => '',
11436
+        'suffix' => '',
11437
+        'exclude' => 1,
11438
+        'id' => 'min_quorum',
11439
+        'table' => 'workunit',
11440
+        'field' => 'min_quorum',
11441
+        'relationship' => 'none',
11442 11442
     ),
11443 11443
     'target_nresults_1' => array(
11444
-      'label' => 'Target number of results',
11445
-      'alter' => array(
11444
+        'label' => 'Target number of results',
11445
+        'alter' => array(
11446 11446
         'alter_text' => 0,
11447 11447
         'text' => '',
11448 11448
         'make_link' => 0,
@@ -11459,25 +11459,25 @@  discard block
 block discarded – undo
11459 11459
         'ellipsis' => 1,
11460 11460
         'html' => 0,
11461 11461
         'strip_tags' => 0,
11462
-      ),
11463
-      'empty' => '',
11464
-      'hide_empty' => 0,
11465
-      'empty_zero' => 0,
11466
-      'set_precision' => FALSE,
11467
-      'precision' => 0,
11468
-      'decimal' => '.',
11469
-      'separator' => '',
11470
-      'prefix' => '',
11471
-      'suffix' => '',
11472
-      'exclude' => 1,
11473
-      'id' => 'target_nresults_1',
11474
-      'table' => 'app',
11475
-      'field' => 'target_nresults',
11476
-      'relationship' => 'appid',
11462
+        ),
11463
+        'empty' => '',
11464
+        'hide_empty' => 0,
11465
+        'empty_zero' => 0,
11466
+        'set_precision' => FALSE,
11467
+        'precision' => 0,
11468
+        'decimal' => '.',
11469
+        'separator' => '',
11470
+        'prefix' => '',
11471
+        'suffix' => '',
11472
+        'exclude' => 1,
11473
+        'id' => 'target_nresults_1',
11474
+        'table' => 'app',
11475
+        'field' => 'target_nresults',
11476
+        'relationship' => 'appid',
11477 11477
     ),
11478 11478
     'phpcode_3' => array(
11479
-      'label' => 'Minimum quorum',
11480
-      'alter' => array(
11479
+        'label' => 'Minimum quorum',
11480
+        'alter' => array(
11481 11481
         'alter_text' => 0,
11482 11482
         'text' => '',
11483 11483
         'make_link' => 0,
@@ -11496,25 +11496,25 @@  discard block
 block discarded – undo
11496 11496
         'ellipsis' => 1,
11497 11497
         'html' => 0,
11498 11498
         'strip_tags' => 0,
11499
-      ),
11500
-      'empty' => '',
11501
-      'hide_empty' => 1,
11502
-      'empty_zero' => 0,
11503
-      'hide_alter_empty' => 1,
11504
-      'value' => '<?php
11499
+        ),
11500
+        'empty' => '',
11501
+        'hide_empty' => 1,
11502
+        'empty_zero' => 0,
11503
+        'hide_alter_empty' => 1,
11504
+        'value' => '<?php
11505 11505
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11506 11506
     echo $data->workunit_min_quorum;
11507 11507
   }
11508 11508
 ?>',
11509
-      'exclude' => 0,
11510
-      'id' => 'phpcode_3',
11511
-      'table' => 'customfield',
11512
-      'field' => 'phpcode',
11513
-      'relationship' => 'none',
11509
+        'exclude' => 0,
11510
+        'id' => 'phpcode_3',
11511
+        'table' => 'customfield',
11512
+        'field' => 'phpcode',
11513
+        'relationship' => 'none',
11514 11514
     ),
11515 11515
     'phpcode_4' => array(
11516
-      'label' => 'Initial replication',
11517
-      'alter' => array(
11516
+        'label' => 'Initial replication',
11517
+        'alter' => array(
11518 11518
         'alter_text' => 0,
11519 11519
         'text' => '',
11520 11520
         'make_link' => 0,
@@ -11533,26 +11533,26 @@  discard block
 block discarded – undo
11533 11533
         'ellipsis' => 1,
11534 11534
         'html' => 0,
11535 11535
         'strip_tags' => 0,
11536
-      ),
11537
-      'empty' => '',
11538
-      'hide_empty' => 1,
11539
-      'empty_zero' => 0,
11540
-      'hide_alter_empty' => 1,
11541
-      'value' => '<?php
11536
+        ),
11537
+        'empty' => '',
11538
+        'hide_empty' => 1,
11539
+        'empty_zero' => 0,
11540
+        'hide_alter_empty' => 1,
11541
+        'value' => '<?php
11542 11542
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11543 11543
 
11544 11544
     echo $data->workunit_target_nresults;
11545 11545
   }
11546 11546
 ?>',
11547
-      'exclude' => 0,
11548
-      'id' => 'phpcode_4',
11549
-      'table' => 'customfield',
11550
-      'field' => 'phpcode',
11551
-      'relationship' => 'none',
11547
+        'exclude' => 0,
11548
+        'id' => 'phpcode_4',
11549
+        'table' => 'customfield',
11550
+        'field' => 'phpcode',
11551
+        'relationship' => 'none',
11552 11552
     ),
11553 11553
     'phpcode_5' => array(
11554
-      'label' => 'Max # of error/total/success tasks',
11555
-      'alter' => array(
11554
+        'label' => 'Max # of error/total/success tasks',
11555
+        'alter' => array(
11556 11556
         'alter_text' => 0,
11557 11557
         'text' => '',
11558 11558
         'make_link' => 0,
@@ -11571,25 +11571,25 @@  discard block
 block discarded – undo
11571 11571
         'ellipsis' => 1,
11572 11572
         'html' => 0,
11573 11573
         'strip_tags' => 0,
11574
-      ),
11575
-      'empty' => '',
11576
-      'hide_empty' => 1,
11577
-      'empty_zero' => 0,
11578
-      'hide_alter_empty' => 1,
11579
-      'value' => '<?php
11574
+        ),
11575
+        'empty' => '',
11576
+        'hide_empty' => 1,
11577
+        'empty_zero' => 0,
11578
+        'hide_alter_empty' => 1,
11579
+        'value' => '<?php
11580 11580
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11581 11581
     echo "{$data->workunit_max_error_results}, {$data->workunit_max_total_results}, {$data->workunit_max_success_results}";
11582 11582
   }
11583 11583
 ?>',
11584
-      'exclude' => 0,
11585
-      'id' => 'phpcode_5',
11586
-      'table' => 'customfield',
11587
-      'field' => 'phpcode',
11588
-      'relationship' => 'none',
11584
+        'exclude' => 0,
11585
+        'id' => 'phpcode_5',
11586
+        'table' => 'customfield',
11587
+        'field' => 'phpcode',
11588
+        'relationship' => 'none',
11589 11589
     ),
11590 11590
     'phpcode_6' => array(
11591
-      'label' => 'Errors',
11592
-      'alter' => array(
11591
+        'label' => 'Errors',
11592
+        'alter' => array(
11593 11593
         'alter_text' => 0,
11594 11594
         'text' => '',
11595 11595
         'make_link' => 0,
@@ -11608,12 +11608,12 @@  discard block
 block discarded – undo
11608 11608
         'ellipsis' => 1,
11609 11609
         'html' => 0,
11610 11610
         'strip_tags' => 0,
11611
-      ),
11612
-      'empty' => '',
11613
-      'hide_empty' => 1,
11614
-      'empty_zero' => 0,
11615
-      'hide_alter_empty' => 1,
11616
-      'value' => '<?php
11611
+        ),
11612
+        'empty' => '',
11613
+        'hide_empty' => 1,
11614
+        'empty_zero' => 0,
11615
+        'hide_alter_empty' => 1,
11616
+        'value' => '<?php
11617 11617
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11618 11618
     if ($data->workunit_error_mask) {
11619 11619
       require_boinc(\'result\');
@@ -11621,15 +11621,15 @@  discard block
 block discarded – undo
11621 11621
     }
11622 11622
   }
11623 11623
 ?>',
11624
-      'exclude' => 0,
11625
-      'id' => 'phpcode_6',
11626
-      'table' => 'customfield',
11627
-      'field' => 'phpcode',
11628
-      'relationship' => 'none',
11624
+        'exclude' => 0,
11625
+        'id' => 'phpcode_6',
11626
+        'table' => 'customfield',
11627
+        'field' => 'phpcode',
11628
+        'relationship' => 'none',
11629 11629
     ),
11630 11630
     'need_validate' => array(
11631
-      'label' => 'Needs validation',
11632
-      'alter' => array(
11631
+        'label' => 'Needs validation',
11632
+        'alter' => array(
11633 11633
         'alter_text' => 0,
11634 11634
         'text' => '',
11635 11635
         'make_link' => 0,
@@ -11646,25 +11646,25 @@  discard block
 block discarded – undo
11646 11646
         'ellipsis' => 1,
11647 11647
         'html' => 0,
11648 11648
         'strip_tags' => 0,
11649
-      ),
11650
-      'empty' => '',
11651
-      'hide_empty' => 0,
11652
-      'empty_zero' => 0,
11653
-      'set_precision' => FALSE,
11654
-      'precision' => 0,
11655
-      'decimal' => '.',
11656
-      'separator' => ',',
11657
-      'prefix' => '',
11658
-      'suffix' => '',
11659
-      'exclude' => 1,
11660
-      'id' => 'need_validate',
11661
-      'table' => 'workunit',
11662
-      'field' => 'need_validate',
11663
-      'relationship' => 'none',
11649
+        ),
11650
+        'empty' => '',
11651
+        'hide_empty' => 0,
11652
+        'empty_zero' => 0,
11653
+        'set_precision' => FALSE,
11654
+        'precision' => 0,
11655
+        'decimal' => '.',
11656
+        'separator' => ',',
11657
+        'prefix' => '',
11658
+        'suffix' => '',
11659
+        'exclude' => 1,
11660
+        'id' => 'need_validate',
11661
+        'table' => 'workunit',
11662
+        'field' => 'need_validate',
11663
+        'relationship' => 'none',
11664 11664
     ),
11665 11665
     'phpcode_7' => array(
11666
-      'label' => 'Validation',
11667
-      'alter' => array(
11666
+        'label' => 'Validation',
11667
+        'alter' => array(
11668 11668
         'alter_text' => 0,
11669 11669
         'text' => '',
11670 11670
         'make_link' => 0,
@@ -11683,12 +11683,12 @@  discard block
 block discarded – undo
11683 11683
         'ellipsis' => 1,
11684 11684
         'html' => 0,
11685 11685
         'strip_tags' => 0,
11686
-      ),
11687
-      'empty' => '',
11688
-      'hide_empty' => 1,
11689
-      'empty_zero' => 0,
11690
-      'hide_alter_empty' => 1,
11691
-      'value' => '<?php
11686
+        ),
11687
+        'empty' => '',
11688
+        'hide_empty' => 1,
11689
+        'empty_zero' => 0,
11690
+        'hide_alter_empty' => 1,
11691
+        'value' => '<?php
11692 11692
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11693 11693
 
11694 11694
     if ($data->workunit_need_validate) {
@@ -11696,40 +11696,40 @@  discard block
 block discarded – undo
11696 11696
     }
11697 11697
   }
11698 11698
 ?>',
11699
-      'exclude' => 0,
11700
-      'id' => 'phpcode_7',
11701
-      'table' => 'customfield',
11702
-      'field' => 'phpcode',
11703
-      'relationship' => 'none',
11704
-    ),
11705
-  ));
11706
-  $handler->override_option('arguments', array(
11699
+        'exclude' => 0,
11700
+        'id' => 'phpcode_7',
11701
+        'table' => 'customfield',
11702
+        'field' => 'phpcode',
11703
+        'relationship' => 'none',
11704
+    ),
11705
+    ));
11706
+    $handler->override_option('arguments', array(
11707 11707
     'id' => array(
11708
-      'default_action' => 'not found',
11709
-      'style_plugin' => 'default_summary',
11710
-      'style_options' => array(),
11711
-      'wildcard' => 'all',
11712
-      'wildcard_substitution' => 'All',
11713
-      'title' => 'Workunit %1',
11714
-      'breadcrumb' => '',
11715
-      'default_argument_type' => 'fixed',
11716
-      'default_argument' => '',
11717
-      'validate_type' => 'numeric',
11718
-      'validate_fail' => 'not found',
11719
-      'id' => 'id',
11720
-      'table' => 'workunit',
11721
-      'field' => 'id',
11722
-      'validate_user_argument_type' => 'uid',
11723
-      'validate_user_roles' => array(
11708
+        'default_action' => 'not found',
11709
+        'style_plugin' => 'default_summary',
11710
+        'style_options' => array(),
11711
+        'wildcard' => 'all',
11712
+        'wildcard_substitution' => 'All',
11713
+        'title' => 'Workunit %1',
11714
+        'breadcrumb' => '',
11715
+        'default_argument_type' => 'fixed',
11716
+        'default_argument' => '',
11717
+        'validate_type' => 'numeric',
11718
+        'validate_fail' => 'not found',
11719
+        'id' => 'id',
11720
+        'table' => 'workunit',
11721
+        'field' => 'id',
11722
+        'validate_user_argument_type' => 'uid',
11723
+        'validate_user_roles' => array(
11724 11724
         2 => 0,
11725 11725
         3 => 0,
11726
-      ),
11727
-      'relationship' => 'none',
11728
-      'default_options_div_prefix' => '',
11729
-      'default_argument_fixed' => '',
11730
-      'default_argument_user' => 0,
11731
-      'default_argument_php' => '',
11732
-      'validate_argument_node_type' => array(
11726
+        ),
11727
+        'relationship' => 'none',
11728
+        'default_options_div_prefix' => '',
11729
+        'default_argument_fixed' => '',
11730
+        'default_argument_user' => 0,
11731
+        'default_argument_php' => '',
11732
+        'validate_argument_node_type' => array(
11733 11733
         'forum' => 0,
11734 11734
         'job_post' => 0,
11735 11735
         'news' => 0,
@@ -11737,59 +11737,59 @@  discard block
 block discarded – undo
11737 11737
         'profile' => 0,
11738 11738
         'story' => 0,
11739 11739
         'team' => 0,
11740
-      ),
11741
-      'validate_argument_node_access' => 0,
11742
-      'validate_argument_nid_type' => 'nid',
11743
-      'validate_argument_vocabulary' => array(
11740
+        ),
11741
+        'validate_argument_node_access' => 0,
11742
+        'validate_argument_nid_type' => 'nid',
11743
+        'validate_argument_vocabulary' => array(
11744 11744
         1 => 0,
11745
-      ),
11746
-      'validate_argument_type' => 'tid',
11747
-      'validate_argument_transform' => 0,
11748
-      'validate_user_restrict_roles' => 0,
11749
-      'validate_argument_php' => '',
11750
-    ),
11751
-  ));
11752
-  $handler->override_option('access', array(
11745
+        ),
11746
+        'validate_argument_type' => 'tid',
11747
+        'validate_argument_transform' => 0,
11748
+        'validate_user_restrict_roles' => 0,
11749
+        'validate_argument_php' => '',
11750
+    ),
11751
+    ));
11752
+    $handler->override_option('access', array(
11753 11753
     'type' => 'none',
11754
-  ));
11755
-  $handler->override_option('cache', array(
11754
+    ));
11755
+    $handler->override_option('cache', array(
11756 11756
     'type' => 'none',
11757
-  ));
11758
-  $handler->override_option('footer_format', '1');
11759
-  $handler->override_option('footer_empty', 0);
11760
-  $handler = $view->new_display('page', 'Page', 'page_1');
11761
-  $handler->override_option('path', 'workunit');
11762
-  $handler->override_option('menu', array(
11757
+    ));
11758
+    $handler->override_option('footer_format', '1');
11759
+    $handler->override_option('footer_empty', 0);
11760
+    $handler = $view->new_display('page', 'Page', 'page_1');
11761
+    $handler->override_option('path', 'workunit');
11762
+    $handler->override_option('menu', array(
11763 11763
     'type' => 'none',
11764 11764
     'title' => '',
11765 11765
     'description' => '',
11766 11766
     'weight' => 0,
11767 11767
     'name' => 'primary-links',
11768
-  ));
11769
-  $handler->override_option('tab_options', array(
11768
+    ));
11769
+    $handler->override_option('tab_options', array(
11770 11770
     'type' => 'none',
11771 11771
     'title' => '',
11772 11772
     'description' => '',
11773 11773
     'weight' => 0,
11774 11774
     'name' => 'navigation',
11775
-  ));
11775
+    ));
11776 11776
 
11777
-  $views[$view->name] = $view;
11777
+    $views[$view->name] = $view;
11778 11778
 
11779
-  // Exported view: boinc_workunit_tasks_all
11780
-  $view = new view;
11781
-  $view->name = 'boinc_workunit_tasks_all';
11782
-  $view->description = 'A list of all tasks in a given workunit';
11783
-  $view->tag = '';
11784
-  $view->base_table = 'result';
11785
-  $view->core = 6;
11786
-  $view->api_version = '2';
11787
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
11788
-  $handler = $view->new_display('default', 'Defaults', 'default');
11789
-  $handler->override_option('fields', array(
11779
+    // Exported view: boinc_workunit_tasks_all
11780
+    $view = new view;
11781
+    $view->name = 'boinc_workunit_tasks_all';
11782
+    $view->description = 'A list of all tasks in a given workunit';
11783
+    $view->tag = '';
11784
+    $view->base_table = 'result';
11785
+    $view->core = 6;
11786
+    $view->api_version = '2';
11787
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
11788
+    $handler = $view->new_display('default', 'Defaults', 'default');
11789
+    $handler->override_option('fields', array(
11790 11790
     'name' => array(
11791
-      'label' => 'Name',
11792
-      'alter' => array(
11791
+        'label' => 'Name',
11792
+        'alter' => array(
11793 11793
         'alter_text' => 0,
11794 11794
         'text' => '',
11795 11795
         'make_link' => 0,
@@ -11808,20 +11808,20 @@  discard block
 block discarded – undo
11808 11808
         'ellipsis' => 1,
11809 11809
         'html' => 0,
11810 11810
         'strip_tags' => 0,
11811
-      ),
11812
-      'empty' => '',
11813
-      'hide_empty' => 0,
11814
-      'empty_zero' => 0,
11815
-      'hide_alter_empty' => 1,
11816
-      'exclude' => 1,
11817
-      'id' => 'name',
11818
-      'table' => 'result',
11819
-      'field' => 'name',
11820
-      'relationship' => 'none',
11811
+        ),
11812
+        'empty' => '',
11813
+        'hide_empty' => 0,
11814
+        'empty_zero' => 0,
11815
+        'hide_alter_empty' => 1,
11816
+        'exclude' => 1,
11817
+        'id' => 'name',
11818
+        'table' => 'result',
11819
+        'field' => 'name',
11820
+        'relationship' => 'none',
11821 11821
     ),
11822 11822
     'id' => array(
11823
-      'label' => 'Task ID',
11824
-      'alter' => array(
11823
+        'label' => 'Task ID',
11824
+        'alter' => array(
11825 11825
         'alter_text' => 0,
11826 11826
         'text' => '',
11827 11827
         'make_link' => 0,
@@ -11840,29 +11840,29 @@  discard block
 block discarded – undo
11840 11840
         'ellipsis' => 1,
11841 11841
         'html' => 0,
11842 11842
         'strip_tags' => 0,
11843
-      ),
11844
-      'empty' => '',
11845
-      'hide_empty' => 0,
11846
-      'empty_zero' => 0,
11847
-      'hide_alter_empty' => 1,
11848
-      'set_precision' => FALSE,
11849
-      'precision' => 0,
11850
-      'decimal' => '.',
11851
-      'separator' => '',
11852
-      'format_plural' => 0,
11853
-      'format_plural_singular' => '1',
11854
-      'format_plural_plural' => '@count',
11855
-      'prefix' => '',
11856
-      'suffix' => '',
11857
-      'exclude' => 0,
11858
-      'id' => 'id',
11859
-      'table' => 'result',
11860
-      'field' => 'id',
11861
-      'relationship' => 'none',
11843
+        ),
11844
+        'empty' => '',
11845
+        'hide_empty' => 0,
11846
+        'empty_zero' => 0,
11847
+        'hide_alter_empty' => 1,
11848
+        'set_precision' => FALSE,
11849
+        'precision' => 0,
11850
+        'decimal' => '.',
11851
+        'separator' => '',
11852
+        'format_plural' => 0,
11853
+        'format_plural_singular' => '1',
11854
+        'format_plural_plural' => '@count',
11855
+        'prefix' => '',
11856
+        'suffix' => '',
11857
+        'exclude' => 0,
11858
+        'id' => 'id',
11859
+        'table' => 'result',
11860
+        'field' => 'id',
11861
+        'relationship' => 'none',
11862 11862
     ),
11863 11863
     'hostid' => array(
11864
-      'label' => 'Computer',
11865
-      'alter' => array(
11864
+        'label' => 'Computer',
11865
+        'alter' => array(
11866 11866
         'alter_text' => 0,
11867 11867
         'text' => '',
11868 11868
         'make_link' => 1,
@@ -11881,29 +11881,29 @@  discard block
 block discarded – undo
11881 11881
         'ellipsis' => 1,
11882 11882
         'html' => 0,
11883 11883
         'strip_tags' => 0,
11884
-      ),
11885
-      'empty' => '',
11886
-      'hide_empty' => 0,
11887
-      'empty_zero' => 0,
11888
-      'hide_alter_empty' => 1,
11889
-      'set_precision' => FALSE,
11890
-      'precision' => 0,
11891
-      'decimal' => '.',
11892
-      'separator' => '',
11893
-      'format_plural' => 0,
11894
-      'format_plural_singular' => '1',
11895
-      'format_plural_plural' => '@count',
11896
-      'prefix' => '',
11897
-      'suffix' => '',
11898
-      'exclude' => 0,
11899
-      'id' => 'hostid',
11900
-      'table' => 'result',
11901
-      'field' => 'hostid',
11902
-      'relationship' => 'none',
11884
+        ),
11885
+        'empty' => '',
11886
+        'hide_empty' => 0,
11887
+        'empty_zero' => 0,
11888
+        'hide_alter_empty' => 1,
11889
+        'set_precision' => FALSE,
11890
+        'precision' => 0,
11891
+        'decimal' => '.',
11892
+        'separator' => '',
11893
+        'format_plural' => 0,
11894
+        'format_plural_singular' => '1',
11895
+        'format_plural_plural' => '@count',
11896
+        'prefix' => '',
11897
+        'suffix' => '',
11898
+        'exclude' => 0,
11899
+        'id' => 'hostid',
11900
+        'table' => 'result',
11901
+        'field' => 'hostid',
11902
+        'relationship' => 'none',
11903 11903
     ),
11904 11904
     'sent_time' => array(
11905
-      'label' => 'Sent',
11906
-      'alter' => array(
11905
+        'label' => 'Sent',
11906
+        'alter' => array(
11907 11907
         'alter_text' => 0,
11908 11908
         'text' => '',
11909 11909
         'make_link' => 0,
@@ -11920,21 +11920,21 @@  discard block
 block discarded – undo
11920 11920
         'ellipsis' => 1,
11921 11921
         'html' => 0,
11922 11922
         'strip_tags' => 0,
11923
-      ),
11924
-      'empty' => '',
11925
-      'hide_empty' => 0,
11926
-      'empty_zero' => 0,
11927
-      'date_format' => 'custom',
11928
-      'custom_date_format' => 'j M Y G:i:s e',
11929
-      'exclude' => 1,
11930
-      'id' => 'sent_time',
11931
-      'table' => 'result',
11932
-      'field' => 'sent_time',
11933
-      'relationship' => 'none',
11923
+        ),
11924
+        'empty' => '',
11925
+        'hide_empty' => 0,
11926
+        'empty_zero' => 0,
11927
+        'date_format' => 'custom',
11928
+        'custom_date_format' => 'j M Y G:i:s e',
11929
+        'exclude' => 1,
11930
+        'id' => 'sent_time',
11931
+        'table' => 'result',
11932
+        'field' => 'sent_time',
11933
+        'relationship' => 'none',
11934 11934
     ),
11935 11935
     'received_time' => array(
11936
-      'label' => 'Received time',
11937
-      'alter' => array(
11936
+        'label' => 'Received time',
11937
+        'alter' => array(
11938 11938
         'alter_text' => 0,
11939 11939
         'text' => '',
11940 11940
         'make_link' => 0,
@@ -11951,21 +11951,21 @@  discard block
 block discarded – undo
11951 11951
         'ellipsis' => 1,
11952 11952
         'html' => 0,
11953 11953
         'strip_tags' => 0,
11954
-      ),
11955
-      'empty' => '',
11956
-      'hide_empty' => 0,
11957
-      'empty_zero' => 0,
11958
-      'date_format' => 'small',
11959
-      'custom_date_format' => '',
11960
-      'exclude' => 1,
11961
-      'id' => 'received_time',
11962
-      'table' => 'result',
11963
-      'field' => 'received_time',
11964
-      'relationship' => 'none',
11954
+        ),
11955
+        'empty' => '',
11956
+        'hide_empty' => 0,
11957
+        'empty_zero' => 0,
11958
+        'date_format' => 'small',
11959
+        'custom_date_format' => '',
11960
+        'exclude' => 1,
11961
+        'id' => 'received_time',
11962
+        'table' => 'result',
11963
+        'field' => 'received_time',
11964
+        'relationship' => 'none',
11965 11965
     ),
11966 11966
     'report_deadline' => array(
11967
-      'label' => 'Report deadline',
11968
-      'alter' => array(
11967
+        'label' => 'Report deadline',
11968
+        'alter' => array(
11969 11969
         'alter_text' => 0,
11970 11970
         'text' => '',
11971 11971
         'make_link' => 0,
@@ -11982,21 +11982,21 @@  discard block
 block discarded – undo
11982 11982
         'ellipsis' => 1,
11983 11983
         'html' => 0,
11984 11984
         'strip_tags' => 0,
11985
-      ),
11986
-      'empty' => '',
11987
-      'hide_empty' => 0,
11988
-      'empty_zero' => 0,
11989
-      'date_format' => 'small',
11990
-      'custom_date_format' => '',
11991
-      'exclude' => 1,
11992
-      'id' => 'report_deadline',
11993
-      'table' => 'result',
11994
-      'field' => 'report_deadline',
11995
-      'relationship' => 'none',
11985
+        ),
11986
+        'empty' => '',
11987
+        'hide_empty' => 0,
11988
+        'empty_zero' => 0,
11989
+        'date_format' => 'small',
11990
+        'custom_date_format' => '',
11991
+        'exclude' => 1,
11992
+        'id' => 'report_deadline',
11993
+        'table' => 'result',
11994
+        'field' => 'report_deadline',
11995
+        'relationship' => 'none',
11996 11996
     ),
11997 11997
     'phpcode_3' => array(
11998
-      'label' => 'Sent',
11999
-      'alter' => array(
11998
+        'label' => 'Sent',
11999
+        'alter' => array(
12000 12000
         'alter_text' => 0,
12001 12001
         'text' => '',
12002 12002
         'make_link' => 0,
@@ -12015,24 +12015,24 @@  discard block
 block discarded – undo
12015 12015
         'ellipsis' => 1,
12016 12016
         'html' => 0,
12017 12017
         'strip_tags' => 0,
12018
-      ),
12019
-      'empty' => '',
12020
-      'hide_empty' => 0,
12021
-      'empty_zero' => 0,
12022
-      'hide_alter_empty' => 1,
12023
-      'value' => '<?php
12018
+        ),
12019
+        'empty' => '',
12020
+        'hide_empty' => 0,
12021
+        'empty_zero' => 0,
12022
+        'hide_alter_empty' => 1,
12023
+        'value' => '<?php
12024 12024
   require_boinc(\'util\');
12025 12025
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
12026 12026
 ?>',
12027
-      'exclude' => 0,
12028
-      'id' => 'phpcode_3',
12029
-      'table' => 'customfield',
12030
-      'field' => 'phpcode',
12031
-      'relationship' => 'none',
12027
+        'exclude' => 0,
12028
+        'id' => 'phpcode_3',
12029
+        'table' => 'customfield',
12030
+        'field' => 'phpcode',
12031
+        'relationship' => 'none',
12032 12032
     ),
12033 12033
     'phpcode' => array(
12034
-      'label' => 'Time reported or deadline',
12035
-      'alter' => array(
12034
+        'label' => 'Time reported or deadline',
12035
+        'alter' => array(
12036 12036
         'alter_text' => 0,
12037 12037
         'text' => '',
12038 12038
         'make_link' => 0,
@@ -12051,24 +12051,24 @@  discard block
 block discarded – undo
12051 12051
         'ellipsis' => 1,
12052 12052
         'html' => 0,
12053 12053
         'strip_tags' => 0,
12054
-      ),
12055
-      'empty' => '',
12056
-      'hide_empty' => 0,
12057
-      'empty_zero' => 0,
12058
-      'hide_alter_empty' => 1,
12059
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
12060
-      'exclude' => 0,
12061
-      'id' => 'phpcode',
12062
-      'table' => 'customfield',
12063
-      'field' => 'phpcode',
12064
-      'override' => array(
12054
+        ),
12055
+        'empty' => '',
12056
+        'hide_empty' => 0,
12057
+        'empty_zero' => 0,
12058
+        'hide_alter_empty' => 1,
12059
+        'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
12060
+        'exclude' => 0,
12061
+        'id' => 'phpcode',
12062
+        'table' => 'customfield',
12063
+        'field' => 'phpcode',
12064
+        'override' => array(
12065 12065
         'button' => 'Override',
12066
-      ),
12067
-      'relationship' => 'none',
12066
+        ),
12067
+        'relationship' => 'none',
12068 12068
     ),
12069 12069
     'server_state' => array(
12070
-      'label' => 'Server state',
12071
-      'alter' => array(
12070
+        'label' => 'Server state',
12071
+        'alter' => array(
12072 12072
         'alter_text' => 0,
12073 12073
         'text' => '',
12074 12074
         'make_link' => 0,
@@ -12085,25 +12085,25 @@  discard block
 block discarded – undo
12085 12085
         'ellipsis' => 1,
12086 12086
         'html' => 0,
12087 12087
         'strip_tags' => 0,
12088
-      ),
12089
-      'empty' => '',
12090
-      'hide_empty' => 0,
12091
-      'empty_zero' => 0,
12092
-      'set_precision' => FALSE,
12093
-      'precision' => 0,
12094
-      'decimal' => '.',
12095
-      'separator' => '',
12096
-      'prefix' => '',
12097
-      'suffix' => '',
12098
-      'exclude' => 1,
12099
-      'id' => 'server_state',
12100
-      'table' => 'result',
12101
-      'field' => 'server_state',
12102
-      'relationship' => 'none',
12088
+        ),
12089
+        'empty' => '',
12090
+        'hide_empty' => 0,
12091
+        'empty_zero' => 0,
12092
+        'set_precision' => FALSE,
12093
+        'precision' => 0,
12094
+        'decimal' => '.',
12095
+        'separator' => '',
12096
+        'prefix' => '',
12097
+        'suffix' => '',
12098
+        'exclude' => 1,
12099
+        'id' => 'server_state',
12100
+        'table' => 'result',
12101
+        'field' => 'server_state',
12102
+        'relationship' => 'none',
12103 12103
     ),
12104 12104
     'outcome' => array(
12105
-      'label' => 'Outcome',
12106
-      'alter' => array(
12105
+        'label' => 'Outcome',
12106
+        'alter' => array(
12107 12107
         'alter_text' => 0,
12108 12108
         'text' => '',
12109 12109
         'make_link' => 0,
@@ -12120,25 +12120,25 @@  discard block
 block discarded – undo
12120 12120
         'ellipsis' => 1,
12121 12121
         'html' => 0,
12122 12122
         'strip_tags' => 0,
12123
-      ),
12124
-      'empty' => '',
12125
-      'hide_empty' => 0,
12126
-      'empty_zero' => 0,
12127
-      'set_precision' => FALSE,
12128
-      'precision' => 0,
12129
-      'decimal' => '.',
12130
-      'separator' => '',
12131
-      'prefix' => '',
12132
-      'suffix' => '',
12133
-      'exclude' => 1,
12134
-      'id' => 'outcome',
12135
-      'table' => 'result',
12136
-      'field' => 'outcome',
12137
-      'relationship' => 'none',
12123
+        ),
12124
+        'empty' => '',
12125
+        'hide_empty' => 0,
12126
+        'empty_zero' => 0,
12127
+        'set_precision' => FALSE,
12128
+        'precision' => 0,
12129
+        'decimal' => '.',
12130
+        'separator' => '',
12131
+        'prefix' => '',
12132
+        'suffix' => '',
12133
+        'exclude' => 1,
12134
+        'id' => 'outcome',
12135
+        'table' => 'result',
12136
+        'field' => 'outcome',
12137
+        'relationship' => 'none',
12138 12138
     ),
12139 12139
     'client_state' => array(
12140
-      'label' => 'Client state',
12141
-      'alter' => array(
12140
+        'label' => 'Client state',
12141
+        'alter' => array(
12142 12142
         'alter_text' => 0,
12143 12143
         'text' => '',
12144 12144
         'make_link' => 0,
@@ -12155,25 +12155,25 @@  discard block
 block discarded – undo
12155 12155
         'ellipsis' => 1,
12156 12156
         'html' => 0,
12157 12157
         'strip_tags' => 0,
12158
-      ),
12159
-      'empty' => '',
12160
-      'hide_empty' => 0,
12161
-      'empty_zero' => 0,
12162
-      'set_precision' => FALSE,
12163
-      'precision' => 0,
12164
-      'decimal' => '.',
12165
-      'separator' => '',
12166
-      'prefix' => '',
12167
-      'suffix' => '',
12168
-      'exclude' => 1,
12169
-      'id' => 'client_state',
12170
-      'table' => 'result',
12171
-      'field' => 'client_state',
12172
-      'relationship' => 'none',
12158
+        ),
12159
+        'empty' => '',
12160
+        'hide_empty' => 0,
12161
+        'empty_zero' => 0,
12162
+        'set_precision' => FALSE,
12163
+        'precision' => 0,
12164
+        'decimal' => '.',
12165
+        'separator' => '',
12166
+        'prefix' => '',
12167
+        'suffix' => '',
12168
+        'exclude' => 1,
12169
+        'id' => 'client_state',
12170
+        'table' => 'result',
12171
+        'field' => 'client_state',
12172
+        'relationship' => 'none',
12173 12173
     ),
12174 12174
     'validate_state' => array(
12175
-      'label' => 'Validation state',
12176
-      'alter' => array(
12175
+        'label' => 'Validation state',
12176
+        'alter' => array(
12177 12177
         'alter_text' => 0,
12178 12178
         'text' => '',
12179 12179
         'make_link' => 0,
@@ -12190,25 +12190,25 @@  discard block
 block discarded – undo
12190 12190
         'ellipsis' => 1,
12191 12191
         'html' => 0,
12192 12192
         'strip_tags' => 0,
12193
-      ),
12194
-      'empty' => '',
12195
-      'hide_empty' => 0,
12196
-      'empty_zero' => 0,
12197
-      'set_precision' => FALSE,
12198
-      'precision' => 0,
12199
-      'decimal' => '.',
12200
-      'separator' => '',
12201
-      'prefix' => '',
12202
-      'suffix' => '',
12203
-      'exclude' => 1,
12204
-      'id' => 'validate_state',
12205
-      'table' => 'result',
12206
-      'field' => 'validate_state',
12207
-      'relationship' => 'none',
12193
+        ),
12194
+        'empty' => '',
12195
+        'hide_empty' => 0,
12196
+        'empty_zero' => 0,
12197
+        'set_precision' => FALSE,
12198
+        'precision' => 0,
12199
+        'decimal' => '.',
12200
+        'separator' => '',
12201
+        'prefix' => '',
12202
+        'suffix' => '',
12203
+        'exclude' => 1,
12204
+        'id' => 'validate_state',
12205
+        'table' => 'result',
12206
+        'field' => 'validate_state',
12207
+        'relationship' => 'none',
12208 12208
     ),
12209 12209
     'exit_status' => array(
12210
-      'label' => 'Exit status',
12211
-      'alter' => array(
12210
+        'label' => 'Exit status',
12211
+        'alter' => array(
12212 12212
         'alter_text' => 0,
12213 12213
         'text' => '',
12214 12214
         'make_link' => 0,
@@ -12225,25 +12225,25 @@  discard block
 block discarded – undo
12225 12225
         'ellipsis' => 1,
12226 12226
         'html' => 0,
12227 12227
         'strip_tags' => 0,
12228
-      ),
12229
-      'empty' => '',
12230
-      'hide_empty' => 0,
12231
-      'empty_zero' => 0,
12232
-      'set_precision' => FALSE,
12233
-      'precision' => 0,
12234
-      'decimal' => '.',
12235
-      'separator' => '',
12236
-      'prefix' => '',
12237
-      'suffix' => '',
12238
-      'exclude' => 1,
12239
-      'id' => 'exit_status',
12240
-      'table' => 'result',
12241
-      'field' => 'exit_status',
12242
-      'relationship' => 'none',
12228
+        ),
12229
+        'empty' => '',
12230
+        'hide_empty' => 0,
12231
+        'empty_zero' => 0,
12232
+        'set_precision' => FALSE,
12233
+        'precision' => 0,
12234
+        'decimal' => '.',
12235
+        'separator' => '',
12236
+        'prefix' => '',
12237
+        'suffix' => '',
12238
+        'exclude' => 1,
12239
+        'id' => 'exit_status',
12240
+        'table' => 'result',
12241
+        'field' => 'exit_status',
12242
+        'relationship' => 'none',
12243 12243
     ),
12244 12244
     'phpcode_1' => array(
12245
-      'label' => 'Status',
12246
-      'alter' => array(
12245
+        'label' => 'Status',
12246
+        'alter' => array(
12247 12247
         'alter_text' => 0,
12248 12248
         'text' => '',
12249 12249
         'make_link' => 0,
@@ -12260,11 +12260,11 @@  discard block
 block discarded – undo
12260 12260
         'ellipsis' => 1,
12261 12261
         'html' => 0,
12262 12262
         'strip_tags' => 0,
12263
-      ),
12264
-      'empty' => '',
12265
-      'hide_empty' => 0,
12266
-      'empty_zero' => 0,
12267
-      'value' => '<?php
12263
+        ),
12264
+        'empty' => '',
12265
+        'hide_empty' => 0,
12266
+        'empty_zero' => 0,
12267
+        'value' => '<?php
12268 12268
   require_boinc(\'result\');
12269 12269
   $result = new stdClass();
12270 12270
   $result->server_state = $data->result_server_state;
@@ -12274,18 +12274,18 @@  discard block
 block discarded – undo
12274 12274
   $result->exit_status = $data->result_exit_status;
12275 12275
   return state_string($result);
12276 12276
 ?>',
12277
-      'exclude' => 0,
12278
-      'id' => 'phpcode_1',
12279
-      'table' => 'customfield',
12280
-      'field' => 'phpcode',
12281
-      'override' => array(
12277
+        'exclude' => 0,
12278
+        'id' => 'phpcode_1',
12279
+        'table' => 'customfield',
12280
+        'field' => 'phpcode',
12281
+        'override' => array(
12282 12282
         'button' => 'Override',
12283
-      ),
12284
-      'relationship' => 'none',
12283
+        ),
12284
+        'relationship' => 'none',
12285 12285
     ),
12286 12286
     'elapsed_time' => array(
12287
-      'label' => 'Run time',
12288
-      'alter' => array(
12287
+        'label' => 'Run time',
12288
+        'alter' => array(
12289 12289
         'alter_text' => 0,
12290 12290
         'text' => '',
12291 12291
         'make_link' => 0,
@@ -12304,29 +12304,29 @@  discard block
 block discarded – undo
12304 12304
         'ellipsis' => 1,
12305 12305
         'html' => 0,
12306 12306
         'strip_tags' => 0,
12307
-      ),
12308
-      'empty' => '',
12309
-      'hide_empty' => 0,
12310
-      'empty_zero' => 0,
12311
-      'hide_alter_empty' => 1,
12312
-      'set_precision' => 1,
12313
-      'precision' => '2',
12314
-      'decimal' => '.',
12315
-      'separator' => ',',
12316
-      'format_plural' => 0,
12317
-      'format_plural_singular' => '1',
12318
-      'format_plural_plural' => '@count',
12319
-      'prefix' => '',
12320
-      'suffix' => '',
12321
-      'exclude' => 0,
12322
-      'id' => 'elapsed_time',
12323
-      'table' => 'result',
12324
-      'field' => 'elapsed_time',
12325
-      'relationship' => 'none',
12307
+        ),
12308
+        'empty' => '',
12309
+        'hide_empty' => 0,
12310
+        'empty_zero' => 0,
12311
+        'hide_alter_empty' => 1,
12312
+        'set_precision' => 1,
12313
+        'precision' => '2',
12314
+        'decimal' => '.',
12315
+        'separator' => ',',
12316
+        'format_plural' => 0,
12317
+        'format_plural_singular' => '1',
12318
+        'format_plural_plural' => '@count',
12319
+        'prefix' => '',
12320
+        'suffix' => '',
12321
+        'exclude' => 0,
12322
+        'id' => 'elapsed_time',
12323
+        'table' => 'result',
12324
+        'field' => 'elapsed_time',
12325
+        'relationship' => 'none',
12326 12326
     ),
12327 12327
     'cpu_time' => array(
12328
-      'label' => 'CPU time',
12329
-      'alter' => array(
12328
+        'label' => 'CPU time',
12329
+        'alter' => array(
12330 12330
         'alter_text' => 0,
12331 12331
         'text' => '',
12332 12332
         'make_link' => 0,
@@ -12345,29 +12345,29 @@  discard block
 block discarded – undo
12345 12345
         'ellipsis' => 1,
12346 12346
         'html' => 0,
12347 12347
         'strip_tags' => 0,
12348
-      ),
12349
-      'empty' => '',
12350
-      'hide_empty' => 0,
12351
-      'empty_zero' => 0,
12352
-      'hide_alter_empty' => 1,
12353
-      'set_precision' => 1,
12354
-      'precision' => '2',
12355
-      'decimal' => '.',
12356
-      'separator' => ',',
12357
-      'format_plural' => 0,
12358
-      'format_plural_singular' => '1',
12359
-      'format_plural_plural' => '@count',
12360
-      'prefix' => '',
12361
-      'suffix' => '',
12362
-      'exclude' => 0,
12363
-      'id' => 'cpu_time',
12364
-      'table' => 'result',
12365
-      'field' => 'cpu_time',
12366
-      'relationship' => 'none',
12348
+        ),
12349
+        'empty' => '',
12350
+        'hide_empty' => 0,
12351
+        'empty_zero' => 0,
12352
+        'hide_alter_empty' => 1,
12353
+        'set_precision' => 1,
12354
+        'precision' => '2',
12355
+        'decimal' => '.',
12356
+        'separator' => ',',
12357
+        'format_plural' => 0,
12358
+        'format_plural_singular' => '1',
12359
+        'format_plural_plural' => '@count',
12360
+        'prefix' => '',
12361
+        'suffix' => '',
12362
+        'exclude' => 0,
12363
+        'id' => 'cpu_time',
12364
+        'table' => 'result',
12365
+        'field' => 'cpu_time',
12366
+        'relationship' => 'none',
12367 12367
     ),
12368 12368
     'granted_credit' => array(
12369
-      'label' => 'Granted credit',
12370
-      'alter' => array(
12369
+        'label' => 'Granted credit',
12370
+        'alter' => array(
12371 12371
         'alter_text' => 0,
12372 12372
         'text' => '',
12373 12373
         'make_link' => 0,
@@ -12386,29 +12386,29 @@  discard block
 block discarded – undo
12386 12386
         'ellipsis' => 1,
12387 12387
         'html' => 0,
12388 12388
         'strip_tags' => 0,
12389
-      ),
12390
-      'empty' => '',
12391
-      'hide_empty' => 0,
12392
-      'empty_zero' => 0,
12393
-      'hide_alter_empty' => 0,
12394
-      'set_precision' => 1,
12395
-      'precision' => '0',
12396
-      'decimal' => '.',
12397
-      'separator' => ',',
12398
-      'format_plural' => 0,
12399
-      'format_plural_singular' => '1',
12400
-      'format_plural_plural' => '@count',
12401
-      'prefix' => '',
12402
-      'suffix' => '',
12403
-      'exclude' => 0,
12404
-      'id' => 'granted_credit',
12405
-      'table' => 'result',
12406
-      'field' => 'granted_credit',
12407
-      'relationship' => 'none',
12389
+        ),
12390
+        'empty' => '',
12391
+        'hide_empty' => 0,
12392
+        'empty_zero' => 0,
12393
+        'hide_alter_empty' => 0,
12394
+        'set_precision' => 1,
12395
+        'precision' => '0',
12396
+        'decimal' => '.',
12397
+        'separator' => ',',
12398
+        'format_plural' => 0,
12399
+        'format_plural_singular' => '1',
12400
+        'format_plural_plural' => '@count',
12401
+        'prefix' => '',
12402
+        'suffix' => '',
12403
+        'exclude' => 0,
12404
+        'id' => 'granted_credit',
12405
+        'table' => 'result',
12406
+        'field' => 'granted_credit',
12407
+        'relationship' => 'none',
12408 12408
     ),
12409 12409
     'appid' => array(
12410
-      'label' => 'Application ID',
12411
-      'alter' => array(
12410
+        'label' => 'Application ID',
12411
+        'alter' => array(
12412 12412
         'alter_text' => 0,
12413 12413
         'text' => '',
12414 12414
         'make_link' => 0,
@@ -12427,29 +12427,29 @@  discard block
 block discarded – undo
12427 12427
         'ellipsis' => 1,
12428 12428
         'html' => 0,
12429 12429
         'strip_tags' => 0,
12430
-      ),
12431
-      'empty' => '',
12432
-      'hide_empty' => 0,
12433
-      'empty_zero' => 0,
12434
-      'hide_alter_empty' => 1,
12435
-      'set_precision' => FALSE,
12436
-      'precision' => 0,
12437
-      'decimal' => '.',
12438
-      'separator' => '',
12439
-      'format_plural' => 0,
12440
-      'format_plural_singular' => '1',
12441
-      'format_plural_plural' => '@count',
12442
-      'prefix' => '',
12443
-      'suffix' => '',
12444
-      'exclude' => 1,
12445
-      'id' => 'appid',
12446
-      'table' => 'result',
12447
-      'field' => 'appid',
12448
-      'relationship' => 'none',
12430
+        ),
12431
+        'empty' => '',
12432
+        'hide_empty' => 0,
12433
+        'empty_zero' => 0,
12434
+        'hide_alter_empty' => 1,
12435
+        'set_precision' => FALSE,
12436
+        'precision' => 0,
12437
+        'decimal' => '.',
12438
+        'separator' => '',
12439
+        'format_plural' => 0,
12440
+        'format_plural_singular' => '1',
12441
+        'format_plural_plural' => '@count',
12442
+        'prefix' => '',
12443
+        'suffix' => '',
12444
+        'exclude' => 1,
12445
+        'id' => 'appid',
12446
+        'table' => 'result',
12447
+        'field' => 'appid',
12448
+        'relationship' => 'none',
12449 12449
     ),
12450 12450
     'app_version_id' => array(
12451
-      'label' => 'Application version',
12452
-      'alter' => array(
12451
+        'label' => 'Application version',
12452
+        'alter' => array(
12453 12453
         'alter_text' => 0,
12454 12454
         'text' => '',
12455 12455
         'make_link' => 0,
@@ -12466,25 +12466,25 @@  discard block
 block discarded – undo
12466 12466
         'ellipsis' => 1,
12467 12467
         'html' => 0,
12468 12468
         'strip_tags' => 0,
12469
-      ),
12470
-      'empty' => '',
12471
-      'hide_empty' => 0,
12472
-      'empty_zero' => 0,
12473
-      'set_precision' => FALSE,
12474
-      'precision' => 0,
12475
-      'decimal' => '.',
12476
-      'separator' => '',
12477
-      'prefix' => '',
12478
-      'suffix' => '',
12479
-      'exclude' => 1,
12480
-      'id' => 'app_version_id',
12481
-      'table' => 'result',
12482
-      'field' => 'app_version_id',
12483
-      'relationship' => 'none',
12469
+        ),
12470
+        'empty' => '',
12471
+        'hide_empty' => 0,
12472
+        'empty_zero' => 0,
12473
+        'set_precision' => FALSE,
12474
+        'precision' => 0,
12475
+        'decimal' => '.',
12476
+        'separator' => '',
12477
+        'prefix' => '',
12478
+        'suffix' => '',
12479
+        'exclude' => 1,
12480
+        'id' => 'app_version_id',
12481
+        'table' => 'result',
12482
+        'field' => 'app_version_id',
12483
+        'relationship' => 'none',
12484 12484
     ),
12485 12485
     'phpcode_2' => array(
12486
-      'label' => 'Application',
12487
-      'alter' => array(
12486
+        'label' => 'Application',
12487
+        'alter' => array(
12488 12488
         'alter_text' => 0,
12489 12489
         'text' => '',
12490 12490
         'make_link' => 0,
@@ -12503,756 +12503,756 @@  discard block
 block discarded – undo
12503 12503
         'ellipsis' => 1,
12504 12504
         'html' => 0,
12505 12505
         'strip_tags' => 0,
12506
-      ),
12507
-      'empty' => '',
12508
-      'hide_empty' => 0,
12509
-      'empty_zero' => 0,
12510
-      'hide_alter_empty' => 1,
12511
-      'value' => '<?php
12506
+        ),
12507
+        'empty' => '',
12508
+        'hide_empty' => 0,
12509
+        'empty_zero' => 0,
12510
+        'hide_alter_empty' => 1,
12511
+        'value' => '<?php
12512 12512
   require_boinc(\'result\');
12513 12513
   $result = new stdClass();
12514 12514
   $result->appid = $data->result_appid;
12515 12515
   $result->app_version_id = $data->result_app_version_id;
12516 12516
   return app_version_string($result);
12517 12517
 ?>',
12518
-      'exclude' => 0,
12519
-      'id' => 'phpcode_2',
12520
-      'table' => 'customfield',
12521
-      'field' => 'phpcode',
12522
-      'override' => array(
12518
+        'exclude' => 0,
12519
+        'id' => 'phpcode_2',
12520
+        'table' => 'customfield',
12521
+        'field' => 'phpcode',
12522
+        'override' => array(
12523 12523
         'button' => 'Override',
12524
-      ),
12525
-      'relationship' => 'none',
12524
+        ),
12525
+        'relationship' => 'none',
12526 12526
     ),
12527
-  ));
12528
-  $handler->override_option('arguments', array(
12527
+    ));
12528
+    $handler->override_option('arguments', array(
12529 12529
     'workunitid' => array(
12530
-      'default_action' => 'not found',
12531
-      'style_plugin' => 'default_summary',
12532
-      'style_options' => array(),
12533
-      'wildcard' => 'all',
12534
-      'wildcard_substitution' => 'All',
12535
-      'title' => 'Tasks for workunit %1',
12536
-      'breadcrumb' => '',
12537
-      'default_argument_type' => 'fixed',
12538
-      'default_argument' => '',
12539
-      'validate_type' => 'numeric',
12540
-      'validate_fail' => 'not found',
12541
-      'id' => 'workunitid',
12542
-      'table' => 'result',
12543
-      'field' => 'workunitid',
12544
-      'validate_user_argument_type' => 'uid',
12545
-      'validate_user_roles' => array(
12530
+        'default_action' => 'not found',
12531
+        'style_plugin' => 'default_summary',
12532
+        'style_options' => array(),
12533
+        'wildcard' => 'all',
12534
+        'wildcard_substitution' => 'All',
12535
+        'title' => 'Tasks for workunit %1',
12536
+        'breadcrumb' => '',
12537
+        'default_argument_type' => 'fixed',
12538
+        'default_argument' => '',
12539
+        'validate_type' => 'numeric',
12540
+        'validate_fail' => 'not found',
12541
+        'id' => 'workunitid',
12542
+        'table' => 'result',
12543
+        'field' => 'workunitid',
12544
+        'validate_user_argument_type' => 'uid',
12545
+        'validate_user_roles' => array(
12546 12546
         2 => 0,
12547 12547
         4 => 0,
12548 12548
         7 => 0,
12549 12549
         5 => 0,
12550 12550
         3 => 0,
12551 12551
         6 => 0,
12552
-      ),
12553
-      'me_redirect' => 0,
12554
-      'me_validate_user_argument_type' => 'uid',
12555
-      'me_validate_user_roles' => array(
12552
+        ),
12553
+        'me_redirect' => 0,
12554
+        'me_validate_user_argument_type' => 'uid',
12555
+        'me_validate_user_roles' => array(
12556 12556
         2 => 0,
12557 12557
         4 => 0,
12558 12558
         7 => 0,
12559 12559
         5 => 0,
12560 12560
         3 => 0,
12561 12561
         6 => 0,
12562
-      ),
12563
-      'relationship' => 'none',
12564
-      'default_options_div_prefix' => '',
12565
-      'default_taxonomy_tid_term_page' => 0,
12566
-      'default_taxonomy_tid_node' => 0,
12567
-      'default_taxonomy_tid_limit' => 0,
12568
-      'default_taxonomy_tid_vids' => array(
12562
+        ),
12563
+        'relationship' => 'none',
12564
+        'default_options_div_prefix' => '',
12565
+        'default_taxonomy_tid_term_page' => 0,
12566
+        'default_taxonomy_tid_node' => 0,
12567
+        'default_taxonomy_tid_limit' => 0,
12568
+        'default_taxonomy_tid_vids' => array(
12569 12569
         1 => 0,
12570 12570
         2 => 0,
12571
-      ),
12572
-      'default_argument_user' => 0,
12573
-      'default_argument_fixed' => '',
12574
-      'default_argument_php' => '',
12575
-      'validate_argument_node_type' => array(
12571
+        ),
12572
+        'default_argument_user' => 0,
12573
+        'default_argument_fixed' => '',
12574
+        'default_argument_php' => '',
12575
+        'validate_argument_node_type' => array(
12576 12576
         'page' => 0,
12577 12577
         'news' => 0,
12578 12578
         'profile' => 0,
12579 12579
         'forum' => 0,
12580 12580
         'panel' => 0,
12581 12581
         'story' => 0,
12582
-      ),
12583
-      'validate_argument_node_access' => 0,
12584
-      'validate_argument_nid_type' => 'nid',
12585
-      'validate_argument_vocabulary' => array(
12582
+        ),
12583
+        'validate_argument_node_access' => 0,
12584
+        'validate_argument_nid_type' => 'nid',
12585
+        'validate_argument_vocabulary' => array(
12586 12586
         1 => 0,
12587 12587
         2 => 0,
12588
-      ),
12589
-      'validate_argument_type' => 'tid',
12590
-      'validate_argument_transform' => 0,
12591
-      'validate_user_restrict_roles' => 0,
12592
-      'validate_argument_node_flag_name' => '*relationship*',
12593
-      'validate_argument_node_flag_test' => 'flaggable',
12594
-      'validate_argument_node_flag_id_type' => 'id',
12595
-      'validate_argument_user_flag_name' => '*relationship*',
12596
-      'validate_argument_user_flag_test' => 'flaggable',
12597
-      'validate_argument_user_flag_id_type' => 'id',
12598
-      'validate_argument_php' => '',
12599
-      'me_validate_user_restrict_roles' => 0,
12600
-    ),
12601
-  ));
12602
-  $handler->override_option('access', array(
12588
+        ),
12589
+        'validate_argument_type' => 'tid',
12590
+        'validate_argument_transform' => 0,
12591
+        'validate_user_restrict_roles' => 0,
12592
+        'validate_argument_node_flag_name' => '*relationship*',
12593
+        'validate_argument_node_flag_test' => 'flaggable',
12594
+        'validate_argument_node_flag_id_type' => 'id',
12595
+        'validate_argument_user_flag_name' => '*relationship*',
12596
+        'validate_argument_user_flag_test' => 'flaggable',
12597
+        'validate_argument_user_flag_id_type' => 'id',
12598
+        'validate_argument_php' => '',
12599
+        'me_validate_user_restrict_roles' => 0,
12600
+    ),
12601
+    ));
12602
+    $handler->override_option('access', array(
12603 12603
     'type' => 'none',
12604
-  ));
12605
-  $handler->override_option('cache', array(
12604
+    ));
12605
+    $handler->override_option('cache', array(
12606 12606
     'type' => 'none',
12607
-  ));
12608
-  $handler->override_option('items_per_page', 20);
12609
-  $handler->override_option('use_pager', '1');
12610
-  $handler->override_option('style_plugin', 'table');
12611
-  $handler->override_option('style_options', array(
12607
+    ));
12608
+    $handler->override_option('items_per_page', 20);
12609
+    $handler->override_option('use_pager', '1');
12610
+    $handler->override_option('style_plugin', 'table');
12611
+    $handler->override_option('style_options', array(
12612 12612
     'grouping' => '',
12613 12613
     'override' => 1,
12614 12614
     'sticky' => 1,
12615 12615
     'order' => 'asc',
12616 12616
     'summary' => '',
12617 12617
     'columns' => array(
12618
-      'id' => 'id',
12619
-      'hostid' => 'hostid',
12620
-      'sent_time' => 'sent_time',
12621
-      'received_time' => 'received_time',
12622
-      'report_deadline' => 'report_deadline',
12623
-      'phpcode_3' => 'phpcode_3',
12624
-      'phpcode' => 'phpcode',
12625
-      'server_state' => 'server_state',
12626
-      'outcome' => 'outcome',
12627
-      'client_state' => 'client_state',
12628
-      'validate_state' => 'validate_state',
12629
-      'exit_status' => 'exit_status',
12630
-      'phpcode_1' => 'phpcode_1',
12631
-      'elapsed_time' => 'elapsed_time',
12632
-      'cpu_time' => 'cpu_time',
12633
-      'claimed_credit_1' => 'claimed_credit_1',
12634
-      'granted_credit' => 'granted_credit',
12635
-      'app_version_id' => 'app_version_id',
12636
-      'phpcode_2' => 'phpcode_2',
12618
+        'id' => 'id',
12619
+        'hostid' => 'hostid',
12620
+        'sent_time' => 'sent_time',
12621
+        'received_time' => 'received_time',
12622
+        'report_deadline' => 'report_deadline',
12623
+        'phpcode_3' => 'phpcode_3',
12624
+        'phpcode' => 'phpcode',
12625
+        'server_state' => 'server_state',
12626
+        'outcome' => 'outcome',
12627
+        'client_state' => 'client_state',
12628
+        'validate_state' => 'validate_state',
12629
+        'exit_status' => 'exit_status',
12630
+        'phpcode_1' => 'phpcode_1',
12631
+        'elapsed_time' => 'elapsed_time',
12632
+        'cpu_time' => 'cpu_time',
12633
+        'claimed_credit_1' => 'claimed_credit_1',
12634
+        'granted_credit' => 'granted_credit',
12635
+        'app_version_id' => 'app_version_id',
12636
+        'phpcode_2' => 'phpcode_2',
12637 12637
     ),
12638 12638
     'info' => array(
12639
-      'id' => array(
12639
+        'id' => array(
12640 12640
         'sortable' => 1,
12641 12641
         'separator' => '',
12642
-      ),
12643
-      'hostid' => array(
12642
+        ),
12643
+        'hostid' => array(
12644 12644
         'sortable' => 1,
12645 12645
         'separator' => '',
12646
-      ),
12647
-      'sent_time' => array(
12646
+        ),
12647
+        'sent_time' => array(
12648 12648
         'sortable' => 1,
12649 12649
         'separator' => '',
12650
-      ),
12651
-      'received_time' => array(
12650
+        ),
12651
+        'received_time' => array(
12652 12652
         'sortable' => 1,
12653 12653
         'separator' => '',
12654
-      ),
12655
-      'report_deadline' => array(
12654
+        ),
12655
+        'report_deadline' => array(
12656 12656
         'sortable' => 1,
12657 12657
         'separator' => '',
12658
-      ),
12659
-      'phpcode_3' => array(
12658
+        ),
12659
+        'phpcode_3' => array(
12660 12660
         'separator' => '',
12661
-      ),
12662
-      'phpcode' => array(
12661
+        ),
12662
+        'phpcode' => array(
12663 12663
         'separator' => '',
12664
-      ),
12665
-      'server_state' => array(
12664
+        ),
12665
+        'server_state' => array(
12666 12666
         'sortable' => 0,
12667 12667
         'separator' => '',
12668
-      ),
12669
-      'outcome' => array(
12668
+        ),
12669
+        'outcome' => array(
12670 12670
         'sortable' => 0,
12671 12671
         'separator' => '',
12672
-      ),
12673
-      'client_state' => array(
12672
+        ),
12673
+        'client_state' => array(
12674 12674
         'sortable' => 0,
12675 12675
         'separator' => '',
12676
-      ),
12677
-      'validate_state' => array(
12676
+        ),
12677
+        'validate_state' => array(
12678 12678
         'sortable' => 0,
12679 12679
         'separator' => '',
12680
-      ),
12681
-      'exit_status' => array(
12680
+        ),
12681
+        'exit_status' => array(
12682 12682
         'sortable' => 0,
12683 12683
         'separator' => '',
12684
-      ),
12685
-      'phpcode_1' => array(
12684
+        ),
12685
+        'phpcode_1' => array(
12686 12686
         'separator' => '',
12687
-      ),
12688
-      'elapsed_time' => array(
12687
+        ),
12688
+        'elapsed_time' => array(
12689 12689
         'sortable' => 1,
12690 12690
         'separator' => '',
12691
-      ),
12692
-      'cpu_time' => array(
12691
+        ),
12692
+        'cpu_time' => array(
12693 12693
         'sortable' => 1,
12694 12694
         'separator' => '',
12695
-      ),
12696
-      'claimed_credit_1' => array(
12695
+        ),
12696
+        'claimed_credit_1' => array(
12697 12697
         'sortable' => 1,
12698 12698
         'separator' => '',
12699
-      ),
12700
-      'granted_credit' => array(
12699
+        ),
12700
+        'granted_credit' => array(
12701 12701
         'sortable' => 1,
12702 12702
         'separator' => '',
12703
-      ),
12704
-      'app_version_id' => array(
12703
+        ),
12704
+        'app_version_id' => array(
12705 12705
         'sortable' => 1,
12706 12706
         'separator' => '',
12707
-      ),
12708
-      'phpcode_2' => array(
12707
+        ),
12708
+        'phpcode_2' => array(
12709 12709
         'separator' => '',
12710
-      ),
12710
+        ),
12711 12711
     ),
12712 12712
     'default' => 'id',
12713
-  ));
12714
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
12715
-  $handler->override_option('path', 'workunit/%/tasks/all');
12716
-  $handler->override_option('menu', array(
12713
+    ));
12714
+    $handler = $view->new_display('page', 'All tasks', 'page_1');
12715
+    $handler->override_option('path', 'workunit/%/tasks/all');
12716
+    $handler->override_option('menu', array(
12717 12717
     'type' => 'default tab',
12718 12718
     'title' => 'All tasks',
12719 12719
     'description' => 'Show all tasks associated with the workunit',
12720 12720
     'weight' => '0',
12721 12721
     'name' => 'navigation',
12722
-  ));
12723
-  $handler->override_option('tab_options', array(
12722
+    ));
12723
+    $handler->override_option('tab_options', array(
12724 12724
     'type' => 'tab',
12725 12725
     'title' => 'Tasks',
12726 12726
     'description' => 'Show all tasks',
12727 12727
     'weight' => '0',
12728 12728
     'name' => 'secondary-links',
12729
-  ));
12730
-  $handler = $view->new_display('page', 'Error', 'page_2');
12731
-  $handler->override_option('filters', array(
12729
+    ));
12730
+    $handler = $view->new_display('page', 'Error', 'page_2');
12731
+    $handler->override_option('filters', array(
12732 12732
     'server_state' => array(
12733
-      'operator' => '=',
12734
-      'value' => array(
12733
+        'operator' => '=',
12734
+        'value' => array(
12735 12735
         'value' => '5',
12736 12736
         'min' => '',
12737 12737
         'max' => '',
12738
-      ),
12739
-      'group' => '0',
12740
-      'exposed' => FALSE,
12741
-      'expose' => array(
12738
+        ),
12739
+        'group' => '0',
12740
+        'exposed' => FALSE,
12741
+        'expose' => array(
12742 12742
         'operator' => FALSE,
12743 12743
         'label' => '',
12744
-      ),
12745
-      'id' => 'server_state',
12746
-      'table' => 'result',
12747
-      'field' => 'server_state',
12748
-      'override' => array(
12744
+        ),
12745
+        'id' => 'server_state',
12746
+        'table' => 'result',
12747
+        'field' => 'server_state',
12748
+        'override' => array(
12749 12749
         'button' => 'Use default',
12750
-      ),
12751
-      'relationship' => 'none',
12750
+        ),
12751
+        'relationship' => 'none',
12752 12752
     ),
12753 12753
     'outcome' => array(
12754
-      'operator' => '>=',
12755
-      'value' => array(
12754
+        'operator' => '>=',
12755
+        'value' => array(
12756 12756
         'value' => '3',
12757 12757
         'min' => '',
12758 12758
         'max' => '',
12759
-      ),
12760
-      'group' => '0',
12761
-      'exposed' => FALSE,
12762
-      'expose' => array(
12759
+        ),
12760
+        'group' => '0',
12761
+        'exposed' => FALSE,
12762
+        'expose' => array(
12763 12763
         'operator' => FALSE,
12764 12764
         'label' => '',
12765
-      ),
12766
-      'id' => 'outcome',
12767
-      'table' => 'result',
12768
-      'field' => 'outcome',
12769
-      'override' => array(
12765
+        ),
12766
+        'id' => 'outcome',
12767
+        'table' => 'result',
12768
+        'field' => 'outcome',
12769
+        'override' => array(
12770 12770
         'button' => 'Use default',
12771
-      ),
12772
-      'relationship' => 'none',
12771
+        ),
12772
+        'relationship' => 'none',
12773 12773
     ),
12774 12774
     'outcome_1' => array(
12775
-      'operator' => 'not between',
12776
-      'value' => array(
12775
+        'operator' => 'not between',
12776
+        'value' => array(
12777 12777
         'value' => '',
12778 12778
         'min' => '4',
12779 12779
         'max' => '7',
12780
-      ),
12781
-      'group' => '0',
12782
-      'exposed' => FALSE,
12783
-      'expose' => array(
12780
+        ),
12781
+        'group' => '0',
12782
+        'exposed' => FALSE,
12783
+        'expose' => array(
12784 12784
         'operator' => FALSE,
12785 12785
         'label' => '',
12786
-      ),
12787
-      'id' => 'outcome_1',
12788
-      'table' => 'result',
12789
-      'field' => 'outcome',
12790
-      'override' => array(
12786
+        ),
12787
+        'id' => 'outcome_1',
12788
+        'table' => 'result',
12789
+        'field' => 'outcome',
12790
+        'override' => array(
12791 12791
         'button' => 'Use default',
12792
-      ),
12793
-      'relationship' => 'none',
12792
+        ),
12793
+        'relationship' => 'none',
12794 12794
     ),
12795 12795
     'outcome_2' => array(
12796
-      'operator' => '<=',
12797
-      'value' => array(
12796
+        'operator' => '<=',
12797
+        'value' => array(
12798 12798
         'value' => '7',
12799 12799
         'min' => '',
12800 12800
         'max' => '',
12801
-      ),
12802
-      'group' => '0',
12803
-      'exposed' => FALSE,
12804
-      'expose' => array(
12801
+        ),
12802
+        'group' => '0',
12803
+        'exposed' => FALSE,
12804
+        'expose' => array(
12805 12805
         'operator' => FALSE,
12806 12806
         'label' => '',
12807
-      ),
12808
-      'id' => 'outcome_2',
12809
-      'table' => 'result',
12810
-      'field' => 'outcome',
12811
-      'override' => array(
12807
+        ),
12808
+        'id' => 'outcome_2',
12809
+        'table' => 'result',
12810
+        'field' => 'outcome',
12811
+        'override' => array(
12812 12812
         'button' => 'Use default',
12813
-      ),
12814
-      'relationship' => 'none',
12813
+        ),
12814
+        'relationship' => 'none',
12815 12815
     ),
12816
-  ));
12817
-  $handler->override_option('path', 'workunit/%/tasks/error');
12818
-  $handler->override_option('menu', array(
12816
+    ));
12817
+    $handler->override_option('path', 'workunit/%/tasks/error');
12818
+    $handler->override_option('menu', array(
12819 12819
     'type' => 'tab',
12820 12820
     'title' => 'Error',
12821 12821
     'description' => 'Show tasks with errors associated with the workunit',
12822 12822
     'weight' => '5',
12823 12823
     'name' => 'navigation',
12824
-  ));
12825
-  $handler->override_option('tab_options', array(
12824
+    ));
12825
+    $handler->override_option('tab_options', array(
12826 12826
     'type' => 'none',
12827 12827
     'title' => '',
12828 12828
     'description' => '',
12829 12829
     'weight' => 0,
12830 12830
     'name' => 'navigation',
12831
-  ));
12832
-  $handler = $view->new_display('page', 'In progress', 'page_3');
12833
-  $handler->override_option('filters', array(
12831
+    ));
12832
+    $handler = $view->new_display('page', 'In progress', 'page_3');
12833
+    $handler->override_option('filters', array(
12834 12834
     'server_state' => array(
12835
-      'operator' => '=',
12836
-      'value' => array(
12835
+        'operator' => '=',
12836
+        'value' => array(
12837 12837
         'value' => '4',
12838 12838
         'min' => '',
12839 12839
         'max' => '',
12840
-      ),
12841
-      'group' => '0',
12842
-      'exposed' => FALSE,
12843
-      'expose' => array(
12840
+        ),
12841
+        'group' => '0',
12842
+        'exposed' => FALSE,
12843
+        'expose' => array(
12844 12844
         'operator' => FALSE,
12845 12845
         'label' => '',
12846
-      ),
12847
-      'id' => 'server_state',
12848
-      'table' => 'result',
12849
-      'field' => 'server_state',
12850
-      'override' => array(
12846
+        ),
12847
+        'id' => 'server_state',
12848
+        'table' => 'result',
12849
+        'field' => 'server_state',
12850
+        'override' => array(
12851 12851
         'button' => 'Use default',
12852
-      ),
12853
-      'relationship' => 'none',
12852
+        ),
12853
+        'relationship' => 'none',
12854 12854
     ),
12855
-  ));
12856
-  $handler->override_option('path', 'workunit/%/tasks/active');
12857
-  $handler->override_option('menu', array(
12855
+    ));
12856
+    $handler->override_option('path', 'workunit/%/tasks/active');
12857
+    $handler->override_option('menu', array(
12858 12858
     'type' => 'tab',
12859 12859
     'title' => 'In progress',
12860 12860
     'description' => 'Show tasks in progress associated with the workunit',
12861 12861
     'weight' => '1',
12862 12862
     'name' => 'navigation',
12863
-  ));
12864
-  $handler->override_option('tab_options', array(
12863
+    ));
12864
+    $handler->override_option('tab_options', array(
12865 12865
     'type' => 'none',
12866 12866
     'title' => '',
12867 12867
     'description' => '',
12868 12868
     'weight' => 0,
12869 12869
     'name' => 'navigation',
12870
-  ));
12871
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
12872
-  $handler->override_option('filters', array(
12870
+    ));
12871
+    $handler = $view->new_display('page', 'Invalidated', 'page_4');
12872
+    $handler->override_option('filters', array(
12873 12873
     'server_state' => array(
12874
-      'operator' => '=',
12875
-      'value' => array(
12874
+        'operator' => '=',
12875
+        'value' => array(
12876 12876
         'value' => '5',
12877 12877
         'min' => '',
12878 12878
         'max' => '',
12879
-      ),
12880
-      'group' => '0',
12881
-      'exposed' => FALSE,
12882
-      'expose' => array(
12879
+        ),
12880
+        'group' => '0',
12881
+        'exposed' => FALSE,
12882
+        'expose' => array(
12883 12883
         'operator' => FALSE,
12884 12884
         'label' => '',
12885
-      ),
12886
-      'id' => 'server_state',
12887
-      'table' => 'result',
12888
-      'field' => 'server_state',
12889
-      'override' => array(
12885
+        ),
12886
+        'id' => 'server_state',
12887
+        'table' => 'result',
12888
+        'field' => 'server_state',
12889
+        'override' => array(
12890 12890
         'button' => 'Use default',
12891
-      ),
12892
-      'relationship' => 'none',
12891
+        ),
12892
+        'relationship' => 'none',
12893 12893
     ),
12894 12894
     'views_or_begin_2' => array(
12895
-      'id' => 'views_or_begin_2',
12896
-      'table' => 'views_or',
12897
-      'field' => 'views_or_begin',
12895
+        'id' => 'views_or_begin_2',
12896
+        'table' => 'views_or',
12897
+        'field' => 'views_or_begin',
12898 12898
     ),
12899 12899
     'outcome' => array(
12900
-      'operator' => '=',
12901
-      'value' => array(
12900
+        'operator' => '=',
12901
+        'value' => array(
12902 12902
         'value' => '6',
12903 12903
         'min' => '',
12904 12904
         'max' => '',
12905
-      ),
12906
-      'group' => '0',
12907
-      'exposed' => FALSE,
12908
-      'expose' => array(
12905
+        ),
12906
+        'group' => '0',
12907
+        'exposed' => FALSE,
12908
+        'expose' => array(
12909 12909
         'operator' => FALSE,
12910 12910
         'label' => '',
12911
-      ),
12912
-      'id' => 'outcome',
12913
-      'table' => 'result',
12914
-      'field' => 'outcome',
12915
-      'override' => array(
12911
+        ),
12912
+        'id' => 'outcome',
12913
+        'table' => 'result',
12914
+        'field' => 'outcome',
12915
+        'override' => array(
12916 12916
         'button' => 'Use default',
12917
-      ),
12918
-      'relationship' => 'none',
12917
+        ),
12918
+        'relationship' => 'none',
12919 12919
     ),
12920 12920
     'views_or_next_3' => array(
12921
-      'id' => 'views_or_next_3',
12922
-      'table' => 'views_or',
12923
-      'field' => 'views_or_next',
12921
+        'id' => 'views_or_next_3',
12922
+        'table' => 'views_or',
12923
+        'field' => 'views_or_next',
12924 12924
     ),
12925 12925
     'outcome_1' => array(
12926
-      'operator' => '=',
12927
-      'value' => array(
12926
+        'operator' => '=',
12927
+        'value' => array(
12928 12928
         'value' => '1',
12929 12929
         'min' => '',
12930 12930
         'max' => '',
12931
-      ),
12932
-      'group' => '0',
12933
-      'exposed' => FALSE,
12934
-      'expose' => array(
12931
+        ),
12932
+        'group' => '0',
12933
+        'exposed' => FALSE,
12934
+        'expose' => array(
12935 12935
         'operator' => FALSE,
12936 12936
         'label' => '',
12937
-      ),
12938
-      'id' => 'outcome_1',
12939
-      'table' => 'result',
12940
-      'field' => 'outcome',
12941
-      'override' => array(
12937
+        ),
12938
+        'id' => 'outcome_1',
12939
+        'table' => 'result',
12940
+        'field' => 'outcome',
12941
+        'override' => array(
12942 12942
         'button' => 'Use default',
12943
-      ),
12944
-      'relationship' => 'none',
12943
+        ),
12944
+        'relationship' => 'none',
12945 12945
     ),
12946 12946
     'views_or_begin' => array(
12947
-      'id' => 'views_or_begin',
12948
-      'table' => 'views_or',
12949
-      'field' => 'views_or_begin',
12947
+        'id' => 'views_or_begin',
12948
+        'table' => 'views_or',
12949
+        'field' => 'views_or_begin',
12950 12950
     ),
12951 12951
     'validate_state' => array(
12952
-      'operator' => '=',
12953
-      'value' => array(
12952
+        'operator' => '=',
12953
+        'value' => array(
12954 12954
         'value' => '2',
12955 12955
         'min' => '',
12956 12956
         'max' => '',
12957
-      ),
12958
-      'group' => '0',
12959
-      'exposed' => FALSE,
12960
-      'expose' => array(
12957
+        ),
12958
+        'group' => '0',
12959
+        'exposed' => FALSE,
12960
+        'expose' => array(
12961 12961
         'operator' => FALSE,
12962 12962
         'label' => '',
12963
-      ),
12964
-      'id' => 'validate_state',
12965
-      'table' => 'result',
12966
-      'field' => 'validate_state',
12967
-      'override' => array(
12963
+        ),
12964
+        'id' => 'validate_state',
12965
+        'table' => 'result',
12966
+        'field' => 'validate_state',
12967
+        'override' => array(
12968 12968
         'button' => 'Use default',
12969
-      ),
12970
-      'relationship' => 'none',
12969
+        ),
12970
+        'relationship' => 'none',
12971 12971
     ),
12972 12972
     'views_or_next_4' => array(
12973
-      'id' => 'views_or_next_4',
12974
-      'table' => 'views_or',
12975
-      'field' => 'views_or_next',
12973
+        'id' => 'views_or_next_4',
12974
+        'table' => 'views_or',
12975
+        'field' => 'views_or_next',
12976 12976
     ),
12977 12977
     'validate_state_1' => array(
12978
-      'operator' => '=',
12979
-      'value' => array(
12978
+        'operator' => '=',
12979
+        'value' => array(
12980 12980
         'value' => '3',
12981 12981
         'min' => '',
12982 12982
         'max' => '',
12983
-      ),
12984
-      'group' => '0',
12985
-      'exposed' => FALSE,
12986
-      'expose' => array(
12983
+        ),
12984
+        'group' => '0',
12985
+        'exposed' => FALSE,
12986
+        'expose' => array(
12987 12987
         'operator' => FALSE,
12988 12988
         'label' => '',
12989
-      ),
12990
-      'id' => 'validate_state_1',
12991
-      'table' => 'result',
12992
-      'field' => 'validate_state',
12993
-      'override' => array(
12989
+        ),
12990
+        'id' => 'validate_state_1',
12991
+        'table' => 'result',
12992
+        'field' => 'validate_state',
12993
+        'override' => array(
12994 12994
         'button' => 'Use default',
12995
-      ),
12996
-      'relationship' => 'none',
12995
+        ),
12996
+        'relationship' => 'none',
12997 12997
     ),
12998 12998
     'views_or_next' => array(
12999
-      'id' => 'views_or_next',
13000
-      'table' => 'views_or',
13001
-      'field' => 'views_or_next',
12999
+        'id' => 'views_or_next',
13000
+        'table' => 'views_or',
13001
+        'field' => 'views_or_next',
13002 13002
     ),
13003 13003
     'validate_state_2' => array(
13004
-      'operator' => '=',
13005
-      'value' => array(
13004
+        'operator' => '=',
13005
+        'value' => array(
13006 13006
         'value' => '5',
13007 13007
         'min' => '',
13008 13008
         'max' => '',
13009
-      ),
13010
-      'group' => '0',
13011
-      'exposed' => FALSE,
13012
-      'expose' => array(
13009
+        ),
13010
+        'group' => '0',
13011
+        'exposed' => FALSE,
13012
+        'expose' => array(
13013 13013
         'operator' => FALSE,
13014 13014
         'label' => '',
13015
-      ),
13016
-      'id' => 'validate_state_2',
13017
-      'table' => 'result',
13018
-      'field' => 'validate_state',
13019
-      'override' => array(
13015
+        ),
13016
+        'id' => 'validate_state_2',
13017
+        'table' => 'result',
13018
+        'field' => 'validate_state',
13019
+        'override' => array(
13020 13020
         'button' => 'Use default',
13021
-      ),
13022
-      'relationship' => 'none',
13021
+        ),
13022
+        'relationship' => 'none',
13023 13023
     ),
13024 13024
     'views_or_end_3' => array(
13025
-      'id' => 'views_or_end_3',
13026
-      'table' => 'views_or',
13027
-      'field' => 'views_or_end',
13025
+        'id' => 'views_or_end_3',
13026
+        'table' => 'views_or',
13027
+        'field' => 'views_or_end',
13028 13028
     ),
13029 13029
     'views_or_end_2' => array(
13030
-      'id' => 'views_or_end_2',
13031
-      'table' => 'views_or',
13032
-      'field' => 'views_or_end',
13030
+        'id' => 'views_or_end_2',
13031
+        'table' => 'views_or',
13032
+        'field' => 'views_or_end',
13033 13033
     ),
13034
-  ));
13035
-  $handler->override_option('path', 'workunit/%/tasks/invalid');
13036
-  $handler->override_option('menu', array(
13034
+    ));
13035
+    $handler->override_option('path', 'workunit/%/tasks/invalid');
13036
+    $handler->override_option('menu', array(
13037 13037
     'type' => 'tab',
13038 13038
     'title' => 'Invalid',
13039 13039
     'description' => 'Show invalidated tasks associated with the workunit',
13040 13040
     'weight' => '4',
13041 13041
     'name' => 'navigation',
13042
-  ));
13043
-  $handler->override_option('tab_options', array(
13042
+    ));
13043
+    $handler->override_option('tab_options', array(
13044 13044
     'type' => 'none',
13045 13045
     'title' => '',
13046 13046
     'description' => '',
13047 13047
     'weight' => 0,
13048 13048
     'name' => 'navigation',
13049
-  ));
13050
-  $handler = $view->new_display('page', 'Pending', 'page_5');
13051
-  $handler->override_option('filters', array(
13049
+    ));
13050
+    $handler = $view->new_display('page', 'Pending', 'page_5');
13051
+    $handler->override_option('filters', array(
13052 13052
     'server_state' => array(
13053
-      'operator' => '=',
13054
-      'value' => array(
13053
+        'operator' => '=',
13054
+        'value' => array(
13055 13055
         'value' => '5',
13056 13056
         'min' => '',
13057 13057
         'max' => '',
13058
-      ),
13059
-      'group' => '0',
13060
-      'exposed' => FALSE,
13061
-      'expose' => array(
13058
+        ),
13059
+        'group' => '0',
13060
+        'exposed' => FALSE,
13061
+        'expose' => array(
13062 13062
         'operator' => FALSE,
13063 13063
         'label' => '',
13064
-      ),
13065
-      'id' => 'server_state',
13066
-      'table' => 'result',
13067
-      'field' => 'server_state',
13068
-      'override' => array(
13064
+        ),
13065
+        'id' => 'server_state',
13066
+        'table' => 'result',
13067
+        'field' => 'server_state',
13068
+        'override' => array(
13069 13069
         'button' => 'Use default',
13070
-      ),
13071
-      'relationship' => 'none',
13070
+        ),
13071
+        'relationship' => 'none',
13072 13072
     ),
13073 13073
     'outcome' => array(
13074
-      'operator' => '=',
13075
-      'value' => array(
13074
+        'operator' => '=',
13075
+        'value' => array(
13076 13076
         'value' => '1',
13077 13077
         'min' => '',
13078 13078
         'max' => '',
13079
-      ),
13080
-      'group' => '0',
13081
-      'exposed' => FALSE,
13082
-      'expose' => array(
13079
+        ),
13080
+        'group' => '0',
13081
+        'exposed' => FALSE,
13082
+        'expose' => array(
13083 13083
         'operator' => FALSE,
13084 13084
         'label' => '',
13085
-      ),
13086
-      'id' => 'outcome',
13087
-      'table' => 'result',
13088
-      'field' => 'outcome',
13089
-      'override' => array(
13085
+        ),
13086
+        'id' => 'outcome',
13087
+        'table' => 'result',
13088
+        'field' => 'outcome',
13089
+        'override' => array(
13090 13090
         'button' => 'Use default',
13091
-      ),
13092
-      'relationship' => 'none',
13091
+        ),
13092
+        'relationship' => 'none',
13093 13093
     ),
13094 13094
     'validate_state' => array(
13095
-      'operator' => '>=',
13096
-      'value' => array(
13095
+        'operator' => '>=',
13096
+        'value' => array(
13097 13097
         'value' => '0',
13098 13098
         'min' => '',
13099 13099
         'max' => '',
13100
-      ),
13101
-      'group' => '0',
13102
-      'exposed' => FALSE,
13103
-      'expose' => array(
13100
+        ),
13101
+        'group' => '0',
13102
+        'exposed' => FALSE,
13103
+        'expose' => array(
13104 13104
         'operator' => FALSE,
13105 13105
         'label' => '',
13106
-      ),
13107
-      'id' => 'validate_state',
13108
-      'table' => 'result',
13109
-      'field' => 'validate_state',
13110
-      'override' => array(
13106
+        ),
13107
+        'id' => 'validate_state',
13108
+        'table' => 'result',
13109
+        'field' => 'validate_state',
13110
+        'override' => array(
13111 13111
         'button' => 'Use default',
13112
-      ),
13113
-      'relationship' => 'none',
13112
+        ),
13113
+        'relationship' => 'none',
13114 13114
     ),
13115 13115
     'validate_state_1' => array(
13116
-      'operator' => 'not between',
13117
-      'value' => array(
13116
+        'operator' => 'not between',
13117
+        'value' => array(
13118 13118
         'value' => '',
13119 13119
         'min' => '0',
13120 13120
         'max' => '4',
13121
-      ),
13122
-      'group' => '0',
13123
-      'exposed' => FALSE,
13124
-      'expose' => array(
13121
+        ),
13122
+        'group' => '0',
13123
+        'exposed' => FALSE,
13124
+        'expose' => array(
13125 13125
         'operator' => FALSE,
13126 13126
         'label' => '',
13127
-      ),
13128
-      'id' => 'validate_state_1',
13129
-      'table' => 'result',
13130
-      'field' => 'validate_state',
13131
-      'override' => array(
13127
+        ),
13128
+        'id' => 'validate_state_1',
13129
+        'table' => 'result',
13130
+        'field' => 'validate_state',
13131
+        'override' => array(
13132 13132
         'button' => 'Use default',
13133
-      ),
13134
-      'relationship' => 'none',
13133
+        ),
13134
+        'relationship' => 'none',
13135 13135
     ),
13136 13136
     'validate_state_2' => array(
13137
-      'operator' => '<=',
13138
-      'value' => array(
13137
+        'operator' => '<=',
13138
+        'value' => array(
13139 13139
         'value' => '4',
13140 13140
         'min' => '',
13141 13141
         'max' => '',
13142
-      ),
13143
-      'group' => '0',
13144
-      'exposed' => FALSE,
13145
-      'expose' => array(
13142
+        ),
13143
+        'group' => '0',
13144
+        'exposed' => FALSE,
13145
+        'expose' => array(
13146 13146
         'operator' => FALSE,
13147 13147
         'label' => '',
13148
-      ),
13149
-      'id' => 'validate_state_2',
13150
-      'table' => 'result',
13151
-      'field' => 'validate_state',
13152
-      'override' => array(
13148
+        ),
13149
+        'id' => 'validate_state_2',
13150
+        'table' => 'result',
13151
+        'field' => 'validate_state',
13152
+        'override' => array(
13153 13153
         'button' => 'Use default',
13154
-      ),
13155
-      'relationship' => 'none',
13154
+        ),
13155
+        'relationship' => 'none',
13156 13156
     ),
13157
-  ));
13158
-  $handler->override_option('path', 'workunit/%/tasks/pending');
13159
-  $handler->override_option('menu', array(
13157
+    ));
13158
+    $handler->override_option('path', 'workunit/%/tasks/pending');
13159
+    $handler->override_option('menu', array(
13160 13160
     'type' => 'tab',
13161 13161
     'title' => 'Pending',
13162 13162
     'description' => 'Show tasks associated with the workunit with results pending',
13163 13163
     'weight' => '2',
13164 13164
     'name' => 'navigation',
13165
-  ));
13166
-  $handler->override_option('tab_options', array(
13165
+    ));
13166
+    $handler->override_option('tab_options', array(
13167 13167
     'type' => 'none',
13168 13168
     'title' => '',
13169 13169
     'description' => '',
13170 13170
     'weight' => 0,
13171 13171
     'name' => 'navigation',
13172
-  ));
13173
-  $handler = $view->new_display('page', 'Validated', 'page_6');
13174
-  $handler->override_option('filters', array(
13172
+    ));
13173
+    $handler = $view->new_display('page', 'Validated', 'page_6');
13174
+    $handler->override_option('filters', array(
13175 13175
     'server_state' => array(
13176
-      'operator' => '=',
13177
-      'value' => array(
13176
+        'operator' => '=',
13177
+        'value' => array(
13178 13178
         'value' => '5',
13179 13179
         'min' => '',
13180 13180
         'max' => '',
13181
-      ),
13182
-      'group' => '0',
13183
-      'exposed' => FALSE,
13184
-      'expose' => array(
13181
+        ),
13182
+        'group' => '0',
13183
+        'exposed' => FALSE,
13184
+        'expose' => array(
13185 13185
         'operator' => FALSE,
13186 13186
         'label' => '',
13187
-      ),
13188
-      'id' => 'server_state',
13189
-      'table' => 'result',
13190
-      'field' => 'server_state',
13191
-      'override' => array(
13187
+        ),
13188
+        'id' => 'server_state',
13189
+        'table' => 'result',
13190
+        'field' => 'server_state',
13191
+        'override' => array(
13192 13192
         'button' => 'Use default',
13193
-      ),
13194
-      'relationship' => 'none',
13193
+        ),
13194
+        'relationship' => 'none',
13195 13195
     ),
13196 13196
     'outcome' => array(
13197
-      'operator' => '=',
13198
-      'value' => array(
13197
+        'operator' => '=',
13198
+        'value' => array(
13199 13199
         'value' => '1',
13200 13200
         'min' => '',
13201 13201
         'max' => '',
13202
-      ),
13203
-      'group' => '0',
13204
-      'exposed' => FALSE,
13205
-      'expose' => array(
13202
+        ),
13203
+        'group' => '0',
13204
+        'exposed' => FALSE,
13205
+        'expose' => array(
13206 13206
         'operator' => FALSE,
13207 13207
         'label' => '',
13208
-      ),
13209
-      'id' => 'outcome',
13210
-      'table' => 'result',
13211
-      'field' => 'outcome',
13212
-      'override' => array(
13208
+        ),
13209
+        'id' => 'outcome',
13210
+        'table' => 'result',
13211
+        'field' => 'outcome',
13212
+        'override' => array(
13213 13213
         'button' => 'Use default',
13214
-      ),
13215
-      'relationship' => 'none',
13214
+        ),
13215
+        'relationship' => 'none',
13216 13216
     ),
13217 13217
     'validate_state' => array(
13218
-      'operator' => '=',
13219
-      'value' => array(
13218
+        'operator' => '=',
13219
+        'value' => array(
13220 13220
         'value' => '1',
13221 13221
         'min' => '',
13222 13222
         'max' => '',
13223
-      ),
13224
-      'group' => '0',
13225
-      'exposed' => FALSE,
13226
-      'expose' => array(
13223
+        ),
13224
+        'group' => '0',
13225
+        'exposed' => FALSE,
13226
+        'expose' => array(
13227 13227
         'operator' => FALSE,
13228 13228
         'label' => '',
13229
-      ),
13230
-      'id' => 'validate_state',
13231
-      'table' => 'result',
13232
-      'field' => 'validate_state',
13233
-      'override' => array(
13229
+        ),
13230
+        'id' => 'validate_state',
13231
+        'table' => 'result',
13232
+        'field' => 'validate_state',
13233
+        'override' => array(
13234 13234
         'button' => 'Use default',
13235
-      ),
13236
-      'relationship' => 'none',
13235
+        ),
13236
+        'relationship' => 'none',
13237 13237
     ),
13238
-  ));
13239
-  $handler->override_option('path', 'workunit/%/tasks/valid');
13240
-  $handler->override_option('menu', array(
13238
+    ));
13239
+    $handler->override_option('path', 'workunit/%/tasks/valid');
13240
+    $handler->override_option('menu', array(
13241 13241
     'type' => 'tab',
13242 13242
     'title' => 'Valid',
13243 13243
     'description' => 'Show validated tasks associated with the workunit',
13244 13244
     'weight' => '3',
13245 13245
     'name' => 'navigation',
13246
-  ));
13247
-  $handler->override_option('tab_options', array(
13246
+    ));
13247
+    $handler->override_option('tab_options', array(
13248 13248
     'type' => 'none',
13249 13249
     'title' => '',
13250 13250
     'description' => '',
13251 13251
     'weight' => 0,
13252 13252
     'name' => 'navigation',
13253
-  ));
13253
+    ));
13254 13254
 
13255
-  $views[$view->name] = $view;
13255
+    $views[$view->name] = $view;
13256 13256
 
13257
-  return $views;
13257
+    return $views;
13258 13258
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/global_search_solr/global_search_solr.module 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 // Hackish... but there doesn't seem to be a non-hackish way to change the
6 6
 // label on the search form!? Need a custom module to call hook_form_alter()...
7 7
 function global_search_solr_form_alter(&$form, &$form_state, $form_id) {
8
-  if ($form_id == 'apachesolr_search_custom_page_search_form') {
8
+    if ($form_id == 'apachesolr_search_custom_page_search_form') {
9 9
     $form['basic']['keys']['#title'] = t('Search');
10 10
     $form['basic']['keys']['#size'] = 40;
11
-  }
11
+    }
12 12
 }
Please login to merge, or discard this patch.
sites/all/features/private_messages/private_messages.panels_default.inc 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_panels_mini().
5 5
  */
6 6
 function private_messages_default_panels_mini() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
-  $mini->api_version = 1;
12
-  $mini->name = 'user_mail_summary';
13
-  $mini->category = 'BOINC';
14
-  $mini->admin_title = 'User mail summary';
15
-  $mini->admin_description = 'Mail widget for user dashboard';
16
-  $mini->requiredcontexts = array();
17
-  $mini->contexts = array();
18
-  $mini->relationships = array();
19
-  $display = new panels_display;
20
-  $display->layout = 'onecol';
21
-  $display->layout_settings = array();
22
-  $display->panel_settings = array(
9
+    $mini = new stdClass;
10
+    $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
+    $mini->api_version = 1;
12
+    $mini->name = 'user_mail_summary';
13
+    $mini->category = 'BOINC';
14
+    $mini->admin_title = 'User mail summary';
15
+    $mini->admin_description = 'Mail widget for user dashboard';
16
+    $mini->requiredcontexts = array();
17
+    $mini->contexts = array();
18
+    $mini->relationships = array();
19
+    $display = new panels_display;
20
+    $display->layout = 'onecol';
21
+    $display->layout_settings = array();
22
+    $display->panel_settings = array(
23 23
     'style_settings' => array(
24
-      'default' => NULL,
25
-      'middle' => NULL,
24
+        'default' => NULL,
25
+        'middle' => NULL,
26 26
     ),
27
-  );
28
-  $display->cache = array();
29
-  $display->title = 'Messages';
30
-  $display->storage_type = 'panels_mini';
31
-  $display->storage_id = 'user_mail_summary';
32
-  $display->content = array();
33
-  $display->panels = array();
27
+    );
28
+    $display->cache = array();
29
+    $display->title = 'Messages';
30
+    $display->storage_type = 'panels_mini';
31
+    $display->storage_id = 'user_mail_summary';
32
+    $display->content = array();
33
+    $display->panels = array();
34 34
     $pane = new stdClass;
35 35
     $pane->pid = 'new-1';
36 36
     $pane->panel = 'middle';
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
     $pane->shown = TRUE;
40 40
     $pane->access = array();
41 41
     $pane->configuration = array(
42
-      'admin_title' => 'Mail summary',
43
-      'title' => 'Messages',
44
-      'body' => '<?php
42
+        'admin_title' => 'Mail summary',
43
+        'title' => 'Messages',
44
+        'body' => '<?php
45 45
   $l1 = url(\'messages\');
46 46
   $l2 = url(\'messages/new\');
47 47
 ?>
@@ -51,22 +51,22 @@  discard block
 block discarded – undo
51 51
   </li>
52 52
   <li class="last tab"><a href="<?php echo $l2?>"><?php print bts(\'Compose new\', array(), NULL, \'boinc:account-dashboard\'); ?></a></li>
53 53
 </ul>',
54
-      'format' => '3',
55
-      'substitute' => TRUE,
54
+        'format' => '3',
55
+        'substitute' => TRUE,
56 56
     );
57 57
     $pane->cache = array();
58 58
     $pane->style = array(
59
-      'settings' => NULL,
59
+        'settings' => NULL,
60 60
     );
61 61
     $pane->css = array();
62 62
     $pane->extras = array();
63 63
     $pane->position = 0;
64 64
     $display->content['new-1'] = $pane;
65 65
     $display->panels['middle'][0] = 'new-1';
66
-  $display->hide_title = PANELS_TITLE_NONE;
67
-  $display->title_pane = 'new-1';
68
-  $mini->display = $display;
69
-  $export['user_mail_summary'] = $mini;
66
+    $display->hide_title = PANELS_TITLE_NONE;
67
+    $display->title_pane = 'new-1';
68
+    $mini->display = $display;
69
+    $export['user_mail_summary'] = $mini;
70 70
 
71
-  return $export;
71
+    return $export;
72 72
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/boinc_standard/boinc_standard.features.inc 1 patch
Indentation   +1672 added lines, -1672 removed lines patch added patch discarded remove patch
@@ -4,35 +4,35 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function boinc_standard_ctools_plugin_api() {
7
-  list($module, $api) = func_get_args();
8
-  if ($module == "input_formats" && $api == "input_formats") {
7
+    list($module, $api) = func_get_args();
8
+    if ($module == "input_formats" && $api == "input_formats") {
9 9
     return array("version" => 1);
10
-  }
11
-  elseif ($module == "page_manager" && $api == "pages_default") {
10
+    }
11
+    elseif ($module == "page_manager" && $api == "pages_default") {
12 12
     return array("version" => 1);
13
-  }
14
-  elseif ($module == "panels_mini" && $api == "panels_default") {
13
+    }
14
+    elseif ($module == "panels_mini" && $api == "panels_default") {
15 15
     return array("version" => 1);
16
-  }
17
-  elseif ($module == "strongarm" && $api == "strongarm") {
16
+    }
17
+    elseif ($module == "strongarm" && $api == "strongarm") {
18 18
     return array("version" => 1);
19
-  }
19
+    }
20 20
 }
21 21
 
22 22
 /**
23 23
  * Implementation of hook_flag_default_flags().
24 24
  */
25 25
 function boinc_standard_flag_default_flags() {
26
-  $flags = array();
27
-  // Exported flag: "Comment Abuse 1 SPAM".
28
-  $flags['abuse_comment_1'] = array(
26
+    $flags = array();
27
+    // Exported flag: "Comment Abuse 1 SPAM".
28
+    $flags['abuse_comment_1'] = array(
29 29
     'content_type' => 'comment',
30 30
     'title' => 'Comment Abuse 1 SPAM',
31 31
     'global' => FALSE,
32 32
     'types' => array(
33
-      '0' => 'forum',
34
-      '1' => 'news',
35
-      '2' => 'team_forum',
33
+        '0' => 'forum',
34
+        '1' => 'news',
35
+        '2' => 'team_forum',
36 36
     ),
37 37
     'flag_short' => 'Flag as SPAM',
38 38
     'flag_long' => 'Flag this comment as SPAM.',
@@ -43,31 +43,31 @@  discard block
 block discarded – undo
43 43
     'unflag_denied_text' => '',
44 44
     'link_type' => 'toggle',
45 45
     'roles' => array(
46
-      'flag' => array(
46
+        'flag' => array(
47 47
         '0' => 2,
48
-      ),
49
-      'unflag' => array(
48
+        ),
49
+        'unflag' => array(
50 50
         '0' => 2,
51
-      ),
51
+        ),
52 52
     ),
53 53
     'weight' => 0,
54 54
     'access_author' => '',
55 55
     'show_on_comment' => 0,
56 56
     'module' => 'boinc_standard',
57 57
     'locked' => array(
58
-      '0' => 'name',
58
+        '0' => 'name',
59 59
     ),
60 60
     'api_version' => 2,
61
-  );
62
-  // Exported flag: "Comment Abuse 2 LINK".
63
-  $flags['abuse_comment_2'] = array(
61
+    );
62
+    // Exported flag: "Comment Abuse 2 LINK".
63
+    $flags['abuse_comment_2'] = array(
64 64
     'content_type' => 'comment',
65 65
     'title' => 'Comment Abuse 2 LINK',
66 66
     'global' => FALSE,
67 67
     'types' => array(
68
-      '0' => 'forum',
69
-      '1' => 'news',
70
-      '2' => 'team_forum',
68
+        '0' => 'forum',
69
+        '1' => 'news',
70
+        '2' => 'team_forum',
71 71
     ),
72 72
     'flag_short' => 'Flag as abusive link',
73 73
     'flag_long' => 'Flag this comment with abusive link.',
@@ -78,31 +78,31 @@  discard block
 block discarded – undo
78 78
     'unflag_denied_text' => '',
79 79
     'link_type' => 'toggle',
80 80
     'roles' => array(
81
-      'flag' => array(
81
+        'flag' => array(
82 82
         '0' => 2,
83
-      ),
84
-      'unflag' => array(
83
+        ),
84
+        'unflag' => array(
85 85
         '0' => 2,
86
-      ),
86
+        ),
87 87
     ),
88 88
     'weight' => 0,
89 89
     'access_author' => '',
90 90
     'show_on_comment' => 0,
91 91
     'module' => 'boinc_standard',
92 92
     'locked' => array(
93
-      '0' => 'name',
93
+        '0' => 'name',
94 94
     ),
95 95
     'api_version' => 2,
96
-  );
97
-  // Exported flag: "Comment Abuse 3 Hostile".
98
-  $flags['abuse_comment_3'] = array(
96
+    );
97
+    // Exported flag: "Comment Abuse 3 Hostile".
98
+    $flags['abuse_comment_3'] = array(
99 99
     'content_type' => 'comment',
100 100
     'title' => 'Comment Abuse 3 Hostile',
101 101
     'global' => FALSE,
102 102
     'types' => array(
103
-      '0' => 'forum',
104
-      '1' => 'news',
105
-      '2' => 'team_forum',
103
+        '0' => 'forum',
104
+        '1' => 'news',
105
+        '2' => 'team_forum',
106 106
     ),
107 107
     'flag_short' => 'Flag as hostile',
108 108
     'flag_long' => 'Flag this comment as hostile.',
@@ -113,31 +113,31 @@  discard block
 block discarded – undo
113 113
     'unflag_denied_text' => '',
114 114
     'link_type' => 'toggle',
115 115
     'roles' => array(
116
-      'flag' => array(
116
+        'flag' => array(
117 117
         '0' => 2,
118
-      ),
119
-      'unflag' => array(
118
+        ),
119
+        'unflag' => array(
120 120
         '0' => 2,
121
-      ),
121
+        ),
122 122
     ),
123 123
     'weight' => 0,
124 124
     'access_author' => '',
125 125
     'show_on_comment' => 0,
126 126
     'module' => 'boinc_standard',
127 127
     'locked' => array(
128
-      '0' => 'name',
128
+        '0' => 'name',
129 129
     ),
130 130
     'api_version' => 2,
131
-  );
132
-  // Exported flag: "Comment Abuse 4 Not Kid Friendly".
133
-  $flags['abuse_comment_4'] = array(
131
+    );
132
+    // Exported flag: "Comment Abuse 4 Not Kid Friendly".
133
+    $flags['abuse_comment_4'] = array(
134 134
     'content_type' => 'comment',
135 135
     'title' => 'Comment Abuse 4 Not Kid Friendly',
136 136
     'global' => FALSE,
137 137
     'types' => array(
138
-      '0' => 'forum',
139
-      '1' => 'news',
140
-      '2' => 'team_forum',
138
+        '0' => 'forum',
139
+        '1' => 'news',
140
+        '2' => 'team_forum',
141 141
     ),
142 142
     'flag_short' => 'Flag as not kid-friendly',
143 143
     'flag_long' => 'Flag this comment as not kid-friendly.',
@@ -148,31 +148,31 @@  discard block
 block discarded – undo
148 148
     'unflag_denied_text' => '',
149 149
     'link_type' => 'toggle',
150 150
     'roles' => array(
151
-      'flag' => array(
151
+        'flag' => array(
152 152
         '0' => 2,
153
-      ),
154
-      'unflag' => array(
153
+        ),
154
+        'unflag' => array(
155 155
         '0' => 2,
156
-      ),
156
+        ),
157 157
     ),
158 158
     'weight' => 0,
159 159
     'access_author' => '',
160 160
     'show_on_comment' => 0,
161 161
     'module' => 'boinc_standard',
162 162
     'locked' => array(
163
-      '0' => 'name',
163
+        '0' => 'name',
164 164
     ),
165 165
     'api_version' => 2,
166
-  );
167
-  // Exported flag: "Comment Abuse 5 Other".
168
-  $flags['abuse_comment_5'] = array(
166
+    );
167
+    // Exported flag: "Comment Abuse 5 Other".
168
+    $flags['abuse_comment_5'] = array(
169 169
     'content_type' => 'comment',
170 170
     'title' => 'Comment Abuse 5 Other',
171 171
     'global' => FALSE,
172 172
     'types' => array(
173
-      '0' => 'forum',
174
-      '1' => 'news',
175
-      '2' => 'team_forum',
173
+        '0' => 'forum',
174
+        '1' => 'news',
175
+        '2' => 'team_forum',
176 176
     ),
177 177
     'flag_short' => 'Flag as other',
178 178
     'flag_long' => 'Flag this comment - other reason',
@@ -183,31 +183,31 @@  discard block
 block discarded – undo
183 183
     'unflag_denied_text' => '',
184 184
     'link_type' => 'toggle',
185 185
     'roles' => array(
186
-      'flag' => array(
186
+        'flag' => array(
187 187
         '0' => 2,
188
-      ),
189
-      'unflag' => array(
188
+        ),
189
+        'unflag' => array(
190 190
         '0' => 2,
191
-      ),
191
+        ),
192 192
     ),
193 193
     'weight' => 0,
194 194
     'access_author' => '',
195 195
     'show_on_comment' => 0,
196 196
     'module' => 'boinc_standard',
197 197
     'locked' => array(
198
-      '0' => 'name',
198
+        '0' => 'name',
199 199
     ),
200 200
     'api_version' => 2,
201
-  );
202
-  // Exported flag: "Comment Abuse meta".
203
-  $flags['abuse_comment_meta'] = array(
201
+    );
202
+    // Exported flag: "Comment Abuse meta".
203
+    $flags['abuse_comment_meta'] = array(
204 204
     'content_type' => 'comment',
205 205
     'title' => 'Comment Abuse meta',
206 206
     'global' => '0',
207 207
     'types' => array(
208
-      '0' => 'forum',
209
-      '1' => 'news',
210
-      '2' => 'team_forum',
208
+        '0' => 'forum',
209
+        '1' => 'news',
210
+        '2' => 'team_forum',
211 211
     ),
212 212
     'flag_short' => 'Report',
213 213
     'flag_long' => 'Report comment.',
@@ -218,31 +218,31 @@  discard block
 block discarded – undo
218 218
     'unflag_denied_text' => '',
219 219
     'link_type' => 'toggle',
220 220
     'roles' => array(
221
-      'flag' => array(
221
+        'flag' => array(
222 222
         '0' => 2,
223
-      ),
224
-      'unflag' => array(
223
+        ),
224
+        'unflag' => array(
225 225
         '0' => 2,
226
-      ),
226
+        ),
227 227
     ),
228 228
     'weight' => 0,
229 229
     'access_author' => '',
230 230
     'show_on_comment' => 1,
231 231
     'module' => 'boinc_standard',
232 232
     'locked' => array(
233
-      '0' => 'name',
233
+        '0' => 'name',
234 234
     ),
235 235
     'api_version' => 2,
236
-  );
237
-  // Exported flag: "Node Abuse 1 SPAM".
238
-  $flags['abuse_node_1'] = array(
236
+    );
237
+    // Exported flag: "Node Abuse 1 SPAM".
238
+    $flags['abuse_node_1'] = array(
239 239
     'content_type' => 'node',
240 240
     'title' => 'Node Abuse 1 SPAM',
241 241
     'global' => FALSE,
242 242
     'types' => array(
243
-      '0' => 'forum',
244
-      '1' => 'news',
245
-      '2' => 'team_forum',
243
+        '0' => 'forum',
244
+        '1' => 'news',
245
+        '2' => 'team_forum',
246 246
     ),
247 247
     'flag_short' => 'Flag as SPAM',
248 248
     'flag_long' => 'Flag this content SPAM.',
@@ -253,12 +253,12 @@  discard block
 block discarded – undo
253 253
     'unflag_denied_text' => '',
254 254
     'link_type' => 'toggle',
255 255
     'roles' => array(
256
-      'flag' => array(
256
+        'flag' => array(
257 257
         '0' => 2,
258
-      ),
259
-      'unflag' => array(
258
+        ),
259
+        'unflag' => array(
260 260
         '0' => 2,
261
-      ),
261
+        ),
262 262
     ),
263 263
     'weight' => 0,
264 264
     'show_on_page' => 0,
@@ -268,19 +268,19 @@  discard block
 block discarded – undo
268 268
     'i18n' => '0',
269 269
     'module' => 'boinc_standard',
270 270
     'locked' => array(
271
-      '0' => 'name',
271
+        '0' => 'name',
272 272
     ),
273 273
     'api_version' => 2,
274
-  );
275
-  // Exported flag: "Node Abuse 2 Link".
276
-  $flags['abuse_node_2'] = array(
274
+    );
275
+    // Exported flag: "Node Abuse 2 Link".
276
+    $flags['abuse_node_2'] = array(
277 277
     'content_type' => 'node',
278 278
     'title' => 'Node Abuse 2 Link',
279 279
     'global' => FALSE,
280 280
     'types' => array(
281
-      '0' => 'forum',
282
-      '1' => 'news',
283
-      '2' => 'team_forum',
281
+        '0' => 'forum',
282
+        '1' => 'news',
283
+        '2' => 'team_forum',
284 284
     ),
285 285
     'flag_short' => 'Report as abusive link',
286 286
     'flag_long' => 'Flag this content as abusive link.',
@@ -291,12 +291,12 @@  discard block
 block discarded – undo
291 291
     'unflag_denied_text' => '',
292 292
     'link_type' => 'toggle',
293 293
     'roles' => array(
294
-      'flag' => array(
294
+        'flag' => array(
295 295
         '0' => 2,
296
-      ),
297
-      'unflag' => array(
296
+        ),
297
+        'unflag' => array(
298 298
         '0' => 2,
299
-      ),
299
+        ),
300 300
     ),
301 301
     'weight' => 0,
302 302
     'show_on_page' => 0,
@@ -306,19 +306,19 @@  discard block
 block discarded – undo
306 306
     'i18n' => '0',
307 307
     'module' => 'boinc_standard',
308 308
     'locked' => array(
309
-      '0' => 'name',
309
+        '0' => 'name',
310 310
     ),
311 311
     'api_version' => 2,
312
-  );
313
-  // Exported flag: "Node Abuse 3 Hostile".
314
-  $flags['abuse_node_3'] = array(
312
+    );
313
+    // Exported flag: "Node Abuse 3 Hostile".
314
+    $flags['abuse_node_3'] = array(
315 315
     'content_type' => 'node',
316 316
     'title' => 'Node Abuse 3 Hostile',
317 317
     'global' => FALSE,
318 318
     'types' => array(
319
-      '0' => 'forum',
320
-      '1' => 'news',
321
-      '2' => 'team_forum',
319
+        '0' => 'forum',
320
+        '1' => 'news',
321
+        '2' => 'team_forum',
322 322
     ),
323 323
     'flag_short' => 'Flag as hostile',
324 324
     'flag_long' => 'Flag this content as hostile.',
@@ -329,12 +329,12 @@  discard block
 block discarded – undo
329 329
     'unflag_denied_text' => '',
330 330
     'link_type' => 'toggle',
331 331
     'roles' => array(
332
-      'flag' => array(
332
+        'flag' => array(
333 333
         '0' => 2,
334
-      ),
335
-      'unflag' => array(
334
+        ),
335
+        'unflag' => array(
336 336
         '0' => 2,
337
-      ),
337
+        ),
338 338
     ),
339 339
     'weight' => 0,
340 340
     'show_on_page' => 0,
@@ -344,19 +344,19 @@  discard block
 block discarded – undo
344 344
     'i18n' => '0',
345 345
     'module' => 'boinc_standard',
346 346
     'locked' => array(
347
-      '0' => 'name',
347
+        '0' => 'name',
348 348
     ),
349 349
     'api_version' => 2,
350
-  );
351
-  // Exported flag: "Node Abuse 4 Not Kid Friendly".
352
-  $flags['abuse_node_4'] = array(
350
+    );
351
+    // Exported flag: "Node Abuse 4 Not Kid Friendly".
352
+    $flags['abuse_node_4'] = array(
353 353
     'content_type' => 'node',
354 354
     'title' => 'Node Abuse 4 Not Kid Friendly',
355 355
     'global' => FALSE,
356 356
     'types' => array(
357
-      '0' => 'forum',
358
-      '1' => 'news',
359
-      '2' => 'team_forum',
357
+        '0' => 'forum',
358
+        '1' => 'news',
359
+        '2' => 'team_forum',
360 360
     ),
361 361
     'flag_short' => 'Flag as not kid-friendly',
362 362
     'flag_long' => 'Flag this content as not kid-friendly.',
@@ -367,12 +367,12 @@  discard block
 block discarded – undo
367 367
     'unflag_denied_text' => '',
368 368
     'link_type' => 'toggle',
369 369
     'roles' => array(
370
-      'flag' => array(
370
+        'flag' => array(
371 371
         '0' => 2,
372
-      ),
373
-      'unflag' => array(
372
+        ),
373
+        'unflag' => array(
374 374
         '0' => 2,
375
-      ),
375
+        ),
376 376
     ),
377 377
     'weight' => 0,
378 378
     'show_on_page' => 0,
@@ -382,19 +382,19 @@  discard block
 block discarded – undo
382 382
     'i18n' => '0',
383 383
     'module' => 'boinc_standard',
384 384
     'locked' => array(
385
-      '0' => 'name',
385
+        '0' => 'name',
386 386
     ),
387 387
     'api_version' => 2,
388
-  );
389
-  // Exported flag: "Node Abuse 5 Other".
390
-  $flags['abuse_node_5'] = array(
388
+    );
389
+    // Exported flag: "Node Abuse 5 Other".
390
+    $flags['abuse_node_5'] = array(
391 391
     'content_type' => 'node',
392 392
     'title' => 'Node Abuse 5 Other',
393 393
     'global' => FALSE,
394 394
     'types' => array(
395
-      '0' => 'forum',
396
-      '1' => 'news',
397
-      '2' => 'team_forum',
395
+        '0' => 'forum',
396
+        '1' => 'news',
397
+        '2' => 'team_forum',
398 398
     ),
399 399
     'flag_short' => 'Flag as other',
400 400
     'flag_long' => 'Flag this content - other reason.',
@@ -405,12 +405,12 @@  discard block
 block discarded – undo
405 405
     'unflag_denied_text' => '',
406 406
     'link_type' => 'toggle',
407 407
     'roles' => array(
408
-      'flag' => array(
408
+        'flag' => array(
409 409
         '0' => 2,
410
-      ),
411
-      'unflag' => array(
410
+        ),
411
+        'unflag' => array(
412 412
         '0' => 2,
413
-      ),
413
+        ),
414 414
     ),
415 415
     'weight' => 0,
416 416
     'show_on_page' => 0,
@@ -420,19 +420,19 @@  discard block
 block discarded – undo
420 420
     'i18n' => '0',
421 421
     'module' => 'boinc_standard',
422 422
     'locked' => array(
423
-      '0' => 'name',
423
+        '0' => 'name',
424 424
     ),
425 425
     'api_version' => 2,
426
-  );
427
-  // Exported flag: "Node Abuse meta".
428
-  $flags['abuse_node_meta'] = array(
426
+    );
427
+    // Exported flag: "Node Abuse meta".
428
+    $flags['abuse_node_meta'] = array(
429 429
     'content_type' => 'node',
430 430
     'title' => 'Node Abuse meta',
431 431
     'global' => FALSE,
432 432
     'types' => array(
433
-      '0' => 'forum',
434
-      '1' => 'news',
435
-      '2' => 'team_forum',
433
+        '0' => 'forum',
434
+        '1' => 'news',
435
+        '2' => 'team_forum',
436 436
     ),
437 437
     'flag_short' => 'Report',
438 438
     'flag_long' => 'Report content',
@@ -443,12 +443,12 @@  discard block
 block discarded – undo
443 443
     'unflag_denied_text' => '',
444 444
     'link_type' => 'toggle',
445 445
     'roles' => array(
446
-      'flag' => array(
446
+        'flag' => array(
447 447
         '0' => 2,
448
-      ),
449
-      'unflag' => array(
448
+        ),
449
+        'unflag' => array(
450 450
         '0' => 2,
451
-      ),
451
+        ),
452 452
     ),
453 453
     'weight' => 0,
454 454
     'show_on_page' => 1,
@@ -458,12 +458,12 @@  discard block
 block discarded – undo
458 458
     'i18n' => '0',
459 459
     'module' => 'boinc_standard',
460 460
     'locked' => array(
461
-      '0' => 'name',
461
+        '0' => 'name',
462 462
     ),
463 463
     'api_version' => 2,
464
-  );
465
-  // Exported flag: "User Abuse 1 SPAM".
466
-  $flags['abuse_user_1'] = array(
464
+    );
465
+    // Exported flag: "User Abuse 1 SPAM".
466
+    $flags['abuse_user_1'] = array(
467 467
     'content_type' => 'user',
468 468
     'title' => 'User Abuse 1 SPAM',
469 469
     'global' => FALSE,
@@ -477,24 +477,24 @@  discard block
 block discarded – undo
477 477
     'unflag_denied_text' => '',
478 478
     'link_type' => 'toggle',
479 479
     'roles' => array(
480
-      'flag' => array(
480
+        'flag' => array(
481 481
         '0' => 2,
482
-      ),
483
-      'unflag' => array(
482
+        ),
483
+        'unflag' => array(
484 484
         '0' => 2,
485
-      ),
485
+        ),
486 486
     ),
487 487
     'weight' => 0,
488 488
     'show_on_profile' => 0,
489 489
     'access_uid' => '',
490 490
     'module' => 'boinc_standard',
491 491
     'locked' => array(
492
-      '0' => 'name',
492
+        '0' => 'name',
493 493
     ),
494 494
     'api_version' => 2,
495
-  );
496
-  // Exported flag: "User Abuse 2 Link".
497
-  $flags['abuse_user_2'] = array(
495
+    );
496
+    // Exported flag: "User Abuse 2 Link".
497
+    $flags['abuse_user_2'] = array(
498 498
     'content_type' => 'user',
499 499
     'title' => 'User Abuse 2 Link',
500 500
     'global' => FALSE,
@@ -508,24 +508,24 @@  discard block
 block discarded – undo
508 508
     'unflag_denied_text' => '',
509 509
     'link_type' => 'toggle',
510 510
     'roles' => array(
511
-      'flag' => array(
511
+        'flag' => array(
512 512
         '0' => 2,
513
-      ),
514
-      'unflag' => array(
513
+        ),
514
+        'unflag' => array(
515 515
         '0' => 2,
516
-      ),
516
+        ),
517 517
     ),
518 518
     'weight' => 0,
519 519
     'show_on_profile' => 0,
520 520
     'access_uid' => '',
521 521
     'module' => 'boinc_standard',
522 522
     'locked' => array(
523
-      '0' => 'name',
523
+        '0' => 'name',
524 524
     ),
525 525
     'api_version' => 2,
526
-  );
527
-  // Exported flag: "User Abuse 3 Not Kid Friendly".
528
-  $flags['abuse_user_3'] = array(
526
+    );
527
+    // Exported flag: "User Abuse 3 Not Kid Friendly".
528
+    $flags['abuse_user_3'] = array(
529 529
     'content_type' => 'user',
530 530
     'title' => 'User Abuse 3 Not Kid Friendly',
531 531
     'global' => FALSE,
@@ -539,24 +539,24 @@  discard block
 block discarded – undo
539 539
     'unflag_denied_text' => '',
540 540
     'link_type' => 'toggle',
541 541
     'roles' => array(
542
-      'flag' => array(
542
+        'flag' => array(
543 543
         '0' => 2,
544
-      ),
545
-      'unflag' => array(
544
+        ),
545
+        'unflag' => array(
546 546
         '0' => 2,
547
-      ),
547
+        ),
548 548
     ),
549 549
     'weight' => 0,
550 550
     'show_on_profile' => 0,
551 551
     'access_uid' => '',
552 552
     'module' => 'boinc_standard',
553 553
     'locked' => array(
554
-      '0' => 'name',
554
+        '0' => 'name',
555 555
     ),
556 556
     'api_version' => 2,
557
-  );
558
-  // Exported flag: "User Abuse 4 Other".
559
-  $flags['abuse_user_4'] = array(
557
+    );
558
+    // Exported flag: "User Abuse 4 Other".
559
+    $flags['abuse_user_4'] = array(
560 560
     'content_type' => 'user',
561 561
     'title' => 'User Abuse 4 Other',
562 562
     'global' => FALSE,
@@ -570,24 +570,24 @@  discard block
 block discarded – undo
570 570
     'unflag_denied_text' => '',
571 571
     'link_type' => 'toggle',
572 572
     'roles' => array(
573
-      'flag' => array(
573
+        'flag' => array(
574 574
         '0' => 2,
575
-      ),
576
-      'unflag' => array(
575
+        ),
576
+        'unflag' => array(
577 577
         '0' => 2,
578
-      ),
578
+        ),
579 579
     ),
580 580
     'weight' => 0,
581 581
     'show_on_profile' => 0,
582 582
     'access_uid' => '',
583 583
     'module' => 'boinc_standard',
584 584
     'locked' => array(
585
-      '0' => 'name',
585
+        '0' => 'name',
586 586
     ),
587 587
     'api_version' => 2,
588
-  );
589
-  // Exported flag: "User Abuse Meta".
590
-  $flags['abuse_user_meta'] = array(
588
+    );
589
+    // Exported flag: "User Abuse Meta".
590
+    $flags['abuse_user_meta'] = array(
591 591
     'content_type' => 'user',
592 592
     'title' => 'User Abuse Meta',
593 593
     'global' => FALSE,
@@ -601,31 +601,31 @@  discard block
 block discarded – undo
601 601
     'unflag_denied_text' => '',
602 602
     'link_type' => 'toggle',
603 603
     'roles' => array(
604
-      'flag' => array(
604
+        'flag' => array(
605 605
         '0' => 2,
606
-      ),
607
-      'unflag' => array(
606
+        ),
607
+        'unflag' => array(
608 608
         '0' => 2,
609
-      ),
609
+        ),
610 610
     ),
611 611
     'weight' => 0,
612 612
     'show_on_profile' => 1,
613 613
     'access_uid' => '',
614 614
     'module' => 'boinc_standard',
615 615
     'locked' => array(
616
-      '0' => 'name',
616
+        '0' => 'name',
617 617
     ),
618 618
     'api_version' => 2,
619
-  );
620
-  // Exported flag: "Subscriptions".
621
-  $flags['subscriptions'] = array(
619
+    );
620
+    // Exported flag: "Subscriptions".
621
+    $flags['subscriptions'] = array(
622 622
     'content_type' => 'node',
623 623
     'title' => 'Subscriptions',
624 624
     'global' => '0',
625 625
     'types' => array(
626
-      '0' => 'forum',
627
-      '1' => 'news',
628
-      '2' => 'team_forum',
626
+        '0' => 'forum',
627
+        '1' => 'news',
628
+        '2' => 'team_forum',
629 629
     ),
630 630
     'flag_short' => 'subscribe',
631 631
     'flag_long' => 'Subscribe to this topic',
@@ -636,12 +636,12 @@  discard block
 block discarded – undo
636 636
     'unflag_denied_text' => '',
637 637
     'link_type' => 'toggle',
638 638
     'roles' => array(
639
-      'flag' => array(
639
+        'flag' => array(
640 640
         '0' => 2,
641
-      ),
642
-      'unflag' => array(
641
+        ),
642
+        'unflag' => array(
643 643
         '0' => 2,
644
-      ),
644
+        ),
645 645
     ),
646 646
     'weight' => 0,
647 647
     'show_on_page' => 1,
@@ -651,11 +651,11 @@  discard block
 block discarded – undo
651 651
     'i18n' => '0',
652 652
     'module' => 'boinc_standard',
653 653
     'locked' => array(
654
-      '0' => 'name',
654
+        '0' => 'name',
655 655
     ),
656 656
     'api_version' => 2,
657
-  );
658
-  return $flags;
657
+    );
658
+    return $flags;
659 659
 
660 660
 }
661 661
 
@@ -663,47 +663,47 @@  discard block
 block discarded – undo
663 663
  * Implementation of hook_node_info().
664 664
  */
665 665
 function boinc_standard_node_info() {
666
-  $items = array(
666
+    $items = array(
667 667
     'page' => array(
668
-      'name' => t('Page'),
669
-      'module' => 'features',
670
-      'description' => t('A <em>page</em>, similar in form to a <em>story</em>, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a <em>page</em> entry does not allow visitor comments and is not featured on the site\'s initial home page.'),
671
-      'has_title' => '1',
672
-      'title_label' => t('Title'),
673
-      'has_body' => '1',
674
-      'body_label' => t('Body'),
675
-      'min_word_count' => '0',
676
-      'help' => '',
668
+        'name' => t('Page'),
669
+        'module' => 'features',
670
+        'description' => t('A <em>page</em>, similar in form to a <em>story</em>, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a <em>page</em> entry does not allow visitor comments and is not featured on the site\'s initial home page.'),
671
+        'has_title' => '1',
672
+        'title_label' => t('Title'),
673
+        'has_body' => '1',
674
+        'body_label' => t('Body'),
675
+        'min_word_count' => '0',
676
+        'help' => '',
677 677
     ),
678
-  );
679
-  return $items;
678
+    );
679
+    return $items;
680 680
 }
681 681
 
682 682
 /**
683 683
  * Implementation of hook_rules_defaults().
684 684
  */
685 685
 function boinc_standard_rules_defaults() {
686
-  return array(
686
+    return array(
687 687
     'rules' => array(
688
-      'rules_notify_admins_about_circular_merge_error' => array(
688
+        'rules_notify_admins_about_circular_merge_error' => array(
689 689
         '#type' => 'rule',
690 690
         '#set' => 'event_boincwork_circular_merge_error',
691 691
         '#label' => 'Notify admins about circular merge error',
692 692
         '#active' => 1,
693 693
         '#weight' => '0',
694 694
         '#categories' => array(
695
-          '0' => 'boinc_standard',
696
-          '1' => 'admin notification',
695
+            '0' => 'boinc_standard',
696
+            '1' => 'admin notification',
697 697
         ),
698 698
         '#status' => 'default',
699 699
         '#conditions' => array(),
700 700
         '#actions' => array(
701
-          '0' => array(
701
+            '0' => array(
702 702
             '#type' => 'action',
703 703
             '#settings' => array(
704
-              'from' => '',
705
-              'subject' => '[subject_tag:string] Circular host merging error',
706
-              'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s rpc_seqno is equal to the old_host\'s id.
704
+                'from' => '',
705
+                'subject' => '[subject_tag:string] Circular host merging error',
706
+                'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s rpc_seqno is equal to the old_host\'s id.
707 707
 
708 708
 Information about this host merge attempt:
709 709
 <?php
@@ -714,62 +714,62 @@  discard block
 block discarded – undo
714 714
 print "BOINC id: " . $account->boincuser_id . "\\n";
715 715
 print "Drupal UID: " . $user->uid . "\\n";
716 716
 ?>',
717
-              '#eval input' => array(
717
+                '#eval input' => array(
718 718
                 'token_rules_input_evaluator' => array(
719
-                  'subject' => array(
719
+                    'subject' => array(
720 720
                     '0' => 'subject_tag',
721 721
                     '1' => ':global',
722
-                  ),
723
-                  'message' => array(
722
+                    ),
723
+                    'message' => array(
724 724
                     '0' => ':global',
725
-                  ),
726
-                  'from' => array(
725
+                    ),
726
+                    'from' => array(
727 727
                     '0' => ':global',
728
-                  ),
728
+                    ),
729 729
                 ),
730 730
                 'rules_input_evaluator_php' => array(
731
-                  'message' => array(
731
+                    'message' => array(
732 732
                     '0' => 'oldhost_id',
733 733
                     '1' => 'targethost_id',
734 734
                     '2' => 'user',
735
-                  ),
735
+                    ),
736
+                ),
736 737
                 ),
737
-              ),
738 738
             ),
739 739
             '#name' => 'boinccore_rules_action_mail_to_admins',
740 740
             '#info' => array(
741
-              'label' => 'Notify admins via email',
742
-              'module' => 'BOINC core',
743
-              'eval input' => array(
741
+                'label' => 'Notify admins via email',
742
+                'module' => 'BOINC core',
743
+                'eval input' => array(
744 744
                 '0' => 'subject',
745 745
                 '1' => 'message',
746 746
                 '2' => 'from',
747
-              ),
747
+                ),
748 748
             ),
749 749
             '#weight' => 0.0,
750
-          ),
750
+            ),
751 751
         ),
752 752
         '#version' => 6003,
753
-      ),
754
-      'rules_notify_admins_about_zombie_merge_attempt' => array(
753
+        ),
754
+        'rules_notify_admins_about_zombie_merge_attempt' => array(
755 755
         '#type' => 'rule',
756 756
         '#set' => 'event_boincwork_zombie_merge_error',
757 757
         '#label' => 'Notify admins about zombie merge attempt',
758 758
         '#active' => 1,
759 759
         '#weight' => '0',
760 760
         '#categories' => array(
761
-          '0' => 'boinc_standard',
762
-          '1' => 'admin notification',
761
+            '0' => 'boinc_standard',
762
+            '1' => 'admin notification',
763 763
         ),
764 764
         '#status' => 'default',
765 765
         '#conditions' => array(),
766 766
         '#actions' => array(
767
-          '0' => array(
767
+            '0' => array(
768 768
             '#type' => 'action',
769 769
             '#settings' => array(
770
-              'from' => '',
771
-              'subject' => '[subject_tag:string] Zombie host merging error',
772
-              'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s userid is equal to 0, a zombie host.
770
+                'from' => '',
771
+                'subject' => '[subject_tag:string] Zombie host merging error',
772
+                'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s userid is equal to 0, a zombie host.
773 773
 I.e., $target_host->userid == 0
774 774
 
775 775
 Information about this host merge attempt:
@@ -781,3303 +781,3303 @@  discard block
 block discarded – undo
781 781
 print "BOINC id: " . $account->boincuser_id . "\\n";
782 782
 print "Drupal UID: " . $user->uid . "\\n";
783 783
 ?>',
784
-              '#eval input' => array(
784
+                '#eval input' => array(
785 785
                 'token_rules_input_evaluator' => array(
786
-                  'subject' => array(
786
+                    'subject' => array(
787 787
                     '0' => 'subject_tag',
788 788
                     '1' => ':global',
789
-                  ),
790
-                  'message' => array(
789
+                    ),
790
+                    'message' => array(
791 791
                     '0' => ':global',
792
-                  ),
793
-                  'from' => array(
792
+                    ),
793
+                    'from' => array(
794 794
                     '0' => ':global',
795
-                  ),
795
+                    ),
796 796
                 ),
797 797
                 'rules_input_evaluator_php' => array(
798
-                  'message' => array(
798
+                    'message' => array(
799 799
                     '0' => 'oldhost_id',
800 800
                     '1' => 'targethost_id',
801 801
                     '2' => 'user',
802
-                  ),
802
+                    ),
803
+                ),
803 804
                 ),
804
-              ),
805 805
             ),
806 806
             '#name' => 'boinccore_rules_action_mail_to_admins',
807 807
             '#info' => array(
808
-              'label' => 'Notify admins via email',
809
-              'module' => 'BOINC core',
810
-              'eval input' => array(
808
+                'label' => 'Notify admins via email',
809
+                'module' => 'BOINC core',
810
+                'eval input' => array(
811 811
                 '0' => 'subject',
812 812
                 '1' => 'message',
813 813
                 '2' => 'from',
814
-              ),
814
+                ),
815 815
             ),
816 816
             '#weight' => 0.0,
817
-          ),
817
+            ),
818 818
         ),
819 819
         '#version' => 6003,
820
-      ),
821
-      'rules_notify_admins_error_when_user_consenting_with_missing_consent_type' => array(
820
+        ),
821
+        'rules_notify_admins_error_when_user_consenting_with_missing_consent_type' => array(
822 822
         '#type' => 'rule',
823 823
         '#set' => 'event_boincuser_general_consent_type_error',
824 824
         '#label' => 'Notify admins error when user consenting with missing consent type',
825 825
         '#active' => 1,
826 826
         '#weight' => '0',
827 827
         '#categories' => array(
828
-          '0' => 'boinc_standard',
829
-          '1' => 'admin notification',
828
+            '0' => 'boinc_standard',
829
+            '1' => 'admin notification',
830 830
         ),
831 831
         '#status' => 'default',
832 832
         '#conditions' => array(),
833 833
         '#actions' => array(
834
-          '0' => array(
834
+            '0' => array(
835 835
             '#type' => 'action',
836 836
             '#settings' => array(
837
-              'from' => '',
838
-              'subject' => '[subject_tag:string] Error from user consenting to terms of use, missing consent type',
839
-              'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and the function \'check_consent_type\' returned an error. Consent type [consent_type:string] seems to be generating an error.',
840
-              '#eval input' => array(
837
+                'from' => '',
838
+                'subject' => '[subject_tag:string] Error from user consenting to terms of use, missing consent type',
839
+                'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and the function \'check_consent_type\' returned an error. Consent type [consent_type:string] seems to be generating an error.',
840
+                '#eval input' => array(
841 841
                 'token_rules_input_evaluator' => array(
842
-                  'subject' => array(
842
+                    'subject' => array(
843 843
                     '0' => 'subject_tag',
844 844
                     '1' => ':global',
845
-                  ),
846
-                  'message' => array(
845
+                    ),
846
+                    'message' => array(
847 847
                     '0' => 'consent_type',
848 848
                     '1' => 'user',
849 849
                     '2' => ':global',
850
-                  ),
851
-                  'from' => array(
850
+                    ),
851
+                    'from' => array(
852 852
                     '0' => ':global',
853
-                  ),
853
+                    ),
854
+                ),
854 855
                 ),
855
-              ),
856 856
             ),
857 857
             '#name' => 'boinccore_rules_action_mail_to_admins',
858 858
             '#info' => array(
859
-              'label' => 'Notify admins via email',
860
-              'module' => 'BOINC core',
861
-              'eval input' => array(
859
+                'label' => 'Notify admins via email',
860
+                'module' => 'BOINC core',
861
+                'eval input' => array(
862 862
                 '0' => 'subject',
863 863
                 '1' => 'message',
864 864
                 '2' => 'from',
865
-              ),
865
+                ),
866 866
             ),
867 867
             '#weight' => 0.0,
868
-          ),
868
+            ),
869 869
         ),
870 870
         '#version' => 6003,
871
-      ),
872
-      'rules_notify_admins_user_changing_email_address_to_existing_user' => array(
871
+        ),
872
+        'rules_notify_admins_user_changing_email_address_to_existing_user' => array(
873 873
         '#type' => 'rule',
874 874
         '#set' => 'event_boincuser_change_email_error',
875 875
         '#label' => 'Notify admins user changing email address to existing user',
876 876
         '#active' => 1,
877 877
         '#weight' => '0',
878 878
         '#categories' => array(
879
-          '0' => 'boinc_standard',
880
-          '1' => 'admin notification',
879
+            '0' => 'boinc_standard',
880
+            '1' => 'admin notification',
881 881
         ),
882 882
         '#status' => 'default',
883 883
         '#conditions' => array(),
884 884
         '#actions' => array(
885
-          '0' => array(
885
+            '0' => array(
886 886
             '#type' => 'action',
887 887
             '#settings' => array(
888
-              'from' => '',
889
-              'subject' => '[subject_tag:string] User attempted to change email address to one used by existing user.',
890
-              'message' => '[user:display-name]	with email [user:mail] attempted to change their email to [new_email_addr:string], which is already in use by another user.',
891
-              '#eval input' => array(
888
+                'from' => '',
889
+                'subject' => '[subject_tag:string] User attempted to change email address to one used by existing user.',
890
+                'message' => '[user:display-name]	with email [user:mail] attempted to change their email to [new_email_addr:string], which is already in use by another user.',
891
+                '#eval input' => array(
892 892
                 'token_rules_input_evaluator' => array(
893
-                  'subject' => array(
893
+                    'subject' => array(
894 894
                     '0' => 'subject_tag',
895 895
                     '1' => ':global',
896
-                  ),
897
-                  'message' => array(
896
+                    ),
897
+                    'message' => array(
898 898
                     '0' => 'new_email_addr',
899 899
                     '1' => 'user',
900 900
                     '2' => ':global',
901
-                  ),
902
-                  'from' => array(
901
+                    ),
902
+                    'from' => array(
903 903
                     '0' => ':global',
904
-                  ),
904
+                    ),
905
+                ),
905 906
                 ),
906
-              ),
907 907
             ),
908 908
             '#name' => 'boinccore_rules_action_mail_to_admins',
909 909
             '#info' => array(
910
-              'label' => 'Notify admins via email',
911
-              'module' => 'BOINC core',
912
-              'eval input' => array(
910
+                'label' => 'Notify admins via email',
911
+                'module' => 'BOINC core',
912
+                'eval input' => array(
913 913
                 '0' => 'subject',
914 914
                 '1' => 'message',
915 915
                 '2' => 'from',
916
-              ),
916
+                ),
917 917
             ),
918 918
             '#weight' => 0.0,
919
-          ),
919
+            ),
920 920
         ),
921 921
         '#version' => 6003,
922
-      ),
923
-      'rules_notify_admins_user_reverting_to_previous_email_address_that_is_now_used_by_another_user' => array(
922
+        ),
923
+        'rules_notify_admins_user_reverting_to_previous_email_address_that_is_now_used_by_another_user' => array(
924 924
         '#type' => 'rule',
925 925
         '#set' => 'event_boincuser_revert_email_error',
926 926
         '#label' => 'Notify admins user reverting to previous email address that is now used by another user',
927 927
         '#active' => 1,
928 928
         '#weight' => '0',
929 929
         '#categories' => array(
930
-          '0' => 'boinc_standard',
931
-          '1' => 'admin notification',
930
+            '0' => 'boinc_standard',
931
+            '1' => 'admin notification',
932 932
         ),
933 933
         '#status' => 'default',
934 934
         '#conditions' => array(),
935 935
         '#actions' => array(
936
-          '0' => array(
936
+            '0' => array(
937 937
             '#type' => 'action',
938 938
             '#settings' => array(
939
-              'from' => '',
940
-              'subject' => '[subject_tag:string] User attempted to revert to previous email address to one used by existing user.',
941
-              'message' => '[user:display-name]	with email [user:mail] attempted to revert their email to their previous email address, [new_email_addr:string], which is already in use by another user.',
942
-              '#eval input' => array(
939
+                'from' => '',
940
+                'subject' => '[subject_tag:string] User attempted to revert to previous email address to one used by existing user.',
941
+                'message' => '[user:display-name]	with email [user:mail] attempted to revert their email to their previous email address, [new_email_addr:string], which is already in use by another user.',
942
+                '#eval input' => array(
943 943
                 'token_rules_input_evaluator' => array(
944
-                  'subject' => array(
944
+                    'subject' => array(
945 945
                     '0' => 'subject_tag',
946 946
                     '1' => ':global',
947
-                  ),
948
-                  'message' => array(
947
+                    ),
948
+                    'message' => array(
949 949
                     '0' => 'new_email_addr',
950 950
                     '1' => 'user',
951 951
                     '2' => ':global',
952
-                  ),
953
-                  'from' => array(
952
+                    ),
953
+                    'from' => array(
954 954
                     '0' => ':global',
955
-                  ),
955
+                    ),
956
+                ),
956 957
                 ),
957
-              ),
958 958
             ),
959 959
             '#name' => 'boinccore_rules_action_mail_to_admins',
960 960
             '#info' => array(
961
-              'label' => 'Notify admins via email',
962
-              'module' => 'BOINC core',
963
-              'eval input' => array(
961
+                'label' => 'Notify admins via email',
962
+                'module' => 'BOINC core',
963
+                'eval input' => array(
964 964
                 '0' => 'subject',
965 965
                 '1' => 'message',
966 966
                 '2' => 'from',
967
-              ),
967
+                ),
968 968
             ),
969 969
             '#weight' => 0.0,
970
-          ),
970
+            ),
971 971
         ),
972 972
         '#version' => 6003,
973
-      ),
974
-      'rules_notify_admins_when_user_fails_to_delete_their_own_account' => array(
973
+        ),
974
+        'rules_notify_admins_when_user_fails_to_delete_their_own_account' => array(
975 975
         '#type' => 'rule',
976 976
         '#set' => 'event_boincuser_delete_general_error',
977 977
         '#label' => 'Notify admins when user fails to delete their own account',
978 978
         '#active' => 1,
979 979
         '#weight' => '0',
980 980
         '#categories' => array(
981
-          '0' => 'boinc_standard',
982
-          '1' => 'admin notification',
981
+            '0' => 'boinc_standard',
982
+            '1' => 'admin notification',
983 983
         ),
984 984
         '#status' => 'default',
985 985
         '#conditions' => array(),
986 986
         '#actions' => array(
987
-          '0' => array(
987
+            '0' => array(
988 988
             '#type' => 'action',
989 989
             '#settings' => array(
990
-              'from' => '',
991
-              'subject' => '[subject_tag:string] Error when user trying to delete their account',
992
-              'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error from \'boincuser_load\'.',
993
-              '#eval input' => array(
990
+                'from' => '',
991
+                'subject' => '[subject_tag:string] Error when user trying to delete their account',
992
+                'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error from \'boincuser_load\'.',
993
+                '#eval input' => array(
994 994
                 'token_rules_input_evaluator' => array(
995
-                  'subject' => array(
995
+                    'subject' => array(
996 996
                     '0' => 'subject_tag',
997 997
                     '1' => ':global',
998
-                  ),
999
-                  'message' => array(
998
+                    ),
999
+                    'message' => array(
1000 1000
                     '0' => 'user',
1001 1001
                     '1' => ':global',
1002
-                  ),
1003
-                  'from' => array(
1002
+                    ),
1003
+                    'from' => array(
1004 1004
                     '0' => ':global',
1005
-                  ),
1005
+                    ),
1006
+                ),
1006 1007
                 ),
1007
-              ),
1008 1008
             ),
1009 1009
             '#name' => 'boinccore_rules_action_mail_to_admins',
1010 1010
             '#info' => array(
1011
-              'label' => 'Notify admins via email',
1012
-              'module' => 'BOINC core',
1013
-              'eval input' => array(
1011
+                'label' => 'Notify admins via email',
1012
+                'module' => 'BOINC core',
1013
+                'eval input' => array(
1014 1014
                 '0' => 'subject',
1015 1015
                 '1' => 'message',
1016 1016
                 '2' => 'from',
1017
-              ),
1017
+                ),
1018 1018
             ),
1019 1019
             '#weight' => 0.0,
1020
-          ),
1020
+            ),
1021 1021
         ),
1022 1022
         '#version' => 6003,
1023
-      ),
1024
-      'rules_notify_admins_when_user_tries_to_delete_account_with_invalid_uid' => array(
1023
+        ),
1024
+        'rules_notify_admins_when_user_tries_to_delete_account_with_invalid_uid' => array(
1025 1025
         '#type' => 'rule',
1026 1026
         '#set' => 'event_boincuser_delete_uid_invalid_error',
1027 1027
         '#label' => 'Notify admins when user tries to delete account with invalid uid',
1028 1028
         '#active' => 1,
1029 1029
         '#weight' => '0',
1030 1030
         '#categories' => array(
1031
-          '0' => 'boinc_standard',
1032
-          '1' => 'admin notification',
1031
+            '0' => 'boinc_standard',
1032
+            '1' => 'admin notification',
1033 1033
         ),
1034 1034
         '#status' => 'default',
1035 1035
         '#conditions' => array(),
1036 1036
         '#actions' => array(
1037
-          '0' => array(
1037
+            '0' => array(
1038 1038
             '#type' => 'action',
1039 1039
             '#settings' => array(
1040
-              'from' => '',
1041
-              'subject' => '[subject_tag:string] invalid uid when user trying to delete their account',
1042
-              'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error is Drupal UID=[user:uid] cannot be located.',
1043
-              '#eval input' => array(
1040
+                'from' => '',
1041
+                'subject' => '[subject_tag:string] invalid uid when user trying to delete their account',
1042
+                'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error is Drupal UID=[user:uid] cannot be located.',
1043
+                '#eval input' => array(
1044 1044
                 'token_rules_input_evaluator' => array(
1045
-                  'subject' => array(
1045
+                    'subject' => array(
1046 1046
                     '0' => 'subject_tag',
1047 1047
                     '1' => ':global',
1048
-                  ),
1049
-                  'message' => array(
1048
+                    ),
1049
+                    'message' => array(
1050 1050
                     '0' => 'user',
1051 1051
                     '1' => ':global',
1052
-                  ),
1053
-                  'from' => array(
1052
+                    ),
1053
+                    'from' => array(
1054 1054
                     '0' => ':global',
1055
-                  ),
1055
+                    ),
1056
+                ),
1056 1057
                 ),
1057
-              ),
1058 1058
             ),
1059 1059
             '#name' => 'boinccore_rules_action_mail_to_admins',
1060 1060
             '#info' => array(
1061
-              'label' => 'Notify admins via email',
1062
-              'module' => 'BOINC core',
1063
-              'eval input' => array(
1061
+                'label' => 'Notify admins via email',
1062
+                'module' => 'BOINC core',
1063
+                'eval input' => array(
1064 1064
                 '0' => 'subject',
1065 1065
                 '1' => 'message',
1066 1066
                 '2' => 'from',
1067
-              ),
1067
+                ),
1068 1068
             ),
1069 1069
             '#weight' => 0.0,
1070
-          ),
1070
+            ),
1071 1071
         ),
1072 1072
         '#version' => 6003,
1073
-      ),
1074
-      'rules_notify_admin_error_when_user_consenting_to_terms_of_use' => array(
1073
+        ),
1074
+        'rules_notify_admin_error_when_user_consenting_to_terms_of_use' => array(
1075 1075
         '#type' => 'rule',
1076 1076
         '#set' => 'event_boincuser_general_consent_error',
1077 1077
         '#label' => 'Notify admins error when user consenting to terms of use',
1078 1078
         '#active' => 1,
1079 1079
         '#weight' => '0',
1080 1080
         '#categories' => array(
1081
-          '0' => 'boinc_standard',
1082
-          '1' => 'admin notification',
1081
+            '0' => 'boinc_standard',
1082
+            '1' => 'admin notification',
1083 1083
         ),
1084 1084
         '#status' => 'default',
1085 1085
         '#conditions' => array(),
1086 1086
         '#actions' => array(
1087
-          '0' => array(
1087
+            '0' => array(
1088 1088
             '#type' => 'action',
1089 1089
             '#settings' => array(
1090
-              'from' => '',
1091
-              'subject' => '[subject_tag:string] Error when user attempted to consent to terms of use',
1092
-              'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and an error was generated from function \'consent_to_a_policy\'.
1090
+                'from' => '',
1091
+                'subject' => '[subject_tag:string] Error when user attempted to consent to terms of use',
1092
+                'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and an error was generated from function \'consent_to_a_policy\'.
1093 1093
 
1094 1094
 asdf jkl;',
1095
-              '#eval input' => array(
1095
+                '#eval input' => array(
1096 1096
                 'token_rules_input_evaluator' => array(
1097
-                  'subject' => array(
1097
+                    'subject' => array(
1098 1098
                     '0' => 'subject_tag',
1099 1099
                     '1' => ':global',
1100
-                  ),
1101
-                  'message' => array(
1100
+                    ),
1101
+                    'message' => array(
1102 1102
                     '0' => 'user',
1103 1103
                     '1' => ':global',
1104
-                  ),
1105
-                  'from' => array(
1104
+                    ),
1105
+                    'from' => array(
1106 1106
                     '0' => ':global',
1107
-                  ),
1107
+                    ),
1108
+                ),
1108 1109
                 ),
1109
-              ),
1110 1110
             ),
1111 1111
             '#name' => 'boinccore_rules_action_mail_to_admins',
1112 1112
             '#info' => array(
1113
-              'label' => 'Notify admins via email',
1114
-              'module' => 'BOINC core',
1115
-              'eval input' => array(
1113
+                'label' => 'Notify admins via email',
1114
+                'module' => 'BOINC core',
1115
+                'eval input' => array(
1116 1116
                 '0' => 'subject',
1117 1117
                 '1' => 'message',
1118 1118
                 '2' => 'from',
1119
-              ),
1119
+                ),
1120 1120
             ),
1121 1121
             '#weight' => 0.0,
1122
-          ),
1122
+            ),
1123 1123
         ),
1124 1124
         '#version' => 6003,
1125
-      ),
1126
-      'rules_offensive_comment_reported_hostile' => array(
1125
+        ),
1126
+        'rules_offensive_comment_reported_hostile' => array(
1127 1127
         '#type' => 'rule',
1128 1128
         '#set' => 'event_flag_flagged_abuse_comment_3',
1129 1129
         '#label' => 'Offensive comment reported - Hostile',
1130 1130
         '#active' => 1,
1131 1131
         '#weight' => '0',
1132 1132
         '#categories' => array(
1133
-          '0' => 'boinc_standard',
1134
-          '1' => 'moderator notification',
1133
+            '0' => 'boinc_standard',
1134
+            '1' => 'moderator notification',
1135 1135
         ),
1136 1136
         '#status' => 'default',
1137 1137
         '#conditions' => array(),
1138 1138
         '#actions' => array(
1139
-          '0' => array(
1139
+            '0' => array(
1140 1140
             '#type' => 'action',
1141 1141
             '#settings' => array(
1142
-              'from' => '',
1143
-              'subject' => 'Report of hostile language in [node:type] comment at [:global:site-name]',
1144
-              'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1142
+                'from' => '',
1143
+                'subject' => 'Report of hostile language in [node:type] comment at [:global:site-name]',
1144
+                'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1145 1145
 containing hostile language for the [:global:site-name] site:
1146 1146
 
1147 1147
 <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid]
1148 1148
 
1149 1149
 Total reports of this comment: [comment:flag-abuse-comment-meta-count]',
1150
-              '#eval input' => array(
1150
+                '#eval input' => array(
1151 1151
                 'token_rules_input_evaluator' => array(
1152
-                  'subject' => array(
1152
+                    'subject' => array(
1153 1153
                     '0' => 'node',
1154 1154
                     '1' => ':global',
1155
-                  ),
1156
-                  'message' => array(
1155
+                    ),
1156
+                    'message' => array(
1157 1157
                     '0' => 'flagging_user',
1158 1158
                     '1' => 'comment',
1159 1159
                     '2' => 'node',
1160 1160
                     '3' => ':global',
1161
-                  ),
1162
-                  'from' => array(
1161
+                    ),
1162
+                    'from' => array(
1163 1163
                     '0' => ':global',
1164
-                  ),
1164
+                    ),
1165 1165
                 ),
1166 1166
                 'rules_input_evaluator_php' => array(
1167
-                  'message' => array(),
1167
+                    'message' => array(),
1168
+                ),
1168 1169
                 ),
1169
-              ),
1170 1170
             ),
1171 1171
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1172 1172
             '#info' => array(
1173
-              'label' => 'Notify moderators via email',
1174
-              'module' => 'BOINC core',
1175
-              'eval input' => array(
1173
+                'label' => 'Notify moderators via email',
1174
+                'module' => 'BOINC core',
1175
+                'eval input' => array(
1176 1176
                 '0' => 'subject',
1177 1177
                 '1' => 'message',
1178 1178
                 '2' => 'from',
1179
-              ),
1179
+                ),
1180 1180
             ),
1181 1181
             '#weight' => 0.0,
1182
-          ),
1182
+            ),
1183 1183
         ),
1184 1184
         '#version' => 6003,
1185
-      ),
1186
-      'rules_offensive_comment_reported_link' => array(
1185
+        ),
1186
+        'rules_offensive_comment_reported_link' => array(
1187 1187
         '#type' => 'rule',
1188 1188
         '#set' => 'event_flag_flagged_abuse_comment_2',
1189 1189
         '#label' => 'Offensive comment reported - Link',
1190 1190
         '#active' => 1,
1191 1191
         '#weight' => '0',
1192 1192
         '#categories' => array(
1193
-          '0' => 'boinc_standard',
1194
-          '1' => 'moderator notification',
1193
+            '0' => 'boinc_standard',
1194
+            '1' => 'moderator notification',
1195 1195
         ),
1196 1196
         '#status' => 'default',
1197 1197
         '#conditions' => array(),
1198 1198
         '#actions' => array(
1199
-          '0' => array(
1199
+            '0' => array(
1200 1200
             '#type' => 'action',
1201 1201
             '#settings' => array(
1202
-              'from' => '',
1203
-              'subject' => 'Report of inappropriate link in  [node:type] comment at [:global:site-name]',
1204
-              'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1202
+                'from' => '',
1203
+                'subject' => 'Report of inappropriate link in  [node:type] comment at [:global:site-name]',
1204
+                'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1205 1205
 containing an offensive or inappropriate link for the [:global:site-name] site:
1206 1206
 
1207 1207
 <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid]
1208 1208
 
1209 1209
 Total reports of this comment: [comment:flag-abuse-comment-meta-count]',
1210
-              '#eval input' => array(
1210
+                '#eval input' => array(
1211 1211
                 'token_rules_input_evaluator' => array(
1212
-                  'subject' => array(
1212
+                    'subject' => array(
1213 1213
                     '0' => 'node',
1214 1214
                     '1' => ':global',
1215
-                  ),
1216
-                  'message' => array(
1215
+                    ),
1216
+                    'message' => array(
1217 1217
                     '0' => 'flagging_user',
1218 1218
                     '1' => 'comment',
1219 1219
                     '2' => 'node',
1220 1220
                     '3' => ':global',
1221
-                  ),
1222
-                  'from' => array(
1221
+                    ),
1222
+                    'from' => array(
1223 1223
                     '0' => ':global',
1224
-                  ),
1224
+                    ),
1225 1225
                 ),
1226 1226
                 'rules_input_evaluator_php' => array(
1227
-                  'message' => array(),
1227
+                    'message' => array(),
1228
+                ),
1228 1229
                 ),
1229
-              ),
1230 1230
             ),
1231 1231
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1232 1232
             '#info' => array(
1233
-              'label' => 'Notify moderators via email',
1234
-              'module' => 'BOINC core',
1235
-              'eval input' => array(
1233
+                'label' => 'Notify moderators via email',
1234
+                'module' => 'BOINC core',
1235
+                'eval input' => array(
1236 1236
                 '0' => 'subject',
1237 1237
                 '1' => 'message',
1238 1238
                 '2' => 'from',
1239
-              ),
1239
+                ),
1240 1240
             ),
1241 1241
             '#weight' => 0.0,
1242
-          ),
1242
+            ),
1243 1243
         ),
1244 1244
         '#version' => 6003,
1245
-      ),
1246
-      'rules_offensive_comment_reported_not_kid_friendly' => array(
1245
+        ),
1246
+        'rules_offensive_comment_reported_not_kid_friendly' => array(
1247 1247
         '#type' => 'rule',
1248 1248
         '#set' => 'event_flag_flagged_abuse_comment_4',
1249 1249
         '#label' => 'Offensive comment reported - Not Kid Friendly',
1250 1250
         '#active' => 1,
1251 1251
         '#weight' => '0',
1252 1252
         '#categories' => array(
1253
-          '0' => 'boinc_standard',
1254
-          '1' => 'moderator notification',
1253
+            '0' => 'boinc_standard',
1254
+            '1' => 'moderator notification',
1255 1255
         ),
1256 1256
         '#status' => 'default',
1257 1257
         '#conditions' => array(),
1258 1258
         '#actions' => array(
1259
-          '0' => array(
1259
+            '0' => array(
1260 1260
             '#type' => 'action',
1261 1261
             '#settings' => array(
1262
-              'from' => '',
1263
-              'subject' => 'Report of non Kid-friendly language in [node:type] comment at [:global:site-name]',
1264
-              'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1262
+                'from' => '',
1263
+                'subject' => 'Report of non Kid-friendly language in [node:type] comment at [:global:site-name]',
1264
+                'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1265 1265
 containing non Kid-friendly language for the [:global:site-name] site:
1266 1266
 
1267 1267
 <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid]
1268 1268
 
1269 1269
 Total reports of this comment: [comment:flag-abuse-comment-meta-count]',
1270
-              '#eval input' => array(
1270
+                '#eval input' => array(
1271 1271
                 'token_rules_input_evaluator' => array(
1272
-                  'subject' => array(
1272
+                    'subject' => array(
1273 1273
                     '0' => 'node',
1274 1274
                     '1' => ':global',
1275
-                  ),
1276
-                  'message' => array(
1275
+                    ),
1276
+                    'message' => array(
1277 1277
                     '0' => 'flagging_user',
1278 1278
                     '1' => 'comment',
1279 1279
                     '2' => 'node',
1280 1280
                     '3' => ':global',
1281
-                  ),
1282
-                  'from' => array(
1281
+                    ),
1282
+                    'from' => array(
1283 1283
                     '0' => ':global',
1284
-                  ),
1284
+                    ),
1285 1285
                 ),
1286 1286
                 'rules_input_evaluator_php' => array(
1287
-                  'message' => array(),
1287
+                    'message' => array(),
1288
+                ),
1288 1289
                 ),
1289
-              ),
1290 1290
             ),
1291 1291
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1292 1292
             '#info' => array(
1293
-              'label' => 'Notify moderators via email',
1294
-              'module' => 'BOINC core',
1295
-              'eval input' => array(
1293
+                'label' => 'Notify moderators via email',
1294
+                'module' => 'BOINC core',
1295
+                'eval input' => array(
1296 1296
                 '0' => 'subject',
1297 1297
                 '1' => 'message',
1298 1298
                 '2' => 'from',
1299
-              ),
1299
+                ),
1300 1300
             ),
1301 1301
             '#weight' => 0.0,
1302
-          ),
1302
+            ),
1303 1303
         ),
1304 1304
         '#version' => 6003,
1305
-      ),
1306
-      'rules_offensive_comment_reported_other' => array(
1305
+        ),
1306
+        'rules_offensive_comment_reported_other' => array(
1307 1307
         '#type' => 'rule',
1308 1308
         '#set' => 'event_flag_flagged_abuse_comment_5',
1309 1309
         '#label' => 'Offensive comment reported - Other',
1310 1310
         '#active' => 1,
1311 1311
         '#weight' => '0',
1312 1312
         '#categories' => array(
1313
-          '0' => 'boinc_standard',
1314
-          '1' => 'moderator notification',
1313
+            '0' => 'boinc_standard',
1314
+            '1' => 'moderator notification',
1315 1315
         ),
1316 1316
         '#status' => 'default',
1317 1317
         '#conditions' => array(),
1318 1318
         '#actions' => array(
1319
-          '0' => array(
1319
+            '0' => array(
1320 1320
             '#type' => 'action',
1321 1321
             '#settings' => array(
1322
-              'from' => '',
1323
-              'subject' => 'Report of offensive [node:type] comment at [:global:site-name]',
1324
-              'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1322
+                'from' => '',
1323
+                'subject' => 'Report of offensive [node:type] comment at [:global:site-name]',
1324
+                'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as
1325 1325
 being offensive or inappropriate for the [:global:site-name] site, with reason \'Other\':
1326 1326
 
1327 1327
 <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid]
1328 1328
 
1329 1329
 Total reports of this comment: [comment:flag-abuse-comment-meta-count]',
1330
-              '#eval input' => array(
1330
+                '#eval input' => array(
1331 1331
                 'token_rules_input_evaluator' => array(
1332
-                  'subject' => array(
1332
+                    'subject' => array(
1333 1333
                     '0' => 'node',
1334 1334
                     '1' => ':global',
1335
-                  ),
1336
-                  'message' => array(
1335
+                    ),
1336
+                    'message' => array(
1337 1337
                     '0' => 'flagging_user',
1338 1338
                     '1' => 'comment',
1339 1339
                     '2' => 'node',
1340 1340
                     '3' => ':global',
1341
-                  ),
1342
-                  'from' => array(
1341
+                    ),
1342
+                    'from' => array(
1343 1343
                     '0' => ':global',
1344
-                  ),
1344
+                    ),
1345 1345
                 ),
1346 1346
                 'rules_input_evaluator_php' => array(
1347
-                  'message' => array(),
1347
+                    'message' => array(),
1348
+                ),
1348 1349
                 ),
1349
-              ),
1350 1350
             ),
1351 1351
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1352 1352
             '#info' => array(
1353
-              'label' => 'Notify moderators via email',
1354
-              'module' => 'BOINC core',
1355
-              'eval input' => array(
1353
+                'label' => 'Notify moderators via email',
1354
+                'module' => 'BOINC core',
1355
+                'eval input' => array(
1356 1356
                 '0' => 'subject',
1357 1357
                 '1' => 'message',
1358 1358
                 '2' => 'from',
1359
-              ),
1359
+                ),
1360 1360
             ),
1361 1361
             '#weight' => 0.0,
1362
-          ),
1362
+            ),
1363 1363
         ),
1364 1364
         '#version' => 6003,
1365
-      ),
1366
-      'rules_offensive_comment_reported_spam' => array(
1365
+        ),
1366
+        'rules_offensive_comment_reported_spam' => array(
1367 1367
         '#type' => 'rule',
1368 1368
         '#set' => 'event_flag_flagged_abuse_comment_1',
1369 1369
         '#label' => 'Offensive comment reported - SPAM',
1370 1370
         '#active' => 1,
1371 1371
         '#weight' => '0',
1372 1372
         '#categories' => array(
1373
-          '0' => 'boinc_standard',
1374
-          '1' => 'moderator notification',
1373
+            '0' => 'boinc_standard',
1374
+            '1' => 'moderator notification',
1375 1375
         ),
1376 1376
         '#status' => 'default',
1377 1377
         '#conditions' => array(),
1378 1378
         '#actions' => array(
1379
-          '0' => array(
1379
+            '0' => array(
1380 1380
             '#type' => 'action',
1381 1381
             '#settings' => array(
1382
-              'from' => '',
1383
-              'subject' => 'Report of SPAM [node:type] comment at [:global:site-name]',
1384
-              'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content
1382
+                'from' => '',
1383
+                'subject' => 'Report of SPAM [node:type] comment at [:global:site-name]',
1384
+                'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content
1385 1385
 as being SPAM for the [:global:site-name] site:
1386 1386
 
1387 1387
 <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid]
1388 1388
 
1389 1389
 Total reports of this comment: [comment:flag-abuse-comment-meta-count]',
1390
-              '#eval input' => array(
1390
+                '#eval input' => array(
1391 1391
                 'token_rules_input_evaluator' => array(
1392
-                  'subject' => array(
1392
+                    'subject' => array(
1393 1393
                     '0' => 'node',
1394 1394
                     '1' => ':global',
1395
-                  ),
1396
-                  'message' => array(
1395
+                    ),
1396
+                    'message' => array(
1397 1397
                     '0' => 'flagging_user',
1398 1398
                     '1' => 'comment',
1399 1399
                     '2' => 'node',
1400 1400
                     '3' => ':global',
1401
-                  ),
1402
-                  'from' => array(
1401
+                    ),
1402
+                    'from' => array(
1403 1403
                     '0' => ':global',
1404
-                  ),
1404
+                    ),
1405 1405
                 ),
1406 1406
                 'rules_input_evaluator_php' => array(
1407
-                  'message' => array(),
1407
+                    'message' => array(),
1408
+                ),
1408 1409
                 ),
1409
-              ),
1410 1410
             ),
1411 1411
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1412 1412
             '#info' => array(
1413
-              'label' => 'Notify moderators via email',
1414
-              'module' => 'BOINC core',
1415
-              'eval input' => array(
1413
+                'label' => 'Notify moderators via email',
1414
+                'module' => 'BOINC core',
1415
+                'eval input' => array(
1416 1416
                 '0' => 'subject',
1417 1417
                 '1' => 'message',
1418 1418
                 '2' => 'from',
1419
-              ),
1419
+                ),
1420 1420
             ),
1421 1421
             '#weight' => 0.0,
1422
-          ),
1422
+            ),
1423 1423
         ),
1424 1424
         '#version' => 6003,
1425
-      ),
1426
-      'rules_offensive_content_reported_hostile' => array(
1425
+        ),
1426
+        'rules_offensive_content_reported_hostile' => array(
1427 1427
         '#type' => 'rule',
1428 1428
         '#set' => 'event_flag_flagged_abuse_node_3',
1429 1429
         '#label' => 'Offensive content reported - Hostile',
1430 1430
         '#active' => 1,
1431 1431
         '#weight' => '0',
1432 1432
         '#categories' => array(
1433
-          '0' => 'boinc_standard',
1434
-          '1' => 'moderator notification',
1433
+            '0' => 'boinc_standard',
1434
+            '1' => 'moderator notification',
1435 1435
         ),
1436 1436
         '#status' => 'default',
1437 1437
         '#conditions' => array(),
1438 1438
         '#actions' => array(
1439
-          '0' => array(
1439
+            '0' => array(
1440 1440
             '#type' => 'action',
1441 1441
             '#settings' => array(
1442
-              'from' => '',
1443
-              'subject' => 'Report of hostile language in [node:type] content at [:global:site-name]',
1444
-              'message' => '[flagging_user:display-name] has reported the following [node:type] content
1442
+                'from' => '',
1443
+                'subject' => 'Report of hostile language in [node:type] content at [:global:site-name]',
1444
+                'message' => '[flagging_user:display-name] has reported the following [node:type] content
1445 1445
 as hostile language for the [:global:site-name] site:
1446 1446
 
1447 1447
 <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>
1448 1448
 
1449 1449
 Total reports of this content: [node:flag-abuse-node-meta-count]',
1450
-              '#eval input' => array(
1450
+                '#eval input' => array(
1451 1451
                 'token_rules_input_evaluator' => array(
1452
-                  'subject' => array(
1452
+                    'subject' => array(
1453 1453
                     '0' => 'node',
1454 1454
                     '1' => ':global',
1455
-                  ),
1456
-                  'message' => array(
1455
+                    ),
1456
+                    'message' => array(
1457 1457
                     '0' => 'flagging_user',
1458 1458
                     '1' => 'node',
1459 1459
                     '2' => ':global',
1460
-                  ),
1461
-                  'from' => array(
1460
+                    ),
1461
+                    'from' => array(
1462 1462
                     '0' => ':global',
1463
-                  ),
1463
+                    ),
1464 1464
                 ),
1465 1465
                 'rules_input_evaluator_php' => array(
1466
-                  'message' => array(
1466
+                    'message' => array(
1467 1467
                     '0' => 'node',
1468
-                  ),
1468
+                    ),
1469
+                ),
1469 1470
                 ),
1470
-              ),
1471 1471
             ),
1472 1472
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1473 1473
             '#info' => array(
1474
-              'label' => 'Notify moderators via email',
1475
-              'module' => 'BOINC core',
1476
-              'eval input' => array(
1474
+                'label' => 'Notify moderators via email',
1475
+                'module' => 'BOINC core',
1476
+                'eval input' => array(
1477 1477
                 '0' => 'subject',
1478 1478
                 '1' => 'message',
1479 1479
                 '2' => 'from',
1480
-              ),
1480
+                ),
1481 1481
             ),
1482 1482
             '#weight' => 0.0,
1483
-          ),
1483
+            ),
1484 1484
         ),
1485 1485
         '#version' => 6003,
1486
-      ),
1487
-      'rules_offensive_content_reported_link' => array(
1486
+        ),
1487
+        'rules_offensive_content_reported_link' => array(
1488 1488
         '#type' => 'rule',
1489 1489
         '#set' => 'event_flag_flagged_abuse_node_2',
1490 1490
         '#label' => 'Offensive content reported - Link',
1491 1491
         '#active' => 1,
1492 1492
         '#weight' => '0',
1493 1493
         '#categories' => array(
1494
-          '0' => 'boinc_standard',
1495
-          '1' => 'moderator notification',
1494
+            '0' => 'boinc_standard',
1495
+            '1' => 'moderator notification',
1496 1496
         ),
1497 1497
         '#status' => 'default',
1498 1498
         '#conditions' => array(),
1499 1499
         '#actions' => array(
1500
-          '0' => array(
1500
+            '0' => array(
1501 1501
             '#type' => 'action',
1502 1502
             '#settings' => array(
1503
-              'from' => '',
1504
-              'subject' => 'Report of inappropriate link in [node:type] content at [:global:site-name]',
1505
-              'message' => '[flagging_user:display-name] has reported the following [node:type] content
1503
+                'from' => '',
1504
+                'subject' => 'Report of inappropriate link in [node:type] content at [:global:site-name]',
1505
+                'message' => '[flagging_user:display-name] has reported the following [node:type] content
1506 1506
 as containing an offensive or inappropriate link for the [:global:site-name] site:
1507 1507
 
1508 1508
 <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>
1509 1509
 
1510 1510
 Total reports of this content: [node:flag-abuse-node-meta-count]',
1511
-              '#eval input' => array(
1511
+                '#eval input' => array(
1512 1512
                 'token_rules_input_evaluator' => array(
1513
-                  'subject' => array(
1513
+                    'subject' => array(
1514 1514
                     '0' => 'node',
1515 1515
                     '1' => ':global',
1516
-                  ),
1517
-                  'message' => array(
1516
+                    ),
1517
+                    'message' => array(
1518 1518
                     '0' => 'flagging_user',
1519 1519
                     '1' => 'node',
1520 1520
                     '2' => ':global',
1521
-                  ),
1522
-                  'from' => array(
1521
+                    ),
1522
+                    'from' => array(
1523 1523
                     '0' => ':global',
1524
-                  ),
1524
+                    ),
1525 1525
                 ),
1526 1526
                 'rules_input_evaluator_php' => array(
1527
-                  'message' => array(
1527
+                    'message' => array(
1528 1528
                     '0' => 'node',
1529
-                  ),
1529
+                    ),
1530
+                ),
1530 1531
                 ),
1531
-              ),
1532 1532
             ),
1533 1533
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1534 1534
             '#info' => array(
1535
-              'label' => 'Notify moderators via email',
1536
-              'module' => 'BOINC core',
1537
-              'eval input' => array(
1535
+                'label' => 'Notify moderators via email',
1536
+                'module' => 'BOINC core',
1537
+                'eval input' => array(
1538 1538
                 '0' => 'subject',
1539 1539
                 '1' => 'message',
1540 1540
                 '2' => 'from',
1541
-              ),
1541
+                ),
1542 1542
             ),
1543 1543
             '#weight' => 0.0,
1544
-          ),
1544
+            ),
1545 1545
         ),
1546 1546
         '#version' => 6003,
1547
-      ),
1548
-      'rules_offensive_content_reported_not_kid_friendly' => array(
1547
+        ),
1548
+        'rules_offensive_content_reported_not_kid_friendly' => array(
1549 1549
         '#type' => 'rule',
1550 1550
         '#set' => 'event_flag_flagged_abuse_node_4',
1551 1551
         '#label' => 'Offensive content reported - Not Kid Friendly',
1552 1552
         '#active' => 1,
1553 1553
         '#weight' => '0',
1554 1554
         '#categories' => array(
1555
-          '0' => 'boinc_standard',
1556
-          '1' => 'moderator notification',
1555
+            '0' => 'boinc_standard',
1556
+            '1' => 'moderator notification',
1557 1557
         ),
1558 1558
         '#status' => 'default',
1559 1559
         '#conditions' => array(),
1560 1560
         '#actions' => array(
1561
-          '0' => array(
1561
+            '0' => array(
1562 1562
             '#type' => 'action',
1563 1563
             '#settings' => array(
1564
-              'from' => '',
1565
-              'subject' => 'Report of non Kid-friendly language in [node:type] content at [:global:site-name]',
1566
-              'message' => '[flagging_user:display-name] has reported the following [node:type] content
1564
+                'from' => '',
1565
+                'subject' => 'Report of non Kid-friendly language in [node:type] content at [:global:site-name]',
1566
+                'message' => '[flagging_user:display-name] has reported the following [node:type] content
1567 1567
 as containing non Kid-friendly language for the [:global:site-name] site:
1568 1568
 
1569 1569
 <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>
1570 1570
 
1571 1571
 Total reports of this content: [node:flag-abuse-node-meta-count]',
1572
-              '#eval input' => array(
1572
+                '#eval input' => array(
1573 1573
                 'token_rules_input_evaluator' => array(
1574
-                  'subject' => array(
1574
+                    'subject' => array(
1575 1575
                     '0' => 'node',
1576 1576
                     '1' => ':global',
1577
-                  ),
1578
-                  'message' => array(
1577
+                    ),
1578
+                    'message' => array(
1579 1579
                     '0' => 'flagging_user',
1580 1580
                     '1' => 'node',
1581 1581
                     '2' => ':global',
1582
-                  ),
1583
-                  'from' => array(
1582
+                    ),
1583
+                    'from' => array(
1584 1584
                     '0' => ':global',
1585
-                  ),
1585
+                    ),
1586 1586
                 ),
1587 1587
                 'rules_input_evaluator_php' => array(
1588
-                  'message' => array(
1588
+                    'message' => array(
1589 1589
                     '0' => 'node',
1590
-                  ),
1590
+                    ),
1591
+                ),
1591 1592
                 ),
1592
-              ),
1593 1593
             ),
1594 1594
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1595 1595
             '#info' => array(
1596
-              'label' => 'Notify moderators via email',
1597
-              'module' => 'BOINC core',
1598
-              'eval input' => array(
1596
+                'label' => 'Notify moderators via email',
1597
+                'module' => 'BOINC core',
1598
+                'eval input' => array(
1599 1599
                 '0' => 'subject',
1600 1600
                 '1' => 'message',
1601 1601
                 '2' => 'from',
1602
-              ),
1602
+                ),
1603 1603
             ),
1604 1604
             '#weight' => 0.0,
1605
-          ),
1605
+            ),
1606 1606
         ),
1607 1607
         '#version' => 6003,
1608
-      ),
1609
-      'rules_offensive_content_reported_other' => array(
1608
+        ),
1609
+        'rules_offensive_content_reported_other' => array(
1610 1610
         '#type' => 'rule',
1611 1611
         '#set' => 'event_flag_flagged_abuse_node_4',
1612 1612
         '#label' => 'Offensive content reported - Other',
1613 1613
         '#active' => 1,
1614 1614
         '#weight' => '0',
1615 1615
         '#categories' => array(
1616
-          '0' => 'boinc_standard',
1617
-          '1' => 'moderator notification',
1616
+            '0' => 'boinc_standard',
1617
+            '1' => 'moderator notification',
1618 1618
         ),
1619 1619
         '#status' => 'default',
1620 1620
         '#conditions' => array(),
1621 1621
         '#actions' => array(
1622
-          '0' => array(
1622
+            '0' => array(
1623 1623
             '#type' => 'action',
1624 1624
             '#settings' => array(
1625
-              'from' => '',
1626
-              'subject' => 'Report of offensive [node:type] content at [:global:site-name]',
1627
-              'message' => '[flagging_user:display-name] has reported the following [node:type] content
1625
+                'from' => '',
1626
+                'subject' => 'Report of offensive [node:type] content at [:global:site-name]',
1627
+                'message' => '[flagging_user:display-name] has reported the following [node:type] content
1628 1628
 as being offensive or inappropriate for the [:global:site-name] site:
1629 1629
 
1630 1630
 <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>
1631 1631
 
1632 1632
 Total reports of this content: [node:flag-abuse-node-meta-count]',
1633
-              '#eval input' => array(
1633
+                '#eval input' => array(
1634 1634
                 'token_rules_input_evaluator' => array(
1635
-                  'subject' => array(
1635
+                    'subject' => array(
1636 1636
                     '0' => 'node',
1637 1637
                     '1' => ':global',
1638
-                  ),
1639
-                  'message' => array(
1638
+                    ),
1639
+                    'message' => array(
1640 1640
                     '0' => 'flagging_user',
1641 1641
                     '1' => 'node',
1642 1642
                     '2' => ':global',
1643
-                  ),
1644
-                  'from' => array(
1643
+                    ),
1644
+                    'from' => array(
1645 1645
                     '0' => ':global',
1646
-                  ),
1646
+                    ),
1647 1647
                 ),
1648 1648
                 'rules_input_evaluator_php' => array(
1649
-                  'message' => array(
1649
+                    'message' => array(
1650 1650
                     '0' => 'node',
1651
-                  ),
1651
+                    ),
1652
+                ),
1652 1653
                 ),
1653
-              ),
1654 1654
             ),
1655 1655
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1656 1656
             '#info' => array(
1657
-              'label' => 'Notify moderators via email',
1658
-              'module' => 'BOINC core',
1659
-              'eval input' => array(
1657
+                'label' => 'Notify moderators via email',
1658
+                'module' => 'BOINC core',
1659
+                'eval input' => array(
1660 1660
                 '0' => 'subject',
1661 1661
                 '1' => 'message',
1662 1662
                 '2' => 'from',
1663
-              ),
1663
+                ),
1664 1664
             ),
1665 1665
             '#weight' => 0.0,
1666
-          ),
1666
+            ),
1667 1667
         ),
1668 1668
         '#version' => 6003,
1669
-      ),
1670
-      'rules_offensive_content_reported_spam' => array(
1669
+        ),
1670
+        'rules_offensive_content_reported_spam' => array(
1671 1671
         '#type' => 'rule',
1672 1672
         '#set' => 'event_flag_flagged_abuse_node_1',
1673 1673
         '#label' => 'Offensive content reported - SPAM',
1674 1674
         '#active' => 1,
1675 1675
         '#weight' => '0',
1676 1676
         '#categories' => array(
1677
-          '0' => 'boinc_standard',
1678
-          '1' => 'moderator notification',
1677
+            '0' => 'boinc_standard',
1678
+            '1' => 'moderator notification',
1679 1679
         ),
1680 1680
         '#status' => 'default',
1681 1681
         '#conditions' => array(),
1682 1682
         '#actions' => array(
1683
-          '0' => array(
1683
+            '0' => array(
1684 1684
             '#type' => 'action',
1685 1685
             '#settings' => array(
1686
-              'from' => '',
1687
-              'subject' => 'Report of SPAM [node:type] content at [:global:site-name]',
1688
-              'message' => '[flagging_user:display-name] has reported the following [node:type] content
1686
+                'from' => '',
1687
+                'subject' => 'Report of SPAM [node:type] content at [:global:site-name]',
1688
+                'message' => '[flagging_user:display-name] has reported the following [node:type] content
1689 1689
 as being SPAM for the [:global:site-name] site:
1690 1690
 
1691 1691
 <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>
1692 1692
 
1693 1693
 Total reports of this content: [node:flag-abuse-node-meta-count]',
1694
-              '#eval input' => array(
1694
+                '#eval input' => array(
1695 1695
                 'token_rules_input_evaluator' => array(
1696
-                  'subject' => array(
1696
+                    'subject' => array(
1697 1697
                     '0' => 'node',
1698 1698
                     '1' => ':global',
1699
-                  ),
1700
-                  'message' => array(
1699
+                    ),
1700
+                    'message' => array(
1701 1701
                     '0' => 'flagging_user',
1702 1702
                     '1' => 'node',
1703 1703
                     '2' => ':global',
1704
-                  ),
1705
-                  'from' => array(
1704
+                    ),
1705
+                    'from' => array(
1706 1706
                     '0' => ':global',
1707
-                  ),
1707
+                    ),
1708 1708
                 ),
1709 1709
                 'rules_input_evaluator_php' => array(
1710
-                  'message' => array(
1710
+                    'message' => array(
1711 1711
                     '0' => 'node',
1712
-                  ),
1712
+                    ),
1713
+                ),
1713 1714
                 ),
1714
-              ),
1715 1715
             ),
1716 1716
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1717 1717
             '#info' => array(
1718
-              'label' => 'Notify moderators via email',
1719
-              'module' => 'BOINC core',
1720
-              'eval input' => array(
1718
+                'label' => 'Notify moderators via email',
1719
+                'module' => 'BOINC core',
1720
+                'eval input' => array(
1721 1721
                 '0' => 'subject',
1722 1722
                 '1' => 'message',
1723 1723
                 '2' => 'from',
1724
-              ),
1724
+                ),
1725 1725
             ),
1726 1726
             '#weight' => 0.0,
1727
-          ),
1727
+            ),
1728 1728
         ),
1729 1729
         '#version' => 6003,
1730
-      ),
1731
-      'rules_offensive_user_reported_link' => array(
1730
+        ),
1731
+        'rules_offensive_user_reported_link' => array(
1732 1732
         '#type' => 'rule',
1733 1733
         '#set' => 'event_flag_flagged_abuse_user_2',
1734 1734
         '#label' => 'Offensive user reported - Link',
1735 1735
         '#active' => 1,
1736 1736
         '#weight' => '0',
1737 1737
         '#categories' => array(
1738
-          '0' => 'boinc_standard',
1739
-          '1' => 'moderator notification',
1738
+            '0' => 'boinc_standard',
1739
+            '1' => 'moderator notification',
1740 1740
         ),
1741 1741
         '#status' => 'default',
1742 1742
         '#conditions' => array(),
1743 1743
         '#actions' => array(
1744
-          '0' => array(
1744
+            '0' => array(
1745 1745
             '#type' => 'action',
1746 1746
             '#settings' => array(
1747
-              'from' => '',
1748
-              'subject' => 'Report of inappropriate link in user profile at [:global:site-name]',
1749
-              'message' => '[flagging_user:display-name] has reported [account:display-name] for
1747
+                'from' => '',
1748
+                'subject' => 'Report of inappropriate link in user profile at [:global:site-name]',
1749
+                'message' => '[flagging_user:display-name] has reported [account:display-name] for
1750 1750
 inappropriate link in a user profile:
1751 1751
 
1752 1752
 <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid]
1753 1753
 
1754 1754
 Total current reports of this user: [account:flag-abuse-user-meta-count]',
1755
-              '#eval input' => array(
1755
+                '#eval input' => array(
1756 1756
                 'token_rules_input_evaluator' => array(
1757
-                  'subject' => array(
1757
+                    'subject' => array(
1758 1758
                     '0' => ':global',
1759
-                  ),
1760
-                  'message' => array(
1759
+                    ),
1760
+                    'message' => array(
1761 1761
                     '0' => 'flagging_user',
1762 1762
                     '1' => 'account',
1763 1763
                     '2' => ':global',
1764
-                  ),
1765
-                  'from' => array(
1764
+                    ),
1765
+                    'from' => array(
1766 1766
                     '0' => ':global',
1767
-                  ),
1767
+                    ),
1768 1768
                 ),
1769 1769
                 'rules_input_evaluator_php' => array(
1770
-                  'message' => array(),
1770
+                    'message' => array(),
1771
+                ),
1771 1772
                 ),
1772
-              ),
1773 1773
             ),
1774 1774
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1775 1775
             '#info' => array(
1776
-              'label' => 'Notify moderators via email',
1777
-              'module' => 'BOINC core',
1778
-              'eval input' => array(
1776
+                'label' => 'Notify moderators via email',
1777
+                'module' => 'BOINC core',
1778
+                'eval input' => array(
1779 1779
                 '0' => 'subject',
1780 1780
                 '1' => 'message',
1781 1781
                 '2' => 'from',
1782
-              ),
1782
+                ),
1783 1783
             ),
1784 1784
             '#weight' => 0.0,
1785
-          ),
1785
+            ),
1786 1786
         ),
1787 1787
         '#version' => 6003,
1788
-      ),
1789
-      'rules_offensive_user_reported_not_kid_friendly' => array(
1788
+        ),
1789
+        'rules_offensive_user_reported_not_kid_friendly' => array(
1790 1790
         '#type' => 'rule',
1791 1791
         '#set' => 'event_flag_flagged_abuse_user_3',
1792 1792
         '#label' => 'Offensive user reported - Not Kid Friendly',
1793 1793
         '#active' => 1,
1794 1794
         '#weight' => '0',
1795 1795
         '#categories' => array(
1796
-          '0' => 'boinc_standard',
1797
-          '1' => 'moderator notification',
1796
+            '0' => 'boinc_standard',
1797
+            '1' => 'moderator notification',
1798 1798
         ),
1799 1799
         '#status' => 'default',
1800 1800
         '#conditions' => array(),
1801 1801
         '#actions' => array(
1802
-          '0' => array(
1802
+            '0' => array(
1803 1803
             '#type' => 'action',
1804 1804
             '#settings' => array(
1805
-              'from' => '',
1806
-              'subject' => 'Report of hostile language in user profile at [:global:site-name]',
1807
-              'message' => '[flagging_user:display-name] has reported [account:display-name] for
1805
+                'from' => '',
1806
+                'subject' => 'Report of hostile language in user profile at [:global:site-name]',
1807
+                'message' => '[flagging_user:display-name] has reported [account:display-name] for
1808 1808
 hostile language in a user profile:
1809 1809
 
1810 1810
 <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid]
1811 1811
 
1812 1812
 Total current reports of this user: [account:flag-abuse-user-meta-count]',
1813
-              '#eval input' => array(
1813
+                '#eval input' => array(
1814 1814
                 'token_rules_input_evaluator' => array(
1815
-                  'subject' => array(
1815
+                    'subject' => array(
1816 1816
                     '0' => ':global',
1817
-                  ),
1818
-                  'message' => array(
1817
+                    ),
1818
+                    'message' => array(
1819 1819
                     '0' => 'flagging_user',
1820 1820
                     '1' => 'account',
1821 1821
                     '2' => ':global',
1822
-                  ),
1823
-                  'from' => array(
1822
+                    ),
1823
+                    'from' => array(
1824 1824
                     '0' => ':global',
1825
-                  ),
1825
+                    ),
1826 1826
                 ),
1827 1827
                 'rules_input_evaluator_php' => array(
1828
-                  'message' => array(),
1828
+                    'message' => array(),
1829
+                ),
1829 1830
                 ),
1830
-              ),
1831 1831
             ),
1832 1832
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1833 1833
             '#info' => array(
1834
-              'label' => 'Notify moderators via email',
1835
-              'module' => 'BOINC core',
1836
-              'eval input' => array(
1834
+                'label' => 'Notify moderators via email',
1835
+                'module' => 'BOINC core',
1836
+                'eval input' => array(
1837 1837
                 '0' => 'subject',
1838 1838
                 '1' => 'message',
1839 1839
                 '2' => 'from',
1840
-              ),
1840
+                ),
1841 1841
             ),
1842 1842
             '#weight' => 0.0,
1843
-          ),
1843
+            ),
1844 1844
         ),
1845 1845
         '#version' => 6003,
1846
-      ),
1847
-      'rules_offensive_user_reported_other' => array(
1846
+        ),
1847
+        'rules_offensive_user_reported_other' => array(
1848 1848
         '#type' => 'rule',
1849 1849
         '#set' => 'event_flag_flagged_abuse_user_4',
1850 1850
         '#label' => 'Offensive user reported - Other',
1851 1851
         '#active' => 1,
1852 1852
         '#weight' => '0',
1853 1853
         '#categories' => array(
1854
-          '0' => 'boinc_standard',
1855
-          '1' => 'moderator notification',
1854
+            '0' => 'boinc_standard',
1855
+            '1' => 'moderator notification',
1856 1856
         ),
1857 1857
         '#status' => 'default',
1858 1858
         '#conditions' => array(),
1859 1859
         '#actions' => array(
1860
-          '0' => array(
1860
+            '0' => array(
1861 1861
             '#type' => 'action',
1862 1862
             '#settings' => array(
1863
-              'from' => '',
1864
-              'subject' => 'Report of offensive user at [:global:site-name]',
1865
-              'message' => '[flagging_user:display-name] has reported [account:display-name] for
1863
+                'from' => '',
1864
+                'subject' => 'Report of offensive user at [:global:site-name]',
1865
+                'message' => '[flagging_user:display-name] has reported [account:display-name] for
1866 1866
 inappropriate behavior:
1867 1867
 
1868 1868
 <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid]
1869 1869
 
1870 1870
 Total current reports of this user: [account:flag-abuse-user-meta-count]',
1871
-              '#eval input' => array(
1871
+                '#eval input' => array(
1872 1872
                 'token_rules_input_evaluator' => array(
1873
-                  'subject' => array(
1873
+                    'subject' => array(
1874 1874
                     '0' => ':global',
1875
-                  ),
1876
-                  'message' => array(
1875
+                    ),
1876
+                    'message' => array(
1877 1877
                     '0' => 'flagging_user',
1878 1878
                     '1' => 'account',
1879 1879
                     '2' => ':global',
1880
-                  ),
1881
-                  'from' => array(
1880
+                    ),
1881
+                    'from' => array(
1882 1882
                     '0' => ':global',
1883
-                  ),
1883
+                    ),
1884 1884
                 ),
1885 1885
                 'rules_input_evaluator_php' => array(
1886
-                  'message' => array(),
1886
+                    'message' => array(),
1887
+                ),
1887 1888
                 ),
1888
-              ),
1889 1889
             ),
1890 1890
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1891 1891
             '#info' => array(
1892
-              'label' => 'Notify moderators via email',
1893
-              'module' => 'BOINC core',
1894
-              'eval input' => array(
1892
+                'label' => 'Notify moderators via email',
1893
+                'module' => 'BOINC core',
1894
+                'eval input' => array(
1895 1895
                 '0' => 'subject',
1896 1896
                 '1' => 'message',
1897 1897
                 '2' => 'from',
1898
-              ),
1898
+                ),
1899 1899
             ),
1900 1900
             '#weight' => 0.0,
1901
-          ),
1901
+            ),
1902 1902
         ),
1903 1903
         '#version' => 6003,
1904
-      ),
1905
-      'rules_offensive_user_reported_spam' => array(
1904
+        ),
1905
+        'rules_offensive_user_reported_spam' => array(
1906 1906
         '#type' => 'rule',
1907 1907
         '#set' => 'event_flag_flagged_abuse_user_1',
1908 1908
         '#label' => 'Offensive user reported - SPAM',
1909 1909
         '#active' => 1,
1910 1910
         '#weight' => '0',
1911 1911
         '#categories' => array(
1912
-          '0' => 'boinc_standard',
1913
-          '1' => 'moderator notification',
1912
+            '0' => 'boinc_standard',
1913
+            '1' => 'moderator notification',
1914 1914
         ),
1915 1915
         '#status' => 'default',
1916 1916
         '#conditions' => array(),
1917 1917
         '#actions' => array(
1918
-          '0' => array(
1918
+            '0' => array(
1919 1919
             '#type' => 'action',
1920 1920
             '#settings' => array(
1921
-              'from' => '',
1922
-              'subject' => 'Report of SPAM user at [:global:site-name]',
1923
-              'message' => '[flagging_user:display-name] has reported [account:display-name] for
1921
+                'from' => '',
1922
+                'subject' => 'Report of SPAM user at [:global:site-name]',
1923
+                'message' => '[flagging_user:display-name] has reported [account:display-name] for
1924 1924
 a SPAM user profile:
1925 1925
 
1926 1926
 <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid]
1927 1927
 
1928 1928
 Total current reports of this user: [account:flag-abuse-user-meta-count]',
1929
-              '#eval input' => array(
1929
+                '#eval input' => array(
1930 1930
                 'token_rules_input_evaluator' => array(
1931
-                  'subject' => array(
1931
+                    'subject' => array(
1932 1932
                     '0' => ':global',
1933
-                  ),
1934
-                  'message' => array(
1933
+                    ),
1934
+                    'message' => array(
1935 1935
                     '0' => 'flagging_user',
1936 1936
                     '1' => 'account',
1937 1937
                     '2' => ':global',
1938
-                  ),
1939
-                  'from' => array(
1938
+                    ),
1939
+                    'from' => array(
1940 1940
                     '0' => ':global',
1941
-                  ),
1941
+                    ),
1942 1942
                 ),
1943 1943
                 'rules_input_evaluator_php' => array(
1944
-                  'message' => array(),
1944
+                    'message' => array(),
1945
+                ),
1945 1946
                 ),
1946
-              ),
1947 1947
             ),
1948 1948
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1949 1949
             '#info' => array(
1950
-              'label' => 'Notify moderators via email',
1951
-              'module' => 'BOINC core',
1952
-              'eval input' => array(
1950
+                'label' => 'Notify moderators via email',
1951
+                'module' => 'BOINC core',
1952
+                'eval input' => array(
1953 1953
                 '0' => 'subject',
1954 1954
                 '1' => 'message',
1955 1955
                 '2' => 'from',
1956
-              ),
1956
+                ),
1957 1957
             ),
1958 1958
             '#weight' => 0.0,
1959
-          ),
1959
+            ),
1960 1960
         ),
1961 1961
         '#version' => 6003,
1962
-      ),
1963
-      'rules_comment_converted_to_new_forum_topic_by_moderator_or_admin' => array(
1962
+        ),
1963
+        'rules_comment_converted_to_new_forum_topic_by_moderator_or_admin' => array(
1964 1964
         '#type' => 'rule',
1965 1965
         '#set' => 'event_boinccore_comment_convert',
1966 1966
         '#label' => 'Comment is converted to new forum topic by moderator or admin',
1967 1967
         '#active' => 1,
1968 1968
         '#weight' => '0',
1969 1969
         '#categories' => array(
1970
-          '0' => 'boinc_standard',
1971
-          '1' => 'moderator notification',
1970
+            '0' => 'boinc_standard',
1971
+            '1' => 'moderator notification',
1972 1972
         ),
1973 1973
         '#status' => 'default',
1974 1974
         '#conditions' => array(),
1975 1975
         '#actions' => array(
1976
-          '0' => array(
1976
+            '0' => array(
1977 1977
             '#info' => array(
1978
-              'label' => 'Notify moderators via email',
1979
-              'module' => 'BOINC core',
1980
-              'eval input' => array(
1978
+                'label' => 'Notify moderators via email',
1979
+                'module' => 'BOINC core',
1980
+                'eval input' => array(
1981 1981
                 '0' => 'subject',
1982 1982
                 '1' => 'message',
1983 1983
                 '2' => 'from',
1984
-              ),
1984
+                ),
1985 1985
             ),
1986 1986
             '#name' => 'boinccore_rules_action_mail_to_moderators',
1987 1987
             '#settings' => array(
1988
-              'from' => '',
1989
-              'subject' => 'Comment at [:global:site-name] converted to new forum topic',
1990
-              'message' => "Comment has been converted to new forum topic by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
1991
-              '#eval input' => array(
1988
+                'from' => '',
1989
+                'subject' => 'Comment at [:global:site-name] converted to new forum topic',
1990
+                'message' => "Comment has been converted to new forum topic by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
1991
+                '#eval input' => array(
1992 1992
                 'token_rules_input_evaluator' => array(
1993
-                  'subject' => array(
1993
+                    'subject' => array(
1994 1994
                     '0' => ':global',
1995
-                  ),
1996
-                  'message' => array(
1995
+                    ),
1996
+                    'message' => array(
1997 1997
                     '0' => 'user',
1998 1998
                     '1' => ':global',
1999
-                  ),
2000
-                  'from' => array(
1999
+                    ),
2000
+                    'from' => array(
2001 2001
                     '0' => ':global',
2002
-                  ),
2002
+                    ),
2003 2003
                 ),
2004 2004
                 'rules_input_evaluator_php' => array(
2005
-                  'message' => array(
2005
+                    'message' => array(
2006 2006
                     '0' => 'node',
2007
-                  ),
2007
+                    ),
2008
+                ),
2008 2009
                 ),
2009
-              ),
2010 2010
             ),
2011 2011
             '#type' => 'action',
2012 2012
             '#weight' => 0.0,
2013
-          ),
2013
+            ),
2014 2014
         ),
2015 2015
         '#version' => 6003,
2016
-      ),
2017
-      'rules_comment_deleted_by_admin' => array(
2016
+        ),
2017
+        'rules_comment_deleted_by_admin' => array(
2018 2018
         '#type' => 'rule',
2019 2019
         '#set' => 'event_comment_delete',
2020 2020
         '#label' => 'Comment deleted by admin',
2021 2021
         '#active' => 1,
2022 2022
         '#weight' => '0',
2023 2023
         '#categories' => array(
2024
-          '0' => 'moderator notification',
2025
-          '1' => 'boinc_standard',
2024
+            '0' => 'moderator notification',
2025
+            '1' => 'boinc_standard',
2026 2026
         ),
2027 2027
         '#status' => 'default',
2028 2028
         '#conditions' => array(),
2029 2029
         '#actions' => array(
2030
-          '0' => array(
2030
+            '0' => array(
2031 2031
             '#type' => 'action',
2032 2032
             '#settings' => array(
2033
-              'from' => '',
2034
-              'subject' => 'Comment deleted at [:global:site-name] by admin',
2035
-              'message' => "Comment to [node:type] topic '[node:title]' deleted by admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2036
-              '#eval input' => array(
2033
+                'from' => '',
2034
+                'subject' => 'Comment deleted at [:global:site-name] by admin',
2035
+                'message' => "Comment to [node:type] topic '[node:title]' deleted by admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2036
+                '#eval input' => array(
2037 2037
                 'token_rules_input_evaluator' => array(
2038
-                  'subject' => array(
2038
+                    'subject' => array(
2039 2039
                     '0' => ':global',
2040
-                  ),
2041
-                  'message' => array(
2040
+                    ),
2041
+                    'message' => array(
2042 2042
                     '0' => 'node',
2043 2043
                     '1' => 'user',
2044 2044
                     '2' => ':global',
2045
-                  ),
2046
-                  'from' => array(
2045
+                    ),
2046
+                    'from' => array(
2047 2047
                     '0' => ':global',
2048
-                  ),
2048
+                    ),
2049 2049
                 ),
2050 2050
                 'rules_input_evaluator_php' => array(
2051
-                  'message' => array(
2051
+                    'message' => array(
2052 2052
                     '0' => 'node',
2053
-                  ),
2053
+                    ),
2054
+                ),
2054 2055
                 ),
2055
-              ),
2056 2056
             ),
2057 2057
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2058 2058
             '#info' => array(
2059
-              'label' => 'Notify moderators via email',
2060
-              'module' => 'BOINC core',
2061
-              'eval input' => array(
2059
+                'label' => 'Notify moderators via email',
2060
+                'module' => 'BOINC core',
2061
+                'eval input' => array(
2062 2062
                 '0' => 'subject',
2063 2063
                 '1' => 'message',
2064 2064
                 '2' => 'from',
2065
-              ),
2065
+                ),
2066 2066
             ),
2067 2067
             '#weight' => 0.0,
2068
-          ),
2068
+            ),
2069 2069
         ),
2070 2070
         '#version' => 6003,
2071
-      ),
2072
-      'rules_comment_edited_by_moderator_or_admin' => array(
2071
+        ),
2072
+        'rules_comment_edited_by_moderator_or_admin' => array(
2073 2073
         '#type' => 'rule',
2074 2074
         '#set' => 'event_comment_update',
2075 2075
         '#label' => 'Comment is edited by moderator or admin',
2076 2076
         '#active' => 1,
2077 2077
         '#weight' => '0',
2078 2078
         '#categories' => array(
2079
-          '0' => 'boinc_standard',
2080
-          '1' => 'moderator notification',
2079
+            '0' => 'boinc_standard',
2080
+            '1' => 'moderator notification',
2081 2081
         ),
2082 2082
         '#status' => 'default',
2083 2083
         '#conditions' => array(
2084
-          '0' => array(
2084
+            '0' => array(
2085 2085
             '#negate' => 1,
2086 2086
             '#weight' => 0.0,
2087 2087
             '#info' => array(
2088
-              'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author',
2089
-              'label callback' => FALSE,
2090
-              'arguments' => array(
2088
+                'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author',
2089
+                'label callback' => FALSE,
2090
+                'arguments' => array(
2091 2091
                 'user1' => array(
2092
-                  'type' => 'user',
2093
-                  'label' => 'User account 1',
2092
+                    'type' => 'user',
2093
+                    'label' => 'User account 1',
2094 2094
                 ),
2095 2095
                 'user2' => array(
2096
-                  'type' => 'user',
2097
-                  'label' => 'User account 2',
2096
+                    'type' => 'user',
2097
+                    'label' => 'User account 2',
2098
+                ),
2098 2099
                 ),
2099
-              ),
2100
-              'module' => 'User',
2100
+                'module' => 'User',
2101 2101
             ),
2102 2102
             '#name' => 'rules_condition_user_comparison',
2103 2103
             '#settings' => array(
2104
-              '#argument map' => array(
2104
+                '#argument map' => array(
2105 2105
                 'user1' => 'user',
2106 2106
                 'user2' => 'comment_author',
2107
-              ),
2107
+                ),
2108 2108
             ),
2109 2109
             '#type' => 'condition',
2110
-          ),
2110
+            ),
2111 2111
         ),
2112 2112
         '#actions' => array(
2113
-          '0' => array(
2113
+            '0' => array(
2114 2114
             '#type' => 'action',
2115 2115
             '#settings' => array(
2116
-              'from' => '',
2117
-              'subject' => 'Comment edited at [:global:site-name] by moderator or admin',
2118
-              'message' => "Comment has been edited by moderator/admin [user:display-name]\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]",
2119
-              '#eval input' => array(
2116
+                'from' => '',
2117
+                'subject' => 'Comment edited at [:global:site-name] by moderator or admin',
2118
+                'message' => "Comment has been edited by moderator/admin [user:display-name]\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]",
2119
+                '#eval input' => array(
2120 2120
                 'token_rules_input_evaluator' => array(
2121
-                  'subject' => array(
2121
+                    'subject' => array(
2122 2122
                     '0' => ':global',
2123
-                  ),
2124
-                  'message' => array(
2123
+                    ),
2124
+                    'message' => array(
2125 2125
                     '0' => 'comment',
2126 2126
                     '1' => 'user',
2127 2127
                     '2' => ':global',
2128
-                  ),
2129
-                  'from' => array(
2128
+                    ),
2129
+                    'from' => array(
2130 2130
                     '0' => ':global',
2131
-                  ),
2131
+                    ),
2132 2132
                 ),
2133 2133
                 'rules_input_evaluator_php' => array(
2134
-                  'message' => array(),
2134
+                    'message' => array(),
2135
+                ),
2135 2136
                 ),
2136
-              ),
2137 2137
             ),
2138 2138
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2139 2139
             '#info' => array(
2140
-              'label' => 'Notify moderators via email',
2141
-              'module' => 'BOINC core',
2142
-              'eval input' => array(
2140
+                'label' => 'Notify moderators via email',
2141
+                'module' => 'BOINC core',
2142
+                'eval input' => array(
2143 2143
                 '0' => 'subject',
2144 2144
                 '1' => 'message',
2145 2145
                 '2' => 'from',
2146
-              ),
2146
+                ),
2147 2147
             ),
2148 2148
             '#weight' => 0.0,
2149
-          ),
2149
+            ),
2150 2150
         ),
2151 2151
         '#version' => 6003,
2152
-      ),
2153
-      'rules_comment_is_published_unhidden_by_moderator_or_admin' => array(
2152
+        ),
2153
+        'rules_comment_is_published_unhidden_by_moderator_or_admin' => array(
2154 2154
         '#type' => 'rule',
2155 2155
         '#set' => 'event_boinccore_comment_unhidden',
2156 2156
         '#label' => 'Comment is unhidden by moderator or admin',
2157 2157
         '#active' => 1,
2158 2158
         '#weight' => '0',
2159 2159
         '#categories' => array(
2160
-          '0' => 'boinc_standard',
2161
-          '1' => 'moderator notification',
2160
+            '0' => 'boinc_standard',
2161
+            '1' => 'moderator notification',
2162 2162
         ),
2163 2163
         '#status' => 'default',
2164 2164
         '#conditions' => array(
2165
-          '0' => array(
2165
+            '0' => array(
2166 2166
             '#type' => 'condition',
2167 2167
             '#settings' => array(
2168
-              '#argument map' => array(
2168
+                '#argument map' => array(
2169 2169
                 'user1' => 'user',
2170 2170
                 'user2' => 'comment_author',
2171
-              ),
2171
+                ),
2172 2172
             ),
2173 2173
             '#name' => 'rules_condition_user_comparison',
2174 2174
             '#info' => array(
2175
-              'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author',
2176
-              'label callback' => FALSE,
2177
-              'arguments' => array(
2175
+                'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author',
2176
+                'label callback' => FALSE,
2177
+                'arguments' => array(
2178 2178
                 'user1' => array(
2179
-                  'type' => 'user',
2180
-                  'label' => 'User account 1',
2179
+                    'type' => 'user',
2180
+                    'label' => 'User account 1',
2181 2181
                 ),
2182 2182
                 'user2' => array(
2183
-                  'type' => 'user',
2184
-                  'label' => 'User account 2',
2183
+                    'type' => 'user',
2184
+                    'label' => 'User account 2',
2185 2185
                 ),
2186
-              ),
2187
-              'module' => 'User',
2186
+                ),
2187
+                'module' => 'User',
2188 2188
             ),
2189 2189
             '#negate' => 1,
2190 2190
             '#weight' => 0.0,
2191
-          ),
2191
+            ),
2192 2192
         ),
2193 2193
         '#actions' => array(
2194
-          '0' => array(
2194
+            '0' => array(
2195 2195
             '#info' => array(
2196
-              'label' => 'Notify moderators via email',
2197
-              'module' => 'BOINC core',
2198
-              'eval input' => array(
2196
+                'label' => 'Notify moderators via email',
2197
+                'module' => 'BOINC core',
2198
+                'eval input' => array(
2199 2199
                 '0' => 'subject',
2200 2200
                 '1' => 'message',
2201 2201
                 '2' => 'from',
2202
-              ),
2202
+                ),
2203 2203
             ),
2204 2204
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2205 2205
             '#settings' => array(
2206
-              'from' => '',
2207
-              'subject' => 'Comment at [:global:site-name] unhidden by moderator or admin',
2208
-              'message' => "Comment has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]",
2209
-              '#eval input' => array(
2206
+                'from' => '',
2207
+                'subject' => 'Comment at [:global:site-name] unhidden by moderator or admin',
2208
+                'message' => "Comment has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]",
2209
+                '#eval input' => array(
2210 2210
                 'token_rules_input_evaluator' => array(
2211
-                  'subject' => array(
2211
+                    'subject' => array(
2212 2212
                     '0' => ':global',
2213
-                  ),
2214
-                  'message' => array(
2213
+                    ),
2214
+                    'message' => array(
2215 2215
                     '0' => 'comment',
2216 2216
                     '1' => 'user',
2217 2217
                     '2' => ':global',
2218
-                  ),
2219
-                  'from' => array(
2218
+                    ),
2219
+                    'from' => array(
2220 2220
                     '0' => ':global',
2221
-                  ),
2221
+                    ),
2222 2222
                 ),
2223 2223
                 'rules_input_evaluator_php' => array(
2224
-                  'message' => array(),
2224
+                    'message' => array(),
2225
+                ),
2225 2226
                 ),
2226
-              ),
2227 2227
             ),
2228 2228
             '#type' => 'action',
2229 2229
             '#weight' => 0.0,
2230
-          ),
2230
+            ),
2231 2231
         ),
2232 2232
         '#version' => 6003,
2233
-      ),
2234
-      'rules_comment_is_unpublished_hidden_by_moderator_or_admin' => array(
2233
+        ),
2234
+        'rules_comment_is_unpublished_hidden_by_moderator_or_admin' => array(
2235 2235
         '#type' => 'rule',
2236 2236
         '#set' => 'event_comment_unpublish',
2237 2237
         '#label' => 'Comment is hidden by moderator or admin',
2238 2238
         '#active' => 1,
2239 2239
         '#weight' => '0',
2240 2240
         '#categories' => array(
2241
-          '0' => 'boinc_standard',
2242
-          '1' => 'moderator notification',
2241
+            '0' => 'boinc_standard',
2242
+            '1' => 'moderator notification',
2243 2243
         ),
2244 2244
         '#status' => 'default',
2245 2245
         '#conditions' => array(
2246
-          '0' => array(
2246
+            '0' => array(
2247 2247
             '#weight' => 0.0,
2248 2248
             '#negate' => 1,
2249 2249
             '#info' => array(
2250
-              'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author',
2251
-              'label callback' => FALSE,
2252
-              'arguments' => array(
2250
+                'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author',
2251
+                'label callback' => FALSE,
2252
+                'arguments' => array(
2253 2253
                 'user1' => array(
2254
-                  'type' => 'user',
2255
-                  'label' => 'User account 1',
2254
+                    'type' => 'user',
2255
+                    'label' => 'User account 1',
2256 2256
                 ),
2257 2257
                 'user2' => array(
2258
-                  'type' => 'user',
2259
-                  'label' => 'User account 2',
2258
+                    'type' => 'user',
2259
+                    'label' => 'User account 2',
2260
+                ),
2260 2261
                 ),
2261
-              ),
2262
-              'module' => 'User',
2262
+                'module' => 'User',
2263 2263
             ),
2264 2264
             '#name' => 'rules_condition_user_comparison',
2265 2265
             '#type' => 'condition',
2266 2266
             '#settings' => array(
2267
-              '#argument map' => array(
2267
+                '#argument map' => array(
2268 2268
                 'user1' => 'user',
2269 2269
                 'user2' => 'comment_author',
2270
-              ),
2270
+                ),
2271
+            ),
2271 2272
             ),
2272
-          ),
2273 2273
         ),
2274 2274
         '#actions' => array(
2275
-          '0' => array(
2275
+            '0' => array(
2276 2276
             '#type' => 'action',
2277 2277
             '#settings' => array(
2278
-              'from' => '',
2279
-              'subject' => 'Comment at [:global:site-name] hidden by moderator or admin',
2280
-              'message' => "Comment has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]",
2281
-              '#eval input' => array(
2278
+                'from' => '',
2279
+                'subject' => 'Comment at [:global:site-name] hidden by moderator or admin',
2280
+                'message' => "Comment has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]",
2281
+                '#eval input' => array(
2282 2282
                 'token_rules_input_evaluator' => array(
2283
-                  'subject' => array(
2283
+                    'subject' => array(
2284 2284
                     '0' => ':global',
2285
-                  ),
2286
-                  'message' => array(
2285
+                    ),
2286
+                    'message' => array(
2287 2287
                     '0' => 'comment',
2288 2288
                     '1' => 'user',
2289 2289
                     '2' => ':global',
2290
-                  ),
2291
-                  'from' => array(
2290
+                    ),
2291
+                    'from' => array(
2292 2292
                     '0' => ':global',
2293
-                  ),
2293
+                    ),
2294 2294
                 ),
2295 2295
                 'rules_input_evaluator_php' => array(
2296
-                  'message' => array(),
2296
+                    'message' => array(),
2297
+                ),
2297 2298
                 ),
2298
-              ),
2299 2299
             ),
2300 2300
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2301 2301
             '#info' => array(
2302
-              'label' => 'Notify moderators via email',
2303
-              'module' => 'BOINC core',
2304
-              'eval input' => array(
2302
+                'label' => 'Notify moderators via email',
2303
+                'module' => 'BOINC core',
2304
+                'eval input' => array(
2305 2305
                 '0' => 'subject',
2306 2306
                 '1' => 'message',
2307 2307
                 '2' => 'from',
2308
-              ),
2308
+                ),
2309 2309
             ),
2310 2310
             '#weight' => 0.0,
2311
-          ),
2311
+            ),
2312 2312
         ),
2313 2313
         '#version' => 6003,
2314
-      ),
2315
-      'rules_forum_topic_is_edited_by_moderator_or_admin' => array(
2314
+        ),
2315
+        'rules_forum_topic_is_edited_by_moderator_or_admin' => array(
2316 2316
         '#type' => 'rule',
2317 2317
         '#set' => 'event_node_update',
2318 2318
         '#label' => 'Forum topic is edited by moderator or admin',
2319 2319
         '#active' => 1,
2320 2320
         '#weight' => '0',
2321 2321
         '#categories' => array(
2322
-          '0' => 'boinc_standard',
2323
-          '1' => 'moderator notification',
2322
+            '0' => 'boinc_standard',
2323
+            '1' => 'moderator notification',
2324 2324
         ),
2325 2325
         '#status' => 'default',
2326 2326
         '#conditions' => array(
2327
-          '0' => array(
2327
+            '0' => array(
2328 2328
             '#weight' => 0.0,
2329 2329
             '#type' => 'condition',
2330 2330
             '#settings' => array(
2331
-              'roles' => array(
2331
+                'roles' => array(
2332 2332
                 '0' => 3519698132,
2333 2333
                 '1' => 1271379760,
2334
-              ),
2335
-              'operation' => 'OR',
2336
-              '#argument map' => array(
2334
+                ),
2335
+                'operation' => 'OR',
2336
+                '#argument map' => array(
2337 2337
                 'user' => 'user',
2338
-              ),
2338
+                ),
2339 2339
             ),
2340 2340
             '#name' => 'rules_condition_user_hasrole',
2341 2341
             '#info' => array(
2342
-              'label' => 'User has role(s): administrator or moderator',
2343
-              'label callback' => FALSE,
2344
-              'arguments' => array(
2342
+                'label' => 'User has role(s): administrator or moderator',
2343
+                'label callback' => FALSE,
2344
+                'arguments' => array(
2345 2345
                 'user' => array(
2346
-                  'type' => 'user',
2347
-                  'label' => 'User',
2346
+                    'type' => 'user',
2347
+                    'label' => 'User',
2348 2348
                 ),
2349
-              ),
2350
-              'module' => 'User',
2349
+                ),
2350
+                'module' => 'User',
2351
+            ),
2351 2352
             ),
2352
-          ),
2353
-          '1' => array(
2353
+            '1' => array(
2354 2354
             '#weight' => 0.0,
2355 2355
             '0' => array(
2356
-              '#weight' => 0.0,
2357
-              '#info' => array(
2356
+                '#weight' => 0.0,
2357
+                '#info' => array(
2358 2358
                 'label' => 'Updated content is Forum topic',
2359 2359
                 'arguments' => array(
2360
-                  'node' => array(
2360
+                    'node' => array(
2361 2361
                     'type' => 'node',
2362 2362
                     'label' => 'Content',
2363
-                  ),
2363
+                    ),
2364 2364
                 ),
2365 2365
                 'module' => 'Node',
2366
-              ),
2367
-              '#name' => 'rules_condition_content_is_type',
2368
-              '#settings' => array(
2366
+                ),
2367
+                '#name' => 'rules_condition_content_is_type',
2368
+                '#settings' => array(
2369 2369
                 'type' => array(
2370
-                  'forum' => 'forum',
2370
+                    'forum' => 'forum',
2371 2371
                 ),
2372 2372
                 '#argument map' => array(
2373
-                  'node' => 'node',
2373
+                    'node' => 'node',
2374
+                ),
2374 2375
                 ),
2375
-              ),
2376
-              '#type' => 'condition',
2376
+                '#type' => 'condition',
2377 2377
             ),
2378 2378
             '#type' => 'OR',
2379 2379
             '1' => array(
2380
-              '#type' => 'condition',
2381
-              '#settings' => array(
2380
+                '#type' => 'condition',
2381
+                '#settings' => array(
2382 2382
                 'type' => array(
2383
-                  'team_forum' => 'team_forum',
2383
+                    'team_forum' => 'team_forum',
2384 2384
                 ),
2385 2385
                 '#argument map' => array(
2386
-                  'node' => 'node',
2386
+                    'node' => 'node',
2387
+                ),
2387 2388
                 ),
2388
-              ),
2389
-              '#name' => 'rules_condition_content_is_type',
2390
-              '#info' => array(
2389
+                '#name' => 'rules_condition_content_is_type',
2390
+                '#info' => array(
2391 2391
                 'label' => 'Updated content is Team forum topic',
2392 2392
                 'arguments' => array(
2393
-                  'node' => array(
2393
+                    'node' => array(
2394 2394
                     'type' => 'node',
2395 2395
                     'label' => 'Content',
2396
-                  ),
2396
+                    ),
2397 2397
                 ),
2398 2398
                 'module' => 'Node',
2399
-              ),
2400
-              '#weight' => 0.0,
2399
+                ),
2400
+                '#weight' => 0.0,
2401
+            ),
2401 2402
             ),
2402
-          ),
2403
-          '2' => array(
2403
+            '2' => array(
2404 2404
             '#weight' => 0.0,
2405 2405
             '#info' => array(
2406
-              'label' => 'PHP code: content changed',
2407
-              'label callback' => FALSE,
2408
-              'module' => 'PHP',
2409
-              'eval input' => array(
2406
+                'label' => 'PHP code: content changed',
2407
+                'label callback' => FALSE,
2408
+                'module' => 'PHP',
2409
+                'eval input' => array(
2410 2410
                 '0' => 'code',
2411
-              ),
2411
+                ),
2412 2412
             ),
2413 2413
             '#name' => 'rules_condition_custom_php',
2414 2414
             '#settings' => array(
2415
-              'code' => 'return ($node->body != $node_unchanged->body);',
2416
-              'vars' => array(
2415
+                'code' => 'return ($node->body != $node_unchanged->body);',
2416
+                'vars' => array(
2417 2417
                 '0' => 'node',
2418 2418
                 '1' => 'node_unchanged',
2419
-              ),
2420
-              '#eval input' => array(
2419
+                ),
2420
+                '#eval input' => array(
2421 2421
                 'token_rules_input_evaluator' => array(
2422
-                  'code' => array(
2422
+                    'code' => array(
2423 2423
                     '0' => ':global',
2424
-                  ),
2424
+                    ),
2425
+                ),
2425 2426
                 ),
2426
-              ),
2427 2427
             ),
2428 2428
             '#type' => 'condition',
2429
-          ),
2429
+            ),
2430 2430
         ),
2431 2431
         '#actions' => array(
2432
-          '0' => array(
2432
+            '0' => array(
2433 2433
             '#type' => 'action',
2434 2434
             '#settings' => array(
2435
-              'from' => '',
2436
-              'subject' => 'Forum topic at [:global:site-name] edited by moderator/admin',
2437
-              'message' => "[node:type] topic '[node:title]' has been edited by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2438
-              '#eval input' => array(
2435
+                'from' => '',
2436
+                'subject' => 'Forum topic at [:global:site-name] edited by moderator/admin',
2437
+                'message' => "[node:type] topic '[node:title]' has been edited by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2438
+                '#eval input' => array(
2439 2439
                 'token_rules_input_evaluator' => array(
2440
-                  'subject' => array(
2440
+                    'subject' => array(
2441 2441
                     '0' => ':global',
2442
-                  ),
2443
-                  'message' => array(
2442
+                    ),
2443
+                    'message' => array(
2444 2444
                     '0' => 'node',
2445 2445
                     '1' => 'user',
2446 2446
                     '2' => ':global',
2447
-                  ),
2448
-                  'from' => array(
2447
+                    ),
2448
+                    'from' => array(
2449 2449
                     '0' => ':global',
2450
-                  ),
2450
+                    ),
2451 2451
                 ),
2452 2452
                 'rules_input_evaluator_php' => array(
2453
-                  'message' => array(
2453
+                    'message' => array(
2454 2454
                     '0' => 'node',
2455
-                  ),
2455
+                    ),
2456
+                ),
2456 2457
                 ),
2457
-              ),
2458 2458
             ),
2459 2459
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2460 2460
             '#info' => array(
2461
-              'label' => 'Notify moderators via email',
2462
-              'module' => 'BOINC core',
2463
-              'eval input' => array(
2461
+                'label' => 'Notify moderators via email',
2462
+                'module' => 'BOINC core',
2463
+                'eval input' => array(
2464 2464
                 '0' => 'subject',
2465 2465
                 '1' => 'message',
2466 2466
                 '2' => 'from',
2467
-              ),
2467
+                ),
2468 2468
             ),
2469 2469
             '#weight' => 0.0,
2470
-          ),
2470
+            ),
2471 2471
         ),
2472 2472
         '#version' => 6003,
2473
-      ),
2474
-      'rules_forum_topic_is_hidden_by_moderator_admin' => array(
2473
+        ),
2474
+        'rules_forum_topic_is_hidden_by_moderator_admin' => array(
2475 2475
         '#type' => 'rule',
2476 2476
         '#set' => 'event_node_update',
2477 2477
         '#label' => 'Forum topic is hidden by moderator/admin',
2478 2478
         '#active' => 1,
2479 2479
         '#weight' => '0',
2480 2480
         '#categories' => array(
2481
-          '0' => 'boinc_standard',
2482
-          '1' => 'moderator notification',
2481
+            '0' => 'boinc_standard',
2482
+            '1' => 'moderator notification',
2483 2483
         ),
2484 2484
         '#status' => 'default',
2485 2485
         '#conditions' => array(
2486
-          '0' => array(
2486
+            '0' => array(
2487 2487
             '#type' => 'condition',
2488 2488
             '#settings' => array(
2489
-              'roles' => array(
2489
+                'roles' => array(
2490 2490
                 '0' => 3519698132,
2491 2491
                 '1' => 1271379760,
2492
-              ),
2493
-              'operation' => 'OR',
2494
-              '#argument map' => array(
2492
+                ),
2493
+                'operation' => 'OR',
2494
+                '#argument map' => array(
2495 2495
                 'user' => 'user',
2496
-              ),
2496
+                ),
2497 2497
             ),
2498 2498
             '#name' => 'rules_condition_user_hasrole',
2499 2499
             '#info' => array(
2500
-              'label' => 'User has role(s): administrator or moderator',
2501
-              'label callback' => FALSE,
2502
-              'arguments' => array(
2500
+                'label' => 'User has role(s): administrator or moderator',
2501
+                'label callback' => FALSE,
2502
+                'arguments' => array(
2503 2503
                 'user' => array(
2504
-                  'type' => 'user',
2505
-                  'label' => 'User',
2504
+                    'type' => 'user',
2505
+                    'label' => 'User',
2506
+                ),
2506 2507
                 ),
2507
-              ),
2508
-              'module' => 'User',
2508
+                'module' => 'User',
2509 2509
             ),
2510 2510
             '#weight' => 0.0,
2511
-          ),
2512
-          '1' => array(
2511
+            ),
2512
+            '1' => array(
2513 2513
             '#weight' => 0.0,
2514 2514
             '0' => array(
2515
-              '#weight' => 0.0,
2516
-              '#type' => 'condition',
2517
-              '#settings' => array(
2515
+                '#weight' => 0.0,
2516
+                '#type' => 'condition',
2517
+                '#settings' => array(
2518 2518
                 'type' => array(
2519
-                  'forum' => 'forum',
2519
+                    'forum' => 'forum',
2520 2520
                 ),
2521 2521
                 '#argument map' => array(
2522
-                  'node' => 'node',
2522
+                    'node' => 'node',
2523
+                ),
2523 2524
                 ),
2524
-              ),
2525
-              '#name' => 'rules_condition_content_is_type',
2526
-              '#info' => array(
2525
+                '#name' => 'rules_condition_content_is_type',
2526
+                '#info' => array(
2527 2527
                 'label' => 'Updated content is Forum topic',
2528 2528
                 'arguments' => array(
2529
-                  'node' => array(
2529
+                    'node' => array(
2530 2530
                     'type' => 'node',
2531 2531
                     'label' => 'Content',
2532
-                  ),
2532
+                    ),
2533 2533
                 ),
2534 2534
                 'module' => 'Node',
2535
-              ),
2535
+                ),
2536 2536
             ),
2537 2537
             '#type' => 'OR',
2538 2538
             '1' => array(
2539
-              '#type' => 'condition',
2540
-              '#settings' => array(
2539
+                '#type' => 'condition',
2540
+                '#settings' => array(
2541 2541
                 'type' => array(
2542
-                  'team_forum' => 'team_forum',
2542
+                    'team_forum' => 'team_forum',
2543 2543
                 ),
2544 2544
                 '#argument map' => array(
2545
-                  'node' => 'node',
2545
+                    'node' => 'node',
2546
+                ),
2546 2547
                 ),
2547
-              ),
2548
-              '#name' => 'rules_condition_content_is_type',
2549
-              '#info' => array(
2548
+                '#name' => 'rules_condition_content_is_type',
2549
+                '#info' => array(
2550 2550
                 'label' => 'Updated content is Team forum topic',
2551 2551
                 'arguments' => array(
2552
-                  'node' => array(
2552
+                    'node' => array(
2553 2553
                     'type' => 'node',
2554 2554
                     'label' => 'Content',
2555
-                  ),
2555
+                    ),
2556 2556
                 ),
2557 2557
                 'module' => 'Node',
2558
-              ),
2559
-              '#weight' => 0.0,
2558
+                ),
2559
+                '#weight' => 0.0,
2560
+            ),
2560 2561
             ),
2561
-          ),
2562
-          '3' => array(
2562
+            '3' => array(
2563 2563
             '#weight' => 0.0,
2564 2564
             '#info' => array(
2565
-              'label' => 'PHP code: node content unchanged',
2566
-              'label callback' => FALSE,
2567
-              'module' => 'PHP',
2568
-              'eval input' => array(
2565
+                'label' => 'PHP code: node content unchanged',
2566
+                'label callback' => FALSE,
2567
+                'module' => 'PHP',
2568
+                'eval input' => array(
2569 2569
                 '0' => 'code',
2570
-              ),
2570
+                ),
2571 2571
             ),
2572 2572
             '#name' => 'rules_condition_custom_php',
2573 2573
             '#settings' => array(
2574
-              'code' => 'return $node->body == $node_unchanged->body;',
2575
-              'vars' => array(
2574
+                'code' => 'return $node->body == $node_unchanged->body;',
2575
+                'vars' => array(
2576 2576
                 '0' => 'node',
2577 2577
                 '1' => 'node_unchanged',
2578
-              ),
2579
-              '#eval input' => array(
2578
+                ),
2579
+                '#eval input' => array(
2580 2580
                 'token_rules_input_evaluator' => array(
2581
-                  'code' => array(
2581
+                    'code' => array(
2582 2582
                     '0' => ':global',
2583
-                  ),
2583
+                    ),
2584
+                ),
2584 2585
                 ),
2585
-              ),
2586 2586
             ),
2587 2587
             '#type' => 'condition',
2588
-          ),
2589
-          '4' => array(
2588
+            ),
2589
+            '4' => array(
2590 2590
             '#weight' => 0.0,
2591 2591
             '#info' => array(
2592
-              'label' => 'PHP code: node status changed to hidden',
2593
-              'label callback' => FALSE,
2594
-              'module' => 'PHP',
2595
-              'eval input' => array(
2592
+                'label' => 'PHP code: node status changed to hidden',
2593
+                'label callback' => FALSE,
2594
+                'module' => 'PHP',
2595
+                'eval input' => array(
2596 2596
                 '0' => 'code',
2597
-              ),
2597
+                ),
2598 2598
             ),
2599 2599
             '#name' => 'rules_condition_custom_php',
2600 2600
             '#type' => 'condition',
2601 2601
             '#settings' => array(
2602
-              'code' => 'return $node_unchanged->status == 1 && $node->status == 0;',
2603
-              'vars' => array(
2602
+                'code' => 'return $node_unchanged->status == 1 && $node->status == 0;',
2603
+                'vars' => array(
2604 2604
                 '0' => 'node',
2605 2605
                 '1' => 'node_unchanged',
2606
-              ),
2607
-              '#eval input' => array(
2606
+                ),
2607
+                '#eval input' => array(
2608 2608
                 'token_rules_input_evaluator' => array(
2609
-                  'code' => array(
2609
+                    'code' => array(
2610 2610
                     '0' => ':global',
2611
-                  ),
2611
+                    ),
2612
+                ),
2612 2613
                 ),
2613
-              ),
2614 2614
             ),
2615
-          ),
2615
+            ),
2616 2616
         ),
2617 2617
         '#actions' => array(
2618
-          '0' => array(
2618
+            '0' => array(
2619 2619
             '#info' => array(
2620
-              'label' => 'Notify moderators via email',
2621
-              'module' => 'BOINC core',
2622
-              'eval input' => array(
2620
+                'label' => 'Notify moderators via email',
2621
+                'module' => 'BOINC core',
2622
+                'eval input' => array(
2623 2623
                 '0' => 'subject',
2624 2624
                 '1' => 'message',
2625 2625
                 '2' => 'from',
2626
-              ),
2626
+                ),
2627 2627
             ),
2628 2628
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2629 2629
             '#settings' => array(
2630
-              'from' => '',
2631
-              'subject' => 'Forum topic at [:global:site-name] hidden by moderator/admin',
2632
-              'message' => "[node:type] topic '[node:title]' has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2633
-              '#eval input' => array(
2630
+                'from' => '',
2631
+                'subject' => 'Forum topic at [:global:site-name] hidden by moderator/admin',
2632
+                'message' => "[node:type] topic '[node:title]' has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2633
+                '#eval input' => array(
2634 2634
                 'token_rules_input_evaluator' => array(
2635
-                  'subject' => array(
2635
+                    'subject' => array(
2636 2636
                     '0' => ':global',
2637
-                  ),
2638
-                  'message' => array(
2637
+                    ),
2638
+                    'message' => array(
2639 2639
                     '0' => 'node',
2640 2640
                     '1' => 'user',
2641 2641
                     '2' => ':global',
2642
-                  ),
2643
-                  'from' => array(
2642
+                    ),
2643
+                    'from' => array(
2644 2644
                     '0' => ':global',
2645
-                  ),
2645
+                    ),
2646 2646
                 ),
2647 2647
                 'rules_input_evaluator_php' => array(
2648
-                  'message' => array(
2648
+                    'message' => array(
2649 2649
                     '0' => 'node',
2650
-                  ),
2650
+                    ),
2651
+                ),
2651 2652
                 ),
2652
-              ),
2653 2653
             ),
2654 2654
             '#type' => 'action',
2655 2655
             '#weight' => 0.0,
2656
-          ),
2656
+            ),
2657 2657
         ),
2658 2658
         '#version' => 6003,
2659
-      ),
2660
-      'rules_forum_topic_is_moved_to_a_different_forum_by_moderator_or_admin' => array(
2659
+        ),
2660
+        'rules_forum_topic_is_moved_to_a_different_forum_by_moderator_or_admin' => array(
2661 2661
         '#type' => 'rule',
2662 2662
         '#set' => 'event_node_update',
2663 2663
         '#label' => 'Forum topic is moved to a different forum by moderator or admin',
2664 2664
         '#active' => 1,
2665 2665
         '#weight' => '0',
2666 2666
         '#categories' => array(
2667
-          '0' => 'boinc_standard',
2668
-          '1' => 'moderator notification',
2667
+            '0' => 'boinc_standard',
2668
+            '1' => 'moderator notification',
2669 2669
         ),
2670 2670
         '#status' => 'default',
2671 2671
         '#conditions' => array(
2672
-          '0' => array(
2672
+            '0' => array(
2673 2673
             '#weight' => 0.0,
2674 2674
             '#type' => 'condition',
2675 2675
             '#settings' => array(
2676
-              'roles' => array(
2676
+                'roles' => array(
2677 2677
                 '0' => 3519698132,
2678 2678
                 '1' => 1271379760,
2679
-              ),
2680
-              'operation' => 'OR',
2681
-              '#argument map' => array(
2679
+                ),
2680
+                'operation' => 'OR',
2681
+                '#argument map' => array(
2682 2682
                 'user' => 'user',
2683
-              ),
2683
+                ),
2684 2684
             ),
2685 2685
             '#name' => 'rules_condition_user_hasrole',
2686 2686
             '#info' => array(
2687
-              'label' => 'User has role(s): administrator or moderator',
2688
-              'label callback' => FALSE,
2689
-              'arguments' => array(
2687
+                'label' => 'User has role(s): administrator or moderator',
2688
+                'label callback' => FALSE,
2689
+                'arguments' => array(
2690 2690
                 'user' => array(
2691
-                  'type' => 'user',
2692
-                  'label' => 'User',
2691
+                    'type' => 'user',
2692
+                    'label' => 'User',
2693 2693
                 ),
2694
-              ),
2695
-              'module' => 'User',
2694
+                ),
2695
+                'module' => 'User',
2696
+            ),
2696 2697
             ),
2697
-          ),
2698
-          '1' => array(
2698
+            '1' => array(
2699 2699
             '#weight' => 0.0,
2700 2700
             '0' => array(
2701
-              '#weight' => 0.0,
2702
-              '#info' => array(
2701
+                '#weight' => 0.0,
2702
+                '#info' => array(
2703 2703
                 'label' => 'Updated content is Forum topic',
2704 2704
                 'arguments' => array(
2705
-                  'node' => array(
2705
+                    'node' => array(
2706 2706
                     'type' => 'node',
2707 2707
                     'label' => 'Content',
2708
-                  ),
2708
+                    ),
2709 2709
                 ),
2710 2710
                 'module' => 'Node',
2711
-              ),
2712
-              '#name' => 'rules_condition_content_is_type',
2713
-              '#settings' => array(
2711
+                ),
2712
+                '#name' => 'rules_condition_content_is_type',
2713
+                '#settings' => array(
2714 2714
                 'type' => array(
2715
-                  'forum' => 'forum',
2715
+                    'forum' => 'forum',
2716 2716
                 ),
2717 2717
                 '#argument map' => array(
2718
-                  'node' => 'node',
2718
+                    'node' => 'node',
2719
+                ),
2719 2720
                 ),
2720
-              ),
2721
-              '#type' => 'condition',
2721
+                '#type' => 'condition',
2722 2722
             ),
2723 2723
             '#type' => 'OR',
2724 2724
             '1' => array(
2725
-              '#type' => 'condition',
2726
-              '#settings' => array(
2725
+                '#type' => 'condition',
2726
+                '#settings' => array(
2727 2727
                 'type' => array(
2728
-                  'team_forum' => 'team_forum',
2728
+                    'team_forum' => 'team_forum',
2729 2729
                 ),
2730 2730
                 '#argument map' => array(
2731
-                  'node' => 'node',
2731
+                    'node' => 'node',
2732 2732
                 ),
2733
-              ),
2734
-              '#name' => 'rules_condition_content_is_type',
2735
-              '#info' => array(
2733
+                ),
2734
+                '#name' => 'rules_condition_content_is_type',
2735
+                '#info' => array(
2736 2736
                 'label' => 'Updated content is Team forum topic',
2737 2737
                 'arguments' => array(
2738
-                  'node' => array(
2738
+                    'node' => array(
2739 2739
                     'type' => 'node',
2740 2740
                     'label' => 'Content',
2741
-                  ),
2741
+                    ),
2742 2742
                 ),
2743 2743
                 'module' => 'Node',
2744
-              ),
2745
-              '#weight' => 0.0,
2744
+                ),
2745
+                '#weight' => 0.0,
2746 2746
             ),
2747
-          ),
2748
-          '2' => array(
2747
+            ),
2748
+            '2' => array(
2749 2749
             '#weight' => 0.0,
2750 2750
             '#info' => array(
2751
-              'label' => 'PHP code: node moved to new forum parent',
2752
-              'label callback' => FALSE,
2753
-              'module' => 'PHP',
2754
-              'eval input' => array(
2751
+                'label' => 'PHP code: node moved to new forum parent',
2752
+                'label callback' => FALSE,
2753
+                'module' => 'PHP',
2754
+                'eval input' => array(
2755 2755
                 '0' => 'code',
2756
-              ),
2756
+                ),
2757 2757
             ),
2758 2758
             '#name' => 'rules_condition_custom_php',
2759 2759
             '#settings' => array(
2760
-              'code' => 'return ($node->tid != $node_unchanged->tid);',
2761
-              'vars' => array(
2760
+                'code' => 'return ($node->tid != $node_unchanged->tid);',
2761
+                'vars' => array(
2762 2762
                 '0' => 'node',
2763 2763
                 '1' => 'node_unchanged',
2764
-              ),
2765
-              '#eval input' => array(
2764
+                ),
2765
+                '#eval input' => array(
2766 2766
                 'token_rules_input_evaluator' => array(
2767
-                  'code' => array(
2767
+                    'code' => array(
2768 2768
                     '0' => ':global',
2769
-                  ),
2769
+                    ),
2770
+                ),
2770 2771
                 ),
2771
-              ),
2772 2772
             ),
2773 2773
             '#type' => 'condition',
2774
-          ),
2774
+            ),
2775 2775
         ),
2776 2776
         '#actions' => array(
2777
-          '0' => array(
2777
+            '0' => array(
2778 2778
             '#type' => 'action',
2779 2779
             '#settings' => array(
2780
-              'from' => '',
2781
-              'subject' => 'Forum topic at [:global:site-name] moved by moderator/admin',
2782
-              'message' => "[node:type] topic '[node:title]' has been moved by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2783
-              '#eval input' => array(
2780
+                'from' => '',
2781
+                'subject' => 'Forum topic at [:global:site-name] moved by moderator/admin',
2782
+                'message' => "[node:type] topic '[node:title]' has been moved by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2783
+                '#eval input' => array(
2784 2784
                 'token_rules_input_evaluator' => array(
2785
-                  'subject' => array(
2785
+                    'subject' => array(
2786 2786
                     '0' => ':global',
2787
-                  ),
2788
-                  'message' => array(
2787
+                    ),
2788
+                    'message' => array(
2789 2789
                     '0' => 'node',
2790 2790
                     '1' => 'user',
2791 2791
                     '2' => ':global',
2792
-                  ),
2793
-                  'from' => array(
2792
+                    ),
2793
+                    'from' => array(
2794 2794
                     '0' => ':global',
2795
-                  ),
2795
+                    ),
2796 2796
                 ),
2797 2797
                 'rules_input_evaluator_php' => array(
2798
-                  'message' => array(
2798
+                    'message' => array(
2799 2799
                     '0' => 'node',
2800
-                  ),
2800
+                    ),
2801
+                ),
2801 2802
                 ),
2802
-              ),
2803 2803
             ),
2804 2804
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2805 2805
             '#info' => array(
2806
-              'label' => 'Notify moderators via email',
2807
-              'module' => 'BOINC core',
2808
-              'eval input' => array(
2806
+                'label' => 'Notify moderators via email',
2807
+                'module' => 'BOINC core',
2808
+                'eval input' => array(
2809 2809
                 '0' => 'subject',
2810 2810
                 '1' => 'message',
2811 2811
                 '2' => 'from',
2812
-              ),
2812
+                ),
2813 2813
             ),
2814 2814
             '#weight' => 0.0,
2815
-          ),
2815
+            ),
2816 2816
         ),
2817 2817
         '#version' => 6003,
2818
-      ),
2819
-      'rules_forum_topic_is_unhidden_by_moderator_admin' => array(
2818
+        ),
2819
+        'rules_forum_topic_is_unhidden_by_moderator_admin' => array(
2820 2820
         '#type' => 'rule',
2821 2821
         '#set' => 'event_node_update',
2822 2822
         '#label' => 'Forum topic is unhidden by moderator/admin',
2823 2823
         '#active' => 1,
2824 2824
         '#weight' => '0',
2825 2825
         '#categories' => array(
2826
-          '0' => 'boinc_standard',
2827
-          '1' => 'moderator notification',
2826
+            '0' => 'boinc_standard',
2827
+            '1' => 'moderator notification',
2828 2828
         ),
2829 2829
         '#status' => 'default',
2830 2830
         '#conditions' => array(
2831
-          '0' => array(
2831
+            '0' => array(
2832 2832
             '#type' => 'condition',
2833 2833
             '#settings' => array(
2834
-              'roles' => array(
2834
+                'roles' => array(
2835 2835
                 '0' => 3519698132,
2836 2836
                 '1' => 1271379760,
2837
-              ),
2838
-              'operation' => 'OR',
2839
-              '#argument map' => array(
2837
+                ),
2838
+                'operation' => 'OR',
2839
+                '#argument map' => array(
2840 2840
                 'user' => 'user',
2841
-              ),
2841
+                ),
2842 2842
             ),
2843 2843
             '#name' => 'rules_condition_user_hasrole',
2844 2844
             '#info' => array(
2845
-              'label' => 'User has role(s): administrator or moderator',
2846
-              'label callback' => FALSE,
2847
-              'arguments' => array(
2845
+                'label' => 'User has role(s): administrator or moderator',
2846
+                'label callback' => FALSE,
2847
+                'arguments' => array(
2848 2848
                 'user' => array(
2849
-                  'type' => 'user',
2850
-                  'label' => 'User',
2849
+                    'type' => 'user',
2850
+                    'label' => 'User',
2851 2851
                 ),
2852
-              ),
2853
-              'module' => 'User',
2852
+                ),
2853
+                'module' => 'User',
2854 2854
             ),
2855 2855
             '#weight' => 0.0,
2856
-          ),
2857
-          '1' => array(
2856
+            ),
2857
+            '1' => array(
2858 2858
             '#type' => 'OR',
2859 2859
             '0' => array(
2860
-              '#info' => array(
2860
+                '#info' => array(
2861 2861
                 'label' => 'Updated content is Forum topic',
2862 2862
                 'arguments' => array(
2863
-                  'node' => array(
2863
+                    'node' => array(
2864 2864
                     'type' => 'node',
2865 2865
                     'label' => 'Content',
2866
-                  ),
2866
+                    ),
2867 2867
                 ),
2868 2868
                 'module' => 'Node',
2869
-              ),
2870
-              '#name' => 'rules_condition_content_is_type',
2871
-              '#settings' => array(
2869
+                ),
2870
+                '#name' => 'rules_condition_content_is_type',
2871
+                '#settings' => array(
2872 2872
                 'type' => array(
2873
-                  'forum' => 'forum',
2873
+                    'forum' => 'forum',
2874 2874
                 ),
2875 2875
                 '#argument map' => array(
2876
-                  'node' => 'node',
2876
+                    'node' => 'node',
2877
+                ),
2877 2878
                 ),
2878
-              ),
2879
-              '#type' => 'condition',
2880
-              '#weight' => 0.0,
2879
+                '#type' => 'condition',
2880
+                '#weight' => 0.0,
2881 2881
             ),
2882 2882
             '#weight' => 0.0,
2883 2883
             '1' => array(
2884
-              '#weight' => 0.0,
2885
-              '#info' => array(
2884
+                '#weight' => 0.0,
2885
+                '#info' => array(
2886 2886
                 'label' => 'Updated content is Team forum topic',
2887 2887
                 'arguments' => array(
2888
-                  'node' => array(
2888
+                    'node' => array(
2889 2889
                     'type' => 'node',
2890 2890
                     'label' => 'Content',
2891
-                  ),
2891
+                    ),
2892 2892
                 ),
2893 2893
                 'module' => 'Node',
2894
-              ),
2895
-              '#name' => 'rules_condition_content_is_type',
2896
-              '#settings' => array(
2894
+                ),
2895
+                '#name' => 'rules_condition_content_is_type',
2896
+                '#settings' => array(
2897 2897
                 'type' => array(
2898
-                  'team_forum' => 'team_forum',
2898
+                    'team_forum' => 'team_forum',
2899 2899
                 ),
2900 2900
                 '#argument map' => array(
2901
-                  'node' => 'node',
2901
+                    'node' => 'node',
2902
+                ),
2902 2903
                 ),
2903
-              ),
2904
-              '#type' => 'condition',
2904
+                '#type' => 'condition',
2905 2905
             ),
2906
-          ),
2907
-          '3' => array(
2906
+            ),
2907
+            '3' => array(
2908 2908
             '#type' => 'condition',
2909 2909
             '#settings' => array(
2910
-              'code' => 'return $node->body == $node_unchanged->body;',
2911
-              'vars' => array(
2910
+                'code' => 'return $node->body == $node_unchanged->body;',
2911
+                'vars' => array(
2912 2912
                 '0' => 'node',
2913 2913
                 '1' => 'node_unchanged',
2914
-              ),
2915
-              '#eval input' => array(
2914
+                ),
2915
+                '#eval input' => array(
2916 2916
                 'token_rules_input_evaluator' => array(
2917
-                  'code' => array(
2917
+                    'code' => array(
2918 2918
                     '0' => ':global',
2919
-                  ),
2919
+                    ),
2920
+                ),
2920 2921
                 ),
2921
-              ),
2922 2922
             ),
2923 2923
             '#name' => 'rules_condition_custom_php',
2924 2924
             '#info' => array(
2925
-              'label' => 'PHP code: node content is unchanged',
2926
-              'label callback' => FALSE,
2927
-              'module' => 'PHP',
2928
-              'eval input' => array(
2925
+                'label' => 'PHP code: node content is unchanged',
2926
+                'label callback' => FALSE,
2927
+                'module' => 'PHP',
2928
+                'eval input' => array(
2929 2929
                 '0' => 'code',
2930
-              ),
2930
+                ),
2931 2931
             ),
2932 2932
             '#weight' => 0.0,
2933
-          ),
2934
-          '4' => array(
2933
+            ),
2934
+            '4' => array(
2935 2935
             '#type' => 'condition',
2936 2936
             '#settings' => array(
2937
-              'code' => 'return $node_unchanged->status == 0 && $node->status == 1;',
2938
-              'vars' => array(
2937
+                'code' => 'return $node_unchanged->status == 0 && $node->status == 1;',
2938
+                'vars' => array(
2939 2939
                 '0' => 'node',
2940 2940
                 '1' => 'node_unchanged',
2941
-              ),
2942
-              '#eval input' => array(
2941
+                ),
2942
+                '#eval input' => array(
2943 2943
                 'token_rules_input_evaluator' => array(
2944
-                  'code' => array(
2944
+                    'code' => array(
2945 2945
                     '0' => ':global',
2946
-                  ),
2946
+                    ),
2947
+                ),
2947 2948
                 ),
2948
-              ),
2949 2949
             ),
2950 2950
             '#name' => 'rules_condition_custom_php',
2951 2951
             '#info' => array(
2952
-              'label' => 'PHP code: node status changed to unhidden',
2953
-              'label callback' => FALSE,
2954
-              'module' => 'PHP',
2955
-              'eval input' => array(
2952
+                'label' => 'PHP code: node status changed to unhidden',
2953
+                'label callback' => FALSE,
2954
+                'module' => 'PHP',
2955
+                'eval input' => array(
2956 2956
                 '0' => 'code',
2957
-              ),
2957
+                ),
2958 2958
             ),
2959 2959
             '#weight' => 0.0,
2960
-          ),
2960
+            ),
2961 2961
         ),
2962 2962
         '#actions' => array(
2963
-          '0' => array(
2963
+            '0' => array(
2964 2964
             '#info' => array(
2965
-              'label' => 'Notify moderators via email',
2966
-              'module' => 'BOINC core',
2967
-              'eval input' => array(
2965
+                'label' => 'Notify moderators via email',
2966
+                'module' => 'BOINC core',
2967
+                'eval input' => array(
2968 2968
                 '0' => 'subject',
2969 2969
                 '1' => 'message',
2970 2970
                 '2' => 'from',
2971
-              ),
2971
+                ),
2972 2972
             ),
2973 2973
             '#name' => 'boinccore_rules_action_mail_to_moderators',
2974 2974
             '#settings' => array(
2975
-              'from' => '',
2976
-              'subject' => 'Forum topic at [:global:site-name] unhidden by moderator/admin',
2977
-              'message' => "[node:type] topic '[node:title]' has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2978
-              '#eval input' => array(
2975
+                'from' => '',
2976
+                'subject' => 'Forum topic at [:global:site-name] unhidden by moderator/admin',
2977
+                'message' => "[node:type] topic '[node:title]' has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
2978
+                '#eval input' => array(
2979 2979
                 'token_rules_input_evaluator' => array(
2980
-                  'subject' => array(
2980
+                    'subject' => array(
2981 2981
                     '0' => ':global',
2982
-                  ),
2983
-                  'message' => array(
2982
+                    ),
2983
+                    'message' => array(
2984 2984
                     '0' => 'node',
2985 2985
                     '1' => 'user',
2986 2986
                     '2' => ':global',
2987
-                  ),
2988
-                  'from' => array(
2987
+                    ),
2988
+                    'from' => array(
2989 2989
                     '0' => ':global',
2990
-                  ),
2990
+                    ),
2991 2991
                 ),
2992 2992
                 'rules_input_evaluator_php' => array(
2993
-                  'message' => array(
2993
+                    'message' => array(
2994 2994
                     '0' => 'node',
2995
-                  ),
2995
+                    ),
2996
+                ),
2996 2997
                 ),
2997
-              ),
2998 2998
             ),
2999 2999
             '#type' => 'action',
3000 3000
             '#weight' => 0.0,
3001
-          ),
3001
+            ),
3002 3002
         ),
3003 3003
         '#version' => 6003,
3004
-      ),
3005
-      'rules_forum_topic_locked_by_moderator_admin' => array(
3004
+        ),
3005
+        'rules_forum_topic_locked_by_moderator_admin' => array(
3006 3006
         '#type' => 'rule',
3007 3007
         '#set' => 'event_node_update',
3008 3008
         '#label' => 'Forum topic locked by moderator/admin',
3009 3009
         '#active' => 1,
3010 3010
         '#weight' => '0',
3011 3011
         '#categories' => array(
3012
-          '0' => 'boinc_standard',
3013
-          '1' => 'moderator notification',
3012
+            '0' => 'boinc_standard',
3013
+            '1' => 'moderator notification',
3014 3014
         ),
3015 3015
         '#status' => 'default',
3016 3016
         '#conditions' => array(
3017
-          '0' => array(
3017
+            '0' => array(
3018 3018
             '#type' => 'condition',
3019 3019
             '#settings' => array(
3020
-              'roles' => array(
3020
+                'roles' => array(
3021 3021
                 '0' => 3519698132,
3022 3022
                 '1' => 1271379760,
3023
-              ),
3024
-              'operation' => 'OR',
3025
-              '#argument map' => array(
3023
+                ),
3024
+                'operation' => 'OR',
3025
+                '#argument map' => array(
3026 3026
                 'user' => 'user',
3027
-              ),
3027
+                ),
3028 3028
             ),
3029 3029
             '#name' => 'rules_condition_user_hasrole',
3030 3030
             '#info' => array(
3031
-              'label' => 'User has role(s): administrator or moderator',
3032
-              'label callback' => FALSE,
3033
-              'arguments' => array(
3031
+                'label' => 'User has role(s): administrator or moderator',
3032
+                'label callback' => FALSE,
3033
+                'arguments' => array(
3034 3034
                 'user' => array(
3035
-                  'type' => 'user',
3036
-                  'label' => 'User',
3035
+                    'type' => 'user',
3036
+                    'label' => 'User',
3037
+                ),
3037 3038
                 ),
3038
-              ),
3039
-              'module' => 'User',
3039
+                'module' => 'User',
3040 3040
             ),
3041 3041
             '#weight' => 0.0,
3042
-          ),
3043
-          '1' => array(
3042
+            ),
3043
+            '1' => array(
3044 3044
             '#weight' => 0.0,
3045 3045
             '0' => array(
3046
-              '#weight' => 0.0,
3047
-              '#type' => 'condition',
3048
-              '#settings' => array(
3046
+                '#weight' => 0.0,
3047
+                '#type' => 'condition',
3048
+                '#settings' => array(
3049 3049
                 'type' => array(
3050
-                  'forum' => 'forum',
3050
+                    'forum' => 'forum',
3051 3051
                 ),
3052 3052
                 '#argument map' => array(
3053
-                  'node' => 'node',
3053
+                    'node' => 'node',
3054
+                ),
3054 3055
                 ),
3055
-              ),
3056
-              '#name' => 'rules_condition_content_is_type',
3057
-              '#info' => array(
3056
+                '#name' => 'rules_condition_content_is_type',
3057
+                '#info' => array(
3058 3058
                 'label' => 'Updated content is Forum topic',
3059 3059
                 'arguments' => array(
3060
-                  'node' => array(
3060
+                    'node' => array(
3061 3061
                     'type' => 'node',
3062 3062
                     'label' => 'Content',
3063
-                  ),
3063
+                    ),
3064 3064
                 ),
3065 3065
                 'module' => 'Node',
3066
-              ),
3066
+                ),
3067 3067
             ),
3068 3068
             '#type' => 'OR',
3069 3069
             '1' => array(
3070
-              '#type' => 'condition',
3071
-              '#settings' => array(
3070
+                '#type' => 'condition',
3071
+                '#settings' => array(
3072 3072
                 'type' => array(
3073
-                  'team_forum' => 'team_forum',
3073
+                    'team_forum' => 'team_forum',
3074 3074
                 ),
3075 3075
                 '#argument map' => array(
3076
-                  'node' => 'node',
3076
+                    'node' => 'node',
3077
+                ),
3077 3078
                 ),
3078
-              ),
3079
-              '#name' => 'rules_condition_content_is_type',
3080
-              '#info' => array(
3079
+                '#name' => 'rules_condition_content_is_type',
3080
+                '#info' => array(
3081 3081
                 'label' => 'Updated content is Team forum topic',
3082 3082
                 'arguments' => array(
3083
-                  'node' => array(
3083
+                    'node' => array(
3084 3084
                     'type' => 'node',
3085 3085
                     'label' => 'Content',
3086
-                  ),
3086
+                    ),
3087 3087
                 ),
3088 3088
                 'module' => 'Node',
3089
-              ),
3090
-              '#weight' => 0.0,
3089
+                ),
3090
+                '#weight' => 0.0,
3091
+            ),
3091 3092
             ),
3092
-          ),
3093
-          '3' => array(
3093
+            '3' => array(
3094 3094
             '#weight' => 0.0,
3095 3095
             '#info' => array(
3096
-              'label' => 'PHP code: node content unchanged',
3097
-              'label callback' => FALSE,
3098
-              'module' => 'PHP',
3099
-              'eval input' => array(
3096
+                'label' => 'PHP code: node content unchanged',
3097
+                'label callback' => FALSE,
3098
+                'module' => 'PHP',
3099
+                'eval input' => array(
3100 3100
                 '0' => 'code',
3101
-              ),
3101
+                ),
3102 3102
             ),
3103 3103
             '#name' => 'rules_condition_custom_php',
3104 3104
             '#settings' => array(
3105
-              'code' => 'return $node->body == $node_unchanged->body;',
3106
-              'vars' => array(
3105
+                'code' => 'return $node->body == $node_unchanged->body;',
3106
+                'vars' => array(
3107 3107
                 '0' => 'node',
3108 3108
                 '1' => 'node_unchanged',
3109
-              ),
3110
-              '#eval input' => array(
3109
+                ),
3110
+                '#eval input' => array(
3111 3111
                 'token_rules_input_evaluator' => array(
3112
-                  'code' => array(
3112
+                    'code' => array(
3113 3113
                     '0' => ':global',
3114
-                  ),
3114
+                    ),
3115
+                ),
3115 3116
                 ),
3116
-              ),
3117 3117
             ),
3118 3118
             '#type' => 'condition',
3119
-          ),
3120
-          '4' => array(
3119
+            ),
3120
+            '4' => array(
3121 3121
             '#weight' => 0.0,
3122 3122
             '#info' => array(
3123
-              'label' => 'PHP code: node locked',
3124
-              'label callback' => FALSE,
3125
-              'module' => 'PHP',
3126
-              'eval input' => array(
3123
+                'label' => 'PHP code: node locked',
3124
+                'label callback' => FALSE,
3125
+                'module' => 'PHP',
3126
+                'eval input' => array(
3127 3127
                 '0' => 'code',
3128
-              ),
3128
+                ),
3129 3129
             ),
3130 3130
             '#name' => 'rules_condition_custom_php',
3131 3131
             '#type' => 'condition',
3132 3132
             '#settings' => array(
3133
-              'code' => 'return $node_unchanged->comment == 2 && $node->comment == 1;',
3134
-              'vars' => array(
3133
+                'code' => 'return $node_unchanged->comment == 2 && $node->comment == 1;',
3134
+                'vars' => array(
3135 3135
                 '0' => 'node',
3136 3136
                 '1' => 'node_unchanged',
3137
-              ),
3138
-              '#eval input' => array(
3137
+                ),
3138
+                '#eval input' => array(
3139 3139
                 'token_rules_input_evaluator' => array(
3140
-                  'code' => array(
3140
+                    'code' => array(
3141 3141
                     '0' => ':global',
3142
-                  ),
3142
+                    ),
3143 3143
                 ),
3144
-              ),
3144
+                ),
3145
+            ),
3145 3146
             ),
3146
-          ),
3147 3147
         ),
3148 3148
         '#actions' => array(
3149
-          '0' => array(
3149
+            '0' => array(
3150 3150
             '#info' => array(
3151
-              'label' => 'Notify moderators via email',
3152
-              'module' => 'BOINC core',
3153
-              'eval input' => array(
3151
+                'label' => 'Notify moderators via email',
3152
+                'module' => 'BOINC core',
3153
+                'eval input' => array(
3154 3154
                 '0' => 'subject',
3155 3155
                 '1' => 'message',
3156 3156
                 '2' => 'from',
3157
-              ),
3157
+                ),
3158 3158
             ),
3159 3159
             '#name' => 'boinccore_rules_action_mail_to_moderators',
3160 3160
             '#settings' => array(
3161
-              'from' => '',
3162
-              'subject' => 'Forum topic at [:global:site-name] locked by moderator/admin',
3163
-              'message' => "[node:type] topic '[node:title]' has been locked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3164
-              '#eval input' => array(
3161
+                'from' => '',
3162
+                'subject' => 'Forum topic at [:global:site-name] locked by moderator/admin',
3163
+                'message' => "[node:type] topic '[node:title]' has been locked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3164
+                '#eval input' => array(
3165 3165
                 'token_rules_input_evaluator' => array(
3166
-                  'subject' => array(
3166
+                    'subject' => array(
3167 3167
                     '0' => ':global',
3168
-                  ),
3169
-                  'message' => array(
3168
+                    ),
3169
+                    'message' => array(
3170 3170
                     '0' => 'node',
3171 3171
                     '1' => 'user',
3172 3172
                     '2' => ':global',
3173
-                  ),
3174
-                  'from' => array(
3173
+                    ),
3174
+                    'from' => array(
3175 3175
                     '0' => ':global',
3176
-                  ),
3176
+                    ),
3177 3177
                 ),
3178 3178
                 'rules_input_evaluator_php' => array(
3179
-                  'message' => array(
3179
+                    'message' => array(
3180 3180
                     '0' => 'node',
3181
-                  ),
3181
+                    ),
3182
+                ),
3182 3183
                 ),
3183
-              ),
3184 3184
             ),
3185 3185
             '#type' => 'action',
3186 3186
             '#weight' => 0.0,
3187
-          ),
3187
+            ),
3188 3188
         ),
3189 3189
         '#version' => 6003,
3190
-      ),
3191
-      'rules_forum_topic_marked_sticky_by_moderator_admin' => array(
3190
+        ),
3191
+        'rules_forum_topic_marked_sticky_by_moderator_admin' => array(
3192 3192
         '#type' => 'rule',
3193 3193
         '#set' => 'event_node_update',
3194 3194
         '#label' => 'Forum topic marked sticky by moderator/admin',
3195 3195
         '#active' => 1,
3196 3196
         '#weight' => '0',
3197 3197
         '#categories' => array(
3198
-          '0' => 'boinc_standard',
3199
-          '1' => 'moderator notification',
3198
+            '0' => 'boinc_standard',
3199
+            '1' => 'moderator notification',
3200 3200
         ),
3201 3201
         '#status' => 'default',
3202 3202
         '#conditions' => array(
3203
-          '0' => array(
3203
+            '0' => array(
3204 3204
             '#type' => 'condition',
3205 3205
             '#settings' => array(
3206
-              'roles' => array(
3206
+                'roles' => array(
3207 3207
                 '0' => 3519698132,
3208 3208
                 '1' => 1271379760,
3209
-              ),
3210
-              'operation' => 'OR',
3211
-              '#argument map' => array(
3209
+                ),
3210
+                'operation' => 'OR',
3211
+                '#argument map' => array(
3212 3212
                 'user' => 'user',
3213
-              ),
3213
+                ),
3214 3214
             ),
3215 3215
             '#name' => 'rules_condition_user_hasrole',
3216 3216
             '#info' => array(
3217
-              'label' => 'User has role(s): administrator or moderator',
3218
-              'label callback' => FALSE,
3219
-              'arguments' => array(
3217
+                'label' => 'User has role(s): administrator or moderator',
3218
+                'label callback' => FALSE,
3219
+                'arguments' => array(
3220 3220
                 'user' => array(
3221
-                  'type' => 'user',
3222
-                  'label' => 'User',
3221
+                    'type' => 'user',
3222
+                    'label' => 'User',
3223
+                ),
3223 3224
                 ),
3224
-              ),
3225
-              'module' => 'User',
3225
+                'module' => 'User',
3226 3226
             ),
3227 3227
             '#weight' => 0.0,
3228
-          ),
3229
-          '1' => array(
3228
+            ),
3229
+            '1' => array(
3230 3230
             '#weight' => 0.0,
3231 3231
             '0' => array(
3232
-              '#weight' => 0.0,
3233
-              '#type' => 'condition',
3234
-              '#settings' => array(
3232
+                '#weight' => 0.0,
3233
+                '#type' => 'condition',
3234
+                '#settings' => array(
3235 3235
                 'type' => array(
3236
-                  'forum' => 'forum',
3236
+                    'forum' => 'forum',
3237 3237
                 ),
3238 3238
                 '#argument map' => array(
3239
-                  'node' => 'node',
3239
+                    'node' => 'node',
3240
+                ),
3240 3241
                 ),
3241
-              ),
3242
-              '#name' => 'rules_condition_content_is_type',
3243
-              '#info' => array(
3242
+                '#name' => 'rules_condition_content_is_type',
3243
+                '#info' => array(
3244 3244
                 'label' => 'Updated content is Forum topic',
3245 3245
                 'arguments' => array(
3246
-                  'node' => array(
3246
+                    'node' => array(
3247 3247
                     'type' => 'node',
3248 3248
                     'label' => 'Content',
3249
-                  ),
3249
+                    ),
3250 3250
                 ),
3251 3251
                 'module' => 'Node',
3252
-              ),
3252
+                ),
3253 3253
             ),
3254 3254
             '#type' => 'OR',
3255 3255
             '1' => array(
3256
-              '#type' => 'condition',
3257
-              '#settings' => array(
3256
+                '#type' => 'condition',
3257
+                '#settings' => array(
3258 3258
                 'type' => array(
3259
-                  'team_forum' => 'team_forum',
3259
+                    'team_forum' => 'team_forum',
3260 3260
                 ),
3261 3261
                 '#argument map' => array(
3262
-                  'node' => 'node',
3262
+                    'node' => 'node',
3263
+                ),
3263 3264
                 ),
3264
-              ),
3265
-              '#name' => 'rules_condition_content_is_type',
3266
-              '#info' => array(
3265
+                '#name' => 'rules_condition_content_is_type',
3266
+                '#info' => array(
3267 3267
                 'label' => 'Updated content is Team forum topic',
3268 3268
                 'arguments' => array(
3269
-                  'node' => array(
3269
+                    'node' => array(
3270 3270
                     'type' => 'node',
3271 3271
                     'label' => 'Content',
3272
-                  ),
3272
+                    ),
3273 3273
                 ),
3274 3274
                 'module' => 'Node',
3275
-              ),
3276
-              '#weight' => 0.0,
3275
+                ),
3276
+                '#weight' => 0.0,
3277
+            ),
3277 3278
             ),
3278
-          ),
3279
-          '3' => array(
3279
+            '3' => array(
3280 3280
             '#weight' => 0.0,
3281 3281
             '#info' => array(
3282
-              'label' => 'PHP code: node content unchanged',
3283
-              'label callback' => FALSE,
3284
-              'module' => 'PHP',
3285
-              'eval input' => array(
3282
+                'label' => 'PHP code: node content unchanged',
3283
+                'label callback' => FALSE,
3284
+                'module' => 'PHP',
3285
+                'eval input' => array(
3286 3286
                 '0' => 'code',
3287
-              ),
3287
+                ),
3288 3288
             ),
3289 3289
             '#name' => 'rules_condition_custom_php',
3290 3290
             '#settings' => array(
3291
-              'code' => 'return $node->body == $node_unchanged->body;',
3292
-              'vars' => array(
3291
+                'code' => 'return $node->body == $node_unchanged->body;',
3292
+                'vars' => array(
3293 3293
                 '0' => 'node',
3294 3294
                 '1' => 'node_unchanged',
3295
-              ),
3296
-              '#eval input' => array(
3295
+                ),
3296
+                '#eval input' => array(
3297 3297
                 'token_rules_input_evaluator' => array(
3298
-                  'code' => array(
3298
+                    'code' => array(
3299 3299
                     '0' => ':global',
3300
-                  ),
3300
+                    ),
3301
+                ),
3301 3302
                 ),
3302
-              ),
3303 3303
             ),
3304 3304
             '#type' => 'condition',
3305
-          ),
3306
-          '4' => array(
3305
+            ),
3306
+            '4' => array(
3307 3307
             '#weight' => 0.0,
3308 3308
             '#info' => array(
3309
-              'label' => 'PHP code: node made sticky',
3310
-              'label callback' => FALSE,
3311
-              'module' => 'PHP',
3312
-              'eval input' => array(
3309
+                'label' => 'PHP code: node made sticky',
3310
+                'label callback' => FALSE,
3311
+                'module' => 'PHP',
3312
+                'eval input' => array(
3313 3313
                 '0' => 'code',
3314
-              ),
3314
+                ),
3315 3315
             ),
3316 3316
             '#name' => 'rules_condition_custom_php',
3317 3317
             '#type' => 'condition',
3318 3318
             '#settings' => array(
3319
-              'code' => 'return $node_unchanged->sticky == 0 && $node->sticky == 1;',
3320
-              'vars' => array(
3319
+                'code' => 'return $node_unchanged->sticky == 0 && $node->sticky == 1;',
3320
+                'vars' => array(
3321 3321
                 '0' => 'node',
3322 3322
                 '1' => 'node_unchanged',
3323
-              ),
3324
-              '#eval input' => array(
3323
+                ),
3324
+                '#eval input' => array(
3325 3325
                 'token_rules_input_evaluator' => array(
3326
-                  'code' => array(
3326
+                    'code' => array(
3327 3327
                     '0' => ':global',
3328
-                  ),
3328
+                    ),
3329
+                ),
3329 3330
                 ),
3330
-              ),
3331 3331
             ),
3332
-          ),
3332
+            ),
3333 3333
         ),
3334 3334
         '#actions' => array(
3335
-          '0' => array(
3335
+            '0' => array(
3336 3336
             '#info' => array(
3337
-              'label' => 'Notify moderators via email',
3338
-              'module' => 'BOINC core',
3339
-              'eval input' => array(
3337
+                'label' => 'Notify moderators via email',
3338
+                'module' => 'BOINC core',
3339
+                'eval input' => array(
3340 3340
                 '0' => 'subject',
3341 3341
                 '1' => 'message',
3342 3342
                 '2' => 'from',
3343
-              ),
3343
+                ),
3344 3344
             ),
3345 3345
             '#name' => 'boinccore_rules_action_mail_to_moderators',
3346 3346
             '#settings' => array(
3347
-              'from' => '',
3348
-              'subject' => 'Forum topic at [:global:site-name] marked sticky by moderator/admin',
3349
-              'message' => "[node:type] topic '[node:title]' has been marked sticky by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3350
-              '#eval input' => array(
3347
+                'from' => '',
3348
+                'subject' => 'Forum topic at [:global:site-name] marked sticky by moderator/admin',
3349
+                'message' => "[node:type] topic '[node:title]' has been marked sticky by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3350
+                '#eval input' => array(
3351 3351
                 'token_rules_input_evaluator' => array(
3352
-                  'subject' => array(
3352
+                    'subject' => array(
3353 3353
                     '0' => ':global',
3354
-                  ),
3355
-                  'message' => array(
3354
+                    ),
3355
+                    'message' => array(
3356 3356
                     '0' => 'node',
3357 3357
                     '1' => 'user',
3358 3358
                     '2' => ':global',
3359
-                  ),
3360
-                  'from' => array(
3359
+                    ),
3360
+                    'from' => array(
3361 3361
                     '0' => ':global',
3362
-                  ),
3362
+                    ),
3363 3363
                 ),
3364 3364
                 'rules_input_evaluator_php' => array(
3365
-                  'message' => array(
3365
+                    'message' => array(
3366 3366
                     '0' => 'node',
3367
-                  ),
3367
+                    ),
3368
+                ),
3368 3369
                 ),
3369
-              ),
3370 3370
             ),
3371 3371
             '#type' => 'action',
3372 3372
             '#weight' => 0.0,
3373
-          ),
3373
+            ),
3374 3374
         ),
3375 3375
         '#version' => 6003,
3376
-      ),
3377
-      'rules_forum_topic_marked_unsticky_by_moderator_admin' => array(
3376
+        ),
3377
+        'rules_forum_topic_marked_unsticky_by_moderator_admin' => array(
3378 3378
         '#type' => 'rule',
3379 3379
         '#set' => 'event_node_update',
3380 3380
         '#label' => 'Forum topic marked unsticky by moderator/admin',
3381 3381
         '#active' => 1,
3382 3382
         '#weight' => '0',
3383 3383
         '#categories' => array(
3384
-          '0' => 'boinc_standard',
3385
-          '1' => 'moderator notification',
3384
+            '0' => 'boinc_standard',
3385
+            '1' => 'moderator notification',
3386 3386
         ),
3387 3387
         '#status' => 'default',
3388 3388
         '#conditions' => array(
3389
-          '0' => array(
3389
+            '0' => array(
3390 3390
             '#type' => 'condition',
3391 3391
             '#settings' => array(
3392
-              'roles' => array(
3392
+                'roles' => array(
3393 3393
                 '0' => 3519698132,
3394 3394
                 '1' => 1271379760,
3395
-              ),
3396
-              'operation' => 'OR',
3397
-              '#argument map' => array(
3395
+                ),
3396
+                'operation' => 'OR',
3397
+                '#argument map' => array(
3398 3398
                 'user' => 'user',
3399
-              ),
3399
+                ),
3400 3400
             ),
3401 3401
             '#name' => 'rules_condition_user_hasrole',
3402 3402
             '#info' => array(
3403
-              'label' => 'User has role(s): administrator or moderator',
3404
-              'label callback' => FALSE,
3405
-              'arguments' => array(
3403
+                'label' => 'User has role(s): administrator or moderator',
3404
+                'label callback' => FALSE,
3405
+                'arguments' => array(
3406 3406
                 'user' => array(
3407
-                  'type' => 'user',
3408
-                  'label' => 'User',
3407
+                    'type' => 'user',
3408
+                    'label' => 'User',
3409
+                ),
3409 3410
                 ),
3410
-              ),
3411
-              'module' => 'User',
3411
+                'module' => 'User',
3412 3412
             ),
3413 3413
             '#weight' => 0.0,
3414
-          ),
3415
-          '1' => array(
3414
+            ),
3415
+            '1' => array(
3416 3416
             '#weight' => 0.0,
3417 3417
             '0' => array(
3418
-              '#weight' => 0.0,
3419
-              '#type' => 'condition',
3420
-              '#settings' => array(
3418
+                '#weight' => 0.0,
3419
+                '#type' => 'condition',
3420
+                '#settings' => array(
3421 3421
                 'type' => array(
3422
-                  'forum' => 'forum',
3422
+                    'forum' => 'forum',
3423 3423
                 ),
3424 3424
                 '#argument map' => array(
3425
-                  'node' => 'node',
3425
+                    'node' => 'node',
3426
+                ),
3426 3427
                 ),
3427
-              ),
3428
-              '#name' => 'rules_condition_content_is_type',
3429
-              '#info' => array(
3428
+                '#name' => 'rules_condition_content_is_type',
3429
+                '#info' => array(
3430 3430
                 'label' => 'Updated content is Forum topic',
3431 3431
                 'arguments' => array(
3432
-                  'node' => array(
3432
+                    'node' => array(
3433 3433
                     'type' => 'node',
3434 3434
                     'label' => 'Content',
3435
-                  ),
3435
+                    ),
3436 3436
                 ),
3437 3437
                 'module' => 'Node',
3438
-              ),
3438
+                ),
3439 3439
             ),
3440 3440
             '#type' => 'OR',
3441 3441
             '1' => array(
3442
-              '#type' => 'condition',
3443
-              '#settings' => array(
3442
+                '#type' => 'condition',
3443
+                '#settings' => array(
3444 3444
                 'type' => array(
3445
-                  'team_forum' => 'team_forum',
3445
+                    'team_forum' => 'team_forum',
3446 3446
                 ),
3447 3447
                 '#argument map' => array(
3448
-                  'node' => 'node',
3448
+                    'node' => 'node',
3449 3449
                 ),
3450
-              ),
3451
-              '#name' => 'rules_condition_content_is_type',
3452
-              '#info' => array(
3450
+                ),
3451
+                '#name' => 'rules_condition_content_is_type',
3452
+                '#info' => array(
3453 3453
                 'label' => 'Updated content is Team forum topic',
3454 3454
                 'arguments' => array(
3455
-                  'node' => array(
3455
+                    'node' => array(
3456 3456
                     'type' => 'node',
3457 3457
                     'label' => 'Content',
3458
-                  ),
3458
+                    ),
3459 3459
                 ),
3460 3460
                 'module' => 'Node',
3461
-              ),
3462
-              '#weight' => 0.0,
3461
+                ),
3462
+                '#weight' => 0.0,
3463 3463
             ),
3464
-          ),
3465
-          '3' => array(
3464
+            ),
3465
+            '3' => array(
3466 3466
             '#weight' => 0.0,
3467 3467
             '#info' => array(
3468
-              'label' => 'PHP code: node content unchanged',
3469
-              'label callback' => FALSE,
3470
-              'module' => 'PHP',
3471
-              'eval input' => array(
3468
+                'label' => 'PHP code: node content unchanged',
3469
+                'label callback' => FALSE,
3470
+                'module' => 'PHP',
3471
+                'eval input' => array(
3472 3472
                 '0' => 'code',
3473
-              ),
3473
+                ),
3474 3474
             ),
3475 3475
             '#name' => 'rules_condition_custom_php',
3476 3476
             '#settings' => array(
3477
-              'code' => 'return $node->body == $node_unchanged->body;',
3478
-              'vars' => array(
3477
+                'code' => 'return $node->body == $node_unchanged->body;',
3478
+                'vars' => array(
3479 3479
                 '0' => 'node',
3480 3480
                 '1' => 'node_unchanged',
3481
-              ),
3482
-              '#eval input' => array(
3481
+                ),
3482
+                '#eval input' => array(
3483 3483
                 'token_rules_input_evaluator' => array(
3484
-                  'code' => array(
3484
+                    'code' => array(
3485 3485
                     '0' => ':global',
3486
-                  ),
3486
+                    ),
3487
+                ),
3487 3488
                 ),
3488
-              ),
3489 3489
             ),
3490 3490
             '#type' => 'condition',
3491
-          ),
3492
-          '4' => array(
3491
+            ),
3492
+            '4' => array(
3493 3493
             '#weight' => 0.0,
3494 3494
             '#info' => array(
3495
-              'label' => 'PHP code: node made sticky',
3496
-              'label callback' => FALSE,
3497
-              'module' => 'PHP',
3498
-              'eval input' => array(
3495
+                'label' => 'PHP code: node made sticky',
3496
+                'label callback' => FALSE,
3497
+                'module' => 'PHP',
3498
+                'eval input' => array(
3499 3499
                 '0' => 'code',
3500
-              ),
3500
+                ),
3501 3501
             ),
3502 3502
             '#name' => 'rules_condition_custom_php',
3503 3503
             '#type' => 'condition',
3504 3504
             '#settings' => array(
3505
-              'code' => 'return $node_unchanged->sticky == 1 && $node->sticky == 0;',
3506
-              'vars' => array(
3505
+                'code' => 'return $node_unchanged->sticky == 1 && $node->sticky == 0;',
3506
+                'vars' => array(
3507 3507
                 '0' => 'node',
3508 3508
                 '1' => 'node_unchanged',
3509
-              ),
3510
-              '#eval input' => array(
3509
+                ),
3510
+                '#eval input' => array(
3511 3511
                 'token_rules_input_evaluator' => array(
3512
-                  'code' => array(
3512
+                    'code' => array(
3513 3513
                     '0' => ':global',
3514
-                  ),
3514
+                    ),
3515
+                ),
3515 3516
                 ),
3516
-              ),
3517 3517
             ),
3518
-          ),
3518
+            ),
3519 3519
         ),
3520 3520
         '#actions' => array(
3521
-          '0' => array(
3521
+            '0' => array(
3522 3522
             '#info' => array(
3523
-              'label' => 'Notify moderators via email',
3524
-              'module' => 'BOINC core',
3525
-              'eval input' => array(
3523
+                'label' => 'Notify moderators via email',
3524
+                'module' => 'BOINC core',
3525
+                'eval input' => array(
3526 3526
                 '0' => 'subject',
3527 3527
                 '1' => 'message',
3528 3528
                 '2' => 'from',
3529
-              ),
3529
+                ),
3530 3530
             ),
3531 3531
             '#name' => 'boinccore_rules_action_mail_to_moderators',
3532 3532
             '#settings' => array(
3533
-              'from' => '',
3534
-              'subject' => 'Forum topic at [:global:site-name] marked unsticky by moderator/admin',
3535
-              'message' => "[node:type] topic '[node:title]' has been marked unsticky by moderator/admin [user:display-name].\r\n\\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3536
-              '#eval input' => array(
3533
+                'from' => '',
3534
+                'subject' => 'Forum topic at [:global:site-name] marked unsticky by moderator/admin',
3535
+                'message' => "[node:type] topic '[node:title]' has been marked unsticky by moderator/admin [user:display-name].\r\n\\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3536
+                '#eval input' => array(
3537 3537
                 'token_rules_input_evaluator' => array(
3538
-                  'subject' => array(
3538
+                    'subject' => array(
3539 3539
                     '0' => ':global',
3540
-                  ),
3541
-                  'message' => array(
3540
+                    ),
3541
+                    'message' => array(
3542 3542
                     '0' => 'node',
3543 3543
                     '1' => 'user',
3544 3544
                     '2' => ':global',
3545
-                  ),
3546
-                  'from' => array(
3545
+                    ),
3546
+                    'from' => array(
3547 3547
                     '0' => ':global',
3548
-                  ),
3548
+                    ),
3549 3549
                 ),
3550 3550
                 'rules_input_evaluator_php' => array(
3551
-                  'message' => array(
3551
+                    'message' => array(
3552 3552
                     '0' => 'node',
3553
-                  ),
3553
+                    ),
3554
+                ),
3554 3555
                 ),
3555
-              ),
3556 3556
             ),
3557 3557
             '#type' => 'action',
3558 3558
             '#weight' => 0.0,
3559
-          ),
3559
+            ),
3560 3560
         ),
3561 3561
         '#version' => 6003,
3562
-      ),
3563
-      'rules_forum_topic_nenamed_title_by_moderator_or_admin' => array(
3562
+        ),
3563
+        'rules_forum_topic_nenamed_title_by_moderator_or_admin' => array(
3564 3564
         '#type' => 'rule',
3565 3565
         '#set' => 'event_node_update',
3566 3566
         '#label' => 'Forum topic renamed title by moderator or admin',
3567 3567
         '#active' => 1,
3568 3568
         '#weight' => '0',
3569 3569
         '#categories' => array(
3570
-          '0' => 'boinc_standard',
3571
-          '1' => 'moderator notification',
3570
+            '0' => 'boinc_standard',
3571
+            '1' => 'moderator notification',
3572 3572
         ),
3573 3573
         '#status' => 'default',
3574 3574
         '#conditions' => array(
3575
-          '0' => array(
3575
+            '0' => array(
3576 3576
             '#weight' => 0.0,
3577 3577
             '#type' => 'condition',
3578 3578
             '#settings' => array(
3579
-              'roles' => array(
3579
+                'roles' => array(
3580 3580
                 '0' => 3519698132,
3581 3581
                 '1' => 1271379760,
3582
-              ),
3583
-              'operation' => 'OR',
3584
-              '#argument map' => array(
3582
+                ),
3583
+                'operation' => 'OR',
3584
+                '#argument map' => array(
3585 3585
                 'user' => 'user',
3586
-              ),
3586
+                ),
3587 3587
             ),
3588 3588
             '#name' => 'rules_condition_user_hasrole',
3589 3589
             '#info' => array(
3590
-              'label' => 'User has role(s): administrator or moderator',
3591
-              'label callback' => FALSE,
3592
-              'arguments' => array(
3590
+                'label' => 'User has role(s): administrator or moderator',
3591
+                'label callback' => FALSE,
3592
+                'arguments' => array(
3593 3593
                 'user' => array(
3594
-                  'type' => 'user',
3595
-                  'label' => 'User',
3594
+                    'type' => 'user',
3595
+                    'label' => 'User',
3596
+                ),
3596 3597
                 ),
3597
-              ),
3598
-              'module' => 'User',
3598
+                'module' => 'User',
3599
+            ),
3599 3600
             ),
3600
-          ),
3601
-          '1' => array(
3601
+            '1' => array(
3602 3602
             '#weight' => 0.0,
3603 3603
             '0' => array(
3604
-              '#weight' => 0.0,
3605
-              '#info' => array(
3604
+                '#weight' => 0.0,
3605
+                '#info' => array(
3606 3606
                 'label' => 'Updated content is Forum topic',
3607 3607
                 'arguments' => array(
3608
-                  'node' => array(
3608
+                    'node' => array(
3609 3609
                     'type' => 'node',
3610 3610
                     'label' => 'Content',
3611
-                  ),
3611
+                    ),
3612 3612
                 ),
3613 3613
                 'module' => 'Node',
3614
-              ),
3615
-              '#name' => 'rules_condition_content_is_type',
3616
-              '#settings' => array(
3614
+                ),
3615
+                '#name' => 'rules_condition_content_is_type',
3616
+                '#settings' => array(
3617 3617
                 'type' => array(
3618
-                  'forum' => 'forum',
3618
+                    'forum' => 'forum',
3619 3619
                 ),
3620 3620
                 '#argument map' => array(
3621
-                  'node' => 'node',
3621
+                    'node' => 'node',
3622
+                ),
3622 3623
                 ),
3623
-              ),
3624
-              '#type' => 'condition',
3624
+                '#type' => 'condition',
3625 3625
             ),
3626 3626
             '#type' => 'OR',
3627 3627
             '1' => array(
3628
-              '#type' => 'condition',
3629
-              '#settings' => array(
3628
+                '#type' => 'condition',
3629
+                '#settings' => array(
3630 3630
                 'type' => array(
3631
-                  'team_forum' => 'team_forum',
3631
+                    'team_forum' => 'team_forum',
3632 3632
                 ),
3633 3633
                 '#argument map' => array(
3634
-                  'node' => 'node',
3634
+                    'node' => 'node',
3635 3635
                 ),
3636
-              ),
3637
-              '#name' => 'rules_condition_content_is_type',
3638
-              '#info' => array(
3636
+                ),
3637
+                '#name' => 'rules_condition_content_is_type',
3638
+                '#info' => array(
3639 3639
                 'label' => 'Updated content is Team forum topic',
3640 3640
                 'arguments' => array(
3641
-                  'node' => array(
3641
+                    'node' => array(
3642 3642
                     'type' => 'node',
3643 3643
                     'label' => 'Content',
3644
-                  ),
3644
+                    ),
3645 3645
                 ),
3646 3646
                 'module' => 'Node',
3647
-              ),
3648
-              '#weight' => 0.0,
3647
+                ),
3648
+                '#weight' => 0.0,
3649 3649
             ),
3650
-          ),
3651
-          '2' => array(
3650
+            ),
3651
+            '2' => array(
3652 3652
             '#weight' => 0.0,
3653 3653
             '#info' => array(
3654
-              'label' => 'PHP code: title changed',
3655
-              'label callback' => FALSE,
3656
-              'module' => 'PHP',
3657
-              'eval input' => array(
3654
+                'label' => 'PHP code: title changed',
3655
+                'label callback' => FALSE,
3656
+                'module' => 'PHP',
3657
+                'eval input' => array(
3658 3658
                 '0' => 'code',
3659
-              ),
3659
+                ),
3660 3660
             ),
3661 3661
             '#name' => 'rules_condition_custom_php',
3662 3662
             '#settings' => array(
3663
-              'code' => 'return ($node->title != $node_unchanged->title);',
3664
-              'vars' => array(
3663
+                'code' => 'return ($node->title != $node_unchanged->title);',
3664
+                'vars' => array(
3665 3665
                 '0' => 'node',
3666 3666
                 '1' => 'node_unchanged',
3667
-              ),
3668
-              '#eval input' => array(
3667
+                ),
3668
+                '#eval input' => array(
3669 3669
                 'token_rules_input_evaluator' => array(
3670
-                  'code' => array(
3670
+                    'code' => array(
3671 3671
                     '0' => ':global',
3672
-                  ),
3672
+                    ),
3673
+                ),
3673 3674
                 ),
3674
-              ),
3675 3675
             ),
3676 3676
             '#type' => 'condition',
3677
-          ),
3677
+            ),
3678 3678
         ),
3679 3679
         '#actions' => array(
3680
-          '0' => array(
3680
+            '0' => array(
3681 3681
             '#type' => 'action',
3682 3682
             '#settings' => array(
3683
-              'from' => '',
3684
-              'subject' => 'Forum topic at [:global:site-name] renamed by moderator/admin',
3685
-              'message' => "[node:type] topic '[node:title]' has its title renamed by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3686
-              '#eval input' => array(
3683
+                'from' => '',
3684
+                'subject' => 'Forum topic at [:global:site-name] renamed by moderator/admin',
3685
+                'message' => "[node:type] topic '[node:title]' has its title renamed by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3686
+                '#eval input' => array(
3687 3687
                 'token_rules_input_evaluator' => array(
3688
-                  'subject' => array(
3688
+                    'subject' => array(
3689 3689
                     '0' => ':global',
3690
-                  ),
3691
-                  'message' => array(
3690
+                    ),
3691
+                    'message' => array(
3692 3692
                     '0' => 'node',
3693 3693
                     '1' => 'user',
3694 3694
                     '2' => ':global',
3695
-                  ),
3696
-                  'from' => array(
3695
+                    ),
3696
+                    'from' => array(
3697 3697
                     '0' => ':global',
3698
-                  ),
3698
+                    ),
3699 3699
                 ),
3700 3700
                 'rules_input_evaluator_php' => array(
3701
-                  'message' => array(
3701
+                    'message' => array(
3702 3702
                     '0' => 'node',
3703
-                  ),
3703
+                    ),
3704
+                ),
3704 3705
                 ),
3705
-              ),
3706 3706
             ),
3707 3707
             '#name' => 'boinccore_rules_action_mail_to_moderators',
3708 3708
             '#info' => array(
3709
-              'label' => 'Notify moderators via email',
3710
-              'module' => 'BOINC core',
3711
-              'eval input' => array(
3709
+                'label' => 'Notify moderators via email',
3710
+                'module' => 'BOINC core',
3711
+                'eval input' => array(
3712 3712
                 '0' => 'subject',
3713 3713
                 '1' => 'message',
3714 3714
                 '2' => 'from',
3715
-              ),
3715
+                ),
3716 3716
             ),
3717 3717
             '#weight' => 0.0,
3718
-          ),
3718
+            ),
3719 3719
         ),
3720 3720
         '#version' => 6003,
3721
-      ),
3722
-      'rules_forum_topic_unlocked_by_moderator_admin' => array(
3721
+        ),
3722
+        'rules_forum_topic_unlocked_by_moderator_admin' => array(
3723 3723
         '#type' => 'rule',
3724 3724
         '#set' => 'event_node_update',
3725 3725
         '#label' => 'Forum topic unlocked by moderator/admin',
3726 3726
         '#active' => 1,
3727 3727
         '#weight' => '0',
3728 3728
         '#categories' => array(
3729
-          '0' => 'boinc_standard',
3730
-          '1' => 'moderator notification',
3729
+            '0' => 'boinc_standard',
3730
+            '1' => 'moderator notification',
3731 3731
         ),
3732 3732
         '#status' => 'default',
3733 3733
         '#conditions' => array(
3734
-          '0' => array(
3734
+            '0' => array(
3735 3735
             '#type' => 'condition',
3736 3736
             '#settings' => array(
3737
-              'roles' => array(
3737
+                'roles' => array(
3738 3738
                 '0' => 3519698132,
3739 3739
                 '1' => 1271379760,
3740
-              ),
3741
-              'operation' => 'OR',
3742
-              '#argument map' => array(
3740
+                ),
3741
+                'operation' => 'OR',
3742
+                '#argument map' => array(
3743 3743
                 'user' => 'user',
3744
-              ),
3744
+                ),
3745 3745
             ),
3746 3746
             '#name' => 'rules_condition_user_hasrole',
3747 3747
             '#info' => array(
3748
-              'label' => 'User has role(s): administrator or moderator',
3749
-              'label callback' => FALSE,
3750
-              'arguments' => array(
3748
+                'label' => 'User has role(s): administrator or moderator',
3749
+                'label callback' => FALSE,
3750
+                'arguments' => array(
3751 3751
                 'user' => array(
3752
-                  'type' => 'user',
3753
-                  'label' => 'User',
3752
+                    'type' => 'user',
3753
+                    'label' => 'User',
3754
+                ),
3754 3755
                 ),
3755
-              ),
3756
-              'module' => 'User',
3756
+                'module' => 'User',
3757 3757
             ),
3758 3758
             '#weight' => 0.0,
3759
-          ),
3760
-          '1' => array(
3759
+            ),
3760
+            '1' => array(
3761 3761
             '#weight' => 0.0,
3762 3762
             '0' => array(
3763
-              '#weight' => 0.0,
3764
-              '#type' => 'condition',
3765
-              '#settings' => array(
3763
+                '#weight' => 0.0,
3764
+                '#type' => 'condition',
3765
+                '#settings' => array(
3766 3766
                 'type' => array(
3767
-                  'forum' => 'forum',
3767
+                    'forum' => 'forum',
3768 3768
                 ),
3769 3769
                 '#argument map' => array(
3770
-                  'node' => 'node',
3770
+                    'node' => 'node',
3771
+                ),
3771 3772
                 ),
3772
-              ),
3773
-              '#name' => 'rules_condition_content_is_type',
3774
-              '#info' => array(
3773
+                '#name' => 'rules_condition_content_is_type',
3774
+                '#info' => array(
3775 3775
                 'label' => 'Updated content is Forum topic',
3776 3776
                 'arguments' => array(
3777
-                  'node' => array(
3777
+                    'node' => array(
3778 3778
                     'type' => 'node',
3779 3779
                     'label' => 'Content',
3780
-                  ),
3780
+                    ),
3781 3781
                 ),
3782 3782
                 'module' => 'Node',
3783
-              ),
3783
+                ),
3784 3784
             ),
3785 3785
             '#type' => 'OR',
3786 3786
             '1' => array(
3787
-              '#type' => 'condition',
3788
-              '#settings' => array(
3787
+                '#type' => 'condition',
3788
+                '#settings' => array(
3789 3789
                 'type' => array(
3790
-                  'team_forum' => 'team_forum',
3790
+                    'team_forum' => 'team_forum',
3791 3791
                 ),
3792 3792
                 '#argument map' => array(
3793
-                  'node' => 'node',
3793
+                    'node' => 'node',
3794
+                ),
3794 3795
                 ),
3795
-              ),
3796
-              '#name' => 'rules_condition_content_is_type',
3797
-              '#info' => array(
3796
+                '#name' => 'rules_condition_content_is_type',
3797
+                '#info' => array(
3798 3798
                 'label' => 'Updated content is Team forum topic',
3799 3799
                 'arguments' => array(
3800
-                  'node' => array(
3800
+                    'node' => array(
3801 3801
                     'type' => 'node',
3802 3802
                     'label' => 'Content',
3803
-                  ),
3803
+                    ),
3804 3804
                 ),
3805 3805
                 'module' => 'Node',
3806
-              ),
3807
-              '#weight' => 0.0,
3806
+                ),
3807
+                '#weight' => 0.0,
3808 3808
             ),
3809
-          ),
3810
-          '3' => array(
3809
+            ),
3810
+            '3' => array(
3811 3811
             '#weight' => 0.0,
3812 3812
             '#info' => array(
3813
-              'label' => 'PHP code: node content unchanged',
3814
-              'label callback' => FALSE,
3815
-              'module' => 'PHP',
3816
-              'eval input' => array(
3813
+                'label' => 'PHP code: node content unchanged',
3814
+                'label callback' => FALSE,
3815
+                'module' => 'PHP',
3816
+                'eval input' => array(
3817 3817
                 '0' => 'code',
3818
-              ),
3818
+                ),
3819 3819
             ),
3820 3820
             '#name' => 'rules_condition_custom_php',
3821 3821
             '#settings' => array(
3822
-              'code' => 'return $node->body == $node_unchanged->body;',
3823
-              'vars' => array(
3822
+                'code' => 'return $node->body == $node_unchanged->body;',
3823
+                'vars' => array(
3824 3824
                 '0' => 'node',
3825 3825
                 '1' => 'node_unchanged',
3826
-              ),
3827
-              '#eval input' => array(
3826
+                ),
3827
+                '#eval input' => array(
3828 3828
                 'token_rules_input_evaluator' => array(
3829
-                  'code' => array(
3829
+                    'code' => array(
3830 3830
                     '0' => ':global',
3831
-                  ),
3831
+                    ),
3832
+                ),
3832 3833
                 ),
3833
-              ),
3834 3834
             ),
3835 3835
             '#type' => 'condition',
3836
-          ),
3837
-          '4' => array(
3836
+            ),
3837
+            '4' => array(
3838 3838
             '#weight' => 0.0,
3839 3839
             '#info' => array(
3840
-              'label' => 'PHP code: node unlocked',
3841
-              'label callback' => FALSE,
3842
-              'module' => 'PHP',
3843
-              'eval input' => array(
3840
+                'label' => 'PHP code: node unlocked',
3841
+                'label callback' => FALSE,
3842
+                'module' => 'PHP',
3843
+                'eval input' => array(
3844 3844
                 '0' => 'code',
3845
-              ),
3845
+                ),
3846 3846
             ),
3847 3847
             '#name' => 'rules_condition_custom_php',
3848 3848
             '#type' => 'condition',
3849 3849
             '#settings' => array(
3850
-              'code' => 'return $node_unchanged->comment == 1 && $node->comment == 2;',
3851
-              'vars' => array(
3850
+                'code' => 'return $node_unchanged->comment == 1 && $node->comment == 2;',
3851
+                'vars' => array(
3852 3852
                 '0' => 'node',
3853 3853
                 '1' => 'node_unchanged',
3854
-              ),
3855
-              '#eval input' => array(
3854
+                ),
3855
+                '#eval input' => array(
3856 3856
                 'token_rules_input_evaluator' => array(
3857
-                  'code' => array(
3857
+                    'code' => array(
3858 3858
                     '0' => ':global',
3859
-                  ),
3859
+                    ),
3860 3860
                 ),
3861
-              ),
3861
+                ),
3862
+            ),
3862 3863
             ),
3863
-          ),
3864 3864
         ),
3865 3865
         '#actions' => array(
3866
-          '0' => array(
3866
+            '0' => array(
3867 3867
             '#info' => array(
3868
-              'label' => 'Notify moderators via email',
3869
-              'module' => 'BOINC core',
3870
-              'eval input' => array(
3868
+                'label' => 'Notify moderators via email',
3869
+                'module' => 'BOINC core',
3870
+                'eval input' => array(
3871 3871
                 '0' => 'subject',
3872 3872
                 '1' => 'message',
3873 3873
                 '2' => 'from',
3874
-              ),
3874
+                ),
3875 3875
             ),
3876 3876
             '#name' => 'boinccore_rules_action_mail_to_moderators',
3877 3877
             '#settings' => array(
3878
-              'from' => '',
3879
-              'subject' => 'Forum topic at [:global:site-name] unlocked by moderator/admin',
3880
-              'message' => "[node:type] topic '[node:title]' has been unlocked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3881
-              '#eval input' => array(
3878
+                'from' => '',
3879
+                'subject' => 'Forum topic at [:global:site-name] unlocked by moderator/admin',
3880
+                'message' => "[node:type] topic '[node:title]' has been unlocked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>",
3881
+                '#eval input' => array(
3882 3882
                 'token_rules_input_evaluator' => array(
3883
-                  'subject' => array(
3883
+                    'subject' => array(
3884 3884
                     '0' => ':global',
3885
-                  ),
3886
-                  'message' => array(
3885
+                    ),
3886
+                    'message' => array(
3887 3887
                     '0' => 'node',
3888 3888
                     '1' => 'user',
3889 3889
                     '2' => ':global',
3890
-                  ),
3891
-                  'from' => array(
3890
+                    ),
3891
+                    'from' => array(
3892 3892
                     '0' => ':global',
3893
-                  ),
3893
+                    ),
3894 3894
                 ),
3895 3895
                 'rules_input_evaluator_php' => array(
3896
-                  'message' => array(
3896
+                    'message' => array(
3897 3897
                     '0' => 'node',
3898
-                  ),
3898
+                    ),
3899
+                ),
3899 3900
                 ),
3900
-              ),
3901 3901
             ),
3902 3902
             '#type' => 'action',
3903 3903
             '#weight' => 0.0,
3904
-          ),
3904
+            ),
3905 3905
         ),
3906 3906
         '#version' => 6003,
3907
-      ),
3908
-      'rules_offensive_comment_reported' => array(
3907
+        ),
3908
+        'rules_offensive_comment_reported' => array(
3909 3909
         '#type' => 'rule',
3910 3910
         '#set' => 'event_flag_flagged_abuse_comment',
3911 3911
         '#label' => 'Offensive comment reported',
3912 3912
         '#active' => 1,
3913 3913
         '#weight' => '0',
3914 3914
         '#categories' => array(
3915
-          '0' => 'moderator notification',
3916
-          '1' => 'boinc_standard',
3915
+            '0' => 'moderator notification',
3916
+            '1' => 'boinc_standard',
3917 3917
         ),
3918 3918
         '#status' => 'default',
3919 3919
         '#conditions' => array(),
3920 3920
         '#actions' => array(
3921
-          '1' => array(
3921
+            '1' => array(
3922 3922
             '#info' => array(
3923
-              'label' => 'Notify moderators via email',
3924
-              'module' => 'BOINC core',
3925
-              'eval input' => array(
3923
+                'label' => 'Notify moderators via email',
3924
+                'module' => 'BOINC core',
3925
+                'eval input' => array(
3926 3926
                 '0' => 'subject',
3927 3927
                 '1' => 'message',
3928 3928
                 '2' => 'from',
3929
-              ),
3929
+                ),
3930 3930
             ),
3931 3931
             '#name' => 'boinccore_rules_action_mail_to_moderators',
3932 3932
             '#settings' => array(
3933
-              'from' => '',
3934
-              'subject' => 'Report of offensive [node:type] comment at [:global:site-name]',
3935
-              'message' => "[flagging_user:display-name] has reported the following comment on [node:type] content as being offensive or inappropriate for the [:global:site-name] site:\r\n\r\n<?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]\r\n\r\nTotal reports of this comment: [comment:flag-abuse-comment-count]",
3936
-              '#eval input' => array(
3933
+                'from' => '',
3934
+                'subject' => 'Report of offensive [node:type] comment at [:global:site-name]',
3935
+                'message' => "[flagging_user:display-name] has reported the following comment on [node:type] content as being offensive or inappropriate for the [:global:site-name] site:\r\n\r\n<?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]\r\n\r\nTotal reports of this comment: [comment:flag-abuse-comment-count]",
3936
+                '#eval input' => array(
3937 3937
                 'token_rules_input_evaluator' => array(
3938
-                  'subject' => array(
3938
+                    'subject' => array(
3939 3939
                     '0' => 'node',
3940 3940
                     '1' => ':global',
3941
-                  ),
3942
-                  'message' => array(
3941
+                    ),
3942
+                    'message' => array(
3943 3943
                     '0' => 'flagging_user',
3944 3944
                     '1' => 'comment',
3945 3945
                     '2' => 'node',
3946 3946
                     '3' => ':global',
3947
-                  ),
3948
-                  'from' => array(
3947
+                    ),
3948
+                    'from' => array(
3949 3949
                     '0' => ':global',
3950
-                  ),
3950
+                    ),
3951 3951
                 ),
3952 3952
                 'rules_input_evaluator_php' => array(
3953
-                  'message' => array(),
3953
+                    'message' => array(),
3954
+                ),
3954 3955
                 ),
3955
-              ),
3956 3956
             ),
3957 3957
             '#type' => 'action',
3958 3958
             '#weight' => 0.0,
3959
-          ),
3959
+            ),
3960 3960
         ),
3961 3961
         '#version' => 6003,
3962
-      ),
3963
-      'rules_offensive_content_reported' => array(
3962
+        ),
3963
+        'rules_offensive_content_reported' => array(
3964 3964
         '#type' => 'rule',
3965 3965
         '#set' => 'event_flag_flagged_abuse_node',
3966 3966
         '#label' => 'Offensive content reported',
3967 3967
         '#active' => 1,
3968 3968
         '#weight' => '0',
3969 3969
         '#categories' => array(
3970
-          '0' => 'moderator notification',
3971
-          'boinc_standard' => 'boinc_standard',
3970
+            '0' => 'moderator notification',
3971
+            'boinc_standard' => 'boinc_standard',
3972 3972
         ),
3973 3973
         '#status' => 'default',
3974 3974
         '#conditions' => array(),
3975 3975
         '#actions' => array(
3976
-          '1' => array(
3976
+            '1' => array(
3977 3977
             '#type' => 'action',
3978 3978
             '#settings' => array(
3979
-              'from' => '',
3980
-              'subject' => 'Report of offensive [node:type] content at [:global:site-name]',
3981
-              'message' => "[flagging_user:display-name] has reported the following [node:type] content as being offensive or inappropriate for the [:global:site-name] site:\r\n\r\n<?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>\r\n\r\nTotal reports of this content: [node:flag-abuse-node-count]",
3982
-              '#eval input' => array(
3979
+                'from' => '',
3980
+                'subject' => 'Report of offensive [node:type] content at [:global:site-name]',
3981
+                'message' => "[flagging_user:display-name] has reported the following [node:type] content as being offensive or inappropriate for the [:global:site-name] site:\r\n\r\n<?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>\r\n\r\nTotal reports of this content: [node:flag-abuse-node-count]",
3982
+                '#eval input' => array(
3983 3983
                 'token_rules_input_evaluator' => array(
3984
-                  'subject' => array(
3984
+                    'subject' => array(
3985 3985
                     '0' => 'node',
3986 3986
                     '1' => ':global',
3987
-                  ),
3988
-                  'message' => array(
3987
+                    ),
3988
+                    'message' => array(
3989 3989
                     '0' => 'flagging_user',
3990 3990
                     '1' => 'node',
3991 3991
                     '2' => ':global',
3992
-                  ),
3993
-                  'from' => array(
3992
+                    ),
3993
+                    'from' => array(
3994 3994
                     '0' => ':global',
3995
-                  ),
3995
+                    ),
3996 3996
                 ),
3997 3997
                 'rules_input_evaluator_php' => array(
3998
-                  'message' => array(
3998
+                    'message' => array(
3999 3999
                     '0' => 'node',
4000
-                  ),
4000
+                    ),
4001
+                ),
4001 4002
                 ),
4002
-              ),
4003 4003
             ),
4004 4004
             '#name' => 'boinccore_rules_action_mail_to_moderators',
4005 4005
             '#info' => array(
4006
-              'label' => 'Notify moderators via email',
4007
-              'module' => 'BOINC core',
4008
-              'eval input' => array(
4006
+                'label' => 'Notify moderators via email',
4007
+                'module' => 'BOINC core',
4008
+                'eval input' => array(
4009 4009
                 '0' => 'subject',
4010 4010
                 '1' => 'message',
4011 4011
                 '2' => 'from',
4012
-              ),
4012
+                ),
4013 4013
             ),
4014 4014
             '#weight' => 0.0,
4015
-          ),
4015
+            ),
4016 4016
         ),
4017 4017
         '#version' => 6003,
4018
-      ),
4019
-      'rules_offensive_user_reported' => array(
4018
+        ),
4019
+        'rules_offensive_user_reported' => array(
4020 4020
         '#type' => 'rule',
4021 4021
         '#set' => 'event_flag_flagged_abuse_user',
4022 4022
         '#label' => 'Offensive user reported',
4023 4023
         '#active' => 1,
4024 4024
         '#weight' => '0',
4025 4025
         '#categories' => array(
4026
-          '0' => 'moderator notification',
4027
-          'boinc_standard' => 'boinc_standard',
4026
+            '0' => 'moderator notification',
4027
+            'boinc_standard' => 'boinc_standard',
4028 4028
         ),
4029 4029
         '#status' => 'default',
4030 4030
         '#conditions' => array(),
4031 4031
         '#actions' => array(
4032
-          '1' => array(
4032
+            '1' => array(
4033 4033
             '#type' => 'action',
4034 4034
             '#settings' => array(
4035
-              'from' => '',
4036
-              'subject' => 'Report of offensive user at [:global:site-name]',
4037
-              'message' => "[flagging_user:display-name] has reported [account:display-name] for inappropriate behavior:\r\n\r\n<?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/account/[account:uid]\r\n\r\nTotal current reports of this user: [account:flag-abuse-user-count]",
4038
-              '#eval input' => array(
4035
+                'from' => '',
4036
+                'subject' => 'Report of offensive user at [:global:site-name]',
4037
+                'message' => "[flagging_user:display-name] has reported [account:display-name] for inappropriate behavior:\r\n\r\n<?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/account/[account:uid]\r\n\r\nTotal current reports of this user: [account:flag-abuse-user-count]",
4038
+                '#eval input' => array(
4039 4039
                 'token_rules_input_evaluator' => array(
4040
-                  'subject' => array(
4040
+                    'subject' => array(
4041 4041
                     '0' => ':global',
4042
-                  ),
4043
-                  'message' => array(
4042
+                    ),
4043
+                    'message' => array(
4044 4044
                     '0' => 'flagging_user',
4045 4045
                     '1' => 'account',
4046 4046
                     '2' => ':global',
4047
-                  ),
4048
-                  'from' => array(
4047
+                    ),
4048
+                    'from' => array(
4049 4049
                     '0' => ':global',
4050
-                  ),
4050
+                    ),
4051 4051
                 ),
4052 4052
                 'rules_input_evaluator_php' => array(
4053
-                  'message' => array(),
4053
+                    'message' => array(),
4054
+                ),
4054 4055
                 ),
4055
-              ),
4056 4056
             ),
4057 4057
             '#name' => 'boinccore_rules_action_mail_to_moderators',
4058 4058
             '#info' => array(
4059
-              'label' => 'Notify moderators via email',
4060
-              'module' => 'BOINC core',
4061
-              'eval input' => array(
4059
+                'label' => 'Notify moderators via email',
4060
+                'module' => 'BOINC core',
4061
+                'eval input' => array(
4062 4062
                 '0' => 'subject',
4063 4063
                 '1' => 'message',
4064 4064
                 '2' => 'from',
4065
-              ),
4065
+                ),
4066 4066
             ),
4067 4067
             '#weight' => 0.0,
4068
-          ),
4068
+            ),
4069 4069
         ),
4070 4070
         '#version' => 6003,
4071
-      ),
4071
+        ),
4072 4072
     ),
4073
-  );
4073
+    );
4074 4074
 }
4075 4075
 
4076 4076
 /**
4077 4077
  * Implementation of hook_views_api().
4078 4078
  */
4079 4079
 function boinc_standard_views_api() {
4080
-  return array(
4080
+    return array(
4081 4081
     'api' => '2',
4082
-  );
4082
+    );
4083 4083
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/boinc_standard/boinc_standard.pages_default.inc 1 patch
Indentation   +327 added lines, -327 removed lines patch added patch discarded remove patch
@@ -4,113 +4,113 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_page_manager_pages().
5 5
  */
6 6
 function boinc_standard_default_page_manager_pages() {
7
-  $page = new stdClass;
8
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
-  $page->api_version = 1;
10
-  $page->name = 'about_us';
11
-  $page->task = 'page';
12
-  $page->admin_title = 'About Us';
13
-  $page->admin_description = '';
14
-  $page->path = 'about.fail';
15
-  $page->access = array(
7
+    $page = new stdClass;
8
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
+    $page->api_version = 1;
10
+    $page->name = 'about_us';
11
+    $page->task = 'page';
12
+    $page->admin_title = 'About Us';
13
+    $page->admin_description = '';
14
+    $page->path = 'about.fail';
15
+    $page->access = array(
16 16
     'type' => 'none',
17 17
     'settings' => NULL,
18
-  );
19
-  $page->menu = array();
20
-  $page->arguments = array();
21
-  $page->conf = array();
22
-  $page->default_handlers = array();
23
-  $pages['about_us'] = $page;
18
+    );
19
+    $page->menu = array();
20
+    $page->arguments = array();
21
+    $page->conf = array();
22
+    $page->default_handlers = array();
23
+    $pages['about_us'] = $page;
24 24
 
25
-  $page = new stdClass;
26
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
27
-  $page->api_version = 1;
28
-  $page->name = 'account_dashboard';
29
-  $page->task = 'page';
30
-  $page->admin_title = 'Dashboard';
31
-  $page->admin_description = '';
32
-  $page->path = 'dashboard';
33
-  $page->access = array(
25
+    $page = new stdClass;
26
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
27
+    $page->api_version = 1;
28
+    $page->name = 'account_dashboard';
29
+    $page->task = 'page';
30
+    $page->admin_title = 'Dashboard';
31
+    $page->admin_description = '';
32
+    $page->path = 'dashboard';
33
+    $page->access = array(
34 34
     'plugins' => array(
35
-      1 => array(
35
+        1 => array(
36 36
         'name' => 'role',
37 37
         'settings' => array(
38
-          'rids' => array(
38
+            'rids' => array(
39 39
             0 => 2,
40
-          ),
40
+            ),
41 41
         ),
42 42
         'context' => 'logged-in-user',
43 43
         'not' => FALSE,
44
-      ),
44
+        ),
45 45
     ),
46 46
     'logic' => 'and',
47 47
     'type' => 'none',
48 48
     'settings' => NULL,
49
-  );
50
-  $page->menu = array(
49
+    );
50
+    $page->menu = array(
51 51
     'type' => 'none',
52 52
     'title' => 'Dashboard',
53 53
     'name' => 'navigation',
54 54
     'weight' => '0',
55 55
     'parent' => array(
56
-      'type' => 'normal',
57
-      'title' => 'Account',
58
-      'name' => 'navigation',
59
-      'weight' => '0',
56
+        'type' => 'normal',
57
+        'title' => 'Account',
58
+        'name' => 'navigation',
59
+        'weight' => '0',
60 60
     ),
61
-  );
62
-  $page->arguments = array();
63
-  $page->conf = array();
64
-  $page->default_handlers = array();
65
-  $handler = new stdClass;
66
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
67
-  $handler->api_version = 1;
68
-  $handler->name = 'page_account_dashboard_panel_context';
69
-  $handler->task = 'page';
70
-  $handler->subtask = 'account_dashboard';
71
-  $handler->handler = 'panel_context';
72
-  $handler->weight = 0;
73
-  $handler->conf = array(
61
+    );
62
+    $page->arguments = array();
63
+    $page->conf = array();
64
+    $page->default_handlers = array();
65
+    $handler = new stdClass;
66
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
67
+    $handler->api_version = 1;
68
+    $handler->name = 'page_account_dashboard_panel_context';
69
+    $handler->task = 'page';
70
+    $handler->subtask = 'account_dashboard';
71
+    $handler->handler = 'panel_context';
72
+    $handler->weight = 0;
73
+    $handler->conf = array(
74 74
     'title' => 'Landing page',
75 75
     'no_blocks' => FALSE,
76 76
     'pipeline' => 'ipe',
77 77
     'css_id' => '',
78 78
     'css' => '',
79 79
     'contexts' => array(
80
-      0 => array(
80
+        0 => array(
81 81
         'name' => 'user',
82 82
         'id' => 1,
83 83
         'identifier' => 'User',
84 84
         'keyword' => 'user',
85 85
         'context_settings' => array(
86
-          'type' => 'current',
87
-          'user' => '',
88
-          'uid' => '',
86
+            'type' => 'current',
87
+            'user' => '',
88
+            'uid' => '',
89
+        ),
89 90
         ),
90
-      ),
91 91
     ),
92 92
     'relationships' => array(),
93 93
     'access' => array(
94
-      'plugins' => array(),
95
-      'logic' => 'and',
94
+        'plugins' => array(),
95
+        'logic' => 'and',
96 96
     ),
97
-  );
98
-  $display = new panels_display;
99
-  $display->layout = 'one_sidebar_second';
100
-  $display->layout_settings = array();
101
-  $display->panel_settings = array(
97
+    );
98
+    $display = new panels_display;
99
+    $display->layout = 'one_sidebar_second';
100
+    $display->layout_settings = array();
101
+    $display->panel_settings = array(
102 102
     'style_settings' => array(
103
-      'default' => NULL,
104
-      'content' => NULL,
105
-      'sidebar_first' => NULL,
103
+        'default' => NULL,
104
+        'content' => NULL,
105
+        'sidebar_first' => NULL,
106 106
     ),
107
-  );
108
-  $display->cache = array();
109
-  $display->title = 'Dashboard';
110
-  $display->storage_type = 'page_manager';
111
-  $display->storage_id = 'page_account_dashboard_panel_context';
112
-  $display->content = array();
113
-  $display->panels = array();
107
+    );
108
+    $display->cache = array();
109
+    $display->title = 'Dashboard';
110
+    $display->storage_type = 'page_manager';
111
+    $display->storage_id = 'page_account_dashboard_panel_context';
112
+    $display->content = array();
113
+    $display->panels = array();
114 114
     $pane = new stdClass;
115 115
     $pane->pid = 'new-1';
116 116
     $pane->panel = 'content';
@@ -119,16 +119,16 @@  discard block
 block discarded – undo
119 119
     $pane->shown = TRUE;
120 120
     $pane->access = array();
121 121
     $pane->configuration = array(
122
-      'override_title' => 1,
123
-      'override_title_text' => 'My stats',
122
+        'override_title' => 1,
123
+        'override_title_text' => 'My stats',
124 124
     );
125 125
     $pane->cache = array();
126 126
     $pane->style = array(
127
-      'settings' => NULL,
127
+        'settings' => NULL,
128 128
     );
129 129
     $pane->css = array(
130
-      'css_id' => '',
131
-      'css_class' => 'panel-primary container shadow',
130
+        'css_id' => '',
131
+        'css_class' => 'panel-primary container shadow',
132 132
     );
133 133
     $pane->extras = array();
134 134
     $pane->position = 0;
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
     $pane->configuration = array();
145 145
     $pane->cache = array();
146 146
     $pane->style = array(
147
-      'settings' => NULL,
147
+        'settings' => NULL,
148 148
     );
149 149
     $pane->css = array(
150
-      'css_id' => '',
151
-      'css_class' => 'panel-primary container shadow',
150
+        'css_id' => '',
151
+        'css_class' => 'panel-primary container shadow',
152 152
     );
153 153
     $pane->extras = array();
154 154
     $pane->position = 1;
@@ -161,31 +161,31 @@  discard block
 block discarded – undo
161 161
     $pane->subtype = 'custom';
162 162
     $pane->shown = TRUE;
163 163
     $pane->access = array(
164
-      'plugins' => array(
164
+        'plugins' => array(
165 165
         1 => array(
166
-          'name' => 'perm',
167
-          'settings' => array(
166
+            'name' => 'perm',
167
+            'settings' => array(
168 168
             'perm' => 'edit any profile content',
169
-          ),
170
-          'context' => 'context_user_1',
171
-          'not' => FALSE,
169
+            ),
170
+            'context' => 'context_user_1',
171
+            'not' => FALSE,
172
+        ),
172 173
         ),
173
-      ),
174 174
     );
175 175
     $pane->configuration = array(
176
-      'admin_title' => 'Moderation overview',
177
-      'title' => '',
178
-      'body' => '<?php print boinccore_moderation_overview_panel(); ?>',
179
-      'format' => '3',
180
-      'substitute' => 1,
176
+        'admin_title' => 'Moderation overview',
177
+        'title' => '',
178
+        'body' => '<?php print boinccore_moderation_overview_panel(); ?>',
179
+        'format' => '3',
180
+        'substitute' => 1,
181 181
     );
182 182
     $pane->cache = array();
183 183
     $pane->style = array(
184
-      'settings' => NULL,
184
+        'settings' => NULL,
185 185
     );
186 186
     $pane->css = array(
187
-      'css_id' => '',
188
-      'css_class' => 'panel-secondary container shadow',
187
+        'css_id' => '',
188
+        'css_class' => 'panel-secondary container shadow',
189 189
     );
190 190
     $pane->extras = array();
191 191
     $pane->position = 0;
@@ -199,16 +199,16 @@  discard block
 block discarded – undo
199 199
     $pane->shown = TRUE;
200 200
     $pane->access = array();
201 201
     $pane->configuration = array(
202
-      'override_title' => 0,
203
-      'override_title_text' => '',
202
+        'override_title' => 0,
203
+        'override_title_text' => '',
204 204
     );
205 205
     $pane->cache = array();
206 206
     $pane->style = array(
207
-      'settings' => NULL,
207
+        'settings' => NULL,
208 208
     );
209 209
     $pane->css = array(
210
-      'css_id' => '',
211
-      'css_class' => 'panel-secondary container shadow',
210
+        'css_id' => '',
211
+        'css_class' => 'panel-secondary container shadow',
212 212
     );
213 213
     $pane->extras = array();
214 214
     $pane->position = 1;
@@ -222,23 +222,23 @@  discard block
 block discarded – undo
222 222
     $pane->shown = TRUE;
223 223
     $pane->access = array();
224 224
     $pane->configuration = array(
225
-      'admin_title' => 'Team summary',
226
-      'title' => '',
227
-      'body' => '<?php
225
+        'admin_title' => 'Team summary',
226
+        'title' => '',
227
+        'body' => '<?php
228 228
 if (module_exists(\'boincteam\')) {
229 229
   echo boincteam_dashboard_panel();
230 230
 }
231 231
 ?>',
232
-      'format' => '3',
233
-      'substitute' => 1,
232
+        'format' => '3',
233
+        'substitute' => 1,
234 234
     );
235 235
     $pane->cache = array();
236 236
     $pane->style = array(
237
-      'settings' => NULL,
237
+        'settings' => NULL,
238 238
     );
239 239
     $pane->css = array(
240
-      'css_id' => 'team-dashboard-pane',
241
-      'css_class' => 'panel-secondary container shadow',
240
+        'css_id' => 'team-dashboard-pane',
241
+        'css_class' => 'panel-secondary container shadow',
242 242
     );
243 243
     $pane->extras = array();
244 244
     $pane->position = 2;
@@ -252,9 +252,9 @@  discard block
 block discarded – undo
252 252
     $pane->shown = TRUE;
253 253
     $pane->access = array();
254 254
     $pane->configuration = array(
255
-      'admin_title' => 'User activity summary',
256
-      'title' => '',
257
-      'body' => '<?php
255
+        'admin_title' => 'User activity summary',
256
+        'title' => '',
257
+        'body' => '<?php
258 258
 
259 259
 global $user;
260 260
 $uid = $user->uid;
@@ -263,16 +263,16 @@  discard block
 block discarded – undo
263 263
 echo \'<div class="item-count-wrapper"><div class="item-count">\' . $account->post_count . \'</div></div>\';
264 264
 
265 265
 ?>',
266
-      'format' => '3',
267
-      'substitute' => 1,
266
+        'format' => '3',
267
+        'substitute' => 1,
268 268
     );
269 269
     $pane->cache = array();
270 270
     $pane->style = array(
271
-      'settings' => NULL,
271
+        'settings' => NULL,
272 272
     );
273 273
     $pane->css = array(
274
-      'css_id' => '',
275
-      'css_class' => 'panel-secondary container shadow',
274
+        'css_id' => '',
275
+        'css_class' => 'panel-secondary container shadow',
276 276
     );
277 277
     $pane->extras = array();
278 278
     $pane->position = 3;
@@ -286,74 +286,74 @@  discard block
 block discarded – undo
286 286
     $pane->shown = TRUE;
287 287
     $pane->access = array();
288 288
     $pane->configuration = array(
289
-      'override_pager_settings' => 0,
290
-      'use_pager' => 0,
291
-      'nodes_per_page' => '6',
292
-      'pager_id' => '',
293
-      'offset' => '0',
294
-      'more_link' => 1,
295
-      'feed_icons' => 0,
296
-      'panel_args' => 0,
297
-      'link_to_view' => 0,
298
-      'args' => '',
299
-      'url' => '',
300
-      'display' => 'block_1',
301
-      'context' => array(
289
+        'override_pager_settings' => 0,
290
+        'use_pager' => 0,
291
+        'nodes_per_page' => '6',
292
+        'pager_id' => '',
293
+        'offset' => '0',
294
+        'more_link' => 1,
295
+        'feed_icons' => 0,
296
+        'panel_args' => 0,
297
+        'link_to_view' => 0,
298
+        'args' => '',
299
+        'url' => '',
300
+        'display' => 'block_1',
301
+        'context' => array(
302 302
         0 => 'context_user_1.uid',
303
-      ),
304
-      'override_title' => 0,
305
-      'override_title_text' => '',
303
+        ),
304
+        'override_title' => 0,
305
+        'override_title_text' => '',
306 306
     );
307 307
     $pane->cache = array();
308 308
     $pane->style = array(
309
-      'settings' => NULL,
309
+        'settings' => NULL,
310 310
     );
311 311
     $pane->css = array(
312
-      'css_id' => '',
313
-      'css_class' => 'panel-secondary container shadow',
312
+        'css_id' => '',
313
+        'css_class' => 'panel-secondary container shadow',
314 314
     );
315 315
     $pane->extras = array();
316 316
     $pane->position = 4;
317 317
     $display->content['new-7'] = $pane;
318 318
     $display->panels['sidebar_first'][4] = 'new-7';
319
-  $display->hide_title = PANELS_TITLE_FIXED;
320
-  $display->title_pane = 'new-1';
321
-  $handler->conf['display'] = $display;
322
-  $page->default_handlers[$handler->name] = $handler;
323
-  $pages['account_dashboard'] = $page;
319
+    $display->hide_title = PANELS_TITLE_FIXED;
320
+    $display->title_pane = 'new-1';
321
+    $handler->conf['display'] = $display;
322
+    $page->default_handlers[$handler->name] = $handler;
323
+    $pages['account_dashboard'] = $page;
324 324
 
325
-  $page = new stdClass;
326
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
327
-  $page->api_version = 1;
328
-  $page->name = 'boinc_user';
329
-  $page->task = 'page';
330
-  $page->admin_title = 'User profile template (boinc)';
331
-  $page->admin_description = '';
332
-  $page->path = 'account/%user';
333
-  $page->access = array(
325
+    $page = new stdClass;
326
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
327
+    $page->api_version = 1;
328
+    $page->name = 'boinc_user';
329
+    $page->task = 'page';
330
+    $page->admin_title = 'User profile template (boinc)';
331
+    $page->admin_description = '';
332
+    $page->path = 'account/%user';
333
+    $page->access = array(
334 334
     'type' => 'none',
335 335
     'settings' => NULL,
336
-  );
337
-  $page->menu = array();
338
-  $page->arguments = array(
336
+    );
337
+    $page->menu = array();
338
+    $page->arguments = array(
339 339
     'user' => array(
340
-      'id' => 1,
341
-      'identifier' => 'User: ID',
342
-      'name' => 'uid',
343
-      'settings' => array(),
340
+        'id' => 1,
341
+        'identifier' => 'User: ID',
342
+        'name' => 'uid',
343
+        'settings' => array(),
344 344
     ),
345
-  );
346
-  $page->conf = array();
347
-  $page->default_handlers = array();
348
-  $handler = new stdClass;
349
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
350
-  $handler->api_version = 1;
351
-  $handler->name = 'page_boinc_user_panel_context_2';
352
-  $handler->task = 'page';
353
-  $handler->subtask = 'boinc_user';
354
-  $handler->handler = 'panel_context';
355
-  $handler->weight = 1;
356
-  $handler->conf = array(
345
+    );
346
+    $page->conf = array();
347
+    $page->default_handlers = array();
348
+    $handler = new stdClass;
349
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
350
+    $handler->api_version = 1;
351
+    $handler->name = 'page_boinc_user_panel_context_2';
352
+    $handler->task = 'page';
353
+    $handler->subtask = 'boinc_user';
354
+    $handler->handler = 'panel_context';
355
+    $handler->weight = 1;
356
+    $handler->conf = array(
357 357
     'title' => 'Panel',
358 358
     'no_blocks' => 0,
359 359
     'pipeline' => 'standard',
@@ -362,37 +362,37 @@  discard block
 block discarded – undo
362 362
     'contexts' => array(),
363 363
     'relationships' => array(),
364 364
     'access' => array(
365
-      'plugins' => array(
365
+        'plugins' => array(
366 366
         0 => array(
367
-          'name' => 'php',
368
-          'settings' => array(
367
+            'name' => 'php',
368
+            'settings' => array(
369 369
             'description' => 'if user status then show profile',
370 370
             'php' => '$account = $contexts[\'argument_uid_1\']->data;
371 371
 return ($account->status);
372 372
 ',
373
-          ),
374
-          'not' => FALSE,
373
+            ),
374
+            'not' => FALSE,
375
+        ),
375 376
         ),
376
-      ),
377
-      'logic' => 'and',
377
+        'logic' => 'and',
378 378
     ),
379
-  );
380
-  $display = new panels_display;
381
-  $display->layout = 'one_sidebar_second';
382
-  $display->layout_settings = array();
383
-  $display->panel_settings = array(
379
+    );
380
+    $display = new panels_display;
381
+    $display->layout = 'one_sidebar_second';
382
+    $display->layout_settings = array();
383
+    $display->panel_settings = array(
384 384
     'style_settings' => array(
385
-      'default' => NULL,
386
-      'content' => NULL,
387
-      'sidebar_first' => NULL,
385
+        'default' => NULL,
386
+        'content' => NULL,
387
+        'sidebar_first' => NULL,
388 388
     ),
389
-  );
390
-  $display->cache = array();
391
-  $display->title = 'Account';
392
-  $display->storage_type = 'page_manager';
393
-  $display->storage_id = 'page_boinc_user_panel_context_2';
394
-  $display->content = array();
395
-  $display->panels = array();
389
+    );
390
+    $display->cache = array();
391
+    $display->title = 'Account';
392
+    $display->storage_type = 'page_manager';
393
+    $display->storage_id = 'page_boinc_user_panel_context_2';
394
+    $display->content = array();
395
+    $display->panels = array();
396 396
     $pane = new stdClass;
397 397
     $pane->pid = 'new-1';
398 398
     $pane->panel = 'content';
@@ -401,19 +401,19 @@  discard block
 block discarded – undo
401 401
     $pane->shown = TRUE;
402 402
     $pane->access = array();
403 403
     $pane->configuration = array(
404
-      'context' => array(
404
+        'context' => array(
405 405
         0 => 'argument_uid_1',
406
-      ),
407
-      'override_title' => 0,
408
-      'override_title_text' => '',
406
+        ),
407
+        'override_title' => 0,
408
+        'override_title_text' => '',
409 409
     );
410 410
     $pane->cache = array();
411 411
     $pane->style = array(
412
-      'settings' => NULL,
412
+        'settings' => NULL,
413 413
     );
414 414
     $pane->css = array(
415
-      'css_id' => '',
416
-      'css_class' => 'panel-primary container shadow',
415
+        'css_id' => '',
416
+        'css_class' => 'panel-primary container shadow',
417 417
     );
418 418
     $pane->extras = array();
419 419
     $pane->position = 0;
@@ -427,16 +427,16 @@  discard block
 block discarded – undo
427 427
     $pane->shown = TRUE;
428 428
     $pane->access = array();
429 429
     $pane->configuration = array(
430
-      'override_title' => 0,
431
-      'override_title_text' => '',
430
+        'override_title' => 0,
431
+        'override_title_text' => '',
432 432
     );
433 433
     $pane->cache = array();
434 434
     $pane->style = array(
435
-      'settings' => NULL,
435
+        'settings' => NULL,
436 436
     );
437 437
     $pane->css = array(
438
-      'css_id' => '',
439
-      'css_class' => 'panel-secondary container shadow',
438
+        'css_id' => '',
439
+        'css_class' => 'panel-secondary container shadow',
440 440
     );
441 441
     $pane->extras = array();
442 442
     $pane->position = 0;
@@ -450,23 +450,23 @@  discard block
 block discarded – undo
450 450
     $pane->shown = TRUE;
451 451
     $pane->access = array();
452 452
     $pane->configuration = array(
453
-      'admin_title' => 'Team summary',
454
-      'title' => '',
455
-      'body' => '<?php
453
+        'admin_title' => 'Team summary',
454
+        'title' => '',
455
+        'body' => '<?php
456 456
 if (module_exists(\'boincteam\')) {
457 457
   echo boincteam_dashboard_panel(%user:uid);
458 458
 }
459 459
 ?>',
460
-      'format' => '3',
461
-      'substitute' => 1,
460
+        'format' => '3',
461
+        'substitute' => 1,
462 462
     );
463 463
     $pane->cache = array();
464 464
     $pane->style = array(
465
-      'settings' => NULL,
465
+        'settings' => NULL,
466 466
     );
467 467
     $pane->css = array(
468
-      'css_id' => 'team-dashboard-pane',
469
-      'css_class' => 'panel-secondary container shadow',
468
+        'css_id' => 'team-dashboard-pane',
469
+        'css_class' => 'panel-secondary container shadow',
470 470
     );
471 471
     $pane->extras = array();
472 472
     $pane->position = 1;
@@ -480,9 +480,9 @@  discard block
 block discarded – undo
480 480
     $pane->shown = TRUE;
481 481
     $pane->access = array();
482 482
     $pane->configuration = array(
483
-      'admin_title' => 'User activity summary',
484
-      'title' => '',
485
-      'body' => '<?php
483
+        'admin_title' => 'User activity summary',
484
+        'title' => '',
485
+        'body' => '<?php
486 486
 
487 487
 $uid = arg(1);
488 488
 $account = user_load($uid);
@@ -490,16 +490,16 @@  discard block
 block discarded – undo
490 490
 echo \'<div class="item-count-wrapper"><div class="item-count">\' . $account->post_count . \'</div></div>\';
491 491
 
492 492
 ?>',
493
-      'format' => '3',
494
-      'substitute' => 0,
493
+        'format' => '3',
494
+        'substitute' => 0,
495 495
     );
496 496
     $pane->cache = array();
497 497
     $pane->style = array(
498
-      'settings' => NULL,
498
+        'settings' => NULL,
499 499
     );
500 500
     $pane->css = array(
501
-      'css_id' => '',
502
-      'css_class' => 'panel-secondary container shadow',
501
+        'css_id' => '',
502
+        'css_class' => 'panel-secondary container shadow',
503 503
     );
504 504
     $pane->extras = array();
505 505
     $pane->position = 2;
@@ -513,31 +513,31 @@  discard block
 block discarded – undo
513 513
     $pane->shown = TRUE;
514 514
     $pane->access = array();
515 515
     $pane->configuration = array(
516
-      'override_pager_settings' => 0,
517
-      'use_pager' => 0,
518
-      'nodes_per_page' => '6',
519
-      'pager_id' => '',
520
-      'offset' => '0',
521
-      'more_link' => 0,
522
-      'feed_icons' => 0,
523
-      'panel_args' => 0,
524
-      'link_to_view' => 0,
525
-      'args' => '',
526
-      'url' => '',
527
-      'display' => 'block_1',
528
-      'context' => array(
516
+        'override_pager_settings' => 0,
517
+        'use_pager' => 0,
518
+        'nodes_per_page' => '6',
519
+        'pager_id' => '',
520
+        'offset' => '0',
521
+        'more_link' => 0,
522
+        'feed_icons' => 0,
523
+        'panel_args' => 0,
524
+        'link_to_view' => 0,
525
+        'args' => '',
526
+        'url' => '',
527
+        'display' => 'block_1',
528
+        'context' => array(
529 529
         0 => 'argument_uid_1.uid',
530
-      ),
531
-      'override_title' => 0,
532
-      'override_title_text' => '',
530
+        ),
531
+        'override_title' => 0,
532
+        'override_title_text' => '',
533 533
     );
534 534
     $pane->cache = array();
535 535
     $pane->style = array(
536
-      'settings' => NULL,
536
+        'settings' => NULL,
537 537
     );
538 538
     $pane->css = array(
539
-      'css_id' => '',
540
-      'css_class' => 'panel-secondary container shadow',
539
+        'css_id' => '',
540
+        'css_class' => 'panel-secondary container shadow',
541 541
     );
542 542
     $pane->extras = array();
543 543
     $pane->position = 3;
@@ -551,66 +551,66 @@  discard block
 block discarded – undo
551 551
     $pane->shown = TRUE;
552 552
     $pane->access = array();
553 553
     $pane->configuration = array(
554
-      'admin_title' => 'Project list',
555
-      'title' => 'Projects',
556
-      'body' => '<?php echo boincuser_get_projects_table(%user:uid); ?>',
557
-      'format' => '3',
558
-      'substitute' => 1,
554
+        'admin_title' => 'Project list',
555
+        'title' => 'Projects',
556
+        'body' => '<?php echo boincuser_get_projects_table(%user:uid); ?>',
557
+        'format' => '3',
558
+        'substitute' => 1,
559 559
     );
560 560
     $pane->cache = array();
561 561
     $pane->style = array(
562
-      'settings' => NULL,
562
+        'settings' => NULL,
563 563
     );
564 564
     $pane->css = array(
565
-      'css_id' => '',
566
-      'css_class' => 'panel-secondary container shadow',
565
+        'css_id' => '',
566
+        'css_class' => 'panel-secondary container shadow',
567 567
     );
568 568
     $pane->extras = array();
569 569
     $pane->position = 4;
570 570
     $display->content['new-6'] = $pane;
571 571
     $display->panels['sidebar_first'][4] = 'new-6';
572
-  $display->hide_title = PANELS_TITLE_FIXED;
573
-  $display->title_pane = '0';
574
-  $handler->conf['display'] = $display;
575
-  $page->default_handlers[$handler->name] = $handler;
576
-  $pages['boinc_user'] = $page;
572
+    $display->hide_title = PANELS_TITLE_FIXED;
573
+    $display->title_pane = '0';
574
+    $handler->conf['display'] = $display;
575
+    $page->default_handlers[$handler->name] = $handler;
576
+    $pages['boinc_user'] = $page;
577 577
 
578
-  $page = new stdClass;
579
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
580
-  $page->api_version = 1;
581
-  $page->name = 'home';
582
-  $page->task = 'page';
583
-  $page->admin_title = 'Home page';
584
-  $page->admin_description = '';
585
-  $page->path = 'home';
586
-  $page->access = array(
578
+    $page = new stdClass;
579
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
580
+    $page->api_version = 1;
581
+    $page->name = 'home';
582
+    $page->task = 'page';
583
+    $page->admin_title = 'Home page';
584
+    $page->admin_description = '';
585
+    $page->path = 'home';
586
+    $page->access = array(
587 587
     'type' => 'none',
588 588
     'settings' => NULL,
589
-  );
590
-  $page->menu = array(
589
+    );
590
+    $page->menu = array(
591 591
     'type' => 'normal',
592 592
     'title' => 'Home',
593 593
     'name' => 'navigation',
594 594
     'weight' => '0',
595 595
     'parent' => array(
596
-      'type' => 'none',
597
-      'title' => '',
598
-      'name' => 'navigation',
599
-      'weight' => '0',
596
+        'type' => 'none',
597
+        'title' => '',
598
+        'name' => 'navigation',
599
+        'weight' => '0',
600 600
     ),
601
-  );
602
-  $page->arguments = array();
603
-  $page->conf = array();
604
-  $page->default_handlers = array();
605
-  $handler = new stdClass;
606
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
607
-  $handler->api_version = 1;
608
-  $handler->name = 'page_home_panel_context';
609
-  $handler->task = 'page';
610
-  $handler->subtask = 'home';
611
-  $handler->handler = 'panel_context';
612
-  $handler->weight = 0;
613
-  $handler->conf = array(
601
+    );
602
+    $page->arguments = array();
603
+    $page->conf = array();
604
+    $page->default_handlers = array();
605
+    $handler = new stdClass;
606
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
607
+    $handler->api_version = 1;
608
+    $handler->name = 'page_home_panel_context';
609
+    $handler->task = 'page';
610
+    $handler->subtask = 'home';
611
+    $handler->handler = 'panel_context';
612
+    $handler->weight = 0;
613
+    $handler->conf = array(
614 614
     'title' => 'Landing page',
615 615
     'no_blocks' => FALSE,
616 616
     'pipeline' => 'ipe',
@@ -618,23 +618,23 @@  discard block
 block discarded – undo
618 618
     'css' => '',
619 619
     'contexts' => array(),
620 620
     'relationships' => array(),
621
-  );
622
-  $display = new panels_display;
623
-  $display->layout = 'one_sidebar_second';
624
-  $display->layout_settings = array();
625
-  $display->panel_settings = array(
621
+    );
622
+    $display = new panels_display;
623
+    $display->layout = 'one_sidebar_second';
624
+    $display->layout_settings = array();
625
+    $display->panel_settings = array(
626 626
     'style_settings' => array(
627
-      'default' => NULL,
628
-      'content' => NULL,
629
-      'sidebar_first' => NULL,
627
+        'default' => NULL,
628
+        'content' => NULL,
629
+        'sidebar_first' => NULL,
630 630
     ),
631
-  );
632
-  $display->cache = array();
633
-  $display->title = '';
634
-  $display->storage_type = 'page_manager';
635
-  $display->storage_id = 'page_home_panel_context';
636
-  $display->content = array();
637
-  $display->panels = array();
631
+    );
632
+    $display->cache = array();
633
+    $display->title = '';
634
+    $display->storage_type = 'page_manager';
635
+    $display->storage_id = 'page_home_panel_context';
636
+    $display->content = array();
637
+    $display->panels = array();
638 638
     $pane = new stdClass;
639 639
     $pane->pid = 'new-1';
640 640
     $pane->panel = 'content';
@@ -642,22 +642,22 @@  discard block
 block discarded – undo
642 642
     $pane->subtype = 'custom';
643 643
     $pane->shown = TRUE;
644 644
     $pane->access = array(
645
-      'plugins' => array(),
645
+        'plugins' => array(),
646 646
     );
647 647
     $pane->configuration = array(
648
-      'admin_title' => 'BOINC overview',
649
-      'title' => '',
650
-      'body' => '<?php print boincuser_home_page(); ?>',
651
-      'format' => '3',
652
-      'substitute' => TRUE,
648
+        'admin_title' => 'BOINC overview',
649
+        'title' => '',
650
+        'body' => '<?php print boincuser_home_page(); ?>',
651
+        'format' => '3',
652
+        'substitute' => TRUE,
653 653
     );
654 654
     $pane->cache = array();
655 655
     $pane->style = array(
656
-      'settings' => NULL,
656
+        'settings' => NULL,
657 657
     );
658 658
     $pane->css = array(
659
-      'css_id' => '',
660
-      'css_class' => 'panel-primary container shadow',
659
+        'css_id' => '',
660
+        'css_class' => 'panel-primary container shadow',
661 661
     );
662 662
     $pane->extras = array();
663 663
     $pane->position = 0;
@@ -671,16 +671,16 @@  discard block
 block discarded – undo
671 671
     $pane->shown = TRUE;
672 672
     $pane->access = array();
673 673
     $pane->configuration = array(
674
-      'override_title' => 0,
675
-      'override_title_text' => '',
674
+        'override_title' => 0,
675
+        'override_title_text' => '',
676 676
     );
677 677
     $pane->cache = array();
678 678
     $pane->style = array(
679
-      'settings' => NULL,
679
+        'settings' => NULL,
680 680
     );
681 681
     $pane->css = array(
682
-      'css_id' => '',
683
-      'css_class' => 'panel-secondary container shadow balance-height-front no-resize',
682
+        'css_id' => '',
683
+        'css_class' => 'panel-secondary container shadow balance-height-front no-resize',
684 684
     );
685 685
     $pane->extras = array();
686 686
     $pane->position = 0;
@@ -694,39 +694,39 @@  discard block
 block discarded – undo
694 694
     $pane->shown = TRUE;
695 695
     $pane->access = array();
696 696
     $pane->configuration = array(
697
-      'override_pager_settings' => 1,
698
-      'use_pager' => 0,
699
-      'nodes_per_page' => '2',
700
-      'pager_id' => '',
701
-      'offset' => '0',
702
-      'more_link' => 1,
703
-      'feed_icons' => 1,
704
-      'panel_args' => 0,
705
-      'link_to_view' => 0,
706
-      'args' => '',
707
-      'url' => '',
708
-      'display' => 'page_2',
709
-      'override_title' => 1,
710
-      'override_title_text' => '',
697
+        'override_pager_settings' => 1,
698
+        'use_pager' => 0,
699
+        'nodes_per_page' => '2',
700
+        'pager_id' => '',
701
+        'offset' => '0',
702
+        'more_link' => 1,
703
+        'feed_icons' => 1,
704
+        'panel_args' => 0,
705
+        'link_to_view' => 0,
706
+        'args' => '',
707
+        'url' => '',
708
+        'display' => 'page_2',
709
+        'override_title' => 1,
710
+        'override_title_text' => '',
711 711
     );
712 712
     $pane->cache = array();
713 713
     $pane->style = array(
714
-      'settings' => NULL,
714
+        'settings' => NULL,
715 715
     );
716 716
     $pane->css = array(
717
-      'css_id' => '',
718
-      'css_class' => 'panel-secondary container shadow balance-height-front',
717
+        'css_id' => '',
718
+        'css_class' => 'panel-secondary container shadow balance-height-front',
719 719
     );
720 720
     $pane->extras = array();
721 721
     $pane->position = 1;
722 722
     $display->content['new-3'] = $pane;
723 723
     $display->panels['sidebar_first'][1] = 'new-3';
724
-  $display->hide_title = PANELS_TITLE_NONE;
725
-  $display->title_pane = '0';
726
-  $handler->conf['display'] = $display;
727
-  $page->default_handlers[$handler->name] = $handler;
728
-  $pages['home'] = $page;
724
+    $display->hide_title = PANELS_TITLE_NONE;
725
+    $display->title_pane = '0';
726
+    $handler->conf['display'] = $display;
727
+    $page->default_handlers[$handler->name] = $handler;
728
+    $pages['home'] = $page;
729 729
 
730
- return $pages;
730
+    return $pages;
731 731
 
732 732
 }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/themes/boinc/template.php 1 patch
Indentation   +321 added lines, -321 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
  * Implementation of HOOK_theme().
68 68
  */
69 69
 function boinc_theme(&$existing, $type, $theme, $path) {
70
-  $hooks = zen_theme($existing, $type, $theme, $path);
71
-  // Add your theme hooks like this:
72
-  /*
70
+    $hooks = zen_theme($existing, $type, $theme, $path);
71
+    // Add your theme hooks like this:
72
+    /*
73 73
   $hooks['hook_name_here'] = array( // Details go here );
74 74
   */
75
-  // @TODO: Needs detailed comments. Patches welcome!
76
-  return $hooks;
75
+    // @TODO: Needs detailed comments. Patches welcome!
76
+    return $hooks;
77 77
 }
78 78
 
79 79
 
@@ -81,44 +81,44 @@  discard block
 block discarded – undo
81 81
  * Adjust the rendering of the menu
82 82
  */
83 83
 function boinc_links__system_main_menu($links, $menu, $element) {
84
-  $html = '';
85
-  $html .= '<ul id="' . $menu['id'] . '" class="' . $menu['class'] . '">' . "\n";
86
-  $item_count = count($links);
87
-  $i = 1;
88
-  foreach ($links as $key => $link) {
84
+    $html = '';
85
+    $html .= '<ul id="' . $menu['id'] . '" class="' . $menu['class'] . '">' . "\n";
86
+    $item_count = count($links);
87
+    $i = 1;
88
+    foreach ($links as $key => $link) {
89 89
     $classes = array($key);
90 90
     if (strpos($key, 'active-trail')) $classes[] = 'active';
91 91
     if ($i == 1) $classes[] = 'first';
92 92
     if ($i == $item_count) $classes[] = 'last';
93 93
     $html .= '<li class="' . implode(' ', $classes) .'">';
94 94
     if ($link['title'] == 'Home') {
95
-      $link['title'] = bts('Home', array(), NULL, 'boinc:menu-link');
95
+        $link['title'] = bts('Home', array(), NULL, 'boinc:menu-link');
96 96
     }
97 97
     if (module_exists('privatemsg')) {
98
-      // Put a new mail notification next to the Account menu item
99
-      if ($link['href'] == 'dashboard') {
98
+        // Put a new mail notification next to the Account menu item
99
+        if ($link['href'] == 'dashboard') {
100 100
         $item_count = privatemsg_unread_count();
101 101
         if ($item_count) {
102
-          $link['title'] .= '</a> <a href="' . url('messages') . '" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>';
103
-          $link['html'] = TRUE;
104
-          $link['attributes']['class'] = 'compound';
102
+            $link['title'] .= '</a> <a href="' . url('messages') . '" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>';
103
+            $link['html'] = TRUE;
104
+            $link['attributes']['class'] = 'compound';
105
+        }
105 106
         }
106
-      }
107 107
     }
108 108
     // Put a count of items on the Moderation menu item
109 109
     if ($link['href'] == 'moderate') {
110
-      $item_count = boincuser_moderation_queue_count();
111
-      if ($item_count) {
110
+        $item_count = boincuser_moderation_queue_count();
111
+        if ($item_count) {
112 112
         $link['title'] .= ' <div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>';
113 113
         $link['html'] = TRUE;
114
-      }
114
+        }
115 115
     }
116 116
     $html .= l($link['title'], $link['href'], $link);
117 117
     $html .= '</li>';
118 118
     $i++;
119
-  }
120
-  $html .= '</ul>' . "\n";
121
-  return $html;
119
+    }
120
+    $html .= '</ul>' . "\n";
121
+    return $html;
122 122
 }
123 123
 
124 124
 
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
  * Remove undesired local task tabs
127 127
  */
128 128
 function boinc_menu_local_task($link, $active = FALSE) {
129
-  if (strpos($link, 'admin/build/pages') !== FALSE
129
+    if (strpos($link, 'admin/build/pages') !== FALSE
130 130
   AND strpos($link, 'Edit Panel')) {
131 131
     // Remove Edit Panel tab
132 132
     return '';
133
-  }
134
-  else {
133
+    }
134
+    else {
135 135
     return '<li '. ($active ? 'class="active" ' : '') .'>'. $link ."</li>\n";
136
-  }
136
+    }
137 137
 }
138 138
 
139 139
 
@@ -169,103 +169,103 @@  discard block
 block discarded – undo
169 169
  *   The name of the template being rendered ("page" in this case.)
170 170
  */
171 171
 function boinc_preprocess_page(&$vars, $hook) {
172
-  // Responsive Design: Add viewport meta tag to HTML head
173
-  drupal_set_html_head('<meta name="viewport" content="width=device-width, initial-scale=1.0" />');
174
-  $vars['head'] = drupal_get_html_head();
175
-  //dpm($vars['head'], "preprocess (all) vars[head]");
176
-
177
-  // Expose comments to template files; this is needed so that comments can be
178
-  // rendered in locations other than directly below the node content
179
-  $vars['comments'] = $vars['comment_form'] = '';
180
-  if (module_exists('comment') && isset($vars['node'])) {
172
+    // Responsive Design: Add viewport meta tag to HTML head
173
+    drupal_set_html_head('<meta name="viewport" content="width=device-width, initial-scale=1.0" />');
174
+    $vars['head'] = drupal_get_html_head();
175
+    //dpm($vars['head'], "preprocess (all) vars[head]");
176
+
177
+    // Expose comments to template files; this is needed so that comments can be
178
+    // rendered in locations other than directly below the node content
179
+    $vars['comments'] = $vars['comment_form'] = '';
180
+    if (module_exists('comment') && isset($vars['node'])) {
181 181
     $vars['comments'] = comment_render($vars['node']);
182 182
     $vars['comment_form'] = drupal_get_form('comment_form', array('nid' => $vars['node']->nid));
183
-  }
183
+    }
184 184
 
185
-  // Determine locale region code so the correct flag is displayed in footer
186
-  global $language;
187
-  global $theme_path;
188
-  $locality = $language->language;
189
-  if (strpos($language->language, '-')) {
185
+    // Determine locale region code so the correct flag is displayed in footer
186
+    global $language;
187
+    global $theme_path;
188
+    $locality = $language->language;
189
+    if (strpos($language->language, '-')) {
190 190
     $flag_icon = "{$theme_path}/images/flags/{$language->language}.png";
191 191
     if (!file_exists($flag_icon)) {
192
-      $lang_code = explode('-', $language->language);
193
-      $locality = $lang_code[0];
192
+        $lang_code = explode('-', $language->language);
193
+        $locality = $lang_code[0];
194 194
     }
195
-  }
196
-  // If there is no language set for some reason, default to English (en).
197
-  if (empty($locality)) {
195
+    }
196
+    // If there is no language set for some reason, default to English (en).
197
+    if (empty($locality)) {
198 198
     $locality = "en";
199
-  }
200
-  $vars['flag_path'] = base_path() . path_to_theme() . "/images/flags/{$locality}.png";
199
+    }
200
+    $vars['flag_path'] = base_path() . path_to_theme() . "/images/flags/{$locality}.png";
201 201
 
202
-  $server_status_url = variable_get('boinc_server_status_url', '');
203
-  if (!$server_status_url) {
202
+    $server_status_url = variable_get('boinc_server_status_url', '');
203
+    if (!$server_status_url) {
204 204
     $server_status_url = 'server_status.php';
205
-  }
206
-  $vars['server_status_url'] = $server_status_url;
205
+    }
206
+    $vars['server_status_url'] = $server_status_url;
207 207
 
208
-  $app_list_url = variable_get('boinc_app_list_url', '');
209
-  if (!$app_list_url) {
208
+    $app_list_url = variable_get('boinc_app_list_url', '');
209
+    if (!$app_list_url) {
210 210
     $app_list_url = 'apps.php';
211
-  }
212
-  $vars['app_list_url'] = $app_list_url;
213
-
214
-  // Remove title from certain pages using URL.
215
-  // This is a kludge to remove the title of the page but not the
216
-  // "head_title" which is placed in the HTML <head> section. Most of
217
-  // these pages are defined in the Page Manager module.
218
-  // See: https://dev.gridrepublic.org/browse/DBOINC-65
219
-  if (arg(0) == 'search') {
211
+    }
212
+    $vars['app_list_url'] = $app_list_url;
213
+
214
+    // Remove title from certain pages using URL.
215
+    // This is a kludge to remove the title of the page but not the
216
+    // "head_title" which is placed in the HTML <head> section. Most of
217
+    // these pages are defined in the Page Manager module.
218
+    // See: https://dev.gridrepublic.org/browse/DBOINC-65
219
+    if (arg(0) == 'search') {
220 220
     unset($vars['title']);
221
-  }
222
-  else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) {
221
+    }
222
+    else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) {
223 223
     unset($vars['title']);
224
-  }
225
-  else if ( (arg(0)=='account') AND (arg(1)=='profile') ) {
224
+    }
225
+    else if ( (arg(0)=='account') AND (arg(1)=='profile') ) {
226 226
     unset($vars['title']);
227
-  }
228
-  else if ( (arg(0)=='dashboard') ) {
227
+    }
228
+    else if ( (arg(0)=='dashboard') ) {
229 229
     unset($vars['title']);
230
-  }
231
-  else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) {
230
+    }
231
+    else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) {
232 232
     unset($vars['title']);
233
-  }
233
+    }
234 234
 
235
-  // Apply classes to tabs to allow for better styling options
236
-  $tabs = explode("\n", $vars['tabs']);
237
-  array_pop($tabs);
238
-  end($tabs);
239
-  $last_key = key($tabs);
240
-
241
-  foreach ($tabs as $key => &$tab) {
242
-      if (strpos($tab, 'li class=')) {
243
-          if ($key == 0) {
244
-              $tab = str_replace('li class="', 'li class="first ', $tab);
245
-          }
246
-          if ($key == $last_key) {
247
-              $tab = str_replace('li class="', 'li class="last ', $tab) . '</ul>';
248
-          }
249
-      }
250
-      elseif (strpos($tab, 'li ')) {
251
-          if ($key == 0) {
252
-              $tab = str_replace('li ', 'li class="first" ', $tab);
253
-          }
254
-          if ($key == $last_key) {
255
-              $tab = str_replace('li ', 'li class="last" ', $tab) . '</ul>';
256
-          }
257
-      }
258
-  }
259
-  $vars['tabs'] = implode("\n", $tabs);
235
+    // Apply classes to tabs to allow for better styling options
236
+    $tabs = explode("\n", $vars['tabs']);
237
+    array_pop($tabs);
238
+    end($tabs);
239
+    $last_key = key($tabs);
240
+
241
+    foreach ($tabs as $key => &$tab) {
242
+        if (strpos($tab, 'li class=')) {
243
+            if ($key == 0) {
244
+                $tab = str_replace('li class="', 'li class="first ', $tab);
245
+            }
246
+            if ($key == $last_key) {
247
+                $tab = str_replace('li class="', 'li class="last ', $tab) . '</ul>';
248
+            }
249
+        }
250
+        elseif (strpos($tab, 'li ')) {
251
+            if ($key == 0) {
252
+                $tab = str_replace('li ', 'li class="first" ', $tab);
253
+            }
254
+            if ($key == $last_key) {
255
+                $tab = str_replace('li ', 'li class="last" ', $tab) . '</ul>';
256
+            }
257
+        }
258
+    }
259
+    $vars['tabs'] = implode("\n", $tabs);
260 260
 
261
-  // Get the main menu but only for the branch the page is on.
262
-  $vars['menu_tree_onlyactive'] = menu_tree('primary-links');
261
+    // Get the main menu but only for the branch the page is on.
262
+    $vars['menu_tree_onlyactive'] = menu_tree('primary-links');
263 263
 
264
-  // Create tertiary menu
265
-  $vars['tertiary_links'] = menu_navigation_links(variable_get('menu_primary_links_source', 'primary-links'), 2);
264
+    // Create tertiary menu
265
+    $vars['tertiary_links'] = menu_navigation_links(variable_get('menu_primary_links_source', 'primary-links'), 2);
266 266
 
267
-  // Create action links
268
-  $vars['action_links'] = _boinc_action_links();
267
+    // Create action links
268
+    $vars['action_links'] = _boinc_action_links();
269 269
 }
270 270
 
271 271
 /**
@@ -278,79 +278,79 @@  discard block
 block discarded – undo
278 278
  */
279 279
 function boinc_preprocess_node(&$vars, $hook) {
280 280
 
281
-  //$vars['sample_variable'] = t('Lorem ipsum.');
281
+    //$vars['sample_variable'] = t('Lorem ipsum.');
282 282
 
283
-  // Detach subscribe link from the links list. Subscribe link will be placed
284
-  // on page separately from links.
285
-  if (!empty($vars['node']->links['flag-subscriptions']['title'])) {
283
+    // Detach subscribe link from the links list. Subscribe link will be placed
284
+    // on page separately from links.
285
+    if (!empty($vars['node']->links['flag-subscriptions']['title'])) {
286 286
     $vars['subscribe_link'] = $vars['node']->links['flag-subscriptions']['title'];
287 287
     unset($vars['node']->links['flag-subscriptions']);
288
-  }
288
+    }
289 289
 
290
-  // Optionally, run node-type-specific preprocess functions, like
291
-  // boinc_preprocess_node_page() or boinc_preprocess_node_story().
292
-  $function = __FUNCTION__ . '_' . $vars['node']->type;
293
-  if (function_exists($function)) {
290
+    // Optionally, run node-type-specific preprocess functions, like
291
+    // boinc_preprocess_node_page() or boinc_preprocess_node_story().
292
+    $function = __FUNCTION__ . '_' . $vars['node']->type;
293
+    if (function_exists($function)) {
294 294
     $function($vars, $hook);
295
-  }
295
+    }
296 296
 }
297 297
 
298 298
 /**
299 299
  * Preprocessing for forum lists
300 300
  */
301 301
 function boinc_preprocess_forums(&$vars, $hook) {
302
-  // Add a link to mark all forums as read
303
-  module_load_include('inc', 'forum_tweaks', 'includes/mark-read');
304
-  forum_tweaks_get_mark_read_link($vars['tid'], $vars['links']);
305
-  if (!$vars['parents']) {
302
+    // Add a link to mark all forums as read
303
+    module_load_include('inc', 'forum_tweaks', 'includes/mark-read');
304
+    forum_tweaks_get_mark_read_link($vars['tid'], $vars['links']);
305
+    if (!$vars['parents']) {
306 306
     // Remove the "Post new forum topic" link from the top level forum list
307 307
     unset($vars['links']['forum']);
308 308
     // Add a link to manage subscriptions for the user
309 309
     $vars['links']['subscriptions'] = array(
310
-      'title' => bts('Manage subscriptions', array(), NULL, 'boinc:forum-footer'),
311
-      'href' => 'account/prefs/subscriptions',
310
+        'title' => bts('Manage subscriptions', array(), NULL, 'boinc:forum-footer'),
311
+        'href' => 'account/prefs/subscriptions',
312 312
     );
313
-  }
313
+    }
314 314
 }
315 315
 
316 316
 /**
317 317
  * Preprocessing for forum type nodes
318 318
  */
319 319
 function boinc_preprocess_node_forum(&$vars, $hook) {
320
-  global $language;
321
-  global $user;
320
+    global $language;
321
+    global $user;
322 322
 
323
-  // Locality
324
-  $vars['locality'] = $language->language;
323
+    // Locality
324
+    $vars['locality'] = $language->language;
325 325
 
326
-  // Get the author of the node
327
-  $account = user_load($vars['uid']);
328
-  $comments_per_page = ($user->comments_per_page) ? $user->comments_per_page : variable_get("comment_default_per_page_{$vars['node']->type}", 50);
326
+    // Get the author of the node
327
+    $account = user_load($vars['uid']);
328
+    $comments_per_page = ($user->comments_per_page) ? $user->comments_per_page : variable_get("comment_default_per_page_{$vars['node']->type}", 50);
329 329
 
330
-  // Add signature
331
-  $vars['signature'] = check_markup($account->signature, $vars['node']->format);
330
+    // Add signature
331
+    $vars['signature'] = check_markup($account->signature, $vars['node']->format);
332 332
 
333
-  // Show signatures based on user preference
334
-  $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE;
333
+    // Show signatures based on user preference
334
+    $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE;
335 335
 
336
-  // Expose comment sort order so that the template can put the topic node
337
-  // content (i.e. initial post) at the very end if "Newest post first" is the
338
-  // preference used by this user
339
-  $vars['oldest_post_first'] = ($user->sort != 1) ? TRUE : FALSE;
340
-  $vars['node']->comment = 0;
336
+    // Expose comment sort order so that the template can put the topic node
337
+    // content (i.e. initial post) at the very end if "Newest post first" is the
338
+    // preference used by this user
339
+    $vars['oldest_post_first'] = ($user->sort != 1) ? TRUE : FALSE;
340
+    $vars['node']->comment = 0;
341 341
 
342
-  $vars['first_page'] = (!isset($_GET['page']) OR ($_GET['page'] < 1));
343
-  $page_count = max(ceil($vars['comment_count'] / $comments_per_page), 1);
344
-  $vars['last_page'] = ($page_count == 1 OR ($page_count > 1 AND $_GET['page'] == $page_count - 1));
342
+    $vars['first_page'] = (!isset($_GET['page']) OR ($_GET['page'] < 1));
343
+    $page_count = max(ceil($vars['comment_count'] / $comments_per_page), 1);
344
+    $vars['last_page'] = ($page_count == 1 OR ($page_count > 1 AND $_GET['page'] == $page_count - 1));
345 345
 
346
-  $links = $vars['links'];
347
-  $moderator_links = array();
348
-  _boinc_create_moderator_links($links, $moderator_links);
349
-  $vars['links'] = $links;
350
-  $vars['moderator_links'] = $moderator_links;
346
+    $links = $vars['links'];
347
+    $moderator_links = array();
348
+    _boinc_create_moderator_links($links, $moderator_links);
349
+    $vars['links'] = $links;
350
+    $vars['moderator_links'] = $moderator_links;
351 351
 
352
-  // Ignore user link
353
-  $vars['ignore_link'] = _boinc_ignore_user_link('node', $vars['node']);
352
+    // Ignore user link
353
+    $vars['ignore_link'] = _boinc_ignore_user_link('node', $vars['node']);
354 354
 }
355 355
 
356 356
 
@@ -371,48 +371,48 @@  discard block
 block discarded – undo
371 371
  *   The name of the template being rendered ("comment" in this case.)
372 372
  */
373 373
 function boinc_preprocess_comment(&$vars, $hook) {
374
-  global $language;
375
-  global $user;
374
+    global $language;
375
+    global $user;
376 376
 
377
-  // Locality
378
-  $vars['locality'] = $language->language;
377
+    // Locality
378
+    $vars['locality'] = $language->language;
379 379
 
380
-  // Show signatures based on user preference
381
-  $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE;
380
+    // Show signatures based on user preference
381
+    $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE;
382 382
 
383
-  $links = $vars['links'];
384
-  $moderator_links = array();
385
-  _boinc_create_moderator_links($links, $moderator_links);
386
-  $vars['links'] = $links;
387
-  $vars['moderator_links'] = $moderator_links;
383
+    $links = $vars['links'];
384
+    $moderator_links = array();
385
+    _boinc_create_moderator_links($links, $moderator_links);
386
+    $vars['links'] = $links;
387
+    $vars['moderator_links'] = $moderator_links;
388 388
 
389
-  // Ignore user link
390
-  $vars['ignore_link'] = _boinc_ignore_user_link('comment', $vars['comment']);
389
+    // Ignore user link
390
+    $vars['ignore_link'] = _boinc_ignore_user_link('comment', $vars['comment']);
391 391
 }
392 392
 
393 393
 /**
394 394
  *
395 395
  */
396 396
 function boinc_preprocess_forum_topic_list(&$variables) {
397
-  if (!empty($variables['topics'])) {
397
+    if (!empty($variables['topics'])) {
398 398
     foreach ($variables['topics'] as $id => $topic) {
399
-      if ($topic->new_replies) {
399
+        if ($topic->new_replies) {
400 400
         $cid = boincuser_get_first_unread_comment_id($topic->nid);
401 401
         if ($cid) {
402
-          $variables['topics'][$id]->new_url = url("goto/comment/{$cid}");
402
+            $variables['topics'][$id]->new_url = url("goto/comment/{$cid}");
403 403
         }
404 404
         else {
405
-          // User hasn't visited this topic before, so all replies are new...
406
-          $topic->new_replies = NULL;
405
+            // User hasn't visited this topic before, so all replies are new...
406
+            $topic->new_replies = NULL;
407
+        }
407 408
         }
408
-      }
409
-      // Use same logic in forum.module to change message if topic has
410
-      // moved. Changed link to match boinc path-added "community".
411
-      if ($topic->forum_tid != $variables['tid']) {
409
+        // Use same logic in forum.module to change message if topic has
410
+        // moved. Changed link to match boinc path-added "community".
411
+        if ($topic->forum_tid != $variables['tid']) {
412 412
         $variables['topics'][$id]->message = l(t('This topic has been moved'), "community/forum/$topic->forum_tid");
413
-      }
413
+        }
414
+    }
414 415
     }
415
-  }
416 416
 }
417 417
 
418 418
 /**
@@ -425,79 +425,79 @@  discard block
 block discarded – undo
425 425
  */
426 426
 ///* -- Delete this line if you want to use this function
427 427
 function boinc_preprocess_views_view(&$vars, $hook) {
428
-  switch ($vars['name']) {
429
-  case 'boinc_account_computers':
428
+    switch ($vars['name']) {
429
+    case 'boinc_account_computers':
430 430
     switch ($vars['display_id']) {
431 431
     case 'page_1':
432 432
     case 'panel_pane_1':
433 433
       $vars['empty'] = boincwork_views_host_list_empty_text();
434
-      break;
434
+        break;
435 435
     case 'page_2':
436 436
       $vars['empty'] = boincwork_views_host_list_empty_text('active');
437
-      break;
437
+        break;
438 438
     case 'block_1':
439 439
       $vars['empty'] = boincwork_views_host_list_empty_text('preferences');
440
-      break;
440
+        break;
441 441
     default:
442 442
     }
443 443
     break;
444
-  case 'boinc_account_tasks_all':
444
+    case 'boinc_account_tasks_all':
445 445
     $vars['empty'] = boincwork_views_task_list_empty_text();
446 446
     break;
447
-  case 'boinc_friends':
447
+    case 'boinc_friends':
448 448
     if ($vars['display_id'] == 'block_1') {
449
-      $vars['header'] = boincuser_views_friends_block_header();
449
+        $vars['header'] = boincuser_views_friends_block_header();
450 450
     }
451 451
     break;
452
-  case 'boinc_host':
452
+    case 'boinc_host':
453 453
       $view = views_get_current_view();
454
-      if (!($view->result)) {
454
+        if (!($view->result)) {
455 455
         $vars['footer'] = '<h3>' . bts ('Host not found in database.', array(), NULL, 'boinc:host-details') . '</h3>';
456
-      }
456
+        }
457 457
     break;
458
-  case 'boinc_host_list':
458
+    case 'boinc_host_list':
459 459
     if ($vars['display_id'] == 'page_2') {
460
-     $vars['empty'] = boincwork_views_host_list_empty_text();
460
+        $vars['empty'] = boincwork_views_host_list_empty_text();
461 461
     }
462 462
     elseif ($vars['display_id'] == 'page_1') {
463
-      $vars['empty'] = boincwork_views_host_list_empty_text('active');
463
+        $vars['empty'] = boincwork_views_host_list_empty_text('active');
464 464
     }
465 465
     break;
466
-  case 'boinc_task':
466
+    case 'boinc_task':
467 467
     // Load view object (view data is not available in header / footer); execute view query
468 468
     $view = views_get_current_view();
469 469
     $view->execute();
470 470
     $result = reset($view->result);
471 471
 
472 472
     if ($result) {
473
-      // Display the stderr output in the footer
474
-      $vars['footer'] = '<h3>' . bts('Stderr output', array(), NULL, 'boinc:task-details-errorlog') .'</h3>';
475
-      $vars['footer'] .= '<pre>' . htmlspecialchars($result->result_stderr_out) . '</pre>';
473
+        // Display the stderr output in the footer
474
+        $vars['footer'] = '<h3>' . bts('Stderr output', array(), NULL, 'boinc:task-details-errorlog') .'</h3>';
475
+        $vars['footer'] .= '<pre>' . htmlspecialchars($result->result_stderr_out) . '</pre>';
476 476
     } else {
477
-      $vars['footer'] = '<h3>' . bts ('Task not found in database.', array(), NULL, 'boinc:task-details') . '</h3>';
477
+        $vars['footer'] = '<h3>' . bts ('Task not found in database.', array(), NULL, 'boinc:task-details') . '</h3>';
478 478
     }
479 479
     break;
480
-  case 'boinc_teams':
480
+    case 'boinc_teams':
481 481
     if ($vars['display_id'] == 'panel_pane_3') {
482
-      $team_id = arg(2);
483
-      $vars['header'] = boincteam_manage_admins_panel_header($team_id);
482
+        $team_id = arg(2);
483
+        $vars['header'] = boincteam_manage_admins_panel_header($team_id);
484 484
     }
485 485
     break;
486
-  case 'boinc_workunit':
486
+    case 'boinc_workunit':
487 487
     ob_start();
488 488
     // Get the workunit ID from the URL
489 489
     $result_id = arg(1);
490 490
     require_boinc(array('util','boinc_db'));
491 491
     $wu = BoincWorkunit::lookup_id($result_id);
492 492
     if ($wu) {
493
-      // Output from admin defined BOINC project-specific function
494
-      project_workunit($wu);
495
-      // Output of project_workunit() gets caught in the buffer
496
-      $vars['footer'] = ob_get_clean();
493
+        // Output from admin defined BOINC project-specific function
494
+        project_workunit($wu);
495
+        // Output of project_workunit() gets caught in the buffer
496
+        $vars['footer'] = ob_get_clean();
497 497
     } else {
498
-      $vars['footer'] = '<h3>' . bts ('Workunit not found in database.', array(), NULL, 'boinc:workunit-details') . '</h3>';
498
+        $vars['footer'] = '<h3>' . bts ('Workunit not found in database.', array(), NULL, 'boinc:workunit-details') . '</h3>';
499 499
     }
500
-  default:
500
+    default:
501 501
   }
502 502
 }
503 503
 // */
@@ -510,19 +510,19 @@  discard block
 block discarded – undo
510 510
  */
511 511
 ///* -- Delete this line if you want to use this function
512 512
 function boinc_preprocess_privatemsg_view(&$vars, $hook) {
513
-  $author_picture = '<div class="picture">';
514
-  $user_image = boincuser_get_user_profile_image($vars['message']['author']->uid);
515
-  if ($user_image) {
513
+    $author_picture = '<div class="picture">';
514
+    $user_image = boincuser_get_user_profile_image($vars['message']['author']->uid);
515
+    if ($user_image) {
516 516
     if (is_array($user_image) AND $user_image['image']['filepath']) {
517
-      $author_picture .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false);
517
+        $author_picture .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false);
518 518
     }
519 519
     elseif (is_string($user_image)) {
520
-      $author_picture .= '<img src="' . $user_image . '"/>';
520
+        $author_picture .= '<img src="' . $user_image . '"/>';
521 521
     }
522
-  }
523
-  $author_picture .= '</div>';
524
-  $vars['author_picture'] = $author_picture;
525
-  $vars['message_timestamp'] = date('j M Y G:i:s T', $vars['message']['timestamp']);
522
+    }
523
+    $author_picture .= '</div>';
524
+    $vars['author_picture'] = $author_picture;
525
+    $vars['message_timestamp'] = date('j M Y G:i:s T', $vars['message']['timestamp']);
526 526
 }
527 527
 // */
528 528
 
@@ -541,19 +541,19 @@  discard block
 block discarded – undo
541 541
 // */
542 542
 
543 543
 function boinc_preprocess_search_result(&$variables) {
544
-  global $language;
545
-  // Locality
546
-  $variables['locality'] = $language->language;
544
+    global $language;
545
+    // Locality
546
+    $variables['locality'] = $language->language;
547 547
 
548
-  // Change the format of the search result date/time in the info string.
549
-  if ($variables['result']['date']) {
548
+    // Change the format of the search result date/time in the info string.
549
+    if ($variables['result']['date']) {
550 550
     $variables['info_split']['date'] = date('j M Y G:i:s T', $variables['result']['date']);
551
-  }
552
-  $variables['info'] = implode(' - ', $variables['info_split']);
551
+    }
552
+    $variables['info'] = implode(' - ', $variables['info_split']);
553 553
 
554
-  $type = strtolower($variables['result']['bundle']);
555
-  switch ($type) {
556
-  case 'profile':
554
+    $type = strtolower($variables['result']['bundle']);
555
+    switch ($type) {
556
+    case 'profile':
557 557
   case 'user':
558 558
     $node = $variables['result']['node'];
559 559
     $variables['url'] = url('account/' . $node->is_uid);
@@ -561,20 +561,20 @@  discard block
 block discarded – undo
561 561
     $variables['user_image'] = boincuser_get_user_profile_image($node->is_uid);
562 562
     $variables['account'] = user_load($node->is_uid);
563 563
     break;
564
-  case 'team':
564
+    case 'team':
565 565
     $node = $variables['result']['node'];
566 566
     $variables['url'] = url('/community/teams/' . $node->entity_id);;
567 567
     break;
568
-  case 'forum':
568
+    case 'forum':
569 569
     $node = $variables['result']['node'];
570 570
     $drupalnode = node_load($node->entity_id);
571 571
     // Get the taxonomy for the node, creates a link to the parent forum
572 572
     $taxonomy = reset($drupalnode->taxonomy);
573 573
     if ($vocab = taxonomy_vocabulary_load($taxonomy->vid)) {
574
-      $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}");
574
+        $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}");
575 575
     }
576 576
     break;
577
-  case 'comment':
577
+    case 'comment':
578 578
     // Get the node id for this comment
579 579
     $nid = $variables['result']['fields']['tos_content_extra'];
580 580
     $drupalnode = node_load($nid);
@@ -585,21 +585,21 @@  discard block
 block discarded – undo
585 585
     // Get the taxonomy for the node, creates a link to the parent forum
586 586
     $taxonomy = reset($drupalnode->taxonomy);
587 587
     if ($vocab = taxonomy_vocabulary_load($taxonomy->vid)) {
588
-      $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}");
588
+        $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}");
589 589
     }
590
-  break;
591
-  default:
590
+    break;
591
+    default:
592 592
   }
593 593
 }
594 594
 
595 595
 // Remove the mess of text under the search form and don't display "no results"
596 596
 // if a search hasn't even been submitted
597 597
 function boinc_apachesolr_search_noresults() {
598
-  $message = bts('No results found...', array(), NULL, 'boinc:search-with-no-results');
599
-  if (!arg(2)) {
598
+    $message = bts('No results found...', array(), NULL, 'boinc:search-with-no-results');
599
+    if (!arg(2)) {
600 600
     $message = '';
601
-  }
602
-  return '<p>' . $message . '</p>';
601
+    }
602
+    return '<p>' . $message . '</p>';
603 603
 }
604 604
 
605 605
 /**
@@ -608,42 +608,42 @@  discard block
 block discarded – undo
608 608
  */
609 609
 function phptemplate_username($object) {
610 610
 
611
-  if ($object->uid && $object->name) {
611
+    if ($object->uid && $object->name) {
612 612
 
613 613
     // Show the profile name in general, not the username
614 614
     $name = user_load($object->uid)->boincuser_name;
615 615
 
616 616
     // Shorten the name when it is too long or it will break many tables.
617 617
     if (drupal_strlen($name) > 20) {
618
-      $name = drupal_substr($name, 0, 15) . '...';
618
+        $name = drupal_substr($name, 0, 15) . '...';
619 619
     }
620 620
 
621 621
     if (user_access('access user profiles')) {
622
-      $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table'))));
622
+        $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table'))));
623 623
     }
624 624
     else {
625
-      $output = check_plain($name);
625
+        $output = check_plain($name);
626 626
     }
627
-  }
628
-  else if ($object->name) {
627
+    }
628
+    else if ($object->name) {
629 629
     // Sometimes modules display content composed by people who are
630 630
     // not registered members of the site (e.g. mailing list or news
631 631
     // aggregator modules). This clause enables modules to display
632 632
     // the true author of the content.
633 633
     if (!empty($object->homepage)) {
634
-      $output = l($object->name, $object->homepage, array('attributes' => array('rel' => 'nofollow')));
634
+        $output = l($object->name, $object->homepage, array('attributes' => array('rel' => 'nofollow')));
635 635
     }
636 636
     else {
637
-      $output = check_plain($object->name);
637
+        $output = check_plain($object->name);
638 638
     }
639 639
 
640 640
     $output .= ' (' . bts('not verified', array(), NULL, 'boinc:user-not-found') . ')';
641
-  }
642
-  else {
641
+    }
642
+    else {
643 643
     $output = check_plain(variable_get('anonymous', bts('Anonymous', array(), NULL, 'boinc:anonymous-user')));
644
-  }
644
+    }
645 645
 
646
-  return $output;
646
+    return $output;
647 647
 }
648 648
 
649 649
 /**
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
  * "More information about formatting options"
652 652
  */
653 653
 function boinc_filter_tips_more_info () {
654
-  return '';
654
+    return '';
655 655
 }
656 656
 
657 657
 /**
@@ -669,19 +669,19 @@  discard block
 block discarded – undo
669 669
  *   An array containing the email [type] (mailkey), [subject] and [body].
670 670
  */
671 671
 function boinc_flag_friend_message_email($status, $flag, $recipient, $sender) {
672
-  $email = array();
673
-  $email['type'] = 'flag-friend';
674
-  // Reload the sender to get a full user object
675
-  $sender = user_load($sender->uid);
672
+    $email = array();
673
+    $email['type'] = 'flag-friend';
674
+    // Reload the sender to get a full user object
675
+    $sender = user_load($sender->uid);
676 676
 
677
-  switch ($status) {
677
+    switch ($status) {
678 678
     case FLAG_FRIEND_FLAGGED:
679 679
       // Sender accepted recipient's friend request
680 680
       $email['subject'] = bts('!name accepted your friend request [!site]', array(
681 681
         '!name' => $sender->boincuser_name,
682 682
         '!site' => variable_get('site_name', 'Drupal-BOINC'),
683 683
         ), NULL, 'boinc:friend-request-email');
684
-      $email['body'] = bts('!name confirmed you as a friend on !site.
684
+        $email['body'] = bts('!name confirmed you as a friend on !site.
685 685
 
686 686
 Follow this link to view his or her profile:
687 687
 !link
@@ -695,12 +695,12 @@  discard block
 block discarded – undo
695 695
         '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '',
696 696
         '!link' => url('account/'. $sender->uid, array('absolute' => TRUE)),
697 697
         ), array(), NULL, 'boinc:friend-request-email');
698
-      break;
698
+        break;
699 699
 
700 700
     case FLAG_FRIEND_PENDING:
701 701
       // Sender is requesting to be recipient's friend
702 702
       $email['subject'] = bts('Friend request from !name [!site]', array('!name' => $sender->boincuser_name, '!site' => variable_get('site_name', 'Drupal-BOINC')), NULL, 'boinc:friend-request-email');
703
-      $email['body'] = bts('!name added you as a friend on !site. You can approve or deny this request. Denying a request will not send a notification, but will remove the request from both of your accounts.
703
+        $email['body'] = bts('!name added you as a friend on !site. You can approve or deny this request. Denying a request will not send a notification, but will remove the request from both of your accounts.
704 704
 
705 705
 Follow the link below to view this request:
706 706
 !link
@@ -714,26 +714,26 @@  discard block
 block discarded – undo
714 714
         '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '',
715 715
         '!link' => url('goto/friend-requests', array('absolute' => TRUE)),
716 716
         ),
717
-      array(), NULL, 'boinc:friend-request-email');
718
-      break;
719
-  }
720
-  return $email;
717
+        array(), NULL, 'boinc:friend-request-email');
718
+        break;
719
+    }
720
+    return $email;
721 721
 }
722 722
 
723 723
 /**
724 724
  * Edit action links
725 725
  */
726 726
 function phptemplate_links($links, $attributes = array('class' => 'links')) {
727
-  if ($links){
727
+    if ($links){
728 728
     // Remove flag-subscriptions link. It will be placed elsewhere.
729 729
     if (isset($links['flag-subscriptions'])) {
730
-      unset($links['flag-subscriptions']);
730
+        unset($links['flag-subscriptions']);
731 731
     }
732 732
     // Reorder the links however you need them.
733 733
     $links = reorder_links($links, array('comment_edit','quote','comment_add','comment_reply','flag-abuse_comment','flag-abuse_node'), array('comment_delete'));
734 734
     // Use the built-in theme_links() function to format the $links array.
735 735
     return theme_links($links, $attributes);
736
-  }
736
+    }
737 737
 }
738 738
 
739 739
 /**
@@ -777,8 +777,8 @@  discard block
 block discarded – undo
777 777
  * That is to say, get rid of it and use the views-view-table.tpl.php template.
778 778
  */
779 779
 function boinc_tablesort_indicator($style) {
780
-  return '';
781
-  /*
780
+    return '';
781
+    /*
782 782
   if ($style == "asc") {
783 783
     return theme('image', 'misc/arrow-asc.png', t('sort icon'), t('sort ascending'));
784 784
   }
@@ -801,48 +801,48 @@  discard block
 block discarded – undo
801 801
  *
802 802
  */
803 803
 function _boinc_create_moderator_links(&$links, &$moderator_links) {
804
-  // If there are no links, then do nothing
805
-  if (empty($links)) {
804
+    // If there are no links, then do nothing
805
+    if (empty($links)) {
806 806
     return;
807
-  }
807
+    }
808 808
 
809
-  $alllinks = array();
810
-  $modlinks = array();
809
+    $alllinks = array();
810
+    $modlinks = array();
811 811
 
812
-  // Create an array of HTML elements from the $links string, keys
813
-  // are the class attribute for the <li> tags.
814
-  $dom = new DOMDocument;
815
-  $dom->loadHTML(mb_convert_encoding($links, 'HTML-ENTITIES', 'UTF-8'));
816
-  foreach($dom->getElementsByTagName('li') as $node) {
812
+    // Create an array of HTML elements from the $links string, keys
813
+    // are the class attribute for the <li> tags.
814
+    $dom = new DOMDocument;
815
+    $dom->loadHTML(mb_convert_encoding($links, 'HTML-ENTITIES', 'UTF-8'));
816
+    foreach($dom->getElementsByTagName('li') as $node) {
817 817
     $key = $node->getAttribute("class");
818 818
     $alllinks[$key] = $dom->saveHTML($node);
819
-  }
819
+    }
820 820
 
821
-  // Select classes to be placed into moderator links array
822
-  $selected_classes = array(
821
+    // Select classes to be placed into moderator links array
822
+    $selected_classes = array(
823 823
     "make_sticky", "make_unsticky",
824 824
     "lock", "unlock",
825 825
     "convert",
826 826
     "hide", "unhide",
827 827
     "comment_delete",
828
-  );
829
-  foreach(array_keys($alllinks) as $key1) {
828
+    );
829
+    foreach(array_keys($alllinks) as $key1) {
830 830
     // Select string up to first space, if present.
831 831
     $class1 = strtok($key1, ' ');
832 832
     if (in_array($class1, $selected_classes)) {
833
-      if (empty($modlinks)) {
833
+        if (empty($modlinks)) {
834 834
         _boinc_firstlink($alllinks[$key1]);
835
-      }
836
-      $modlinks[$key1] = $alllinks[$key1];
837
-      unset($alllinks[$key1]);
835
+        }
836
+        $modlinks[$key1] = $alllinks[$key1];
837
+        unset($alllinks[$key1]);
838 838
     }
839
-  }
840
-  // Convert the HTML arrays back into strings, wrap them in <ul>
841
-  // tags
842
-  $links = "<ul class=\"links\">".implode($alllinks)."</ul>";
843
-  $moderator_links = "<ul class=\"links\">".implode($modlinks)."</ul>";
839
+    }
840
+    // Convert the HTML arrays back into strings, wrap them in <ul>
841
+    // tags
842
+    $links = "<ul class=\"links\">".implode($alllinks)."</ul>";
843
+    $moderator_links = "<ul class=\"links\">".implode($modlinks)."</ul>";
844 844
 
845
-  return;
845
+    return;
846 846
 }
847 847
 
848 848
 /*
@@ -850,38 +850,38 @@  discard block
 block discarded – undo
850 850
  * attribute to class.
851 851
  */
852 852
 function _boinc_firstlink(&$alink) {
853
-  if (!empty($alink)) {
853
+    if (!empty($alink)) {
854 854
     $dom = new DomDocument;
855 855
     $dom->loadHTML(mb_convert_encoding($alink, 'HTML-ENTITIES', 'UTF-8'));
856 856
 
857 857
     $myli = $dom->getElementsByTagName('li');
858 858
     if ($myli->length>0) {
859
-      $newclasses = trim(($myli[0]->getAttribute("class"))." first");
860
-      $myli[0]->setAttribute("class", $newclasses);
861
-      $alink = $dom->saveHTML($myli[0]);
859
+        $newclasses = trim(($myli[0]->getAttribute("class"))." first");
860
+        $myli[0]->setAttribute("class", $newclasses);
861
+        $alink = $dom->saveHTML($myli[0]);
862
+    }
862 863
     }
863
-  }
864 864
 }
865 865
 
866 866
 /*
867 867
  * Private function to generate the action links
868 868
  */
869 869
 function _boinc_action_links() {
870
-  global $user;
871
-  global $base_path;
870
+    global $user;
871
+    global $base_path;
872 872
 
873
-  $output = '<ul class="menu"><li class="first">';
874
-  if ($user->uid) {
873
+    $output = '<ul class="menu"><li class="first">';
874
+    if ($user->uid) {
875 875
     $output .= '<a href="' . url('logout') . '">' . bts('Logout', array(), NULL, 'boinc:menu-link') . '</a>';
876
-  } else {
876
+    } else {
877 877
     $output .= '<a href="' . url('user/login', array('query' => drupal_get_destination()) ) . '">' . bts('Login', array(), NULL, 'boinc:menu-link') . '</a>';
878
-  }
879
-  $output .= '</li>';
880
-  if (module_exists('global_search') OR module_exists('global_search_solr')) {
878
+    }
879
+    $output .= '</li>';
880
+    if (module_exists('global_search') OR module_exists('global_search_solr')) {
881 881
     $output .= '<li class="last"> <a class="search" href="' . url('search/site') . '">' . bts('search', array(), NULL, 'boinc:menu-link') .'</a> </l1>';
882
-  }
883
-  $output .= '</ul>';
884
-  return $output;
882
+    }
883
+    $output .= '</ul>';
884
+    return $output;
885 885
 }
886 886
 
887 887
 /**
@@ -889,47 +889,47 @@  discard block
 block discarded – undo
889 889
  * function. Modified for boinc functionality.
890 890
  */
891 891
 function _boinc_ignore_user_link($type, $object = NULL, $teaser = FALSE) {
892
-  global $user;
892
+    global $user;
893 893
 
894
-  if (!$user || !$user->uid) {
894
+    if (!$user || !$user->uid) {
895 895
     return;
896
-  }
896
+    }
897 897
 
898
-  static $ignored;
899
-  $links = array();
898
+    static $ignored;
899
+    $links = array();
900 900
 
901
-  if ($type == 'node' && $user->uid != $object->uid && $object->uid != 0 && user_access('ignore user')) {
901
+    if ($type == 'node' && $user->uid != $object->uid && $object->uid != 0 && user_access('ignore user')) {
902 902
     if (!isset($ignored[$object->uid])) {
903
-      $ignored[$object->uid] = db_result(db_query('SELECT COUNT(*) FROM {ignore_user} WHERE uid = %d AND iuid = %d', $user->uid, $object->uid));
903
+        $ignored[$object->uid] = db_result(db_query('SELECT COUNT(*) FROM {ignore_user} WHERE uid = %d AND iuid = %d', $user->uid, $object->uid));
904 904
     }
905 905
     if ($ignored[$object->uid] == 0) {
906
-      $links['ignore_user'] = array(
906
+        $links['ignore_user'] = array(
907 907
         'title' => bts('Ignore user', array(), NULL, 'boinc:ignore-user-add'),
908 908
         'href' => 'account/prefs/privacy/ignore_user/add/'. $object->uid,
909 909
         'query' => 'destination='. $_GET['q'],
910 910
         'attributes' => array(
911
-          'class' => 'ignore-user',
912
-          'title' => bts('Add user to your ignore list', array(), NULL, 'boinc:ignore-user-add'),
911
+            'class' => 'ignore-user',
912
+            'title' => bts('Add user to your ignore list', array(), NULL, 'boinc:ignore-user-add'),
913 913
         ),
914
-      );
914
+        );
915 915
     }
916
-  }
917
-  else if ($type == 'comment' && $user->uid != $object->uid && $object->uid != 0 && user_access('ignore user')) {
916
+    }
917
+    else if ($type == 'comment' && $user->uid != $object->uid && $object->uid != 0 && user_access('ignore user')) {
918 918
     if (!isset($ignored[$object->uid])) {
919
-      $ignored[$object->uid] = db_result(db_query('SELECT COUNT(*) FROM {ignore_user} WHERE uid = %d AND iuid = %d', $user->uid, $object->uid));
919
+        $ignored[$object->uid] = db_result(db_query('SELECT COUNT(*) FROM {ignore_user} WHERE uid = %d AND iuid = %d', $user->uid, $object->uid));
920 920
     }
921 921
     if ($ignored[$object->uid] == 0) {
922
-      $links['ignore_user'] = array(
922
+        $links['ignore_user'] = array(
923 923
         'title' => bts('Ignore user', array(), NULL, 'boinc:ignore-user-add'),
924 924
         'href' => 'account/prefs/privacy/ignore_user/add/'. $object->uid,
925 925
         'query' => 'destination='. $_GET['q'],
926 926
         'attributes' => array(
927
-          'class' => 'ignore-user',
928
-          'title' => bts('Add user to your ignore list', array(), NULL, 'boinc:ignore-user-add'),
927
+            'class' => 'ignore-user',
928
+            'title' => bts('Add user to your ignore list', array(), NULL, 'boinc:ignore-user-add'),
929 929
         ),
930
-      );
930
+        );
931
+    }
931 932
     }
932
-  }
933 933
 
934
-  return $links;
934
+    return $links;
935 935
 }
Please login to merge, or discard this patch.
html/ops/check_account_ownership_keys.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,15 +23,15 @@
 block discarded – undo
23 23
 admin_page_head("Account Ownership Keys");
24 24
 
25 25
 if (!file_exists($account_ownership_private_key_file_path)) {
26
-  echo "<p>The account ownership private key '" . $account_ownership_private_key_file_name . "' <b>doesn't</b> exist. Please run the 'generate_account_ownership_keys.php' script from the command line in the BOINC web server ops directory.</p>";
26
+    echo "<p>The account ownership private key '" . $account_ownership_private_key_file_name . "' <b>doesn't</b> exist. Please run the 'generate_account_ownership_keys.php' script from the command line in the BOINC web server ops directory.</p>";
27 27
 } else {
28
-  echo "<p>The account ownership private key '" . $account_ownership_private_key_file_name . "' exists.</p>";
28
+    echo "<p>The account ownership private key '" . $account_ownership_private_key_file_name . "' exists.</p>";
29 29
 }
30 30
 
31 31
 if (!file_exists($account_ownership_public_key_file_path)) {
32
-  echo "<p>The account ownership public key '" . $account_ownership_public_key_file_name . "' <b>doesn't</b> exist. Please run the 'generate_account_ownership_keys.php' script from the command line in the BOINC web server ops directory.</p>";
32
+    echo "<p>The account ownership public key '" . $account_ownership_public_key_file_name . "' <b>doesn't</b> exist. Please run the 'generate_account_ownership_keys.php' script from the command line in the BOINC web server ops directory.</p>";
33 33
 } else {
34
-  echo "<p>The account ownership public key '" . $account_ownership_public_key_file_name . "' exists.</p>";
34
+    echo "<p>The account ownership public key '" . $account_ownership_public_key_file_name . "' exists.</p>";
35 35
 }
36 36
 
37 37
 echo "<p>For more info see the related wiki page: <a href=\"https://github.com/BOINC/boinc/wiki/ProofOfOwnership\">ProofOfOwnership</a></p>";
Please login to merge, or discard this patch.