Passed
Push — master ( 90102b...16e7c5 )
by Christian
07:15
created
drupal/sites/all/features/stats_charts/stats_charts.panels_default.inc 2 patches
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 stats_charts_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 = 'project_stats_overview';
13
-  $mini->category = 'BOINC';
14
-  $mini->admin_title = 'Project stats overview';
15
-  $mini->admin_description = 'General statistical information for the project';
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 = 'project_stats_overview';
13
+    $mini->category = 'BOINC';
14
+    $mini->admin_title = 'Project stats overview';
15
+    $mini->admin_description = 'General statistical information for the project';
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 = '';
30
-  $display->storage_type = 'panels_mini';
31
-  $display->storage_id = 'project_stats_overview';
32
-  $display->content = array();
33
-  $display->panels = array();
27
+    );
28
+    $display->cache = array();
29
+    $display->title = '';
30
+    $display->storage_type = 'panels_mini';
31
+    $display->storage_id = 'project_stats_overview';
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,25 +39,25 @@  discard block
 block discarded – undo
39 39
     $pane->shown = TRUE;
40 40
     $pane->access = array();
41 41
     $pane->configuration = array(
42
-      'admin_title' => 'Project stats overview',
43
-      'title' => bts('@this_project Progress', array('@this_project' => variable_get('site_name', 'Drupal-BOINC')), NULL, 'boinc:frontpage'),
44
-      'body' => '<?php echo boincstats_get_project_stats_overview(); ?>',
45
-      'format' => '3',
46
-      'substitute' => TRUE,
42
+        'admin_title' => 'Project stats overview',
43
+        'title' => bts('@this_project Progress', array('@this_project' => variable_get('site_name', 'Drupal-BOINC')), NULL, 'boinc:frontpage'),
44
+        'body' => '<?php echo boincstats_get_project_stats_overview(); ?>',
45
+        'format' => '3',
46
+        'substitute' => TRUE,
47 47
     );
48 48
     $pane->cache = array();
49 49
     $pane->style = array(
50
-      'settings' => NULL,
50
+        'settings' => NULL,
51 51
     );
52 52
     $pane->css = array();
53 53
     $pane->extras = array();
54 54
     $pane->position = 0;
55 55
     $display->content['new-1'] = $pane;
56 56
     $display->panels['middle'][0] = 'new-1';
57
-  $display->hide_title = PANELS_TITLE_FIXED;
58
-  $display->title_pane = 'new-1';
59
-  $mini->display = $display;
60
-  $export['project_stats_overview'] = $mini;
57
+    $display->hide_title = PANELS_TITLE_FIXED;
58
+    $display->title_pane = 'new-1';
59
+    $mini->display = $display;
60
+    $export['project_stats_overview'] = $mini;
61 61
 
62
-  return $export;
62
+    return $export;
63 63
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
   $export = array();
8 8
 
9 9
   $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
10
+  $mini->disabled = false; /* Edit this to true to make a default mini disabled initially */
11 11
   $mini->api_version = 1;
12 12
   $mini->name = 'project_stats_overview';
13 13
   $mini->category = 'BOINC';
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
   $display->layout_settings = array();
22 22
   $display->panel_settings = array(
23 23
     'style_settings' => array(
24
-      'default' => NULL,
25
-      'middle' => NULL,
24
+      'default' => null,
25
+      'middle' => null,
26 26
     ),
27 27
   );
28 28
   $display->cache = array();
@@ -36,18 +36,18 @@  discard block
 block discarded – undo
36 36
     $pane->panel = 'middle';
37 37
     $pane->type = 'custom';
38 38
     $pane->subtype = 'custom';
39
-    $pane->shown = TRUE;
39
+    $pane->shown = true;
40 40
     $pane->access = array();
41 41
     $pane->configuration = array(
42 42
       'admin_title' => 'Project stats overview',
43
-      'title' => bts('@this_project Progress', array('@this_project' => variable_get('site_name', 'Drupal-BOINC')), NULL, 'boinc:frontpage'),
43
+      'title' => bts('@this_project Progress', array('@this_project' => variable_get('site_name', 'Drupal-BOINC')), null, 'boinc:frontpage'),
44 44
       'body' => '<?php echo boincstats_get_project_stats_overview(); ?>',
45 45
       'format' => '3',
46
-      'substitute' => TRUE,
46
+      'substitute' => true,
47 47
     );
48 48
     $pane->cache = array();
49 49
     $pane->style = array(
50
-      'settings' => NULL,
50
+      'settings' => null,
51 51
     );
52 52
     $pane->css = array();
53 53
     $pane->extras = array();
Please login to merge, or discard this patch.
html/inc/pm.inc 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     return $x;
49 49
 }
50 50
 
51
-function pm_team_form($user, $teamid, $error=null) {
51
+function pm_team_form($user, $teamid, $error = null) {
52 52
     global $bbcode_html, $bbcode_js;
53 53
     $team = BoincTeam::lookup_id($teamid);
54 54
     if (!$team) {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         error_page("not admin");
59 59
     }
60 60
 
61
-    page_head(tra("Send message to team"),'','','', $bbcode_js);
61
+    page_head(tra("Send message to team"), '', '', '', $bbcode_js);
62 62
 
63 63
     $subject = post_str("subject", true);
64 64
     $content = post_str("content", true);
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 function pm_form($replyto, $userid, $error = null) {
103 103
     global $bbcode_html, $bbcode_js;
104 104
     global $g_logged_in_user;
105
-    page_head(tra("Send private message"),'','','', $bbcode_js);
105
+    page_head(tra("Send private message"), '', '', '', $bbcode_js);
106 106
     
107 107
     if (post_str("preview", true) == tra("Preview")) {
108 108
         $content = post_str("content", true);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 function send_pm_notification_email(
185 185
     $logged_in_user, $to_user, $subject, $content
186 186
 ) {
187
-    $message  = "
187
+    $message = "
188 188
 You have received a new private message at ".PROJECT.".
189 189
 
190 190
 From: $logged_in_user->name (ID $logged_in_user->id)
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     $pm = BoincPrivateMessage::lookup_id($notify->opaque);
215 215
     $from_user = BoincUser::lookup_id($pm->senderid);
216 216
     if (!$pm || !$from_user) return null;
217
-    return "<a href=pm.php>".tra("Private message%1 from %2, subject:" , "</a>", $from_user->name )." $pm->subject";
217
+    return "<a href=pm.php>".tra("Private message%1 from %2, subject:", "</a>", $from_user->name)." $pm->subject";
218 218
 }
219 219
 
220 220
 function pm_send_msg($from_user, $to_user, $subject, $content, $send_email) {
@@ -278,11 +278,11 @@  discard block
 block discarded – undo
278 278
 
279 279
 function pm_email_remind($user) {
280 280
     if (!$user->prefs->pm_notification) {
281
-        return "<br><small>" .
281
+        return "<br><small>".
282 282
             tra(
283 283
                 "For email notification, %1 edit community prefs %2",
284 284
                 '<a href="edit_forum_preferences_form.php">', '</a>'
285
-            ) .
285
+            ).
286 286
             "</small>"
287 287
         ;
288 288
     }
@@ -308,5 +308,5 @@  discard block
 block discarded – undo
308 308
     }
309 309
 }
310 310
 
311
-$cvs_version_tracker[]="\$Id: pm.inc 14019 2007-11-01 23:04:39Z davea $";
311
+$cvs_version_tracker[] = "\$Id: pm.inc 14019 2007-11-01 23:04:39Z davea $";
312 312
 ?>
Please login to merge, or discard this patch.
html/user/profile_menu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 start_table();
42 42
 
43 43
 $today = getdate(time());
44
-$UOTD_heading = tra("User of the Day")." -- " . $today['month'] . " " . $today['mday'] . ", " . $today['year'];
44
+$UOTD_heading = tra("User of the Day")." -- ".$today['month']." ".$today['mday'].", ".$today['year'];
45 45
 row1($UOTD_heading);
46 46
 echo "<tr><td>";
47 47
     $profile = get_current_uotd();
@@ -59,15 +59,15 @@  discard block
 block discarded – undo
59 59
 row1(tra("User Profile Explorer"));
60 60
 echo "<tr><td>
61 61
     <ul>
62
-    <li>".tra("View the %1 User Picture Gallery %2.", "<a href=\"" . url_base() . "user_profile/user_gallery_1.html\">", "</a>")."</li>
63
-    <li>".tra("Browse profiles %1 by country %2.", "<a href=\"" . url_base() . "user_profile/profile_country.html\">", "</a>")."</li>
62
+    <li>".tra("View the %1 User Picture Gallery %2.", "<a href=\"".url_base()."user_profile/user_gallery_1.html\">", "</a>")."</li>
63
+    <li>".tra("Browse profiles %1 by country %2.", "<a href=\"".url_base()."user_profile/profile_country.html\">", "</a>")."</li>
64 64
     <li>".tra("Browse profiles %1 at random %2, %3 at random with pictures %2, or %4 at random without pictures %2.", "<a href=\"?cmd=rand&amp;pic=-1\">", "</a>",
65 65
             "<a href=\"?cmd=rand&amp;pic=1\">", "<a href=\"?cmd=rand&amp;pic=0\">")."</li>
66 66
 ";
67
-if (file_exists(PROFILE_PATH . "profile_alpha.html")) {
67
+if (file_exists(PROFILE_PATH."profile_alpha.html")) {
68 68
     echo "<li>".tra("Alphabetical profile listings:")."<br>";
69 69
 
70
-    include( PROFILE_PATH . "profile_alpha.html" );
70
+    include(PROFILE_PATH."profile_alpha.html");
71 71
 }
72 72
 echo "</ul></td></tr>";
73 73
 
@@ -110,5 +110,5 @@  discard block
 block discarded – undo
110 110
     }
111 111
 }
112 112
 
113
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
113
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
114 114
 ?>
Please login to merge, or discard this patch.
html/user/forum_search_action.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,8 +219,8 @@
 block discarded – undo
219 219
     echo "<p>".tra("Sorry, couldn't find anything matching your search query. You can try to broaden your search by using less words (or less specific words).")."</p>
220 220
     <p>"
221 221
     .tra("You can also %1 try the same search on Google. %2",
222
-         "<a href=\"https://www.google.com/search?domains=".url_base()."&sitesearch=".url_base()."forum_thread.php&q=".htmlentities($search_keywords)."\">",
223
-         "</a>")
222
+            "<a href=\"https://www.google.com/search?domains=".url_base()."&sitesearch=".url_base()."forum_thread.php&q=".htmlentities($search_keywords)."\">",
223
+            "</a>")
224 224
     ."</p>";
225 225
 }
226 226
 echo "<p><a href=\"forum_search.php\">".tra("Perform another search")."</a></p>";
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
 // Optionally filters by forum, user, time, or hidden if specified.
32 32
 //
33 33
 function search_thread_titles(
34
-    $keyword_list, $forum="", $user="", $time="", $limit=200,
35
-    $sort_style=CREATE_TIME_NEW, $show_hidden = false
36
-){
37
-    $search_string="%";
34
+    $keyword_list, $forum = "", $user = "", $time = "", $limit = 200,
35
+    $sort_style = CREATE_TIME_NEW, $show_hidden = false
36
+) {
37
+    $search_string = "%";
38 38
     foreach ($keyword_list as $key => $word) {
39 39
         $search_string .= BoincDb::escape_string($word)."%";
40 40
     }        
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     if (!$show_hidden) {
52 52
         $query .= " and thread.hidden = 0";
53 53
     }
54
-    switch($sort_style) {
54
+    switch ($sort_style) {
55 55
     case MODIFIED_NEW:
56 56
         $query .= ' ORDER BY timestamp DESC';
57 57
         break;
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
 //
85 85
 function search_post_content(
86 86
     $keyword_list, $forum, $user, $time, $limit, $sort_style, $show_hidden
87
-){
87
+) {
88 88
     $db = BoincDb::get();
89 89
 
90
-    $search_string="%";
91
-    foreach ($keyword_list as $key => $word){
90
+    $search_string = "%";
91
+    foreach ($keyword_list as $key => $word) {
92 92
         $search_string .= BoincDb::escape_string($word)."%";
93 93
     } 
94 94
     $optional_join = "";
@@ -100,20 +100,20 @@  discard block
 block discarded – undo
100 100
     }
101 101
     $query = "select post.* from ".$db->db_name.".post".$optional_join." where content like '".$search_string."'";
102 102
     if ($forum) {
103
-        $query.=" and forum = $forum->id";
103
+        $query .= " and forum = $forum->id";
104 104
     }
105 105
     if ($user) {
106
-        $query.=" and post.user = $user->id ";
106
+        $query .= " and post.user = $user->id ";
107 107
     }
108 108
     if ($time) {
109
-        $query.=" and post.timestamp > $time";
109
+        $query .= " and post.timestamp > $time";
110 110
     }
111 111
     if (!$show_hidden) {
112 112
         $query .= " AND post.hidden = 0";
113 113
     }
114
-    switch($sort_style) {
114
+    switch ($sort_style) {
115 115
     case VIEWS_MOST:
116
-        $query.= ' ORDER BY views DESC';
116
+        $query .= ' ORDER BY views DESC';
117 117
         break;
118 118
     case CREATE_TIME_NEW:
119 119
         $query .= ' ORDER by post.timestamp desc';
@@ -128,13 +128,13 @@  discard block
 block discarded – undo
128 128
         $query .= ' ORDER BY post.timestamp DESC';
129 129
         break;
130 130
     }
131
-    $query.= " limit $limit";
131
+    $query .= " limit $limit";
132 132
     return BoincPost::enum_general($query);
133 133
 }
134 134
 
135 135
 $logged_in_user = get_logged_in_user(false);
136 136
 BoincForumPrefs::lookup($logged_in_user);
137
-if ($logged_in_user && $logged_in_user->prefs->privilege(S_MODERATOR)){
137
+if ($logged_in_user && $logged_in_user->prefs->privilege(S_MODERATOR)) {
138 138
     $show_hidden_posts = true;
139 139
 } else {
140 140
     $show_hidden_posts = false;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 $search_max_time = post_int("search_max_time");
148 148
 $search_forum = post_int("search_forum");
149 149
 $search_sort = post_int("search_sort");
150
-$search_list = explode(" ",$search_keywords);
150
+$search_list = explode(" ", $search_keywords);
151 151
 if ($search_max_time) {
152 152
     $min_timestamp = time() - ($search_max_time*3600*24);
153 153
 } else {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
 $limit = 100;
158 158
 
159
-if ($search_forum==-1){
159
+if ($search_forum == -1) {
160 160
     $forum = null;
161 161
 } else if ($search_forum) {
162 162
     $forum = BoincForum::lookup_id($search_forum);
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
 
174 174
 // Display the threads while we search for posts
175 175
 //
176
-if (count($threads)){
177
-    echo "<h3>" . tra("Thread titles matching your query:") . "</h3>";
176
+if (count($threads)) {
177
+    echo "<h3>".tra("Thread titles matching your query:")."</h3>";
178 178
     show_thread_and_context_header();
179
-    foreach ($threads as $thread){
179
+    foreach ($threads as $thread) {
180 180
         if ($thread->hidden) continue;
181 181
         show_thread_and_context($thread, $logged_in_user);
182 182
     }
@@ -192,8 +192,8 @@  discard block
 block discarded – undo
192 192
     $show_hidden_posts
193 193
 );
194 194
 
195
-if (count($posts)){
196
-    echo "<h3>" . tra("Messages matching your query:") . "</h3>";
195
+if (count($posts)) {
196
+    echo "<h3>".tra("Messages matching your query:")."</h3>";
197 197
     start_table();
198 198
     $n = 1;
199 199
     $options = get_output_options($logged_in_user);
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     end_table();
216 216
 }
217 217
 
218
-if (!count($threads) && !count($posts)){
218
+if (!count($threads) && !count($posts)) {
219 219
     echo "<p>".tra("Sorry, couldn't find anything matching your search query. You can try to broaden your search by using less words (or less specific words).")."</p>
220 220
     <p>"
221 221
     .tra("You can also %1 try the same search on Google. %2",
@@ -226,5 +226,5 @@  discard block
 block discarded – undo
226 226
 echo "<p><a href=\"forum_search.php\">".tra("Perform another search")."</a></p>";
227 227
 page_tail();
228 228
 
229
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
229
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
230 230
 ?>
Please login to merge, or discard this patch.
Braces   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 function search_thread_titles(
34 34
     $keyword_list, $forum="", $user="", $time="", $limit=200,
35 35
     $sort_style=CREATE_TIME_NEW, $show_hidden = false
36
-){
36
+) {
37 37
     $search_string="%";
38 38
     foreach ($keyword_list as $key => $word) {
39 39
         $search_string .= BoincDb::escape_string($word)."%";
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
 //
85 85
 function search_post_content(
86 86
     $keyword_list, $forum, $user, $time, $limit, $sort_style, $show_hidden
87
-){
87
+) {
88 88
     $db = BoincDb::get();
89 89
 
90 90
     $search_string="%";
91
-    foreach ($keyword_list as $key => $word){
91
+    foreach ($keyword_list as $key => $word) {
92 92
         $search_string .= BoincDb::escape_string($word)."%";
93 93
     } 
94 94
     $optional_join = "";
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
 $logged_in_user = get_logged_in_user(false);
136 136
 BoincForumPrefs::lookup($logged_in_user);
137
-if ($logged_in_user && $logged_in_user->prefs->privilege(S_MODERATOR)){
137
+if ($logged_in_user && $logged_in_user->prefs->privilege(S_MODERATOR)) {
138 138
     $show_hidden_posts = true;
139 139
 } else {
140 140
     $show_hidden_posts = false;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
 $limit = 100;
158 158
 
159
-if ($search_forum==-1){
159
+if ($search_forum==-1) {
160 160
     $forum = null;
161 161
 } else if ($search_forum) {
162 162
     $forum = BoincForum::lookup_id($search_forum);
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
 
174 174
 // Display the threads while we search for posts
175 175
 //
176
-if (count($threads)){
176
+if (count($threads)) {
177 177
     echo "<h3>" . tra("Thread titles matching your query:") . "</h3>";
178 178
     show_thread_and_context_header();
179
-    foreach ($threads as $thread){
179
+    foreach ($threads as $thread) {
180 180
         if ($thread->hidden) continue;
181 181
         show_thread_and_context($thread, $logged_in_user);
182 182
     }
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     $show_hidden_posts
193 193
 );
194 194
 
195
-if (count($posts)){
195
+if (count($posts)) {
196 196
     echo "<h3>" . tra("Messages matching your query:") . "</h3>";
197 197
     start_table();
198 198
     $n = 1;
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     end_table();
216 216
 }
217 217
 
218
-if (!count($threads) && !count($posts)){
218
+if (!count($threads) && !count($posts)) {
219 219
     echo "<p>".tra("Sorry, couldn't find anything matching your search query. You can try to broaden your search by using less words (or less specific words).")."</p>
220 220
     <p>"
221 221
     .tra("You can also %1 try the same search on Google. %2",
Please login to merge, or discard this patch.
html/user/download_network.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,17 +25,17 @@
 block discarded – undo
25 25
 page_head(tra("Download BOINC add-on software"));
26 26
 echo "
27 27
     <p>" .
28
-    tra("You can download applications in several categories.") ."
28
+    tra("You can download applications in several categories.")."
29 29
     <ul>
30 30
     <li>".
31
-    tra("These applications are not endorsed by %1 and you use them at your own risk.", PROJECT) ."
31
+    tra("These applications are not endorsed by %1 and you use them at your own risk.", PROJECT)."
32 32
     <li>" .
33 33
     tra("We do not provide instructions for installing these applications.
34 34
 However, the author may have provided some help on installing or uninstalling the application. 
35 35
 If this is not enough you should contact the author.").
36 36
     tra("Instructions for installing and running BOINC are %1 here %2.", "<a href=https://boinc.berkeley.edu/download.php>", "</a>")
37
-    . "<li>" . 
38
-    tra("This list is managed centrally at %1 the BOINC website %2.", "<a href=\"https://boinc.berkeley.edu/addons.php\">", "</a>") ."
37
+    . "<li>". 
38
+    tra("This list is managed centrally at %1 the BOINC website %2.", "<a href=\"https://boinc.berkeley.edu/addons.php\">", "</a>")."
39 39
     </ul>
40 40
 ";
41 41
 
Please login to merge, or discard this patch.
all/features/work_and_host_stats/work_and_host_stats.views_default.inc 2 patches
Upper-Lower-Casing   +235 added lines, -235 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
   $view->base_table = 'result';
15 15
   $view->core = 6;
16 16
   $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
17
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
18 18
   $handler = $view->new_display('default', 'Defaults', 'default');
19 19
   $handler->override_option('fields', array(
20 20
     'name' => array(
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
       'hide_empty' => 0,
76 76
       'empty_zero' => 0,
77 77
       'hide_alter_empty' => 1,
78
-      'set_precision' => FALSE,
78
+      'set_precision' => false,
79 79
       'precision' => 0,
80 80
       'decimal' => '.',
81 81
       'separator' => '',
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
       'hide_empty' => 0,
117 117
       'empty_zero' => 0,
118 118
       'hide_alter_empty' => 1,
119
-      'set_precision' => FALSE,
119
+      'set_precision' => false,
120 120
       'precision' => 0,
121 121
       'decimal' => '.',
122 122
       'separator' => '',
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
       'hide_empty' => 0,
158 158
       'empty_zero' => 0,
159 159
       'hide_alter_empty' => 1,
160
-      'set_precision' => FALSE,
160
+      'set_precision' => false,
161 161
       'precision' => 0,
162 162
       'decimal' => '.',
163 163
       'separator' => '',
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
       'empty' => '',
358 358
       'hide_empty' => 0,
359 359
       'empty_zero' => 0,
360
-      'set_precision' => FALSE,
360
+      'set_precision' => false,
361 361
       'precision' => 0,
362 362
       'decimal' => '.',
363 363
       'separator' => '',
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
       'empty' => '',
393 393
       'hide_empty' => 0,
394 394
       'empty_zero' => 0,
395
-      'set_precision' => FALSE,
395
+      'set_precision' => false,
396 396
       'precision' => 0,
397 397
       'decimal' => '.',
398 398
       'separator' => '',
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
       'empty' => '',
428 428
       'hide_empty' => 0,
429 429
       'empty_zero' => 0,
430
-      'set_precision' => FALSE,
430
+      'set_precision' => false,
431 431
       'precision' => 0,
432 432
       'decimal' => '.',
433 433
       'separator' => '',
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
       'empty' => '',
463 463
       'hide_empty' => 0,
464 464
       'empty_zero' => 0,
465
-      'set_precision' => FALSE,
465
+      'set_precision' => false,
466 466
       'precision' => 0,
467 467
       'decimal' => '.',
468 468
       'separator' => '',
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
       'empty' => '',
498 498
       'hide_empty' => 0,
499 499
       'empty_zero' => 0,
500
-      'set_precision' => FALSE,
500
+      'set_precision' => false,
501 501
       'precision' => 0,
502 502
       'decimal' => '.',
503 503
       'separator' => '',
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
       'hide_empty' => 0,
730 730
       'empty_zero' => 0,
731 731
       'hide_alter_empty' => 1,
732
-      'set_precision' => FALSE,
732
+      'set_precision' => false,
733 733
       'precision' => 0,
734 734
       'decimal' => '.',
735 735
       'separator' => '',
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
       'empty' => '',
768 768
       'hide_empty' => 0,
769 769
       'empty_zero' => 0,
770
-      'set_precision' => FALSE,
770
+      'set_precision' => false,
771 771
       'precision' => 0,
772 772
       'decimal' => '.',
773 773
       'separator' => '',
@@ -1056,9 +1056,9 @@  discard block
 block discarded – undo
1056 1056
         'max' => '',
1057 1057
       ),
1058 1058
       'group' => '0',
1059
-      'exposed' => FALSE,
1059
+      'exposed' => false,
1060 1060
       'expose' => array(
1061
-        'operator' => FALSE,
1061
+        'operator' => false,
1062 1062
         'label' => '',
1063 1063
       ),
1064 1064
       'id' => 'server_state',
@@ -1077,9 +1077,9 @@  discard block
 block discarded – undo
1077 1077
         'max' => '',
1078 1078
       ),
1079 1079
       'group' => '0',
1080
-      'exposed' => FALSE,
1080
+      'exposed' => false,
1081 1081
       'expose' => array(
1082
-        'operator' => FALSE,
1082
+        'operator' => false,
1083 1083
         'label' => '',
1084 1084
       ),
1085 1085
       'id' => 'outcome',
@@ -1098,9 +1098,9 @@  discard block
 block discarded – undo
1098 1098
         'max' => '7',
1099 1099
       ),
1100 1100
       'group' => '0',
1101
-      'exposed' => FALSE,
1101
+      'exposed' => false,
1102 1102
       'expose' => array(
1103
-        'operator' => FALSE,
1103
+        'operator' => false,
1104 1104
         'label' => '',
1105 1105
       ),
1106 1106
       'id' => 'outcome_1',
@@ -1119,9 +1119,9 @@  discard block
 block discarded – undo
1119 1119
         'max' => '',
1120 1120
       ),
1121 1121
       'group' => '0',
1122
-      'exposed' => FALSE,
1122
+      'exposed' => false,
1123 1123
       'expose' => array(
1124
-        'operator' => FALSE,
1124
+        'operator' => false,
1125 1125
         'label' => '',
1126 1126
       ),
1127 1127
       'id' => 'outcome_2',
@@ -1158,9 +1158,9 @@  discard block
 block discarded – undo
1158 1158
         'max' => '',
1159 1159
       ),
1160 1160
       'group' => '0',
1161
-      'exposed' => FALSE,
1161
+      'exposed' => false,
1162 1162
       'expose' => array(
1163
-        'operator' => FALSE,
1163
+        'operator' => false,
1164 1164
         'label' => '',
1165 1165
       ),
1166 1166
       'id' => 'server_state',
@@ -1197,9 +1197,9 @@  discard block
 block discarded – undo
1197 1197
         'max' => '',
1198 1198
       ),
1199 1199
       'group' => '0',
1200
-      'exposed' => FALSE,
1200
+      'exposed' => false,
1201 1201
       'expose' => array(
1202
-        'operator' => FALSE,
1202
+        'operator' => false,
1203 1203
         'label' => '',
1204 1204
       ),
1205 1205
       'id' => 'server_state',
@@ -1223,9 +1223,9 @@  discard block
 block discarded – undo
1223 1223
         'max' => '',
1224 1224
       ),
1225 1225
       'group' => '0',
1226
-      'exposed' => FALSE,
1226
+      'exposed' => false,
1227 1227
       'expose' => array(
1228
-        'operator' => FALSE,
1228
+        'operator' => false,
1229 1229
         'label' => '',
1230 1230
       ),
1231 1231
       'id' => 'outcome',
@@ -1249,9 +1249,9 @@  discard block
 block discarded – undo
1249 1249
         'max' => '',
1250 1250
       ),
1251 1251
       'group' => '0',
1252
-      'exposed' => FALSE,
1252
+      'exposed' => false,
1253 1253
       'expose' => array(
1254
-        'operator' => FALSE,
1254
+        'operator' => false,
1255 1255
         'label' => '',
1256 1256
       ),
1257 1257
       'id' => 'outcome_1',
@@ -1275,9 +1275,9 @@  discard block
 block discarded – undo
1275 1275
         'max' => '',
1276 1276
       ),
1277 1277
       'group' => '0',
1278
-      'exposed' => FALSE,
1278
+      'exposed' => false,
1279 1279
       'expose' => array(
1280
-        'operator' => FALSE,
1280
+        'operator' => false,
1281 1281
         'label' => '',
1282 1282
       ),
1283 1283
       'id' => 'validate_state',
@@ -1301,9 +1301,9 @@  discard block
 block discarded – undo
1301 1301
         'max' => '',
1302 1302
       ),
1303 1303
       'group' => '0',
1304
-      'exposed' => FALSE,
1304
+      'exposed' => false,
1305 1305
       'expose' => array(
1306
-        'operator' => FALSE,
1306
+        'operator' => false,
1307 1307
         'label' => '',
1308 1308
       ),
1309 1309
       'id' => 'validate_state_1',
@@ -1327,9 +1327,9 @@  discard block
 block discarded – undo
1327 1327
         'max' => '',
1328 1328
       ),
1329 1329
       'group' => '0',
1330
-      'exposed' => FALSE,
1330
+      'exposed' => false,
1331 1331
       'expose' => array(
1332
-        'operator' => FALSE,
1332
+        'operator' => false,
1333 1333
         'label' => '',
1334 1334
       ),
1335 1335
       'id' => 'validate_state_2',
@@ -1376,9 +1376,9 @@  discard block
 block discarded – undo
1376 1376
         'max' => '',
1377 1377
       ),
1378 1378
       'group' => '0',
1379
-      'exposed' => FALSE,
1379
+      'exposed' => false,
1380 1380
       'expose' => array(
1381
-        'operator' => FALSE,
1381
+        'operator' => false,
1382 1382
         'label' => '',
1383 1383
       ),
1384 1384
       'id' => 'server_state',
@@ -1397,9 +1397,9 @@  discard block
 block discarded – undo
1397 1397
         'max' => '',
1398 1398
       ),
1399 1399
       'group' => '0',
1400
-      'exposed' => FALSE,
1400
+      'exposed' => false,
1401 1401
       'expose' => array(
1402
-        'operator' => FALSE,
1402
+        'operator' => false,
1403 1403
         'label' => '',
1404 1404
       ),
1405 1405
       'id' => 'outcome',
@@ -1418,9 +1418,9 @@  discard block
 block discarded – undo
1418 1418
         'max' => '',
1419 1419
       ),
1420 1420
       'group' => '0',
1421
-      'exposed' => FALSE,
1421
+      'exposed' => false,
1422 1422
       'expose' => array(
1423
-        'operator' => FALSE,
1423
+        'operator' => false,
1424 1424
         'label' => '',
1425 1425
       ),
1426 1426
       'id' => 'validate_state',
@@ -1439,9 +1439,9 @@  discard block
 block discarded – undo
1439 1439
         'max' => '4',
1440 1440
       ),
1441 1441
       'group' => '0',
1442
-      'exposed' => FALSE,
1442
+      'exposed' => false,
1443 1443
       'expose' => array(
1444
-        'operator' => FALSE,
1444
+        'operator' => false,
1445 1445
         'label' => '',
1446 1446
       ),
1447 1447
       'id' => 'validate_state_1',
@@ -1460,9 +1460,9 @@  discard block
 block discarded – undo
1460 1460
         'max' => '',
1461 1461
       ),
1462 1462
       'group' => '0',
1463
-      'exposed' => FALSE,
1463
+      'exposed' => false,
1464 1464
       'expose' => array(
1465
-        'operator' => FALSE,
1465
+        'operator' => false,
1466 1466
         'label' => '',
1467 1467
       ),
1468 1468
       'id' => 'validate_state_2',
@@ -1499,9 +1499,9 @@  discard block
 block discarded – undo
1499 1499
         'max' => '',
1500 1500
       ),
1501 1501
       'group' => '0',
1502
-      'exposed' => FALSE,
1502
+      'exposed' => false,
1503 1503
       'expose' => array(
1504
-        'operator' => FALSE,
1504
+        'operator' => false,
1505 1505
         'label' => '',
1506 1506
       ),
1507 1507
       'id' => 'server_state',
@@ -1520,9 +1520,9 @@  discard block
 block discarded – undo
1520 1520
         'max' => '',
1521 1521
       ),
1522 1522
       'group' => '0',
1523
-      'exposed' => FALSE,
1523
+      'exposed' => false,
1524 1524
       'expose' => array(
1525
-        'operator' => FALSE,
1525
+        'operator' => false,
1526 1526
         'label' => '',
1527 1527
       ),
1528 1528
       'id' => 'outcome',
@@ -1541,9 +1541,9 @@  discard block
 block discarded – undo
1541 1541
         'max' => '',
1542 1542
       ),
1543 1543
       'group' => '0',
1544
-      'exposed' => FALSE,
1544
+      'exposed' => false,
1545 1545
       'expose' => array(
1546
-        'operator' => FALSE,
1546
+        'operator' => false,
1547 1547
         'label' => '',
1548 1548
       ),
1549 1549
       'id' => 'validate_state',
@@ -1581,7 +1581,7 @@  discard block
 block discarded – undo
1581 1581
   $view->base_table = 'host';
1582 1582
   $view->core = 0;
1583 1583
   $view->api_version = '2';
1584
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
1584
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
1585 1585
   $handler = $view->new_display('default', 'Defaults', 'default');
1586 1586
   $handler->override_option('fields', array(
1587 1587
     'userid' => array(
@@ -1607,7 +1607,7 @@  discard block
 block discarded – undo
1607 1607
       'empty' => '',
1608 1608
       'hide_empty' => 0,
1609 1609
       'empty_zero' => 0,
1610
-      'set_precision' => FALSE,
1610
+      'set_precision' => false,
1611 1611
       'precision' => 0,
1612 1612
       'decimal' => '.',
1613 1613
       'separator' => '',
@@ -1880,7 +1880,7 @@  discard block
 block discarded – undo
1880 1880
       'empty' => '',
1881 1881
       'hide_empty' => 0,
1882 1882
       'empty_zero' => 0,
1883
-      'set_precision' => FALSE,
1883
+      'set_precision' => false,
1884 1884
       'precision' => 0,
1885 1885
       'decimal' => '.',
1886 1886
       'separator' => '',
@@ -2464,7 +2464,7 @@  discard block
 block discarded – undo
2464 2464
       'empty' => '',
2465 2465
       'hide_empty' => 0,
2466 2466
       'empty_zero' => 0,
2467
-      'set_precision' => FALSE,
2467
+      'set_precision' => false,
2468 2468
       'precision' => 0,
2469 2469
       'decimal' => '.',
2470 2470
       'separator' => '',
@@ -2499,7 +2499,7 @@  discard block
 block discarded – undo
2499 2499
       'empty' => '',
2500 2500
       'hide_empty' => 0,
2501 2501
       'empty_zero' => 0,
2502
-      'set_precision' => FALSE,
2502
+      'set_precision' => false,
2503 2503
       'precision' => 0,
2504 2504
       'decimal' => '.',
2505 2505
       'separator' => '',
@@ -2598,7 +2598,7 @@  discard block
 block discarded – undo
2598 2598
       'empty' => '',
2599 2599
       'hide_empty' => 0,
2600 2600
       'empty_zero' => 0,
2601
-      'set_precision' => FALSE,
2601
+      'set_precision' => false,
2602 2602
       'precision' => 0,
2603 2603
       'decimal' => '.',
2604 2604
       'separator' => '',
@@ -2633,7 +2633,7 @@  discard block
 block discarded – undo
2633 2633
       'empty' => '',
2634 2634
       'hide_empty' => 0,
2635 2635
       'empty_zero' => 0,
2636
-      'set_precision' => FALSE,
2636
+      'set_precision' => false,
2637 2637
       'precision' => 0,
2638 2638
       'decimal' => '.',
2639 2639
       'separator' => '',
@@ -2668,7 +2668,7 @@  discard block
 block discarded – undo
2668 2668
       'empty' => '',
2669 2669
       'hide_empty' => 0,
2670 2670
       'empty_zero' => 0,
2671
-      'set_precision' => FALSE,
2671
+      'set_precision' => false,
2672 2672
       'precision' => 0,
2673 2673
       'decimal' => '.',
2674 2674
       'separator' => '',
@@ -3164,7 +3164,7 @@  discard block
 block discarded – undo
3164 3164
       'hide_empty' => 0,
3165 3165
       'empty_zero' => 0,
3166 3166
       'hide_alter_empty' => 1,
3167
-      'set_precision' => FALSE,
3167
+      'set_precision' => false,
3168 3168
       'precision' => 0,
3169 3169
       'decimal' => '.',
3170 3170
       'separator' => '',
@@ -3281,7 +3281,7 @@  discard block
 block discarded – undo
3281 3281
       'empty' => '',
3282 3282
       'hide_empty' => 0,
3283 3283
       'empty_zero' => 0,
3284
-      'set_precision' => FALSE,
3284
+      'set_precision' => false,
3285 3285
       'precision' => 0,
3286 3286
       'decimal' => '.',
3287 3287
       'separator' => '',
@@ -3452,7 +3452,7 @@  discard block
 block discarded – undo
3452 3452
       'empty' => '',
3453 3453
       'hide_empty' => 0,
3454 3454
       'empty_zero' => 0,
3455
-      'set_precision' => FALSE,
3455
+      'set_precision' => false,
3456 3456
       'precision' => 0,
3457 3457
       'decimal' => '.',
3458 3458
       'separator' => '',
@@ -3960,7 +3960,7 @@  discard block
 block discarded – undo
3960 3960
   $view->base_table = 'host';
3961 3961
   $view->core = 6;
3962 3962
   $view->api_version = '2';
3963
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
3963
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
3964 3964
   $handler = $view->new_display('default', 'Defaults', 'default');
3965 3965
   $handler->override_option('relationships', array(
3966 3966
     'app_version_id' => array(
@@ -4152,7 +4152,7 @@  discard block
 block discarded – undo
4152 4152
       'hide_empty' => 0,
4153 4153
       'empty_zero' => 0,
4154 4154
       'hide_alter_empty' => 0,
4155
-      'set_precision' => FALSE,
4155
+      'set_precision' => false,
4156 4156
       'precision' => 0,
4157 4157
       'decimal' => '.',
4158 4158
       'separator' => '',
@@ -4193,7 +4193,7 @@  discard block
 block discarded – undo
4193 4193
       'hide_empty' => 0,
4194 4194
       'empty_zero' => 0,
4195 4195
       'hide_alter_empty' => 0,
4196
-      'set_precision' => FALSE,
4196
+      'set_precision' => false,
4197 4197
       'precision' => 0,
4198 4198
       'decimal' => '.',
4199 4199
       'separator' => '',
@@ -4234,7 +4234,7 @@  discard block
 block discarded – undo
4234 4234
       'hide_empty' => 0,
4235 4235
       'empty_zero' => 0,
4236 4236
       'hide_alter_empty' => 0,
4237
-      'set_precision' => FALSE,
4237
+      'set_precision' => false,
4238 4238
       'precision' => 0,
4239 4239
       'decimal' => '.',
4240 4240
       'separator' => '',
@@ -4275,7 +4275,7 @@  discard block
 block discarded – undo
4275 4275
       'hide_empty' => 0,
4276 4276
       'empty_zero' => 0,
4277 4277
       'hide_alter_empty' => 0,
4278
-      'set_precision' => FALSE,
4278
+      'set_precision' => false,
4279 4279
       'precision' => 0,
4280 4280
       'decimal' => '.',
4281 4281
       'separator' => '',
@@ -4317,7 +4317,7 @@  discard block
 block discarded – undo
4317 4317
       'empty_zero' => 0,
4318 4318
       'hide_alter_empty' => 1,
4319 4319
       'exclude' => 0,
4320
-      'set_precision' => FALSE,
4320
+      'set_precision' => false,
4321 4321
       'precision' => 0,
4322 4322
       'decimal' => '.',
4323 4323
       'separator' => ',',
@@ -4642,7 +4642,7 @@  discard block
 block discarded – undo
4642 4642
       'hide_empty' => 0,
4643 4643
       'empty_zero' => 0,
4644 4644
       'hide_alter_empty' => 0,
4645
-      'set_precision' => FALSE,
4645
+      'set_precision' => false,
4646 4646
       'precision' => 0,
4647 4647
       'decimal' => '.',
4648 4648
       'separator' => '',
@@ -4683,7 +4683,7 @@  discard block
 block discarded – undo
4683 4683
       'hide_empty' => 0,
4684 4684
       'empty_zero' => 0,
4685 4685
       'hide_alter_empty' => 0,
4686
-      'set_precision' => FALSE,
4686
+      'set_precision' => false,
4687 4687
       'precision' => 0,
4688 4688
       'decimal' => '.',
4689 4689
       'separator' => '',
@@ -4724,7 +4724,7 @@  discard block
 block discarded – undo
4724 4724
       'hide_empty' => 0,
4725 4725
       'empty_zero' => 0,
4726 4726
       'hide_alter_empty' => 0,
4727
-      'set_precision' => FALSE,
4727
+      'set_precision' => false,
4728 4728
       'precision' => 0,
4729 4729
       'decimal' => '.',
4730 4730
       'separator' => '',
@@ -4765,7 +4765,7 @@  discard block
 block discarded – undo
4765 4765
       'hide_empty' => 0,
4766 4766
       'empty_zero' => 0,
4767 4767
       'hide_alter_empty' => 0,
4768
-      'set_precision' => FALSE,
4768
+      'set_precision' => false,
4769 4769
       'precision' => 0,
4770 4770
       'decimal' => '.',
4771 4771
       'separator' => '',
@@ -4807,7 +4807,7 @@  discard block
 block discarded – undo
4807 4807
       'empty_zero' => 0,
4808 4808
       'hide_alter_empty' => 1,
4809 4809
       'exclude' => 0,
4810
-      'set_precision' => FALSE,
4810
+      'set_precision' => false,
4811 4811
       'precision' => 0,
4812 4812
       'decimal' => '.',
4813 4813
       'separator' => ',',
@@ -4890,7 +4890,7 @@  discard block
 block discarded – undo
4890 4890
   $view->base_table = 'host';
4891 4891
   $view->core = 0;
4892 4892
   $view->api_version = '2';
4893
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
4893
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
4894 4894
   $handler = $view->new_display('default', 'Defaults', 'default');
4895 4895
   $handler->override_option('relationships', array(
4896 4896
     'userid' => array(
@@ -4926,7 +4926,7 @@  discard block
 block discarded – undo
4926 4926
       'empty' => '',
4927 4927
       'hide_empty' => 0,
4928 4928
       'empty_zero' => 0,
4929
-      'set_precision' => FALSE,
4929
+      'set_precision' => false,
4930 4930
       'precision' => 0,
4931 4931
       'decimal' => '.',
4932 4932
       'separator' => '',
@@ -5511,9 +5511,9 @@  discard block
 block discarded – undo
5511 5511
         'max' => '',
5512 5512
       ),
5513 5513
       'group' => '0',
5514
-      'exposed' => FALSE,
5514
+      'exposed' => false,
5515 5515
       'expose' => array(
5516
-        'operator' => FALSE,
5516
+        'operator' => false,
5517 5517
         'label' => '',
5518 5518
       ),
5519 5519
       'id' => 'show_hosts',
@@ -5634,9 +5634,9 @@  discard block
 block discarded – undo
5634 5634
         'max' => '',
5635 5635
       ),
5636 5636
       'group' => '0',
5637
-      'exposed' => FALSE,
5637
+      'exposed' => false,
5638 5638
       'expose' => array(
5639
-        'operator' => FALSE,
5639
+        'operator' => false,
5640 5640
         'label' => '',
5641 5641
       ),
5642 5642
       'id' => 'rpc_time',
@@ -5652,9 +5652,9 @@  discard block
 block discarded – undo
5652 5652
         'max' => '',
5653 5653
       ),
5654 5654
       'group' => '0',
5655
-      'exposed' => FALSE,
5655
+      'exposed' => false,
5656 5656
       'expose' => array(
5657
-        'operator' => FALSE,
5657
+        'operator' => false,
5658 5658
         'label' => '',
5659 5659
       ),
5660 5660
       'id' => 'show_hosts',
@@ -5666,7 +5666,7 @@  discard block
 block discarded – undo
5666 5666
   $handler->override_option('path', 'account/%/computers/active');
5667 5667
   $handler->override_option('menu', array(
5668 5668
     'type' => 'default tab',
5669
-    'title' => bts('Active in past 30 days', array(), NULL, 'boinc:account-host-list'),
5669
+    'title' => bts('Active in past 30 days', array(), null, 'boinc:account-host-list'),
5670 5670
     'description' => 'Show only computers that have been active in the past month',
5671 5671
     'weight' => '0',
5672 5672
     'name' => 'navigation',
@@ -5682,7 +5682,7 @@  discard block
 block discarded – undo
5682 5682
   $handler->override_option('path', 'account/%/computers/all');
5683 5683
   $handler->override_option('menu', array(
5684 5684
     'type' => 'tab',
5685
-    'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'),
5685
+    'title' => bts('All computers', array(), null, 'boinc:account-host-list'),
5686 5686
     'description' => 'Show all computers associated with the account',
5687 5687
     'weight' => '1',
5688 5688
     'name' => 'navigation',
@@ -5722,7 +5722,7 @@  discard block
 block discarded – undo
5722 5722
       'hide_empty' => 0,
5723 5723
       'empty_zero' => 0,
5724 5724
       'hide_alter_empty' => 1,
5725
-      'set_precision' => FALSE,
5725
+      'set_precision' => false,
5726 5726
       'precision' => 0,
5727 5727
       'decimal' => '.',
5728 5728
       'separator' => ',',
@@ -5801,7 +5801,7 @@  discard block
 block discarded – undo
5801 5801
       'hide_empty' => 0,
5802 5802
       'empty_zero' => 0,
5803 5803
       'hide_alter_empty' => 1,
5804
-      'set_precision' => FALSE,
5804
+      'set_precision' => false,
5805 5805
       'precision' => 0,
5806 5806
       'decimal' => '.',
5807 5807
       'separator' => ',',
@@ -5845,7 +5845,7 @@  discard block
 block discarded – undo
5845 5845
       'empty' => '',
5846 5846
       'hide_empty' => 0,
5847 5847
       'empty_zero' => 0,
5848
-      'set_precision' => FALSE,
5848
+      'set_precision' => false,
5849 5849
       'precision' => 0,
5850 5850
       'decimal' => '.',
5851 5851
       'separator' => '',
@@ -6368,9 +6368,9 @@  discard block
 block discarded – undo
6368 6368
         'max' => '',
6369 6369
       ),
6370 6370
       'group' => '0',
6371
-      'exposed' => FALSE,
6371
+      'exposed' => false,
6372 6372
       'expose' => array(
6373
-        'operator' => FALSE,
6373
+        'operator' => false,
6374 6374
         'label' => '',
6375 6375
       ),
6376 6376
       'id' => 'total_credit',
@@ -6528,7 +6528,7 @@  discard block
 block discarded – undo
6528 6528
       'hide_empty' => 0,
6529 6529
       'empty_zero' => 0,
6530 6530
       'hide_alter_empty' => 1,
6531
-      'set_precision' => FALSE,
6531
+      'set_precision' => false,
6532 6532
       'precision' => 0,
6533 6533
       'decimal' => '.',
6534 6534
       'separator' => '',
@@ -6607,7 +6607,7 @@  discard block
 block discarded – undo
6607 6607
       'hide_empty' => 0,
6608 6608
       'empty_zero' => 0,
6609 6609
       'hide_alter_empty' => 1,
6610
-      'set_precision' => FALSE,
6610
+      'set_precision' => false,
6611 6611
       'precision' => 0,
6612 6612
       'decimal' => '.',
6613 6613
       'separator' => '',
@@ -6683,7 +6683,7 @@  discard block
 block discarded – undo
6683 6683
       'hide_empty' => 0,
6684 6684
       'empty_zero' => 0,
6685 6685
       'hide_alter_empty' => 1,
6686
-      'set_precision' => FALSE,
6686
+      'set_precision' => false,
6687 6687
       'precision' => 0,
6688 6688
       'decimal' => '.',
6689 6689
       'separator' => '',
@@ -7231,9 +7231,9 @@  discard block
 block discarded – undo
7231 7231
         'max' => '',
7232 7232
       ),
7233 7233
       'group' => '0',
7234
-      'exposed' => FALSE,
7234
+      'exposed' => false,
7235 7235
       'expose' => array(
7236
-        'operator' => FALSE,
7236
+        'operator' => false,
7237 7237
         'label' => '',
7238 7238
       ),
7239 7239
       'id' => 'show_hosts',
@@ -7249,9 +7249,9 @@  discard block
 block discarded – undo
7249 7249
         'max' => '',
7250 7250
       ),
7251 7251
       'group' => '0',
7252
-      'exposed' => FALSE,
7252
+      'exposed' => false,
7253 7253
       'expose' => array(
7254
-        'operator' => FALSE,
7254
+        'operator' => false,
7255 7255
         'label' => '',
7256 7256
       ),
7257 7257
       'id' => 'total_credit',
@@ -7378,15 +7378,15 @@  discard block
 block discarded – undo
7378 7378
     'weight' => 0,
7379 7379
   ));
7380 7380
   $handler->override_option('allow', array(
7381
-    'use_pager' => FALSE,
7382
-    'items_per_page' => FALSE,
7383
-    'offset' => FALSE,
7384
-    'link_to_view' => FALSE,
7385
-    'more_link' => FALSE,
7386
-    'path_override' => FALSE,
7387
-    'title_override' => FALSE,
7388
-    'exposed_form' => FALSE,
7389
-    'fields_override' => FALSE,
7381
+    'use_pager' => false,
7382
+    'items_per_page' => false,
7383
+    'offset' => false,
7384
+    'link_to_view' => false,
7385
+    'more_link' => false,
7386
+    'path_override' => false,
7387
+    'title_override' => false,
7388
+    'exposed_form' => false,
7389
+    'fields_override' => false,
7390 7390
   ));
7391 7391
   $handler->override_option('argument_input', array());
7392 7392
   $handler->override_option('link_to_view', 0);
@@ -7402,7 +7402,7 @@  discard block
 block discarded – undo
7402 7402
   $view->base_table = 'result';
7403 7403
   $view->core = 0;
7404 7404
   $view->api_version = '2';
7405
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
7405
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
7406 7406
   $handler = $view->new_display('default', 'Defaults', 'default');
7407 7407
   $handler->override_option('fields', array(
7408 7408
     'name' => array(
@@ -7463,7 +7463,7 @@  discard block
 block discarded – undo
7463 7463
       'hide_empty' => 0,
7464 7464
       'empty_zero' => 0,
7465 7465
       'hide_alter_empty' => 1,
7466
-      'set_precision' => FALSE,
7466
+      'set_precision' => false,
7467 7467
       'precision' => 0,
7468 7468
       'decimal' => '.',
7469 7469
       'separator' => '',
@@ -7501,7 +7501,7 @@  discard block
 block discarded – undo
7501 7501
       'empty' => '',
7502 7502
       'hide_empty' => 0,
7503 7503
       'empty_zero' => 0,
7504
-      'set_precision' => FALSE,
7504
+      'set_precision' => false,
7505 7505
       'precision' => 0,
7506 7506
       'decimal' => '.',
7507 7507
       'separator' => '',
@@ -7698,7 +7698,7 @@  discard block
 block discarded – undo
7698 7698
       'empty' => '',
7699 7699
       'hide_empty' => 0,
7700 7700
       'empty_zero' => 0,
7701
-      'set_precision' => FALSE,
7701
+      'set_precision' => false,
7702 7702
       'precision' => 0,
7703 7703
       'decimal' => '.',
7704 7704
       'separator' => '',
@@ -7733,7 +7733,7 @@  discard block
 block discarded – undo
7733 7733
       'empty' => '',
7734 7734
       'hide_empty' => 0,
7735 7735
       'empty_zero' => 0,
7736
-      'set_precision' => FALSE,
7736
+      'set_precision' => false,
7737 7737
       'precision' => 0,
7738 7738
       'decimal' => '.',
7739 7739
       'separator' => '',
@@ -7768,7 +7768,7 @@  discard block
 block discarded – undo
7768 7768
       'empty' => '',
7769 7769
       'hide_empty' => 0,
7770 7770
       'empty_zero' => 0,
7771
-      'set_precision' => FALSE,
7771
+      'set_precision' => false,
7772 7772
       'precision' => 0,
7773 7773
       'decimal' => '.',
7774 7774
       'separator' => '',
@@ -7803,7 +7803,7 @@  discard block
 block discarded – undo
7803 7803
       'empty' => '',
7804 7804
       'hide_empty' => 0,
7805 7805
       'empty_zero' => 0,
7806
-      'set_precision' => FALSE,
7806
+      'set_precision' => false,
7807 7807
       'precision' => 0,
7808 7808
       'decimal' => '.',
7809 7809
       'separator' => '',
@@ -7838,7 +7838,7 @@  discard block
 block discarded – undo
7838 7838
       'empty' => '',
7839 7839
       'hide_empty' => 0,
7840 7840
       'empty_zero' => 0,
7841
-      'set_precision' => FALSE,
7841
+      'set_precision' => false,
7842 7842
       'precision' => 0,
7843 7843
       'decimal' => '.',
7844 7844
       'separator' => '',
@@ -8070,7 +8070,7 @@  discard block
 block discarded – undo
8070 8070
       'hide_empty' => 0,
8071 8071
       'empty_zero' => 0,
8072 8072
       'hide_alter_empty' => 1,
8073
-      'set_precision' => FALSE,
8073
+      'set_precision' => false,
8074 8074
       'precision' => 0,
8075 8075
       'decimal' => '.',
8076 8076
       'separator' => '',
@@ -8108,7 +8108,7 @@  discard block
 block discarded – undo
8108 8108
       'empty' => '',
8109 8109
       'hide_empty' => 0,
8110 8110
       'empty_zero' => 0,
8111
-      'set_precision' => FALSE,
8111
+      'set_precision' => false,
8112 8112
       'precision' => 0,
8113 8113
       'decimal' => '.',
8114 8114
       'separator' => '',
@@ -8347,9 +8347,9 @@  discard block
 block discarded – undo
8347 8347
         'max' => '',
8348 8348
       ),
8349 8349
       'group' => '0',
8350
-      'exposed' => FALSE,
8350
+      'exposed' => false,
8351 8351
       'expose' => array(
8352
-        'operator' => FALSE,
8352
+        'operator' => false,
8353 8353
         'label' => '',
8354 8354
       ),
8355 8355
       'id' => 'server_state',
@@ -8368,9 +8368,9 @@  discard block
 block discarded – undo
8368 8368
         'max' => '',
8369 8369
       ),
8370 8370
       'group' => '0',
8371
-      'exposed' => FALSE,
8371
+      'exposed' => false,
8372 8372
       'expose' => array(
8373
-        'operator' => FALSE,
8373
+        'operator' => false,
8374 8374
         'label' => '',
8375 8375
       ),
8376 8376
       'id' => 'outcome',
@@ -8389,9 +8389,9 @@  discard block
 block discarded – undo
8389 8389
         'max' => '7',
8390 8390
       ),
8391 8391
       'group' => '0',
8392
-      'exposed' => FALSE,
8392
+      'exposed' => false,
8393 8393
       'expose' => array(
8394
-        'operator' => FALSE,
8394
+        'operator' => false,
8395 8395
         'label' => '',
8396 8396
       ),
8397 8397
       'id' => 'outcome_1',
@@ -8410,9 +8410,9 @@  discard block
 block discarded – undo
8410 8410
         'max' => '',
8411 8411
       ),
8412 8412
       'group' => '0',
8413
-      'exposed' => FALSE,
8413
+      'exposed' => false,
8414 8414
       'expose' => array(
8415
-        'operator' => FALSE,
8415
+        'operator' => false,
8416 8416
         'label' => '',
8417 8417
       ),
8418 8418
       'id' => 'outcome_2',
@@ -8449,9 +8449,9 @@  discard block
 block discarded – undo
8449 8449
         'max' => '',
8450 8450
       ),
8451 8451
       'group' => '0',
8452
-      'exposed' => FALSE,
8452
+      'exposed' => false,
8453 8453
       'expose' => array(
8454
-        'operator' => FALSE,
8454
+        'operator' => false,
8455 8455
         'label' => '',
8456 8456
       ),
8457 8457
       'id' => 'server_state',
@@ -8488,9 +8488,9 @@  discard block
 block discarded – undo
8488 8488
         'max' => '',
8489 8489
       ),
8490 8490
       'group' => '0',
8491
-      'exposed' => FALSE,
8491
+      'exposed' => false,
8492 8492
       'expose' => array(
8493
-        'operator' => FALSE,
8493
+        'operator' => false,
8494 8494
         'label' => '',
8495 8495
       ),
8496 8496
       'id' => 'server_state',
@@ -8514,9 +8514,9 @@  discard block
 block discarded – undo
8514 8514
         'max' => '',
8515 8515
       ),
8516 8516
       'group' => '0',
8517
-      'exposed' => FALSE,
8517
+      'exposed' => false,
8518 8518
       'expose' => array(
8519
-        'operator' => FALSE,
8519
+        'operator' => false,
8520 8520
         'label' => '',
8521 8521
       ),
8522 8522
       'id' => 'outcome',
@@ -8540,9 +8540,9 @@  discard block
 block discarded – undo
8540 8540
         'max' => '',
8541 8541
       ),
8542 8542
       'group' => '0',
8543
-      'exposed' => FALSE,
8543
+      'exposed' => false,
8544 8544
       'expose' => array(
8545
-        'operator' => FALSE,
8545
+        'operator' => false,
8546 8546
         'label' => '',
8547 8547
       ),
8548 8548
       'id' => 'outcome_1',
@@ -8566,9 +8566,9 @@  discard block
 block discarded – undo
8566 8566
         'max' => '',
8567 8567
       ),
8568 8568
       'group' => '0',
8569
-      'exposed' => FALSE,
8569
+      'exposed' => false,
8570 8570
       'expose' => array(
8571
-        'operator' => FALSE,
8571
+        'operator' => false,
8572 8572
         'label' => '',
8573 8573
       ),
8574 8574
       'id' => 'validate_state',
@@ -8592,9 +8592,9 @@  discard block
 block discarded – undo
8592 8592
         'max' => '',
8593 8593
       ),
8594 8594
       'group' => '0',
8595
-      'exposed' => FALSE,
8595
+      'exposed' => false,
8596 8596
       'expose' => array(
8597
-        'operator' => FALSE,
8597
+        'operator' => false,
8598 8598
         'label' => '',
8599 8599
       ),
8600 8600
       'id' => 'validate_state_1',
@@ -8618,9 +8618,9 @@  discard block
 block discarded – undo
8618 8618
         'max' => '',
8619 8619
       ),
8620 8620
       'group' => '0',
8621
-      'exposed' => FALSE,
8621
+      'exposed' => false,
8622 8622
       'expose' => array(
8623
-        'operator' => FALSE,
8623
+        'operator' => false,
8624 8624
         'label' => '',
8625 8625
       ),
8626 8626
       'id' => 'validate_state_2',
@@ -8667,9 +8667,9 @@  discard block
 block discarded – undo
8667 8667
         'max' => '',
8668 8668
       ),
8669 8669
       'group' => '0',
8670
-      'exposed' => FALSE,
8670
+      'exposed' => false,
8671 8671
       'expose' => array(
8672
-        'operator' => FALSE,
8672
+        'operator' => false,
8673 8673
         'label' => '',
8674 8674
       ),
8675 8675
       'id' => 'server_state',
@@ -8688,9 +8688,9 @@  discard block
 block discarded – undo
8688 8688
         'max' => '',
8689 8689
       ),
8690 8690
       'group' => '0',
8691
-      'exposed' => FALSE,
8691
+      'exposed' => false,
8692 8692
       'expose' => array(
8693
-        'operator' => FALSE,
8693
+        'operator' => false,
8694 8694
         'label' => '',
8695 8695
       ),
8696 8696
       'id' => 'outcome',
@@ -8709,9 +8709,9 @@  discard block
 block discarded – undo
8709 8709
         'max' => '',
8710 8710
       ),
8711 8711
       'group' => '0',
8712
-      'exposed' => FALSE,
8712
+      'exposed' => false,
8713 8713
       'expose' => array(
8714
-        'operator' => FALSE,
8714
+        'operator' => false,
8715 8715
         'label' => '',
8716 8716
       ),
8717 8717
       'id' => 'validate_state',
@@ -8730,9 +8730,9 @@  discard block
 block discarded – undo
8730 8730
         'max' => '4',
8731 8731
       ),
8732 8732
       'group' => '0',
8733
-      'exposed' => FALSE,
8733
+      'exposed' => false,
8734 8734
       'expose' => array(
8735
-        'operator' => FALSE,
8735
+        'operator' => false,
8736 8736
         'label' => '',
8737 8737
       ),
8738 8738
       'id' => 'validate_state_1',
@@ -8751,9 +8751,9 @@  discard block
 block discarded – undo
8751 8751
         'max' => '',
8752 8752
       ),
8753 8753
       'group' => '0',
8754
-      'exposed' => FALSE,
8754
+      'exposed' => false,
8755 8755
       'expose' => array(
8756
-        'operator' => FALSE,
8756
+        'operator' => false,
8757 8757
         'label' => '',
8758 8758
       ),
8759 8759
       'id' => 'validate_state_2',
@@ -8790,9 +8790,9 @@  discard block
 block discarded – undo
8790 8790
         'max' => '',
8791 8791
       ),
8792 8792
       'group' => '0',
8793
-      'exposed' => FALSE,
8793
+      'exposed' => false,
8794 8794
       'expose' => array(
8795
-        'operator' => FALSE,
8795
+        'operator' => false,
8796 8796
         'label' => '',
8797 8797
       ),
8798 8798
       'id' => 'server_state',
@@ -8811,9 +8811,9 @@  discard block
 block discarded – undo
8811 8811
         'max' => '',
8812 8812
       ),
8813 8813
       'group' => '0',
8814
-      'exposed' => FALSE,
8814
+      'exposed' => false,
8815 8815
       'expose' => array(
8816
-        'operator' => FALSE,
8816
+        'operator' => false,
8817 8817
         'label' => '',
8818 8818
       ),
8819 8819
       'id' => 'outcome',
@@ -8832,9 +8832,9 @@  discard block
 block discarded – undo
8832 8832
         'max' => '',
8833 8833
       ),
8834 8834
       'group' => '0',
8835
-      'exposed' => FALSE,
8835
+      'exposed' => false,
8836 8836
       'expose' => array(
8837
-        'operator' => FALSE,
8837
+        'operator' => false,
8838 8838
         'label' => '',
8839 8839
       ),
8840 8840
       'id' => 'validate_state',
@@ -8872,7 +8872,7 @@  discard block
 block discarded – undo
8872 8872
   $view->base_table = 'result';
8873 8873
   $view->core = 0;
8874 8874
   $view->api_version = '2';
8875
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
8875
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
8876 8876
   $handler = $view->new_display('default', 'Defaults', 'default');
8877 8877
   $handler->override_option('fields', array(
8878 8878
     'name' => array(
@@ -8927,7 +8927,7 @@  discard block
 block discarded – undo
8927 8927
       'empty' => '',
8928 8928
       'hide_empty' => 0,
8929 8929
       'empty_zero' => 0,
8930
-      'set_precision' => FALSE,
8930
+      'set_precision' => false,
8931 8931
       'precision' => 0,
8932 8932
       'decimal' => '.',
8933 8933
       'separator' => '',
@@ -9101,7 +9101,7 @@  discard block
 block discarded – undo
9101 9101
       'hide_empty' => 0,
9102 9102
       'empty_zero' => 0,
9103 9103
       'hide_alter_empty' => 1,
9104
-      'set_precision' => FALSE,
9104
+      'set_precision' => false,
9105 9105
       'precision' => 0,
9106 9106
       'decimal' => '.',
9107 9107
       'separator' => '',
@@ -9180,7 +9180,7 @@  discard block
 block discarded – undo
9180 9180
       'hide_empty' => 0,
9181 9181
       'empty_zero' => 0,
9182 9182
       'hide_alter_empty' => 1,
9183
-      'set_precision' => FALSE,
9183
+      'set_precision' => false,
9184 9184
       'precision' => 0,
9185 9185
       'decimal' => '.',
9186 9186
       'separator' => '',
@@ -9259,7 +9259,7 @@  discard block
 block discarded – undo
9259 9259
       'hide_empty' => 0,
9260 9260
       'empty_zero' => 0,
9261 9261
       'hide_alter_empty' => 1,
9262
-      'set_precision' => FALSE,
9262
+      'set_precision' => false,
9263 9263
       'precision' => 0,
9264 9264
       'decimal' => '.',
9265 9265
       'separator' => '',
@@ -9338,7 +9338,7 @@  discard block
 block discarded – undo
9338 9338
       'hide_empty' => 0,
9339 9339
       'empty_zero' => 0,
9340 9340
       'hide_alter_empty' => 1,
9341
-      'set_precision' => FALSE,
9341
+      'set_precision' => false,
9342 9342
       'precision' => 0,
9343 9343
       'decimal' => '.',
9344 9344
       'separator' => '',
@@ -9412,7 +9412,7 @@  discard block
 block discarded – undo
9412 9412
       'empty' => '',
9413 9413
       'hide_empty' => 0,
9414 9414
       'empty_zero' => 0,
9415
-      'set_precision' => FALSE,
9415
+      'set_precision' => false,
9416 9416
       'precision' => 0,
9417 9417
       'decimal' => '.',
9418 9418
       'separator' => '',
@@ -9520,7 +9520,7 @@  discard block
 block discarded – undo
9520 9520
       'hide_empty' => 0,
9521 9521
       'empty_zero' => 0,
9522 9522
       'hide_alter_empty' => 1,
9523
-      'set_precision' => FALSE,
9523
+      'set_precision' => false,
9524 9524
       'precision' => 0,
9525 9525
       'decimal' => '.',
9526 9526
       'separator' => ',',
@@ -9561,7 +9561,7 @@  discard block
 block discarded – undo
9561 9561
       'hide_empty' => 0,
9562 9562
       'empty_zero' => 0,
9563 9563
       'hide_alter_empty' => 1,
9564
-      'set_precision' => FALSE,
9564
+      'set_precision' => false,
9565 9565
       'precision' => 0,
9566 9566
       'decimal' => '.',
9567 9567
       'separator' => ',',
@@ -9602,7 +9602,7 @@  discard block
 block discarded – undo
9602 9602
       'hide_empty' => 0,
9603 9603
       'empty_zero' => 0,
9604 9604
       'hide_alter_empty' => 1,
9605
-      'set_precision' => FALSE,
9605
+      'set_precision' => false,
9606 9606
       'precision' => 0,
9607 9607
       'decimal' => '.',
9608 9608
       'separator' => ',',
@@ -9643,7 +9643,7 @@  discard block
 block discarded – undo
9643 9643
       'hide_empty' => 0,
9644 9644
       'empty_zero' => 0,
9645 9645
       'hide_alter_empty' => 1,
9646
-      'set_precision' => FALSE,
9646
+      'set_precision' => false,
9647 9647
       'precision' => 0,
9648 9648
       'decimal' => '.',
9649 9649
       'separator' => '',
@@ -9792,7 +9792,7 @@  discard block
 block discarded – undo
9792 9792
       'hide_empty' => 0,
9793 9793
       'empty_zero' => 0,
9794 9794
       'hide_alter_empty' => 1,
9795
-      'set_precision' => FALSE,
9795
+      'set_precision' => false,
9796 9796
       'precision' => 0,
9797 9797
       'decimal' => '.',
9798 9798
       'separator' => ',',
@@ -9833,7 +9833,7 @@  discard block
 block discarded – undo
9833 9833
       'hide_empty' => 0,
9834 9834
       'empty_zero' => 0,
9835 9835
       'hide_alter_empty' => 1,
9836
-      'set_precision' => FALSE,
9836
+      'set_precision' => false,
9837 9837
       'precision' => 0,
9838 9838
       'decimal' => '.',
9839 9839
       'separator' => '',
@@ -10014,7 +10014,7 @@  discard block
 block discarded – undo
10014 10014
   $view->base_table = 'user';
10015 10015
   $view->core = 6;
10016 10016
   $view->api_version = '2';
10017
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10017
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
10018 10018
   $handler = $view->new_display('default', 'Defaults', 'default');
10019 10019
   $handler->override_option('fields', array(
10020 10020
     'rownumber' => array(
@@ -10075,7 +10075,7 @@  discard block
 block discarded – undo
10075 10075
       'hide_empty' => 0,
10076 10076
       'empty_zero' => 0,
10077 10077
       'hide_alter_empty' => 1,
10078
-      'set_precision' => FALSE,
10078
+      'set_precision' => false,
10079 10079
       'precision' => 0,
10080 10080
       'decimal' => '.',
10081 10081
       'separator' => '',
@@ -10323,9 +10323,9 @@  discard block
 block discarded – undo
10323 10323
         'max' => '',
10324 10324
       ),
10325 10325
       'group' => '0',
10326
-      'exposed' => FALSE,
10326
+      'exposed' => false,
10327 10327
       'expose' => array(
10328
-        'operator' => FALSE,
10328
+        'operator' => false,
10329 10329
         'label' => '',
10330 10330
       ),
10331 10331
       'id' => 'total_credit',
@@ -10469,7 +10469,7 @@  discard block
 block discarded – undo
10469 10469
       'hide_empty' => 0,
10470 10470
       'empty_zero' => 0,
10471 10471
       'hide_alter_empty' => 1,
10472
-      'set_precision' => FALSE,
10472
+      'set_precision' => false,
10473 10473
       'precision' => 0,
10474 10474
       'decimal' => '.',
10475 10475
       'separator' => '',
@@ -10773,15 +10773,15 @@  discard block
 block discarded – undo
10773 10773
     'weight' => 0,
10774 10774
   ));
10775 10775
   $handler->override_option('allow', array(
10776
-    'use_pager' => FALSE,
10777
-    'items_per_page' => FALSE,
10778
-    'offset' => FALSE,
10779
-    'link_to_view' => FALSE,
10780
-    'more_link' => FALSE,
10781
-    'path_override' => FALSE,
10782
-    'title_override' => FALSE,
10783
-    'exposed_form' => FALSE,
10784
-    'fields_override' => FALSE,
10776
+    'use_pager' => false,
10777
+    'items_per_page' => false,
10778
+    'offset' => false,
10779
+    'link_to_view' => false,
10780
+    'more_link' => false,
10781
+    'path_override' => false,
10782
+    'title_override' => false,
10783
+    'exposed_form' => false,
10784
+    'fields_override' => false,
10785 10785
   ));
10786 10786
   $handler->override_option('argument_input', array());
10787 10787
   $handler->override_option('link_to_view', 0);
@@ -10797,7 +10797,7 @@  discard block
 block discarded – undo
10797 10797
   $view->base_table = 'workunit';
10798 10798
   $view->core = 0;
10799 10799
   $view->api_version = '2';
10800
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10800
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
10801 10801
   $handler = $view->new_display('default', 'Defaults', 'default');
10802 10802
   $handler->override_option('relationships', array(
10803 10803
     'appid' => array(
@@ -10959,7 +10959,7 @@  discard block
 block discarded – undo
10959 10959
       'empty' => '',
10960 10960
       'hide_empty' => 0,
10961 10961
       'empty_zero' => 0,
10962
-      'set_precision' => FALSE,
10962
+      'set_precision' => false,
10963 10963
       'precision' => 0,
10964 10964
       'decimal' => '.',
10965 10965
       'separator' => '',
@@ -11097,7 +11097,7 @@  discard block
 block discarded – undo
11097 11097
       'empty' => '',
11098 11098
       'hide_empty' => 0,
11099 11099
       'empty_zero' => 0,
11100
-      'set_precision' => FALSE,
11100
+      'set_precision' => false,
11101 11101
       'precision' => 0,
11102 11102
       'decimal' => '.',
11103 11103
       'separator' => '',
@@ -11132,7 +11132,7 @@  discard block
 block discarded – undo
11132 11132
       'empty' => '',
11133 11133
       'hide_empty' => 0,
11134 11134
       'empty_zero' => 0,
11135
-      'set_precision' => FALSE,
11135
+      'set_precision' => false,
11136 11136
       'precision' => 0,
11137 11137
       'decimal' => '.',
11138 11138
       'separator' => '',
@@ -11167,7 +11167,7 @@  discard block
 block discarded – undo
11167 11167
       'empty' => '',
11168 11168
       'hide_empty' => 0,
11169 11169
       'empty_zero' => 0,
11170
-      'set_precision' => FALSE,
11170
+      'set_precision' => false,
11171 11171
       'precision' => 0,
11172 11172
       'decimal' => '.',
11173 11173
       'separator' => '',
@@ -11202,7 +11202,7 @@  discard block
 block discarded – undo
11202 11202
       'empty' => '',
11203 11203
       'hide_empty' => 0,
11204 11204
       'empty_zero' => 0,
11205
-      'set_precision' => FALSE,
11205
+      'set_precision' => false,
11206 11206
       'precision' => 0,
11207 11207
       'decimal' => '.',
11208 11208
       'separator' => '',
@@ -11237,7 +11237,7 @@  discard block
 block discarded – undo
11237 11237
       'empty' => '',
11238 11238
       'hide_empty' => 0,
11239 11239
       'empty_zero' => 0,
11240
-      'set_precision' => FALSE,
11240
+      'set_precision' => false,
11241 11241
       'precision' => 0,
11242 11242
       'decimal' => '.',
11243 11243
       'separator' => '',
@@ -11272,7 +11272,7 @@  discard block
 block discarded – undo
11272 11272
       'empty' => '',
11273 11273
       'hide_empty' => 0,
11274 11274
       'empty_zero' => 0,
11275
-      'set_precision' => FALSE,
11275
+      'set_precision' => false,
11276 11276
       'precision' => 0,
11277 11277
       'decimal' => '.',
11278 11278
       'separator' => '',
@@ -11307,7 +11307,7 @@  discard block
 block discarded – undo
11307 11307
       'empty' => '',
11308 11308
       'hide_empty' => 0,
11309 11309
       'empty_zero' => 0,
11310
-      'set_precision' => FALSE,
11310
+      'set_precision' => false,
11311 11311
       'precision' => 0,
11312 11312
       'decimal' => '.',
11313 11313
       'separator' => '',
@@ -11494,7 +11494,7 @@  discard block
 block discarded – undo
11494 11494
       'empty' => '',
11495 11495
       'hide_empty' => 0,
11496 11496
       'empty_zero' => 0,
11497
-      'set_precision' => FALSE,
11497
+      'set_precision' => false,
11498 11498
       'precision' => 0,
11499 11499
       'decimal' => '.',
11500 11500
       'separator' => ',',
@@ -11628,7 +11628,7 @@  discard block
 block discarded – undo
11628 11628
   $view->base_table = 'result';
11629 11629
   $view->core = 6;
11630 11630
   $view->api_version = '2';
11631
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
11631
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
11632 11632
   $handler = $view->new_display('default', 'Defaults', 'default');
11633 11633
   $handler->override_option('fields', array(
11634 11634
     'name' => array(
@@ -11689,7 +11689,7 @@  discard block
 block discarded – undo
11689 11689
       'hide_empty' => 0,
11690 11690
       'empty_zero' => 0,
11691 11691
       'hide_alter_empty' => 1,
11692
-      'set_precision' => FALSE,
11692
+      'set_precision' => false,
11693 11693
       'precision' => 0,
11694 11694
       'decimal' => '.',
11695 11695
       'separator' => '',
@@ -11730,7 +11730,7 @@  discard block
 block discarded – undo
11730 11730
       'hide_empty' => 0,
11731 11731
       'empty_zero' => 0,
11732 11732
       'hide_alter_empty' => 1,
11733
-      'set_precision' => FALSE,
11733
+      'set_precision' => false,
11734 11734
       'precision' => 0,
11735 11735
       'decimal' => '.',
11736 11736
       'separator' => '',
@@ -11930,7 +11930,7 @@  discard block
 block discarded – undo
11930 11930
       'empty' => '',
11931 11931
       'hide_empty' => 0,
11932 11932
       'empty_zero' => 0,
11933
-      'set_precision' => FALSE,
11933
+      'set_precision' => false,
11934 11934
       'precision' => 0,
11935 11935
       'decimal' => '.',
11936 11936
       'separator' => '',
@@ -11965,7 +11965,7 @@  discard block
 block discarded – undo
11965 11965
       'empty' => '',
11966 11966
       'hide_empty' => 0,
11967 11967
       'empty_zero' => 0,
11968
-      'set_precision' => FALSE,
11968
+      'set_precision' => false,
11969 11969
       'precision' => 0,
11970 11970
       'decimal' => '.',
11971 11971
       'separator' => '',
@@ -12000,7 +12000,7 @@  discard block
 block discarded – undo
12000 12000
       'empty' => '',
12001 12001
       'hide_empty' => 0,
12002 12002
       'empty_zero' => 0,
12003
-      'set_precision' => FALSE,
12003
+      'set_precision' => false,
12004 12004
       'precision' => 0,
12005 12005
       'decimal' => '.',
12006 12006
       'separator' => '',
@@ -12035,7 +12035,7 @@  discard block
 block discarded – undo
12035 12035
       'empty' => '',
12036 12036
       'hide_empty' => 0,
12037 12037
       'empty_zero' => 0,
12038
-      'set_precision' => FALSE,
12038
+      'set_precision' => false,
12039 12039
       'precision' => 0,
12040 12040
       'decimal' => '.',
12041 12041
       'separator' => '',
@@ -12070,7 +12070,7 @@  discard block
 block discarded – undo
12070 12070
       'empty' => '',
12071 12071
       'hide_empty' => 0,
12072 12072
       'empty_zero' => 0,
12073
-      'set_precision' => FALSE,
12073
+      'set_precision' => false,
12074 12074
       'precision' => 0,
12075 12075
       'decimal' => '.',
12076 12076
       'separator' => '',
@@ -12302,7 +12302,7 @@  discard block
 block discarded – undo
12302 12302
       'hide_empty' => 0,
12303 12303
       'empty_zero' => 0,
12304 12304
       'hide_alter_empty' => 1,
12305
-      'set_precision' => FALSE,
12305
+      'set_precision' => false,
12306 12306
       'precision' => 0,
12307 12307
       'decimal' => '.',
12308 12308
       'separator' => '',
@@ -12340,7 +12340,7 @@  discard block
 block discarded – undo
12340 12340
       'empty' => '',
12341 12341
       'hide_empty' => 0,
12342 12342
       'empty_zero' => 0,
12343
-      'set_precision' => FALSE,
12343
+      'set_precision' => false,
12344 12344
       'precision' => 0,
12345 12345
       'decimal' => '.',
12346 12346
       'separator' => '',
@@ -12607,9 +12607,9 @@  discard block
 block discarded – undo
12607 12607
         'max' => '',
12608 12608
       ),
12609 12609
       'group' => '0',
12610
-      'exposed' => FALSE,
12610
+      'exposed' => false,
12611 12611
       'expose' => array(
12612
-        'operator' => FALSE,
12612
+        'operator' => false,
12613 12613
         'label' => '',
12614 12614
       ),
12615 12615
       'id' => 'server_state',
@@ -12628,9 +12628,9 @@  discard block
 block discarded – undo
12628 12628
         'max' => '',
12629 12629
       ),
12630 12630
       'group' => '0',
12631
-      'exposed' => FALSE,
12631
+      'exposed' => false,
12632 12632
       'expose' => array(
12633
-        'operator' => FALSE,
12633
+        'operator' => false,
12634 12634
         'label' => '',
12635 12635
       ),
12636 12636
       'id' => 'outcome',
@@ -12649,9 +12649,9 @@  discard block
 block discarded – undo
12649 12649
         'max' => '7',
12650 12650
       ),
12651 12651
       'group' => '0',
12652
-      'exposed' => FALSE,
12652
+      'exposed' => false,
12653 12653
       'expose' => array(
12654
-        'operator' => FALSE,
12654
+        'operator' => false,
12655 12655
         'label' => '',
12656 12656
       ),
12657 12657
       'id' => 'outcome_1',
@@ -12670,9 +12670,9 @@  discard block
 block discarded – undo
12670 12670
         'max' => '',
12671 12671
       ),
12672 12672
       'group' => '0',
12673
-      'exposed' => FALSE,
12673
+      'exposed' => false,
12674 12674
       'expose' => array(
12675
-        'operator' => FALSE,
12675
+        'operator' => false,
12676 12676
         'label' => '',
12677 12677
       ),
12678 12678
       'id' => 'outcome_2',
@@ -12709,9 +12709,9 @@  discard block
 block discarded – undo
12709 12709
         'max' => '',
12710 12710
       ),
12711 12711
       'group' => '0',
12712
-      'exposed' => FALSE,
12712
+      'exposed' => false,
12713 12713
       'expose' => array(
12714
-        'operator' => FALSE,
12714
+        'operator' => false,
12715 12715
         'label' => '',
12716 12716
       ),
12717 12717
       'id' => 'server_state',
@@ -12748,9 +12748,9 @@  discard block
 block discarded – undo
12748 12748
         'max' => '',
12749 12749
       ),
12750 12750
       'group' => '0',
12751
-      'exposed' => FALSE,
12751
+      'exposed' => false,
12752 12752
       'expose' => array(
12753
-        'operator' => FALSE,
12753
+        'operator' => false,
12754 12754
         'label' => '',
12755 12755
       ),
12756 12756
       'id' => 'server_state',
@@ -12774,9 +12774,9 @@  discard block
 block discarded – undo
12774 12774
         'max' => '',
12775 12775
       ),
12776 12776
       'group' => '0',
12777
-      'exposed' => FALSE,
12777
+      'exposed' => false,
12778 12778
       'expose' => array(
12779
-        'operator' => FALSE,
12779
+        'operator' => false,
12780 12780
         'label' => '',
12781 12781
       ),
12782 12782
       'id' => 'outcome',
@@ -12800,9 +12800,9 @@  discard block
 block discarded – undo
12800 12800
         'max' => '',
12801 12801
       ),
12802 12802
       'group' => '0',
12803
-      'exposed' => FALSE,
12803
+      'exposed' => false,
12804 12804
       'expose' => array(
12805
-        'operator' => FALSE,
12805
+        'operator' => false,
12806 12806
         'label' => '',
12807 12807
       ),
12808 12808
       'id' => 'outcome_1',
@@ -12826,9 +12826,9 @@  discard block
 block discarded – undo
12826 12826
         'max' => '',
12827 12827
       ),
12828 12828
       'group' => '0',
12829
-      'exposed' => FALSE,
12829
+      'exposed' => false,
12830 12830
       'expose' => array(
12831
-        'operator' => FALSE,
12831
+        'operator' => false,
12832 12832
         'label' => '',
12833 12833
       ),
12834 12834
       'id' => 'validate_state',
@@ -12852,9 +12852,9 @@  discard block
 block discarded – undo
12852 12852
         'max' => '',
12853 12853
       ),
12854 12854
       'group' => '0',
12855
-      'exposed' => FALSE,
12855
+      'exposed' => false,
12856 12856
       'expose' => array(
12857
-        'operator' => FALSE,
12857
+        'operator' => false,
12858 12858
         'label' => '',
12859 12859
       ),
12860 12860
       'id' => 'validate_state_1',
@@ -12878,9 +12878,9 @@  discard block
 block discarded – undo
12878 12878
         'max' => '',
12879 12879
       ),
12880 12880
       'group' => '0',
12881
-      'exposed' => FALSE,
12881
+      'exposed' => false,
12882 12882
       'expose' => array(
12883
-        'operator' => FALSE,
12883
+        'operator' => false,
12884 12884
         'label' => '',
12885 12885
       ),
12886 12886
       'id' => 'validate_state_2',
@@ -12927,9 +12927,9 @@  discard block
 block discarded – undo
12927 12927
         'max' => '',
12928 12928
       ),
12929 12929
       'group' => '0',
12930
-      'exposed' => FALSE,
12930
+      'exposed' => false,
12931 12931
       'expose' => array(
12932
-        'operator' => FALSE,
12932
+        'operator' => false,
12933 12933
         'label' => '',
12934 12934
       ),
12935 12935
       'id' => 'server_state',
@@ -12948,9 +12948,9 @@  discard block
 block discarded – undo
12948 12948
         'max' => '',
12949 12949
       ),
12950 12950
       'group' => '0',
12951
-      'exposed' => FALSE,
12951
+      'exposed' => false,
12952 12952
       'expose' => array(
12953
-        'operator' => FALSE,
12953
+        'operator' => false,
12954 12954
         'label' => '',
12955 12955
       ),
12956 12956
       'id' => 'outcome',
@@ -12969,9 +12969,9 @@  discard block
 block discarded – undo
12969 12969
         'max' => '',
12970 12970
       ),
12971 12971
       'group' => '0',
12972
-      'exposed' => FALSE,
12972
+      'exposed' => false,
12973 12973
       'expose' => array(
12974
-        'operator' => FALSE,
12974
+        'operator' => false,
12975 12975
         'label' => '',
12976 12976
       ),
12977 12977
       'id' => 'validate_state',
@@ -12990,9 +12990,9 @@  discard block
 block discarded – undo
12990 12990
         'max' => '4',
12991 12991
       ),
12992 12992
       'group' => '0',
12993
-      'exposed' => FALSE,
12993
+      'exposed' => false,
12994 12994
       'expose' => array(
12995
-        'operator' => FALSE,
12995
+        'operator' => false,
12996 12996
         'label' => '',
12997 12997
       ),
12998 12998
       'id' => 'validate_state_1',
@@ -13011,9 +13011,9 @@  discard block
 block discarded – undo
13011 13011
         'max' => '',
13012 13012
       ),
13013 13013
       'group' => '0',
13014
-      'exposed' => FALSE,
13014
+      'exposed' => false,
13015 13015
       'expose' => array(
13016
-        'operator' => FALSE,
13016
+        'operator' => false,
13017 13017
         'label' => '',
13018 13018
       ),
13019 13019
       'id' => 'validate_state_2',
@@ -13050,9 +13050,9 @@  discard block
 block discarded – undo
13050 13050
         'max' => '',
13051 13051
       ),
13052 13052
       'group' => '0',
13053
-      'exposed' => FALSE,
13053
+      'exposed' => false,
13054 13054
       'expose' => array(
13055
-        'operator' => FALSE,
13055
+        'operator' => false,
13056 13056
         'label' => '',
13057 13057
       ),
13058 13058
       'id' => 'server_state',
@@ -13071,9 +13071,9 @@  discard block
 block discarded – undo
13071 13071
         'max' => '',
13072 13072
       ),
13073 13073
       'group' => '0',
13074
-      'exposed' => FALSE,
13074
+      'exposed' => false,
13075 13075
       'expose' => array(
13076
-        'operator' => FALSE,
13076
+        'operator' => false,
13077 13077
         'label' => '',
13078 13078
       ),
13079 13079
       'id' => 'outcome',
@@ -13092,9 +13092,9 @@  discard block
 block discarded – undo
13092 13092
         'max' => '',
13093 13093
       ),
13094 13094
       'group' => '0',
13095
-      'exposed' => FALSE,
13095
+      'exposed' => false,
13096 13096
       'expose' => array(
13097
-        'operator' => FALSE,
13097
+        'operator' => false,
13098 13098
         'label' => '',
13099 13099
       ),
13100 13100
       'id' => 'validate_state',
Please login to merge, or discard this patch.
Indentation   +6245 added lines, -6245 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' => 0,
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' => 0,
2004
+        'id' => 'create_time',
2005
+        'table' => 'host',
2006
+        'field' => 'create_time',
2007
+        'relationship' => 'none',
2008 2008
     ),
2009 2009
     'total_credit' => array(
2010
-      'label' => 'Total credit',
2011
-      'alter' => array(
2010
+        'label' => 'Total credit',
2011
+        'alter' => array(
2012 2012
         'alter_text' => 0,
2013 2013
         'text' => '',
2014 2014
         'make_link' => 0,
@@ -2027,29 +2027,29 @@  discard block
 block discarded – undo
2027 2027
         'ellipsis' => 1,
2028 2028
         'html' => 0,
2029 2029
         'strip_tags' => 0,
2030
-      ),
2031
-      'empty' => '0',
2032
-      'hide_empty' => 0,
2033
-      'empty_zero' => 0,
2034
-      'hide_alter_empty' => 0,
2035
-      'set_precision' => 1,
2036
-      'precision' => '0',
2037
-      'decimal' => '.',
2038
-      'separator' => ',',
2039
-      'format_plural' => 0,
2040
-      'format_plural_singular' => '1',
2041
-      'format_plural_plural' => '@count',
2042
-      'prefix' => '',
2043
-      'suffix' => '',
2044
-      'exclude' => 0,
2045
-      'id' => 'total_credit',
2046
-      'table' => 'host',
2047
-      'field' => 'total_credit',
2048
-      'relationship' => 'none',
2030
+        ),
2031
+        'empty' => '0',
2032
+        'hide_empty' => 0,
2033
+        'empty_zero' => 0,
2034
+        'hide_alter_empty' => 0,
2035
+        'set_precision' => 1,
2036
+        'precision' => '0',
2037
+        'decimal' => '.',
2038
+        'separator' => ',',
2039
+        'format_plural' => 0,
2040
+        'format_plural_singular' => '1',
2041
+        'format_plural_plural' => '@count',
2042
+        'prefix' => '',
2043
+        'suffix' => '',
2044
+        'exclude' => 0,
2045
+        'id' => 'total_credit',
2046
+        'table' => 'host',
2047
+        'field' => 'total_credit',
2048
+        'relationship' => 'none',
2049 2049
     ),
2050 2050
     'expavg_credit' => array(
2051
-      'label' => 'Average credit',
2052
-      'alter' => array(
2051
+        'label' => 'Average credit',
2052
+        'alter' => array(
2053 2053
         'alter_text' => 0,
2054 2054
         'text' => '',
2055 2055
         'make_link' => 0,
@@ -2066,25 +2066,25 @@  discard block
 block discarded – undo
2066 2066
         'ellipsis' => 1,
2067 2067
         'html' => 0,
2068 2068
         'strip_tags' => 0,
2069
-      ),
2070
-      'empty' => '',
2071
-      'hide_empty' => 0,
2072
-      'empty_zero' => 0,
2073
-      'set_precision' => 1,
2074
-      'precision' => '2',
2075
-      'decimal' => '.',
2076
-      'separator' => ',',
2077
-      'prefix' => '',
2078
-      'suffix' => '',
2079
-      'exclude' => 0,
2080
-      'id' => 'expavg_credit',
2081
-      'table' => 'host',
2082
-      'field' => 'expavg_credit',
2083
-      'relationship' => 'none',
2069
+        ),
2070
+        'empty' => '',
2071
+        'hide_empty' => 0,
2072
+        'empty_zero' => 0,
2073
+        'set_precision' => 1,
2074
+        'precision' => '2',
2075
+        'decimal' => '.',
2076
+        'separator' => ',',
2077
+        'prefix' => '',
2078
+        'suffix' => '',
2079
+        'exclude' => 0,
2080
+        'id' => 'expavg_credit',
2081
+        'table' => 'host',
2082
+        'field' => 'expavg_credit',
2083
+        'relationship' => 'none',
2084 2084
     ),
2085 2085
     'host_cpid' => array(
2086
-      'label' => 'Cross project ID',
2087
-      'alter' => array(
2086
+        'label' => 'Cross project ID',
2087
+        'alter' => array(
2088 2088
         'alter_text' => 0,
2089 2089
         'text' => '',
2090 2090
         'make_link' => 0,
@@ -2103,20 +2103,20 @@  discard block
 block discarded – undo
2103 2103
         'ellipsis' => 1,
2104 2104
         'html' => 0,
2105 2105
         'strip_tags' => 0,
2106
-      ),
2107
-      'empty' => '',
2108
-      'hide_empty' => 0,
2109
-      'empty_zero' => 0,
2110
-      'hide_alter_empty' => 1,
2111
-      'exclude' => 1,
2112
-      'id' => 'host_cpid',
2113
-      'table' => 'host',
2114
-      'field' => 'host_cpid',
2115
-      'relationship' => 'none',
2106
+        ),
2107
+        'empty' => '',
2108
+        'hide_empty' => 0,
2109
+        'empty_zero' => 0,
2110
+        'hide_alter_empty' => 1,
2111
+        'exclude' => 1,
2112
+        'id' => 'host_cpid',
2113
+        'table' => 'host',
2114
+        'field' => 'host_cpid',
2115
+        'relationship' => 'none',
2116 2116
     ),
2117 2117
     'phpcode_7' => array(
2118
-      'label' => 'Cross project credit',
2119
-      'alter' => array(
2118
+        'label' => 'Cross project credit',
2119
+        'alter' => array(
2120 2120
         'alter_text' => 0,
2121 2121
         'text' => '',
2122 2122
         'make_link' => 0,
@@ -2133,11 +2133,11 @@  discard block
 block discarded – undo
2133 2133
         'ellipsis' => 1,
2134 2134
         'html' => 0,
2135 2135
         'strip_tags' => 0,
2136
-      ),
2137
-      'empty' => '',
2138
-      'hide_empty' => 1,
2139
-      'empty_zero' => 0,
2140
-      'value' => '<?php
2136
+        ),
2137
+        'empty' => '',
2138
+        'hide_empty' => 1,
2139
+        'empty_zero' => 0,
2140
+        'value' => '<?php
2141 2141
   require_boinc(\'util\');
2142 2142
   $owner = BoincUser::lookup_id($data->host_userid);
2143 2143
   if ($owner->show_hosts) {
@@ -2154,15 +2154,15 @@  discard block
 block discarded – undo
2154 2154
     echo $x;
2155 2155
   }
2156 2156
 ?>',
2157
-      'exclude' => 0,
2158
-      'id' => 'phpcode_7',
2159
-      'table' => 'customfield',
2160
-      'field' => 'phpcode',
2161
-      'relationship' => 'none',
2157
+        'exclude' => 0,
2158
+        'id' => 'phpcode_7',
2159
+        'table' => 'customfield',
2160
+        'field' => 'phpcode',
2161
+        'relationship' => 'none',
2162 2162
     ),
2163 2163
     'serialnum' => array(
2164
-      'label' => 'Serial Number',
2165
-      'alter' => array(
2164
+        'label' => 'Serial Number',
2165
+        'alter' => array(
2166 2166
         'alter_text' => 0,
2167 2167
         'text' => '',
2168 2168
         'make_link' => 0,
@@ -2179,19 +2179,19 @@  discard block
 block discarded – undo
2179 2179
         'ellipsis' => 1,
2180 2180
         'html' => 0,
2181 2181
         'strip_tags' => 0,
2182
-      ),
2183
-      'empty' => '',
2184
-      'hide_empty' => 0,
2185
-      'empty_zero' => 0,
2186
-      'exclude' => 1,
2187
-      'id' => 'serialnum',
2188
-      'table' => 'host',
2189
-      'field' => 'serialnum',
2190
-      'relationship' => 'none',
2182
+        ),
2183
+        'empty' => '',
2184
+        'hide_empty' => 0,
2185
+        'empty_zero' => 0,
2186
+        'exclude' => 1,
2187
+        'id' => 'serialnum',
2188
+        'table' => 'host',
2189
+        'field' => 'serialnum',
2190
+        'relationship' => 'none',
2191 2191
     ),
2192 2192
     'p_vendor' => array(
2193
-      'label' => 'CPU',
2194
-      'alter' => array(
2193
+        'label' => 'CPU',
2194
+        'alter' => array(
2195 2195
         'alter_text' => 0,
2196 2196
         'text' => '',
2197 2197
         'make_link' => 0,
@@ -2208,19 +2208,19 @@  discard block
 block discarded – undo
2208 2208
         'ellipsis' => 1,
2209 2209
         'html' => 0,
2210 2210
         'strip_tags' => 0,
2211
-      ),
2212
-      'empty' => '',
2213
-      'hide_empty' => 0,
2214
-      'empty_zero' => 0,
2215
-      'exclude' => 1,
2216
-      'id' => 'p_vendor',
2217
-      'table' => 'host',
2218
-      'field' => 'p_vendor',
2219
-      'relationship' => 'none',
2211
+        ),
2212
+        'empty' => '',
2213
+        'hide_empty' => 0,
2214
+        'empty_zero' => 0,
2215
+        'exclude' => 1,
2216
+        'id' => 'p_vendor',
2217
+        'table' => 'host',
2218
+        'field' => 'p_vendor',
2219
+        'relationship' => 'none',
2220 2220
     ),
2221 2221
     'p_model' => array(
2222
-      'label' => 'CPU type',
2223
-      'alter' => array(
2222
+        'label' => 'CPU type',
2223
+        'alter' => array(
2224 2224
         'alter_text' => 1,
2225 2225
         'text' => '[p_vendor] [p_model]',
2226 2226
         'make_link' => 0,
@@ -2239,20 +2239,20 @@  discard block
 block discarded – undo
2239 2239
         'ellipsis' => 1,
2240 2240
         'html' => 0,
2241 2241
         'strip_tags' => 0,
2242
-      ),
2243
-      'empty' => '',
2244
-      'hide_empty' => 0,
2245
-      'empty_zero' => 0,
2246
-      'hide_alter_empty' => 1,
2247
-      'exclude' => 0,
2248
-      'id' => 'p_model',
2249
-      'table' => 'host',
2250
-      'field' => 'p_model',
2251
-      'relationship' => 'none',
2242
+        ),
2243
+        'empty' => '',
2244
+        'hide_empty' => 0,
2245
+        'empty_zero' => 0,
2246
+        'hide_alter_empty' => 1,
2247
+        'exclude' => 0,
2248
+        'id' => 'p_model',
2249
+        'table' => 'host',
2250
+        'field' => 'p_model',
2251
+        'relationship' => 'none',
2252 2252
     ),
2253 2253
     'p_ncpus' => array(
2254
-      'label' => 'Number of processors',
2255
-      'alter' => array(
2254
+        'label' => 'Number of processors',
2255
+        'alter' => array(
2256 2256
         'alter_text' => 0,
2257 2257
         'text' => '',
2258 2258
         'make_link' => 0,
@@ -2269,19 +2269,19 @@  discard block
 block discarded – undo
2269 2269
         'ellipsis' => 1,
2270 2270
         'html' => 0,
2271 2271
         'strip_tags' => 0,
2272
-      ),
2273
-      'empty' => '',
2274
-      'hide_empty' => 0,
2275
-      'empty_zero' => 0,
2276
-      'exclude' => 0,
2277
-      'id' => 'p_ncpus',
2278
-      'table' => 'host',
2279
-      'field' => 'p_ncpus',
2280
-      'relationship' => 'none',
2272
+        ),
2273
+        'empty' => '',
2274
+        'hide_empty' => 0,
2275
+        'empty_zero' => 0,
2276
+        'exclude' => 0,
2277
+        'id' => 'p_ncpus',
2278
+        'table' => 'host',
2279
+        'field' => 'p_ncpus',
2280
+        'relationship' => 'none',
2281 2281
     ),
2282 2282
     'phpcode_1' => array(
2283
-      'label' => 'Coprocessors',
2284
-      'alter' => array(
2283
+        'label' => 'Coprocessors',
2284
+        'alter' => array(
2285 2285
         'alter_text' => 0,
2286 2286
         'text' => '',
2287 2287
         'make_link' => 0,
@@ -2298,25 +2298,25 @@  discard block
 block discarded – undo
2298 2298
         'ellipsis' => 1,
2299 2299
         'html' => 0,
2300 2300
         'strip_tags' => 0,
2301
-      ),
2302
-      'empty' => '',
2303
-      'hide_empty' => 1,
2304
-      'empty_zero' => 0,
2305
-      'value' => '<?php
2301
+        ),
2302
+        'empty' => '',
2303
+        'hide_empty' => 1,
2304
+        'empty_zero' => 0,
2305
+        'value' => '<?php
2306 2306
   if ($data->host_serialnum) {
2307 2307
     require_boinc(\'host\');
2308 2308
     echo gpu_desc($data->host_serialnum);
2309 2309
   }
2310 2310
 ?>',
2311
-      'exclude' => 0,
2312
-      'id' => 'phpcode_1',
2313
-      'table' => 'customfield',
2314
-      'field' => 'phpcode',
2315
-      'relationship' => 'none',
2311
+        'exclude' => 0,
2312
+        'id' => 'phpcode_1',
2313
+        'table' => 'customfield',
2314
+        'field' => 'phpcode',
2315
+        'relationship' => 'none',
2316 2316
     ),
2317 2317
     'os_name' => array(
2318
-      'label' => 'Operating system',
2319
-      'alter' => array(
2318
+        'label' => 'Operating system',
2319
+        'alter' => array(
2320 2320
         'alter_text' => 0,
2321 2321
         'text' => '',
2322 2322
         'make_link' => 0,
@@ -2333,19 +2333,19 @@  discard block
 block discarded – undo
2333 2333
         'ellipsis' => 1,
2334 2334
         'html' => 0,
2335 2335
         'strip_tags' => 0,
2336
-      ),
2337
-      'empty' => '',
2338
-      'hide_empty' => 0,
2339
-      'empty_zero' => 0,
2340
-      'exclude' => 1,
2341
-      'id' => 'os_name',
2342
-      'table' => 'host',
2343
-      'field' => 'os_name',
2344
-      'relationship' => 'none',
2336
+        ),
2337
+        'empty' => '',
2338
+        'hide_empty' => 0,
2339
+        'empty_zero' => 0,
2340
+        'exclude' => 1,
2341
+        'id' => 'os_name',
2342
+        'table' => 'host',
2343
+        'field' => 'os_name',
2344
+        'relationship' => 'none',
2345 2345
     ),
2346 2346
     'os_version' => array(
2347
-      'label' => 'Operating system',
2348
-      'alter' => array(
2347
+        'label' => 'Operating system',
2348
+        'alter' => array(
2349 2349
         'alter_text' => 1,
2350 2350
         'text' => '[os_name] [os_version]',
2351 2351
         'make_link' => 0,
@@ -2364,20 +2364,20 @@  discard block
 block discarded – undo
2364 2364
         'ellipsis' => 1,
2365 2365
         'html' => 0,
2366 2366
         'strip_tags' => 0,
2367
-      ),
2368
-      'empty' => '',
2369
-      'hide_empty' => 0,
2370
-      'empty_zero' => 0,
2371
-      'hide_alter_empty' => 1,
2372
-      'exclude' => 0,
2373
-      'id' => 'os_version',
2374
-      'table' => 'host',
2375
-      'field' => 'os_version',
2376
-      'relationship' => 'none',
2367
+        ),
2368
+        'empty' => '',
2369
+        'hide_empty' => 0,
2370
+        'empty_zero' => 0,
2371
+        'hide_alter_empty' => 1,
2372
+        'exclude' => 0,
2373
+        'id' => 'os_version',
2374
+        'table' => 'host',
2375
+        'field' => 'os_version',
2376
+        'relationship' => 'none',
2377 2377
     ),
2378 2378
     'phpcode' => array(
2379
-      'label' => 'BOINC client version',
2380
-      'alter' => array(
2379
+        'label' => 'BOINC client version',
2380
+        'alter' => array(
2381 2381
         'alter_text' => 0,
2382 2382
         'text' => '',
2383 2383
         'make_link' => 0,
@@ -2394,24 +2394,24 @@  discard block
 block discarded – undo
2394 2394
         'ellipsis' => 1,
2395 2395
         'html' => 0,
2396 2396
         'strip_tags' => 0,
2397
-      ),
2398
-      'empty' => '',
2399
-      'hide_empty' => 1,
2400
-      'empty_zero' => 0,
2401
-      'value' => '<?php
2397
+        ),
2398
+        'empty' => '',
2399
+        'hide_empty' => 1,
2400
+        'empty_zero' => 0,
2401
+        'value' => '<?php
2402 2402
   require_boinc(\'host\');
2403 2403
   $version = boinc_version($data->host_serialnum);
2404 2404
   if ($version) echo $version;
2405 2405
 ?>',
2406
-      'exclude' => 0,
2407
-      'id' => 'phpcode',
2408
-      'table' => 'customfield',
2409
-      'field' => 'phpcode',
2410
-      'relationship' => 'none',
2406
+        'exclude' => 0,
2407
+        'id' => 'phpcode',
2408
+        'table' => 'customfield',
2409
+        'field' => 'phpcode',
2410
+        'relationship' => 'none',
2411 2411
     ),
2412 2412
     'm_nbytes' => array(
2413
-      'label' => 'Memory',
2414
-      'alter' => array(
2413
+        'label' => 'Memory',
2414
+        'alter' => array(
2415 2415
         'alter_text' => 0,
2416 2416
         'text' => '',
2417 2417
         'make_link' => 0,
@@ -2428,25 +2428,25 @@  discard block
 block discarded – undo
2428 2428
         'ellipsis' => 1,
2429 2429
         'html' => 0,
2430 2430
         'strip_tags' => 0,
2431
-      ),
2432
-      'empty' => '',
2433
-      'hide_empty' => 0,
2434
-      'empty_zero' => 0,
2435
-      'set_precision' => FALSE,
2436
-      'precision' => 0,
2437
-      'decimal' => '.',
2438
-      'separator' => '',
2439
-      'prefix' => '',
2440
-      'suffix' => '',
2441
-      'exclude' => 1,
2442
-      'id' => 'm_nbytes',
2443
-      'table' => 'host',
2444
-      'field' => 'm_nbytes',
2445
-      'relationship' => 'none',
2431
+        ),
2432
+        'empty' => '',
2433
+        'hide_empty' => 0,
2434
+        'empty_zero' => 0,
2435
+        'set_precision' => FALSE,
2436
+        'precision' => 0,
2437
+        'decimal' => '.',
2438
+        'separator' => '',
2439
+        'prefix' => '',
2440
+        'suffix' => '',
2441
+        'exclude' => 1,
2442
+        'id' => 'm_nbytes',
2443
+        'table' => 'host',
2444
+        'field' => 'm_nbytes',
2445
+        'relationship' => 'none',
2446 2446
     ),
2447 2447
     'm_cache' => array(
2448
-      'label' => 'Cache',
2449
-      'alter' => array(
2448
+        'label' => 'Cache',
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_cache',
2478
-      'table' => 'host',
2479
-      'field' => 'm_cache',
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_cache',
2478
+        'table' => 'host',
2479
+        'field' => 'm_cache',
2480
+        'relationship' => 'none',
2481 2481
     ),
2482 2482
     'phpcode_8' => array(
2483
-      'label' => 'Memory',
2484
-      'alter' => array(
2483
+        'label' => 'Memory',
2484
+        'alter' => array(
2485 2485
         'alter_text' => 0,
2486 2486
         'text' => '',
2487 2487
         'make_link' => 0,
@@ -2498,22 +2498,22 @@  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
-      'value' => '<?php
2501
+        ),
2502
+        'empty' => '',
2503
+        'hide_empty' => 0,
2504
+        'empty_zero' => 0,
2505
+        'value' => '<?php
2506 2506
   echo round($data->host_m_nbytes/(1024*1024), 2) . \' MiB\';
2507 2507
 ?>',
2508
-      'exclude' => 0,
2509
-      'id' => 'phpcode_8',
2510
-      'table' => 'customfield',
2511
-      'field' => 'phpcode',
2512
-      'relationship' => 'none',
2508
+        'exclude' => 0,
2509
+        'id' => 'phpcode_8',
2510
+        'table' => 'customfield',
2511
+        'field' => 'phpcode',
2512
+        'relationship' => 'none',
2513 2513
     ),
2514 2514
     'phpcode_9' => array(
2515
-      'label' => 'Cache',
2516
-      'alter' => array(
2515
+        'label' => 'Cache',
2516
+        'alter' => array(
2517 2517
         'alter_text' => 0,
2518 2518
         'text' => '',
2519 2519
         'make_link' => 0,
@@ -2530,22 +2530,22 @@  discard block
 block discarded – undo
2530 2530
         'ellipsis' => 1,
2531 2531
         'html' => 0,
2532 2532
         'strip_tags' => 0,
2533
-      ),
2534
-      'empty' => '',
2535
-      'hide_empty' => 0,
2536
-      'empty_zero' => 0,
2537
-      'value' => '<?php
2533
+        ),
2534
+        'empty' => '',
2535
+        'hide_empty' => 0,
2536
+        'empty_zero' => 0,
2537
+        'value' => '<?php
2538 2538
   echo round($data->host_m_cache/(1024), 2) . \' KiB\';
2539 2539
 ?>',
2540
-      'exclude' => 0,
2541
-      'id' => 'phpcode_9',
2542
-      'table' => 'customfield',
2543
-      'field' => 'phpcode',
2544
-      'relationship' => 'none',
2540
+        'exclude' => 0,
2541
+        'id' => 'phpcode_9',
2542
+        'table' => 'customfield',
2543
+        'field' => 'phpcode',
2544
+        'relationship' => 'none',
2545 2545
     ),
2546 2546
     'm_swap' => array(
2547
-      'label' => 'Swap space',
2548
-      'alter' => array(
2547
+        'label' => 'Swap space',
2548
+        'alter' => array(
2549 2549
         'alter_text' => 0,
2550 2550
         'text' => '',
2551 2551
         'make_link' => 0,
@@ -2562,25 +2562,25 @@  discard block
 block discarded – undo
2562 2562
         'ellipsis' => 1,
2563 2563
         'html' => 0,
2564 2564
         'strip_tags' => 0,
2565
-      ),
2566
-      'empty' => '',
2567
-      'hide_empty' => 0,
2568
-      'empty_zero' => 0,
2569
-      'set_precision' => FALSE,
2570
-      'precision' => 0,
2571
-      'decimal' => '.',
2572
-      'separator' => '',
2573
-      'prefix' => '',
2574
-      'suffix' => '',
2575
-      'exclude' => 1,
2576
-      'id' => 'm_swap',
2577
-      'table' => 'host',
2578
-      'field' => 'm_swap',
2579
-      'relationship' => 'none',
2565
+        ),
2566
+        'empty' => '',
2567
+        'hide_empty' => 0,
2568
+        'empty_zero' => 0,
2569
+        'set_precision' => FALSE,
2570
+        'precision' => 0,
2571
+        'decimal' => '.',
2572
+        'separator' => '',
2573
+        'prefix' => '',
2574
+        'suffix' => '',
2575
+        'exclude' => 1,
2576
+        'id' => 'm_swap',
2577
+        'table' => 'host',
2578
+        'field' => 'm_swap',
2579
+        'relationship' => 'none',
2580 2580
     ),
2581 2581
     'd_total' => array(
2582
-      'label' => 'Total disk space',
2583
-      'alter' => array(
2582
+        'label' => 'Total disk 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' => 'd_total',
2612
-      'table' => 'host',
2613
-      'field' => 'd_total',
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' => 'd_total',
2612
+        'table' => 'host',
2613
+        'field' => 'd_total',
2614
+        'relationship' => 'none',
2615 2615
     ),
2616 2616
     'd_free' => array(
2617
-      'label' => 'Free disk space',
2618
-      'alter' => array(
2617
+        'label' => 'Free 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_free',
2647
-      'table' => 'host',
2648
-      'field' => 'd_free',
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_free',
2647
+        'table' => 'host',
2648
+        'field' => 'd_free',
2649
+        'relationship' => 'none',
2650 2650
     ),
2651 2651
     'phpcode_10' => array(
2652
-      'label' => 'Swap space',
2653
-      'alter' => array(
2652
+        'label' => 'Swap space',
2653
+        'alter' => array(
2654 2654
         'alter_text' => 0,
2655 2655
         'text' => '',
2656 2656
         'make_link' => 0,
@@ -2667,24 +2667,24 @@  discard block
 block discarded – undo
2667 2667
         'ellipsis' => 1,
2668 2668
         'html' => 0,
2669 2669
         'strip_tags' => 0,
2670
-      ),
2671
-      'empty' => '',
2672
-      'hide_empty' => 1,
2673
-      'empty_zero' => 0,
2674
-      'value' => '<?php
2670
+        ),
2671
+        'empty' => '',
2672
+        'hide_empty' => 1,
2673
+        'empty_zero' => 0,
2674
+        'value' => '<?php
2675 2675
   if (is_current_boinc_user($data->host_userid)) {
2676 2676
     echo round($data->host_m_swap/(1024*1024), 2) . \' MiB\';
2677 2677
   }
2678 2678
 ?>',
2679
-      'exclude' => 0,
2680
-      'id' => 'phpcode_10',
2681
-      'table' => 'customfield',
2682
-      'field' => 'phpcode',
2683
-      'relationship' => 'none',
2679
+        'exclude' => 0,
2680
+        'id' => 'phpcode_10',
2681
+        'table' => 'customfield',
2682
+        'field' => 'phpcode',
2683
+        'relationship' => 'none',
2684 2684
     ),
2685 2685
     'phpcode_11' => array(
2686
-      'label' => 'Total disk space',
2687
-      'alter' => array(
2686
+        'label' => 'Total disk space',
2687
+        'alter' => array(
2688 2688
         'alter_text' => 0,
2689 2689
         'text' => '',
2690 2690
         'make_link' => 0,
@@ -2701,24 +2701,24 @@  discard block
 block discarded – undo
2701 2701
         'ellipsis' => 1,
2702 2702
         'html' => 0,
2703 2703
         'strip_tags' => 0,
2704
-      ),
2705
-      'empty' => '',
2706
-      'hide_empty' => 1,
2707
-      'empty_zero' => 0,
2708
-      'value' => '<?php
2704
+        ),
2705
+        'empty' => '',
2706
+        'hide_empty' => 1,
2707
+        'empty_zero' => 0,
2708
+        'value' => '<?php
2709 2709
   if (is_current_boinc_user($data->host_userid)) {
2710 2710
     echo round($data->host_d_total/(1024*1024*1024), 2) . \' GiB\';
2711 2711
   }
2712 2712
 ?>',
2713
-      'exclude' => 0,
2714
-      'id' => 'phpcode_11',
2715
-      'table' => 'customfield',
2716
-      'field' => 'phpcode',
2717
-      'relationship' => 'none',
2713
+        'exclude' => 0,
2714
+        'id' => 'phpcode_11',
2715
+        'table' => 'customfield',
2716
+        'field' => 'phpcode',
2717
+        'relationship' => 'none',
2718 2718
     ),
2719 2719
     'phpcode_12' => array(
2720
-      'label' => 'Free disk space',
2721
-      'alter' => array(
2720
+        'label' => 'Free disk space',
2721
+        'alter' => array(
2722 2722
         'alter_text' => 0,
2723 2723
         'text' => '',
2724 2724
         'make_link' => 0,
@@ -2735,24 +2735,24 @@  discard block
 block discarded – undo
2735 2735
         'ellipsis' => 1,
2736 2736
         'html' => 0,
2737 2737
         'strip_tags' => 0,
2738
-      ),
2739
-      'empty' => '',
2740
-      'hide_empty' => 1,
2741
-      'empty_zero' => 0,
2742
-      'value' => '<?php
2738
+        ),
2739
+        'empty' => '',
2740
+        'hide_empty' => 1,
2741
+        'empty_zero' => 0,
2742
+        'value' => '<?php
2743 2743
   if (is_current_boinc_user($data->host_userid)) {
2744 2744
     echo round($data->host_d_free/(1024*1024*1024), 2) . \' GiB\';
2745 2745
   }
2746 2746
 ?>',
2747
-      'exclude' => 0,
2748
-      'id' => 'phpcode_12',
2749
-      'table' => 'customfield',
2750
-      'field' => 'phpcode',
2751
-      'relationship' => 'none',
2747
+        'exclude' => 0,
2748
+        'id' => 'phpcode_12',
2749
+        'table' => 'customfield',
2750
+        'field' => 'phpcode',
2751
+        'relationship' => 'none',
2752 2752
     ),
2753 2753
     'n_bwdown' => array(
2754
-      'label' => 'Average download rate',
2755
-      'alter' => array(
2754
+        'label' => 'Average download rate',
2755
+        'alter' => array(
2756 2756
         'alter_text' => 0,
2757 2757
         'text' => '',
2758 2758
         'make_link' => 0,
@@ -2769,25 +2769,25 @@  discard block
 block discarded – undo
2769 2769
         'ellipsis' => 1,
2770 2770
         'html' => 0,
2771 2771
         'strip_tags' => 0,
2772
-      ),
2773
-      'empty' => '',
2774
-      'hide_empty' => 0,
2775
-      'empty_zero' => 0,
2776
-      'set_precision' => 0,
2777
-      'precision' => '0',
2778
-      'decimal' => '.',
2779
-      'separator' => '',
2780
-      'prefix' => '',
2781
-      'suffix' => '',
2782
-      'exclude' => 1,
2783
-      'id' => 'n_bwdown',
2784
-      'table' => 'host',
2785
-      'field' => 'n_bwdown',
2786
-      'relationship' => 'none',
2772
+        ),
2773
+        'empty' => '',
2774
+        'hide_empty' => 0,
2775
+        'empty_zero' => 0,
2776
+        'set_precision' => 0,
2777
+        'precision' => '0',
2778
+        'decimal' => '.',
2779
+        'separator' => '',
2780
+        'prefix' => '',
2781
+        'suffix' => '',
2782
+        'exclude' => 1,
2783
+        'id' => 'n_bwdown',
2784
+        'table' => 'host',
2785
+        'field' => 'n_bwdown',
2786
+        'relationship' => 'none',
2787 2787
     ),
2788 2788
     'avg_turnaround' => array(
2789
-      'label' => 'Average turnaround time',
2790
-      'alter' => array(
2789
+        'label' => 'Average turnaround time',
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' => 'avg_turnaround',
2819
-      'table' => 'host',
2820
-      'field' => 'avg_turnaround',
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' => 'avg_turnaround',
2819
+        'table' => 'host',
2820
+        'field' => 'avg_turnaround',
2821
+        'relationship' => 'none',
2822 2822
     ),
2823 2823
     'n_bwup' => array(
2824
-      'label' => 'Average upload rate',
2825
-      'alter' => array(
2824
+        'label' => 'Average upload rate',
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' => 'n_bwup',
2854
-      'table' => 'host',
2855
-      'field' => 'n_bwup',
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' => 'n_bwup',
2854
+        'table' => 'host',
2855
+        'field' => 'n_bwup',
2856
+        'relationship' => 'none',
2857 2857
     ),
2858 2858
     'p_fpops' => array(
2859
-      'label' => 'Measured floating point speed',
2860
-      'alter' => array(
2859
+        'label' => 'Measured floating point speed',
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' => 'p_fpops',
2889
-      'table' => 'host',
2890
-      'field' => 'p_fpops',
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' => 'p_fpops',
2889
+        'table' => 'host',
2890
+        'field' => 'p_fpops',
2891
+        'relationship' => 'none',
2892 2892
     ),
2893 2893
     'p_iops' => array(
2894
-      'label' => 'Measured integer speed',
2895
-      'alter' => array(
2894
+        'label' => 'Measured integer 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_iops',
2924
-      'table' => 'host',
2925
-      'field' => 'p_iops',
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_iops',
2924
+        'table' => 'host',
2925
+        'field' => 'p_iops',
2926
+        'relationship' => 'none',
2927 2927
     ),
2928 2928
     'phpcode_13' => array(
2929
-      'label' => 'Measured floating point speed',
2930
-      'alter' => array(
2929
+        'label' => 'Measured floating point speed',
2930
+        'alter' => array(
2931 2931
         'alter_text' => 0,
2932 2932
         'text' => '',
2933 2933
         'make_link' => 0,
@@ -2946,25 +2946,25 @@  discard block
 block discarded – undo
2946 2946
         'ellipsis' => 1,
2947 2947
         'html' => 0,
2948 2948
         'strip_tags' => 0,
2949
-      ),
2950
-      'empty' => '',
2951
-      'hide_empty' => 0,
2952
-      'empty_zero' => 0,
2953
-      'hide_alter_empty' => 1,
2954
-      'value' => '<?php
2949
+        ),
2950
+        'empty' => '',
2951
+        'hide_empty' => 0,
2952
+        'empty_zero' => 0,
2953
+        'hide_alter_empty' => 1,
2954
+        'value' => '<?php
2955 2955
   echo bts(\'@count million ops/sec\',
2956 2956
     array(\'@count\' => round($data->host_p_fpops/(1000*1000), 2)),
2957 2957
     NULL, \'boinc:host-details\');
2958 2958
 ?>',
2959
-      'exclude' => 0,
2960
-      'id' => 'phpcode_13',
2961
-      'table' => 'customfield',
2962
-      'field' => 'phpcode',
2963
-      'relationship' => 'none',
2959
+        'exclude' => 0,
2960
+        'id' => 'phpcode_13',
2961
+        'table' => 'customfield',
2962
+        'field' => 'phpcode',
2963
+        'relationship' => 'none',
2964 2964
     ),
2965 2965
     'phpcode_14' => array(
2966
-      'label' => 'Measured integer speed',
2967
-      'alter' => array(
2966
+        'label' => 'Measured integer speed',
2967
+        'alter' => array(
2968 2968
         'alter_text' => 0,
2969 2969
         'text' => '',
2970 2970
         'make_link' => 0,
@@ -2983,25 +2983,25 @@  discard block
 block discarded – undo
2983 2983
         'ellipsis' => 1,
2984 2984
         'html' => 0,
2985 2985
         'strip_tags' => 0,
2986
-      ),
2987
-      'empty' => '',
2988
-      'hide_empty' => 0,
2989
-      'empty_zero' => 0,
2990
-      'hide_alter_empty' => 1,
2991
-      'value' => '<?php
2986
+        ),
2987
+        'empty' => '',
2988
+        'hide_empty' => 0,
2989
+        'empty_zero' => 0,
2990
+        'hide_alter_empty' => 1,
2991
+        'value' => '<?php
2992 2992
   echo bts(\'@count million ops/sec\',
2993 2993
     array(\'@count\' => round($data->host_p_iops/(1000*1000), 2)),
2994 2994
     NULL, \'boinc:host-details\');
2995 2995
 ?>',
2996
-      'exclude' => 0,
2997
-      'id' => 'phpcode_14',
2998
-      'table' => 'customfield',
2999
-      'field' => 'phpcode',
3000
-      'relationship' => 'none',
2996
+        'exclude' => 0,
2997
+        'id' => 'phpcode_14',
2998
+        'table' => 'customfield',
2999
+        'field' => 'phpcode',
3000
+        'relationship' => 'none',
3001 3001
     ),
3002 3002
     'phpcode_15' => array(
3003
-      'label' => 'Average upload rate',
3004
-      'alter' => array(
3003
+        'label' => 'Average upload rate',
3004
+        'alter' => array(
3005 3005
         'alter_text' => 0,
3006 3006
         'text' => '',
3007 3007
         'make_link' => 0,
@@ -3020,24 +3020,24 @@  discard block
 block discarded – undo
3020 3020
         'ellipsis' => 1,
3021 3021
         'html' => 0,
3022 3022
         'strip_tags' => 0,
3023
-      ),
3024
-      'empty' => '',
3025
-      'hide_empty' => 0,
3026
-      'empty_zero' => 0,
3027
-      'hide_alter_empty' => 1,
3028
-      'value' => '<?php
3023
+        ),
3024
+        'empty' => '',
3025
+        'hide_empty' => 0,
3026
+        'empty_zero' => 0,
3027
+        'hide_alter_empty' => 1,
3028
+        'value' => '<?php
3029 3029
   $rate = round($data->host_n_bwup/(1024), 2);
3030 3030
   echo ($rate > 0) ? bts(\'@rate KiB/sec\', array(\'@rate\' => $rate), NULL, \'boinc:host-details\') : bts(\'Unknown\', array(), NULL, \'boinc:host-details\');
3031 3031
 ?>',
3032
-      'exclude' => 0,
3033
-      'id' => 'phpcode_15',
3034
-      'table' => 'customfield',
3035
-      'field' => 'phpcode',
3036
-      'relationship' => 'none',
3032
+        'exclude' => 0,
3033
+        'id' => 'phpcode_15',
3034
+        'table' => 'customfield',
3035
+        'field' => 'phpcode',
3036
+        'relationship' => 'none',
3037 3037
     ),
3038 3038
     'phpcode_16' => array(
3039
-      'label' => 'Average download rate',
3040
-      'alter' => array(
3039
+        'label' => 'Average download rate',
3040
+        'alter' => array(
3041 3041
         'alter_text' => 0,
3042 3042
         'text' => '',
3043 3043
         'make_link' => 0,
@@ -3056,24 +3056,24 @@  discard block
 block discarded – undo
3056 3056
         'ellipsis' => 1,
3057 3057
         'html' => 0,
3058 3058
         'strip_tags' => 0,
3059
-      ),
3060
-      'empty' => '',
3061
-      'hide_empty' => 0,
3062
-      'empty_zero' => 0,
3063
-      'hide_alter_empty' => 1,
3064
-      'value' => '<?php
3059
+        ),
3060
+        'empty' => '',
3061
+        'hide_empty' => 0,
3062
+        'empty_zero' => 0,
3063
+        'hide_alter_empty' => 1,
3064
+        'value' => '<?php
3065 3065
   $rate = round($data->host_n_bwdown/(1024), 2);
3066 3066
   echo ($rate > 0) ? bts(\'@rate KiB/sec\', array(\'@rate\' => $rate), NULL, \'boinc:host-details\') : bts(\'Unknown\', array(), NULL, \'boinc:host-details\');
3067 3067
 ?>',
3068
-      'exclude' => 0,
3069
-      'id' => 'phpcode_16',
3070
-      'table' => 'customfield',
3071
-      'field' => 'phpcode',
3072
-      'relationship' => 'none',
3068
+        'exclude' => 0,
3069
+        'id' => 'phpcode_16',
3070
+        'table' => 'customfield',
3071
+        'field' => 'phpcode',
3072
+        'relationship' => 'none',
3073 3073
     ),
3074 3074
     'phpcode_17' => array(
3075
-      'label' => 'Average turnaround time',
3076
-      'alter' => array(
3075
+        'label' => 'Average turnaround time',
3076
+        'alter' => array(
3077 3077
         'alter_text' => 0,
3078 3078
         'text' => '',
3079 3079
         'make_link' => 0,
@@ -3092,23 +3092,23 @@  discard block
 block discarded – undo
3092 3092
         'ellipsis' => 1,
3093 3093
         'html' => 0,
3094 3094
         'strip_tags' => 0,
3095
-      ),
3096
-      'empty' => '',
3097
-      'hide_empty' => 0,
3098
-      'empty_zero' => 0,
3099
-      'hide_alter_empty' => 1,
3100
-      'value' => '<?php
3095
+        ),
3096
+        'empty' => '',
3097
+        'hide_empty' => 0,
3098
+        'empty_zero' => 0,
3099
+        'hide_alter_empty' => 1,
3100
+        'value' => '<?php
3101 3101
   echo bts(\'@count days\', array(\'@count\' => round($data->host_avg_turnaround/(60*60*24), 2)), NULL, \'boinc:host-details\');
3102 3102
 ?>',
3103
-      'exclude' => 0,
3104
-      'id' => 'phpcode_17',
3105
-      'table' => 'customfield',
3106
-      'field' => 'phpcode',
3107
-      'relationship' => 'none',
3103
+        'exclude' => 0,
3104
+        'id' => 'phpcode_17',
3105
+        'table' => 'customfield',
3106
+        'field' => 'phpcode',
3107
+        'relationship' => 'none',
3108 3108
     ),
3109 3109
     'max_results_day' => array(
3110
-      'label' => 'Maximum daily WU quota per CPU',
3111
-      'alter' => array(
3110
+        'label' => 'Maximum daily WU quota per CPU',
3111
+        'alter' => array(
3112 3112
         'alter_text' => 0,
3113 3113
         'text' => '',
3114 3114
         'make_link' => 0,
@@ -3127,29 +3127,29 @@  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
-      'set_precision' => FALSE,
3136
-      'precision' => 0,
3137
-      'decimal' => '.',
3138
-      'separator' => '',
3139
-      'format_plural' => 0,
3140
-      'format_plural_singular' => '1',
3141
-      'format_plural_plural' => '@count',
3142
-      'prefix' => '',
3143
-      'suffix' => '/day',
3144
-      'exclude' => 1,
3145
-      'id' => 'max_results_day',
3146
-      'table' => 'host',
3147
-      'field' => 'max_results_day',
3148
-      'relationship' => 'none',
3130
+        ),
3131
+        'empty' => '',
3132
+        'hide_empty' => 0,
3133
+        'empty_zero' => 0,
3134
+        'hide_alter_empty' => 1,
3135
+        'set_precision' => FALSE,
3136
+        'precision' => 0,
3137
+        'decimal' => '.',
3138
+        'separator' => '',
3139
+        'format_plural' => 0,
3140
+        'format_plural_singular' => '1',
3141
+        'format_plural_plural' => '@count',
3142
+        'prefix' => '',
3143
+        'suffix' => '/day',
3144
+        'exclude' => 1,
3145
+        'id' => 'max_results_day',
3146
+        'table' => 'host',
3147
+        'field' => 'max_results_day',
3148
+        'relationship' => 'none',
3149 3149
     ),
3150 3150
     'nothing' => array(
3151
-      'label' => 'Application details',
3152
-      'alter' => array(
3151
+        'label' => 'Application details',
3152
+        'alter' => array(
3153 3153
         'text' => 'Show',
3154 3154
         'make_link' => 1,
3155 3155
         'path' => 'host/!1/apps',
@@ -3167,23 +3167,23 @@  discard block
 block discarded – undo
3167 3167
         'ellipsis' => 1,
3168 3168
         'html' => 0,
3169 3169
         'strip_tags' => 0,
3170
-      ),
3171
-      'empty' => '',
3172
-      'hide_empty' => 0,
3173
-      'empty_zero' => 0,
3174
-      'hide_alter_empty' => 1,
3175
-      'exclude' => 0,
3176
-      'id' => 'nothing',
3177
-      'table' => 'views',
3178
-      'field' => 'nothing',
3179
-      'override' => array(
3170
+        ),
3171
+        'empty' => '',
3172
+        'hide_empty' => 0,
3173
+        'empty_zero' => 0,
3174
+        'hide_alter_empty' => 1,
3175
+        'exclude' => 0,
3176
+        'id' => 'nothing',
3177
+        'table' => 'views',
3178
+        'field' => 'nothing',
3179
+        'override' => array(
3180 3180
         'button' => 'Override',
3181
-      ),
3182
-      'relationship' => 'none',
3181
+        ),
3182
+        'relationship' => 'none',
3183 3183
     ),
3184 3184
     'phpcode_18' => array(
3185
-      'label' => 'Tasks',
3186
-      'alter' => array(
3185
+        'label' => 'Tasks',
3186
+        'alter' => array(
3187 3187
         'alter_text' => 0,
3188 3188
         'text' => '',
3189 3189
         'make_link' => 0,
@@ -3202,12 +3202,12 @@  discard block
 block discarded – undo
3202 3202
         'ellipsis' => 1,
3203 3203
         'html' => 0,
3204 3204
         'strip_tags' => 0,
3205
-      ),
3206
-      'empty' => '0',
3207
-      'hide_empty' => 0,
3208
-      'empty_zero' => 0,
3209
-      'hide_alter_empty' => 0,
3210
-      'value' => '<?php
3205
+        ),
3206
+        'empty' => '0',
3207
+        'hide_empty' => 0,
3208
+        'empty_zero' => 0,
3209
+        'hide_alter_empty' => 0,
3210
+        'value' => '<?php
3211 3211
   //require_boint(\'util\');
3212 3212
   //$config = get_config();
3213 3213
   //if (parse_bool($config, "show_results")) {
@@ -3220,15 +3220,15 @@  discard block
 block discarded – undo
3220 3220
     }
3221 3221
   //}
3222 3222
 ?>',
3223
-      'exclude' => 0,
3224
-      'id' => 'phpcode_18',
3225
-      'table' => 'customfield',
3226
-      'field' => 'phpcode',
3227
-      'relationship' => 'none',
3223
+        'exclude' => 0,
3224
+        'id' => 'phpcode_18',
3225
+        'table' => 'customfield',
3226
+        'field' => 'phpcode',
3227
+        'relationship' => 'none',
3228 3228
     ),
3229 3229
     'rpc_seqno' => array(
3230
-      'label' => 'Number of times client has contacted server',
3231
-      'alter' => array(
3230
+        'label' => 'Number of times client has contacted server',
3231
+        'alter' => array(
3232 3232
         'alter_text' => 0,
3233 3233
         'text' => '',
3234 3234
         'make_link' => 0,
@@ -3245,25 +3245,25 @@  discard block
 block discarded – undo
3245 3245
         'ellipsis' => 1,
3246 3246
         'html' => 0,
3247 3247
         'strip_tags' => 0,
3248
-      ),
3249
-      'empty' => '',
3250
-      'hide_empty' => 0,
3251
-      'empty_zero' => 0,
3252
-      'set_precision' => FALSE,
3253
-      'precision' => 0,
3254
-      'decimal' => '.',
3255
-      'separator' => '',
3256
-      'prefix' => '',
3257
-      'suffix' => '',
3258
-      'exclude' => 1,
3259
-      'id' => 'rpc_seqno',
3260
-      'table' => 'host',
3261
-      'field' => 'rpc_seqno',
3262
-      'relationship' => 'none',
3248
+        ),
3249
+        'empty' => '',
3250
+        'hide_empty' => 0,
3251
+        'empty_zero' => 0,
3252
+        'set_precision' => FALSE,
3253
+        'precision' => 0,
3254
+        'decimal' => '.',
3255
+        'separator' => '',
3256
+        'prefix' => '',
3257
+        'suffix' => '',
3258
+        'exclude' => 1,
3259
+        'id' => 'rpc_seqno',
3260
+        'table' => 'host',
3261
+        'field' => 'rpc_seqno',
3262
+        'relationship' => 'none',
3263 3263
     ),
3264 3264
     'phpcode_2' => 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,
@@ -3282,23 +3282,23 @@  discard block
 block discarded – undo
3282 3282
         'ellipsis' => 1,
3283 3283
         'html' => 0,
3284 3284
         'strip_tags' => 0,
3285
-      ),
3286
-      'empty' => '0',
3287
-      'hide_empty' => 0,
3288
-      'empty_zero' => 0,
3289
-      'hide_alter_empty' => 0,
3290
-      'value' => '<?php
3285
+        ),
3286
+        'empty' => '0',
3287
+        'hide_empty' => 0,
3288
+        'empty_zero' => 0,
3289
+        'hide_alter_empty' => 0,
3290
+        'value' => '<?php
3291 3291
   echo $data->host_rpc_seqno;
3292 3292
 ?>',
3293
-      'exclude' => 0,
3294
-      'id' => 'phpcode_2',
3295
-      'table' => 'customfield',
3296
-      'field' => 'phpcode',
3297
-      'relationship' => 'none',
3293
+        'exclude' => 0,
3294
+        'id' => 'phpcode_2',
3295
+        'table' => 'customfield',
3296
+        'field' => 'phpcode',
3297
+        'relationship' => 'none',
3298 3298
     ),
3299 3299
     'on_frac' => array(
3300
-      'label' => '% of time BOINC client is running',
3301
-      'alter' => array(
3300
+        'label' => '% of time BOINC client is running',
3301
+        'alter' => array(
3302 3302
         'alter_text' => 0,
3303 3303
         'text' => '',
3304 3304
         'make_link' => 0,
@@ -3315,25 +3315,25 @@  discard block
 block discarded – undo
3315 3315
         'ellipsis' => 1,
3316 3316
         'html' => 0,
3317 3317
         'strip_tags' => 0,
3318
-      ),
3319
-      'empty' => '',
3320
-      'hide_empty' => 0,
3321
-      'empty_zero' => 0,
3322
-      'set_precision' => 0,
3323
-      'precision' => '0',
3324
-      'decimal' => '.',
3325
-      'separator' => '',
3326
-      'prefix' => '',
3327
-      'suffix' => '',
3328
-      'exclude' => 1,
3329
-      'id' => 'on_frac',
3330
-      'table' => 'host',
3331
-      'field' => 'on_frac',
3332
-      'relationship' => 'none',
3318
+        ),
3319
+        'empty' => '',
3320
+        'hide_empty' => 0,
3321
+        'empty_zero' => 0,
3322
+        'set_precision' => 0,
3323
+        'precision' => '0',
3324
+        'decimal' => '.',
3325
+        'separator' => '',
3326
+        'prefix' => '',
3327
+        'suffix' => '',
3328
+        'exclude' => 1,
3329
+        'id' => 'on_frac',
3330
+        'table' => 'host',
3331
+        'field' => 'on_frac',
3332
+        'relationship' => 'none',
3333 3333
     ),
3334 3334
     'rpc_time_1' => array(
3335
-      'label' => 'Last contact',
3336
-      'alter' => array(
3335
+        'label' => 'Last contact',
3336
+        'alter' => array(
3337 3337
         'alter_text' => 0,
3338 3338
         'text' => '',
3339 3339
         'make_link' => 0,
@@ -3350,21 +3350,21 @@  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
-      'date_format' => 'small',
3358
-      'custom_date_format' => '',
3359
-      'exclude' => 1,
3360
-      'id' => 'rpc_time_1',
3361
-      'table' => 'host',
3362
-      'field' => 'rpc_time',
3363
-      'relationship' => 'none',
3353
+        ),
3354
+        'empty' => '',
3355
+        'hide_empty' => 0,
3356
+        'empty_zero' => 0,
3357
+        'date_format' => 'small',
3358
+        'custom_date_format' => '',
3359
+        'exclude' => 1,
3360
+        'id' => 'rpc_time_1',
3361
+        'table' => 'host',
3362
+        'field' => 'rpc_time',
3363
+        'relationship' => 'none',
3364 3364
     ),
3365 3365
     'cpu_efficiency' => array(
3366
-      'label' => 'Average CPU efficiency',
3367
-      'alter' => array(
3366
+        'label' => 'Average CPU efficiency',
3367
+        'alter' => array(
3368 3368
         'alter_text' => 0,
3369 3369
         'text' => '',
3370 3370
         'make_link' => 0,
@@ -3381,25 +3381,25 @@  discard block
 block discarded – undo
3381 3381
         'ellipsis' => 1,
3382 3382
         'html' => 0,
3383 3383
         'strip_tags' => 0,
3384
-      ),
3385
-      'empty' => '',
3386
-      'hide_empty' => 0,
3387
-      'empty_zero' => 0,
3388
-      'set_precision' => 0,
3389
-      'precision' => '0',
3390
-      'decimal' => '.',
3391
-      'separator' => '',
3392
-      'prefix' => '',
3393
-      'suffix' => '',
3394
-      'exclude' => 1,
3395
-      'id' => 'cpu_efficiency',
3396
-      'table' => 'host',
3397
-      'field' => 'cpu_efficiency',
3398
-      'relationship' => 'none',
3384
+        ),
3385
+        'empty' => '',
3386
+        'hide_empty' => 0,
3387
+        'empty_zero' => 0,
3388
+        'set_precision' => 0,
3389
+        'precision' => '0',
3390
+        'decimal' => '.',
3391
+        'separator' => '',
3392
+        'prefix' => '',
3393
+        'suffix' => '',
3394
+        'exclude' => 1,
3395
+        'id' => 'cpu_efficiency',
3396
+        'table' => 'host',
3397
+        'field' => 'cpu_efficiency',
3398
+        'relationship' => 'none',
3399 3399
     ),
3400 3400
     'duration_correction_factor' => array(
3401
-      'label' => 'Task duration correction factor',
3402
-      'alter' => array(
3401
+        'label' => 'Task duration correction factor',
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' => FALSE,
3424
-      'precision' => 0,
3425
-      'decimal' => '.',
3426
-      'separator' => '',
3427
-      'prefix' => '',
3428
-      'suffix' => '',
3429
-      'exclude' => 1,
3430
-      'id' => 'duration_correction_factor',
3431
-      'table' => 'host',
3432
-      'field' => 'duration_correction_factor',
3433
-      'relationship' => 'none',
3419
+        ),
3420
+        'empty' => '',
3421
+        'hide_empty' => 0,
3422
+        'empty_zero' => 0,
3423
+        'set_precision' => FALSE,
3424
+        'precision' => 0,
3425
+        'decimal' => '.',
3426
+        'separator' => '',
3427
+        'prefix' => '',
3428
+        'suffix' => '',
3429
+        'exclude' => 1,
3430
+        'id' => 'duration_correction_factor',
3431
+        'table' => 'host',
3432
+        'field' => 'duration_correction_factor',
3433
+        'relationship' => 'none',
3434 3434
     ),
3435 3435
     'connected_frac' => array(
3436
-      'label' => 'While BOINC running, % of time host has an Internet connection',
3437
-      'alter' => array(
3436
+        'label' => 'While BOINC running, % of time host has an Internet connection',
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' => 0,
3459
-      'precision' => '0',
3460
-      'decimal' => '.',
3461
-      'separator' => '',
3462
-      'prefix' => '',
3463
-      'suffix' => '',
3464
-      'exclude' => 1,
3465
-      'id' => 'connected_frac',
3466
-      'table' => 'host',
3467
-      'field' => 'connected_frac',
3468
-      'relationship' => 'none',
3454
+        ),
3455
+        'empty' => '',
3456
+        'hide_empty' => 0,
3457
+        'empty_zero' => 0,
3458
+        'set_precision' => 0,
3459
+        'precision' => '0',
3460
+        'decimal' => '.',
3461
+        'separator' => '',
3462
+        'prefix' => '',
3463
+        'suffix' => '',
3464
+        'exclude' => 1,
3465
+        'id' => 'connected_frac',
3466
+        'table' => 'host',
3467
+        'field' => 'connected_frac',
3468
+        'relationship' => 'none',
3469 3469
     ),
3470 3470
     'active_frac' => array(
3471
-      'label' => 'While BOINC running, % of time work is allowed',
3472
-      'alter' => array(
3471
+        'label' => 'While BOINC running, % of time work is allowed',
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' => 'active_frac',
3501
-      'table' => 'host',
3502
-      'field' => 'active_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' => 'active_frac',
3501
+        'table' => 'host',
3502
+        'field' => 'active_frac',
3503
+        'relationship' => 'none',
3504 3504
     ),
3505 3505
     'phpcode_19' => array(
3506
-      'label' => 'Last time contacted server',
3507
-      'alter' => array(
3506
+        'label' => 'Last time contacted server',
3507
+        'alter' => array(
3508 3508
         'alter_text' => 0,
3509 3509
         'text' => '',
3510 3510
         'make_link' => 0,
@@ -3523,23 +3523,23 @@  discard block
 block discarded – undo
3523 3523
         'ellipsis' => 1,
3524 3524
         'html' => 0,
3525 3525
         'strip_tags' => 0,
3526
-      ),
3527
-      'empty' => '',
3528
-      'hide_empty' => 1,
3529
-      'empty_zero' => 0,
3530
-      'hide_alter_empty' => 1,
3531
-      'value' => '<?php
3526
+        ),
3527
+        'empty' => '',
3528
+        'hide_empty' => 1,
3529
+        'empty_zero' => 0,
3530
+        'hide_alter_empty' => 1,
3531
+        'value' => '<?php
3532 3532
   echo boincwork_host_last_contact($data->host_rpc_time, $data->id);
3533 3533
 ?>',
3534
-      'exclude' => 0,
3535
-      'id' => 'phpcode_19',
3536
-      'table' => 'customfield',
3537
-      'field' => 'phpcode',
3538
-      'relationship' => 'none',
3534
+        'exclude' => 0,
3535
+        'id' => 'phpcode_19',
3536
+        'table' => 'customfield',
3537
+        'field' => 'phpcode',
3538
+        'relationship' => 'none',
3539 3539
     ),
3540 3540
     'phpcode_20' => array(
3541
-      'label' => '% of time BOINC client is running',
3542
-      'alter' => array(
3541
+        'label' => '% of time BOINC client is running',
3542
+        'alter' => array(
3543 3543
         'alter_text' => 0,
3544 3544
         'text' => '',
3545 3545
         'make_link' => 0,
@@ -3556,24 +3556,24 @@  discard block
 block discarded – undo
3556 3556
         'ellipsis' => 1,
3557 3557
         'html' => 0,
3558 3558
         'strip_tags' => 0,
3559
-      ),
3560
-      'empty' => '',
3561
-      'hide_empty' => 1,
3562
-      'empty_zero' => 0,
3563
-      'value' => '<?php
3559
+        ),
3560
+        'empty' => '',
3561
+        'hide_empty' => 1,
3562
+        'empty_zero' => 0,
3563
+        'value' => '<?php
3564 3564
   if (is_current_boinc_user($data->host_userid)) {
3565 3565
     echo ($data->host_on_frac * 100) . \' %\';
3566 3566
   }
3567 3567
 ?>',
3568
-      'exclude' => 0,
3569
-      'id' => 'phpcode_20',
3570
-      'table' => 'customfield',
3571
-      'field' => 'phpcode',
3572
-      'relationship' => 'none',
3568
+        'exclude' => 0,
3569
+        'id' => 'phpcode_20',
3570
+        'table' => 'customfield',
3571
+        'field' => 'phpcode',
3572
+        'relationship' => 'none',
3573 3573
     ),
3574 3574
     'phpcode_21' => array(
3575
-      'label' => 'While BOINC running, % of time host has an Internet connection',
3576
-      'alter' => array(
3575
+        'label' => 'While BOINC running, % of time host has an Internet connection',
3576
+        'alter' => array(
3577 3577
         'alter_text' => 0,
3578 3578
         'text' => '',
3579 3579
         'make_link' => 0,
@@ -3590,26 +3590,26 @@  discard block
 block discarded – undo
3590 3590
         'ellipsis' => 1,
3591 3591
         'html' => 0,
3592 3592
         'strip_tags' => 0,
3593
-      ),
3594
-      'empty' => '',
3595
-      'hide_empty' => 1,
3596
-      'empty_zero' => 0,
3597
-      'value' => '<?php
3593
+        ),
3594
+        'empty' => '',
3595
+        'hide_empty' => 1,
3596
+        'empty_zero' => 0,
3597
+        'value' => '<?php
3598 3598
   if (is_current_boinc_user($data->host_userid)) {
3599 3599
     if ($data->host_connected_frac > 0) {
3600 3600
       echo ($data->host_connected_frac * 100) . \' %\';
3601 3601
     }
3602 3602
   }
3603 3603
 ?>',
3604
-      'exclude' => 0,
3605
-      'id' => 'phpcode_21',
3606
-      'table' => 'customfield',
3607
-      'field' => 'phpcode',
3608
-      'relationship' => 'none',
3604
+        'exclude' => 0,
3605
+        'id' => 'phpcode_21',
3606
+        'table' => 'customfield',
3607
+        'field' => 'phpcode',
3608
+        'relationship' => 'none',
3609 3609
     ),
3610 3610
     'phpcode_22' => array(
3611
-      'label' => 'While BOINC running, % of time work is allowed',
3612
-      'alter' => array(
3611
+        'label' => 'While BOINC running, % of time work is allowed',
3612
+        'alter' => array(
3613 3613
         'alter_text' => 0,
3614 3614
         'text' => '',
3615 3615
         'make_link' => 0,
@@ -3628,25 +3628,25 @@  discard block
 block discarded – undo
3628 3628
         'ellipsis' => 1,
3629 3629
         'html' => 0,
3630 3630
         'strip_tags' => 0,
3631
-      ),
3632
-      'empty' => '',
3633
-      'hide_empty' => 1,
3634
-      'empty_zero' => 0,
3635
-      'hide_alter_empty' => 1,
3636
-      'value' => '<?php
3631
+        ),
3632
+        'empty' => '',
3633
+        'hide_empty' => 1,
3634
+        'empty_zero' => 0,
3635
+        'hide_alter_empty' => 1,
3636
+        'value' => '<?php
3637 3637
   if (is_current_boinc_user($data->host_userid)) {
3638 3638
     echo ($data->host_active_frac * 100) . \' %\';
3639 3639
   }
3640 3640
 ?>',
3641
-      'exclude' => 0,
3642
-      'id' => 'phpcode_22',
3643
-      'table' => 'customfield',
3644
-      'field' => 'phpcode',
3645
-      'relationship' => 'none',
3641
+        'exclude' => 0,
3642
+        'id' => 'phpcode_22',
3643
+        'table' => 'customfield',
3644
+        'field' => 'phpcode',
3645
+        'relationship' => 'none',
3646 3646
     ),
3647 3647
     'phpcode_27' => array(
3648
-      'label' => 'Average CPU efficiency',
3649
-      'alter' => array(
3648
+        'label' => 'Average CPU efficiency',
3649
+        'alter' => array(
3650 3650
         'alter_text' => 0,
3651 3651
         'text' => '',
3652 3652
         'make_link' => 0,
@@ -3663,26 +3663,26 @@  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
-      'value' => '<?php
3666
+        ),
3667
+        'empty' => '',
3668
+        'hide_empty' => 1,
3669
+        'empty_zero' => 0,
3670
+        'value' => '<?php
3671 3671
   if (is_current_boinc_user($data->host_userid)) {
3672 3672
     if ($data->host_cpu_efficiency) {
3673 3673
       echo $data->host_cpu_efficiency;
3674 3674
     }
3675 3675
   }
3676 3676
 ?>',
3677
-      'exclude' => 0,
3678
-      'id' => 'phpcode_27',
3679
-      'table' => 'customfield',
3680
-      'field' => 'phpcode',
3681
-      'relationship' => 'none',
3677
+        'exclude' => 0,
3678
+        'id' => 'phpcode_27',
3679
+        'table' => 'customfield',
3680
+        'field' => 'phpcode',
3681
+        'relationship' => 'none',
3682 3682
     ),
3683 3683
     'phpcode_23' => array(
3684
-      'label' => 'Task duration correction factor',
3685
-      'alter' => array(
3684
+        'label' => 'Task duration correction factor',
3685
+        'alter' => array(
3686 3686
         'alter_text' => 0,
3687 3687
         'text' => '',
3688 3688
         'make_link' => 0,
@@ -3699,26 +3699,26 @@  discard block
 block discarded – undo
3699 3699
         'ellipsis' => 1,
3700 3700
         'html' => 0,
3701 3701
         'strip_tags' => 0,
3702
-      ),
3703
-      'empty' => '',
3704
-      'hide_empty' => 1,
3705
-      'empty_zero' => 0,
3706
-      'value' => '<?php
3702
+        ),
3703
+        'empty' => '',
3704
+        'hide_empty' => 1,
3705
+        'empty_zero' => 0,
3706
+        'value' => '<?php
3707 3707
   if (is_current_boinc_user($data->host_userid)) {
3708 3708
     if ($data->host_duration_correction_factor) {
3709 3709
       echo $data->host_duration_correction_factor;
3710 3710
     }
3711 3711
   }
3712 3712
 ?>',
3713
-      'exclude' => 0,
3714
-      'id' => 'phpcode_23',
3715
-      'table' => 'customfield',
3716
-      'field' => 'phpcode',
3717
-      'relationship' => 'none',
3713
+        'exclude' => 0,
3714
+        'id' => 'phpcode_23',
3715
+        'table' => 'customfield',
3716
+        'field' => 'phpcode',
3717
+        'relationship' => 'none',
3718 3718
     ),
3719 3719
     'phpcode_24' => array(
3720
-      'label' => 'Location',
3721
-      'alter' => array(
3720
+        'label' => 'Location',
3721
+        'alter' => array(
3722 3722
         'alter_text' => 0,
3723 3723
         'text' => '',
3724 3724
         'make_link' => 0,
@@ -3737,25 +3737,25 @@  discard block
 block discarded – undo
3737 3737
         'ellipsis' => 1,
3738 3738
         'html' => 0,
3739 3739
         'strip_tags' => 0,
3740
-      ),
3741
-      'empty' => '',
3742
-      'hide_empty' => 1,
3743
-      'empty_zero' => 0,
3744
-      'hide_alter_empty' => 1,
3745
-      'value' => '<?php
3740
+        ),
3741
+        'empty' => '',
3742
+        'hide_empty' => 1,
3743
+        'empty_zero' => 0,
3744
+        'hide_alter_empty' => 1,
3745
+        'value' => '<?php
3746 3746
   if (is_current_boinc_user($data->host_userid)) {
3747 3747
     echo boincwork_host_venue_selector($data->id);
3748 3748
   }
3749 3749
 ?>',
3750
-      'exclude' => 0,
3751
-      'id' => 'phpcode_24',
3752
-      'table' => 'customfield',
3753
-      'field' => 'phpcode',
3754
-      'relationship' => 'none',
3750
+        'exclude' => 0,
3751
+        'id' => 'phpcode_24',
3752
+        'table' => 'customfield',
3753
+        'field' => 'phpcode',
3754
+        'relationship' => 'none',
3755 3755
     ),
3756 3756
     'phpcode_25' => array(
3757
-      'label' => 'Actions ',
3758
-      'alter' => array(
3757
+        'label' => 'Actions ',
3758
+        'alter' => array(
3759 3759
         'alter_text' => 0,
3760 3760
         'text' => '',
3761 3761
         'make_link' => 0,
@@ -3774,48 +3774,48 @@  discard block
 block discarded – undo
3774 3774
         'ellipsis' => 1,
3775 3775
         'html' => 0,
3776 3776
         'strip_tags' => 0,
3777
-      ),
3778
-      'empty' => '',
3779
-      'hide_empty' => 1,
3780
-      'empty_zero' => 0,
3781
-      'hide_alter_empty' => 1,
3782
-      'value' => '<?php
3777
+        ),
3778
+        'empty' => '',
3779
+        'hide_empty' => 1,
3780
+        'empty_zero' => 0,
3781
+        'hide_alter_empty' => 1,
3782
+        'value' => '<?php
3783 3783
   echo boincwork_host_action_links($data->id);
3784 3784
 ?>',
3785
-      'exclude' => 0,
3786
-      'id' => 'phpcode_25',
3787
-      'table' => 'customfield',
3788
-      'field' => 'phpcode',
3789
-      'relationship' => 'none',
3790
-    ),
3791
-  ));
3792
-  $handler->override_option('arguments', array(
3785
+        'exclude' => 0,
3786
+        'id' => 'phpcode_25',
3787
+        'table' => 'customfield',
3788
+        'field' => 'phpcode',
3789
+        'relationship' => 'none',
3790
+    ),
3791
+    ));
3792
+    $handler->override_option('arguments', array(
3793 3793
     'id' => array(
3794
-      'default_action' => 'not found',
3795
-      'style_plugin' => 'default_summary',
3796
-      'style_options' => array(),
3797
-      'wildcard' => 'all',
3798
-      'wildcard_substitution' => 'All',
3799
-      'title' => 'Computer %1',
3800
-      'breadcrumb' => '',
3801
-      'default_argument_type' => 'fixed',
3802
-      'default_argument' => '',
3803
-      'validate_type' => 'numeric',
3804
-      'validate_fail' => 'not found',
3805
-      'id' => 'id',
3806
-      'table' => 'host',
3807
-      'field' => 'id',
3808
-      'validate_user_argument_type' => 'uid',
3809
-      'validate_user_roles' => array(
3794
+        'default_action' => 'not found',
3795
+        'style_plugin' => 'default_summary',
3796
+        'style_options' => array(),
3797
+        'wildcard' => 'all',
3798
+        'wildcard_substitution' => 'All',
3799
+        'title' => 'Computer %1',
3800
+        'breadcrumb' => '',
3801
+        'default_argument_type' => 'fixed',
3802
+        'default_argument' => '',
3803
+        'validate_type' => 'numeric',
3804
+        'validate_fail' => 'not found',
3805
+        'id' => 'id',
3806
+        'table' => 'host',
3807
+        'field' => 'id',
3808
+        'validate_user_argument_type' => 'uid',
3809
+        'validate_user_roles' => array(
3810 3810
         2 => 0,
3811 3811
         3 => 0,
3812
-      ),
3813
-      'relationship' => 'none',
3814
-      'default_options_div_prefix' => '',
3815
-      'default_argument_fixed' => '',
3816
-      'default_argument_user' => 0,
3817
-      'default_argument_php' => '',
3818
-      'validate_argument_node_type' => array(
3812
+        ),
3813
+        'relationship' => 'none',
3814
+        'default_options_div_prefix' => '',
3815
+        'default_argument_fixed' => '',
3816
+        'default_argument_user' => 0,
3817
+        'default_argument_php' => '',
3818
+        'validate_argument_node_type' => array(
3819 3819
         'forum' => 0,
3820 3820
         'job_post' => 0,
3821 3821
         'news' => 0,
@@ -3823,44 +3823,44 @@  discard block
 block discarded – undo
3823 3823
         'profile' => 0,
3824 3824
         'story' => 0,
3825 3825
         'team' => 0,
3826
-      ),
3827
-      'validate_argument_node_access' => 0,
3828
-      'validate_argument_nid_type' => 'nid',
3829
-      'validate_argument_vocabulary' => array(
3826
+        ),
3827
+        'validate_argument_node_access' => 0,
3828
+        'validate_argument_nid_type' => 'nid',
3829
+        'validate_argument_vocabulary' => array(
3830 3830
         1 => 0,
3831
-      ),
3832
-      'validate_argument_type' => 'tid',
3833
-      'validate_argument_transform' => 0,
3834
-      'validate_user_restrict_roles' => 0,
3835
-      'validate_argument_php' => '',
3831
+        ),
3832
+        'validate_argument_type' => 'tid',
3833
+        'validate_argument_transform' => 0,
3834
+        'validate_user_restrict_roles' => 0,
3835
+        'validate_argument_php' => '',
3836 3836
     ),
3837 3837
     'null' => array(
3838
-      'default_action' => 'default',
3839
-      'style_plugin' => 'default_summary',
3840
-      'style_options' => array(),
3841
-      'wildcard' => 'all',
3842
-      'wildcard_substitution' => 'All',
3843
-      'title' => '',
3844
-      'breadcrumb' => '',
3845
-      'default_argument_type' => 'fixed',
3846
-      'default_argument' => '',
3847
-      'validate_type' => 'none',
3848
-      'validate_fail' => 'not found',
3849
-      'must_not_be' => 0,
3850
-      'id' => 'null',
3851
-      'table' => 'views',
3852
-      'field' => 'null',
3853
-      'validate_user_argument_type' => 'uid',
3854
-      'validate_user_roles' => array(
3838
+        'default_action' => 'default',
3839
+        'style_plugin' => 'default_summary',
3840
+        'style_options' => array(),
3841
+        'wildcard' => 'all',
3842
+        'wildcard_substitution' => 'All',
3843
+        'title' => '',
3844
+        'breadcrumb' => '',
3845
+        'default_argument_type' => 'fixed',
3846
+        'default_argument' => '',
3847
+        'validate_type' => 'none',
3848
+        'validate_fail' => 'not found',
3849
+        'must_not_be' => 0,
3850
+        'id' => 'null',
3851
+        'table' => 'views',
3852
+        'field' => 'null',
3853
+        'validate_user_argument_type' => 'uid',
3854
+        'validate_user_roles' => array(
3855 3855
         2 => 0,
3856 3856
         3 => 0,
3857
-      ),
3858
-      'relationship' => 'none',
3859
-      'default_options_div_prefix' => '',
3860
-      'default_argument_fixed' => '0',
3861
-      'default_argument_user' => 0,
3862
-      'default_argument_php' => '',
3863
-      'validate_argument_node_type' => array(
3857
+        ),
3858
+        'relationship' => 'none',
3859
+        'default_options_div_prefix' => '',
3860
+        'default_argument_fixed' => '0',
3861
+        'default_argument_user' => 0,
3862
+        'default_argument_php' => '',
3863
+        'validate_argument_node_type' => array(
3864 3864
         'forum' => 0,
3865 3865
         'job_post' => 0,
3866 3866
         'news' => 0,
@@ -3868,98 +3868,98 @@  discard block
 block discarded – undo
3868 3868
         'profile' => 0,
3869 3869
         'story' => 0,
3870 3870
         'team' => 0,
3871
-      ),
3872
-      'validate_argument_node_access' => 0,
3873
-      'validate_argument_nid_type' => 'nid',
3874
-      'validate_argument_vocabulary' => array(
3871
+        ),
3872
+        'validate_argument_node_access' => 0,
3873
+        'validate_argument_nid_type' => 'nid',
3874
+        'validate_argument_vocabulary' => array(
3875 3875
         1 => 0,
3876
-      ),
3877
-      'validate_argument_type' => 'tid',
3878
-      'validate_argument_transform' => 0,
3879
-      'validate_user_restrict_roles' => 0,
3880
-      'validate_argument_php' => '',
3881
-    ),
3882
-  ));
3883
-  $handler->override_option('access', array(
3876
+        ),
3877
+        'validate_argument_type' => 'tid',
3878
+        'validate_argument_transform' => 0,
3879
+        'validate_user_restrict_roles' => 0,
3880
+        'validate_argument_php' => '',
3881
+    ),
3882
+    ));
3883
+    $handler->override_option('access', array(
3884 3884
     'type' => 'none',
3885
-  ));
3886
-  $handler->override_option('cache', array(
3885
+    ));
3886
+    $handler->override_option('cache', array(
3887 3887
     'type' => 'none',
3888
-  ));
3889
-  $handler->override_option('items_per_page', 0);
3890
-  $handler->override_option('distinct', 0);
3891
-  $handler->override_option('style_plugin', 'grid');
3892
-  $handler->override_option('style_options', array(
3888
+    ));
3889
+    $handler->override_option('items_per_page', 0);
3890
+    $handler->override_option('distinct', 0);
3891
+    $handler->override_option('style_plugin', 'grid');
3892
+    $handler->override_option('style_options', array(
3893 3893
     'grouping' => '',
3894 3894
     'columns' => '2',
3895 3895
     'alignment' => 'vertical',
3896 3896
     'fill_single_line' => 1,
3897
-  ));
3898
-  $handler->override_option('row_options', array(
3897
+    ));
3898
+    $handler->override_option('row_options', array(
3899 3899
     'inline' => array(),
3900 3900
     'separator' => '',
3901 3901
     'hide_empty' => 0,
3902
-  ));
3903
-  $handler = $view->new_display('page', 'Page', 'page_1');
3904
-  $handler->override_option('row_options', array());
3905
-  $handler->override_option('path', 'host');
3906
-  $handler->override_option('menu', array(
3902
+    ));
3903
+    $handler = $view->new_display('page', 'Page', 'page_1');
3904
+    $handler->override_option('row_options', array());
3905
+    $handler->override_option('path', 'host');
3906
+    $handler->override_option('menu', array(
3907 3907
     'type' => 'none',
3908 3908
     'title' => 'All computers',
3909 3909
     'description' => 'Show all computers associated with the account',
3910 3910
     'weight' => '1',
3911 3911
     'name' => 'navigation',
3912
-  ));
3913
-  $handler->override_option('tab_options', array(
3912
+    ));
3913
+    $handler->override_option('tab_options', array(
3914 3914
     'type' => 'none',
3915 3915
     'title' => '',
3916 3916
     'description' => '',
3917 3917
     'weight' => 0,
3918 3918
     'name' => 'navigation',
3919
-  ));
3919
+    ));
3920 3920
 
3921
-  $views[$view->name] = $view;
3921
+    $views[$view->name] = $view;
3922 3922
 
3923
-  // Exported view: boinc_host_apps
3924
-  $view = new view;
3925
-  $view->name = 'boinc_host_apps';
3926
-  $view->description = '';
3927
-  $view->tag = '';
3928
-  $view->base_table = 'host';
3929
-  $view->core = 6;
3930
-  $view->api_version = '2';
3931
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
3932
-  $handler = $view->new_display('default', 'Defaults', 'default');
3933
-  $handler->override_option('relationships', array(
3923
+    // Exported view: boinc_host_apps
3924
+    $view = new view;
3925
+    $view->name = 'boinc_host_apps';
3926
+    $view->description = '';
3927
+    $view->tag = '';
3928
+    $view->base_table = 'host';
3929
+    $view->core = 6;
3930
+    $view->api_version = '2';
3931
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
3932
+    $handler = $view->new_display('default', 'Defaults', 'default');
3933
+    $handler->override_option('relationships', array(
3934 3934
     'app_version_id' => array(
3935
-      'label' => 'App version',
3936
-      'required' => 1,
3937
-      'id' => 'app_version_id',
3938
-      'table' => 'host_app_version',
3939
-      'field' => 'app_version_id',
3940
-      'relationship' => 'none',
3935
+        'label' => 'App version',
3936
+        'required' => 1,
3937
+        'id' => 'app_version_id',
3938
+        'table' => 'host_app_version',
3939
+        'field' => 'app_version_id',
3940
+        'relationship' => 'none',
3941 3941
     ),
3942 3942
     'appid' => array(
3943
-      'label' => 'App ID',
3944
-      'required' => 1,
3945
-      'id' => 'appid',
3946
-      'table' => 'app_version',
3947
-      'field' => 'appid',
3948
-      'relationship' => 'app_version_id',
3943
+        'label' => 'App ID',
3944
+        'required' => 1,
3945
+        'id' => 'appid',
3946
+        'table' => 'app_version',
3947
+        'field' => 'appid',
3948
+        'relationship' => 'app_version_id',
3949 3949
     ),
3950 3950
     'platformid' => array(
3951
-      'label' => 'Platform ID',
3952
-      'required' => 1,
3953
-      'id' => 'platformid',
3954
-      'table' => 'app_version',
3955
-      'field' => 'platformid',
3956
-      'relationship' => 'app_version_id',
3957
-    ),
3958
-  ));
3959
-  $handler->override_option('fields', array(
3951
+        'label' => 'Platform ID',
3952
+        'required' => 1,
3953
+        'id' => 'platformid',
3954
+        'table' => 'app_version',
3955
+        'field' => 'platformid',
3956
+        'relationship' => 'app_version_id',
3957
+    ),
3958
+    ));
3959
+    $handler->override_option('fields', array(
3960 3960
     'user_friendly_name' => array(
3961
-      'label' => '',
3962
-      'alter' => array(
3961
+        'label' => '',
3962
+        'alter' => array(
3963 3963
         'alter_text' => 0,
3964 3964
         'text' => '',
3965 3965
         'make_link' => 0,
@@ -3978,20 +3978,20 @@  discard block
 block discarded – undo
3978 3978
         'ellipsis' => 1,
3979 3979
         'html' => 0,
3980 3980
         'strip_tags' => 0,
3981
-      ),
3982
-      'empty' => '',
3983
-      'hide_empty' => 0,
3984
-      'empty_zero' => 0,
3985
-      'hide_alter_empty' => 1,
3986
-      'exclude' => 0,
3987
-      'id' => 'user_friendly_name',
3988
-      'table' => 'app',
3989
-      'field' => 'user_friendly_name',
3990
-      'relationship' => 'appid',
3981
+        ),
3982
+        'empty' => '',
3983
+        'hide_empty' => 0,
3984
+        'empty_zero' => 0,
3985
+        'hide_alter_empty' => 1,
3986
+        'exclude' => 0,
3987
+        'id' => 'user_friendly_name',
3988
+        'table' => 'app',
3989
+        'field' => 'user_friendly_name',
3990
+        'relationship' => 'appid',
3991 3991
     ),
3992 3992
     'version_num' => array(
3993
-      'label' => '',
3994
-      'alter' => array(
3993
+        'label' => '',
3994
+        'alter' => array(
3995 3995
         'alter_text' => 0,
3996 3996
         'text' => '',
3997 3997
         'make_link' => 0,
@@ -4010,29 +4010,29 @@  discard block
 block discarded – undo
4010 4010
         'ellipsis' => 1,
4011 4011
         'html' => 0,
4012 4012
         'strip_tags' => 0,
4013
-      ),
4014
-      'empty' => '',
4015
-      'hide_empty' => 0,
4016
-      'empty_zero' => 0,
4017
-      'hide_alter_empty' => 1,
4018
-      'exclude' => 0,
4019
-      'set_precision' => 0,
4020
-      'precision' => '2',
4021
-      'decimal' => '.',
4022
-      'separator' => '',
4023
-      'format_plural' => 0,
4024
-      'format_plural_singular' => '1',
4025
-      'format_plural_plural' => '@count',
4026
-      'prefix' => '',
4027
-      'suffix' => '',
4028
-      'id' => 'version_num',
4029
-      'table' => 'app_version',
4030
-      'field' => 'version_num',
4031
-      'relationship' => 'app_version_id',
4013
+        ),
4014
+        'empty' => '',
4015
+        'hide_empty' => 0,
4016
+        'empty_zero' => 0,
4017
+        'hide_alter_empty' => 1,
4018
+        'exclude' => 0,
4019
+        'set_precision' => 0,
4020
+        'precision' => '2',
4021
+        'decimal' => '.',
4022
+        'separator' => '',
4023
+        'format_plural' => 0,
4024
+        'format_plural_singular' => '1',
4025
+        'format_plural_plural' => '@count',
4026
+        'prefix' => '',
4027
+        'suffix' => '',
4028
+        'id' => 'version_num',
4029
+        'table' => 'app_version',
4030
+        'field' => 'version_num',
4031
+        'relationship' => 'app_version_id',
4032 4032
     ),
4033 4033
     'name' => array(
4034
-      'label' => '',
4035
-      'alter' => array(
4034
+        'label' => '',
4035
+        'alter' => array(
4036 4036
         'alter_text' => 0,
4037 4037
         'text' => '',
4038 4038
         'make_link' => 0,
@@ -4051,20 +4051,20 @@  discard block
 block discarded – undo
4051 4051
         'ellipsis' => 1,
4052 4052
         'html' => 0,
4053 4053
         'strip_tags' => 0,
4054
-      ),
4055
-      'empty' => '',
4056
-      'hide_empty' => 0,
4057
-      'empty_zero' => 0,
4058
-      'hide_alter_empty' => 1,
4059
-      'exclude' => 0,
4060
-      'id' => 'name',
4061
-      'table' => 'platform',
4062
-      'field' => 'name',
4063
-      'relationship' => 'platformid',
4054
+        ),
4055
+        'empty' => '',
4056
+        'hide_empty' => 0,
4057
+        'empty_zero' => 0,
4058
+        'hide_alter_empty' => 1,
4059
+        'exclude' => 0,
4060
+        'id' => 'name',
4061
+        'table' => 'platform',
4062
+        'field' => 'name',
4063
+        'relationship' => 'platformid',
4064 4064
     ),
4065 4065
     'plan_class' => array(
4066
-      'label' => '',
4067
-      'alter' => array(
4066
+        'label' => '',
4067
+        'alter' => array(
4068 4068
         'alter_text' => 1,
4069 4069
         'text' => '([plan_class])',
4070 4070
         'make_link' => 0,
@@ -4083,20 +4083,20 @@  discard block
 block discarded – undo
4083 4083
         'ellipsis' => 1,
4084 4084
         'html' => 0,
4085 4085
         'strip_tags' => 0,
4086
-      ),
4087
-      'empty' => '',
4088
-      'hide_empty' => 0,
4089
-      'empty_zero' => 0,
4090
-      'hide_alter_empty' => 1,
4091
-      'exclude' => 0,
4092
-      'id' => 'plan_class',
4093
-      'table' => 'app_version',
4094
-      'field' => 'plan_class',
4095
-      'relationship' => 'app_version_id',
4086
+        ),
4087
+        'empty' => '',
4088
+        'hide_empty' => 0,
4089
+        'empty_zero' => 0,
4090
+        'hide_alter_empty' => 1,
4091
+        'exclude' => 0,
4092
+        'id' => 'plan_class',
4093
+        'table' => 'app_version',
4094
+        'field' => 'plan_class',
4095
+        'relationship' => 'app_version_id',
4096 4096
     ),
4097 4097
     'et_n' => array(
4098
-      'label' => 'Number of tasks completed',
4099
-      'alter' => array(
4098
+        'label' => 'Number of tasks completed',
4099
+        'alter' => array(
4100 4100
         'alter_text' => 0,
4101 4101
         'text' => '',
4102 4102
         'make_link' => 0,
@@ -4115,29 +4115,29 @@  discard block
 block discarded – undo
4115 4115
         'ellipsis' => 1,
4116 4116
         'html' => 0,
4117 4117
         'strip_tags' => 0,
4118
-      ),
4119
-      'empty' => '',
4120
-      'hide_empty' => 0,
4121
-      'empty_zero' => 0,
4122
-      'hide_alter_empty' => 0,
4123
-      'set_precision' => FALSE,
4124
-      'precision' => 0,
4125
-      'decimal' => '.',
4126
-      'separator' => '',
4127
-      'format_plural' => 0,
4128
-      'format_plural_singular' => '1',
4129
-      'format_plural_plural' => '@count',
4130
-      'prefix' => '',
4131
-      'suffix' => '',
4132
-      'exclude' => 0,
4133
-      'id' => 'et_n',
4134
-      'table' => 'host_app_version',
4135
-      'field' => 'et_n',
4136
-      'relationship' => 'none',
4118
+        ),
4119
+        'empty' => '',
4120
+        'hide_empty' => 0,
4121
+        'empty_zero' => 0,
4122
+        'hide_alter_empty' => 0,
4123
+        'set_precision' => FALSE,
4124
+        'precision' => 0,
4125
+        'decimal' => '.',
4126
+        'separator' => '',
4127
+        'format_plural' => 0,
4128
+        'format_plural_singular' => '1',
4129
+        'format_plural_plural' => '@count',
4130
+        'prefix' => '',
4131
+        'suffix' => '',
4132
+        'exclude' => 0,
4133
+        'id' => 'et_n',
4134
+        'table' => 'host_app_version',
4135
+        'field' => 'et_n',
4136
+        'relationship' => 'none',
4137 4137
     ),
4138 4138
     'max_jobs_per_day' => array(
4139
-      'label' => 'Max tasks per day',
4140
-      'alter' => array(
4139
+        'label' => 'Max tasks per day',
4140
+        'alter' => array(
4141 4141
         'alter_text' => 0,
4142 4142
         'text' => '',
4143 4143
         'make_link' => 0,
@@ -4156,29 +4156,29 @@  discard block
 block discarded – undo
4156 4156
         'ellipsis' => 1,
4157 4157
         'html' => 0,
4158 4158
         'strip_tags' => 0,
4159
-      ),
4160
-      'empty' => '',
4161
-      'hide_empty' => 0,
4162
-      'empty_zero' => 0,
4163
-      'hide_alter_empty' => 0,
4164
-      'set_precision' => FALSE,
4165
-      'precision' => 0,
4166
-      'decimal' => '.',
4167
-      'separator' => '',
4168
-      'format_plural' => 0,
4169
-      'format_plural_singular' => '1',
4170
-      'format_plural_plural' => '@count',
4171
-      'prefix' => '',
4172
-      'suffix' => '',
4173
-      'exclude' => 0,
4174
-      'id' => 'max_jobs_per_day',
4175
-      'table' => 'host_app_version',
4176
-      'field' => 'max_jobs_per_day',
4177
-      'relationship' => 'none',
4159
+        ),
4160
+        'empty' => '',
4161
+        'hide_empty' => 0,
4162
+        'empty_zero' => 0,
4163
+        'hide_alter_empty' => 0,
4164
+        'set_precision' => FALSE,
4165
+        'precision' => 0,
4166
+        'decimal' => '.',
4167
+        'separator' => '',
4168
+        'format_plural' => 0,
4169
+        'format_plural_singular' => '1',
4170
+        'format_plural_plural' => '@count',
4171
+        'prefix' => '',
4172
+        'suffix' => '',
4173
+        'exclude' => 0,
4174
+        'id' => 'max_jobs_per_day',
4175
+        'table' => 'host_app_version',
4176
+        'field' => 'max_jobs_per_day',
4177
+        'relationship' => 'none',
4178 4178
     ),
4179 4179
     'n_jobs_today' => array(
4180
-      'label' => 'Number of tasks today',
4181
-      'alter' => array(
4180
+        'label' => 'Number of tasks today',
4181
+        'alter' => array(
4182 4182
         'alter_text' => 0,
4183 4183
         'text' => '',
4184 4184
         'make_link' => 0,
@@ -4197,29 +4197,29 @@  discard block
 block discarded – undo
4197 4197
         'ellipsis' => 1,
4198 4198
         'html' => 0,
4199 4199
         'strip_tags' => 0,
4200
-      ),
4201
-      'empty' => '',
4202
-      'hide_empty' => 0,
4203
-      'empty_zero' => 0,
4204
-      'hide_alter_empty' => 0,
4205
-      'set_precision' => FALSE,
4206
-      'precision' => 0,
4207
-      'decimal' => '.',
4208
-      'separator' => '',
4209
-      'format_plural' => 0,
4210
-      'format_plural_singular' => '1',
4211
-      'format_plural_plural' => '@count',
4212
-      'prefix' => '',
4213
-      'suffix' => '',
4214
-      'exclude' => 0,
4215
-      'id' => 'n_jobs_today',
4216
-      'table' => 'host_app_version',
4217
-      'field' => 'n_jobs_today',
4218
-      'relationship' => 'none',
4200
+        ),
4201
+        'empty' => '',
4202
+        'hide_empty' => 0,
4203
+        'empty_zero' => 0,
4204
+        'hide_alter_empty' => 0,
4205
+        'set_precision' => FALSE,
4206
+        'precision' => 0,
4207
+        'decimal' => '.',
4208
+        'separator' => '',
4209
+        'format_plural' => 0,
4210
+        'format_plural_singular' => '1',
4211
+        'format_plural_plural' => '@count',
4212
+        'prefix' => '',
4213
+        'suffix' => '',
4214
+        'exclude' => 0,
4215
+        'id' => 'n_jobs_today',
4216
+        'table' => 'host_app_version',
4217
+        'field' => 'n_jobs_today',
4218
+        'relationship' => 'none',
4219 4219
     ),
4220 4220
     'consecutive_valid' => array(
4221
-      'label' => 'Consecutive valid tasks',
4222
-      'alter' => array(
4221
+        'label' => 'Consecutive valid tasks',
4222
+        'alter' => array(
4223 4223
         'alter_text' => 0,
4224 4224
         'text' => '',
4225 4225
         'make_link' => 0,
@@ -4238,29 +4238,29 @@  discard block
 block discarded – undo
4238 4238
         'ellipsis' => 1,
4239 4239
         'html' => 0,
4240 4240
         'strip_tags' => 0,
4241
-      ),
4242
-      'empty' => '',
4243
-      'hide_empty' => 0,
4244
-      'empty_zero' => 0,
4245
-      'hide_alter_empty' => 0,
4246
-      'set_precision' => FALSE,
4247
-      'precision' => 0,
4248
-      'decimal' => '.',
4249
-      'separator' => '',
4250
-      'format_plural' => 0,
4251
-      'format_plural_singular' => '1',
4252
-      'format_plural_plural' => '@count',
4253
-      'prefix' => '',
4254
-      'suffix' => '',
4255
-      'exclude' => 0,
4256
-      'id' => 'consecutive_valid',
4257
-      'table' => 'host_app_version',
4258
-      'field' => 'consecutive_valid',
4259
-      'relationship' => 'none',
4241
+        ),
4242
+        'empty' => '',
4243
+        'hide_empty' => 0,
4244
+        'empty_zero' => 0,
4245
+        'hide_alter_empty' => 0,
4246
+        'set_precision' => FALSE,
4247
+        'precision' => 0,
4248
+        'decimal' => '.',
4249
+        'separator' => '',
4250
+        'format_plural' => 0,
4251
+        'format_plural_singular' => '1',
4252
+        'format_plural_plural' => '@count',
4253
+        'prefix' => '',
4254
+        'suffix' => '',
4255
+        'exclude' => 0,
4256
+        'id' => 'consecutive_valid',
4257
+        'table' => 'host_app_version',
4258
+        'field' => 'consecutive_valid',
4259
+        'relationship' => 'none',
4260 4260
     ),
4261 4261
     'et_avg' => array(
4262
-      'label' => 'Average processing rate',
4263
-      'alter' => array(
4262
+        'label' => 'Average processing rate',
4263
+        'alter' => array(
4264 4264
         'alter_text' => 0,
4265 4265
         'text' => '',
4266 4266
         'make_link' => 0,
@@ -4279,29 +4279,29 @@  discard block
 block discarded – undo
4279 4279
         'ellipsis' => 1,
4280 4280
         'html' => 0,
4281 4281
         'strip_tags' => 0,
4282
-      ),
4283
-      'empty' => '',
4284
-      'hide_empty' => 0,
4285
-      'empty_zero' => 0,
4286
-      'hide_alter_empty' => 1,
4287
-      'exclude' => 0,
4288
-      'set_precision' => FALSE,
4289
-      'precision' => 0,
4290
-      'decimal' => '.',
4291
-      'separator' => ',',
4292
-      'format_plural' => 0,
4293
-      'format_plural_singular' => '1',
4294
-      'format_plural_plural' => '@count',
4295
-      'prefix' => '',
4296
-      'suffix' => '',
4297
-      'id' => 'et_avg',
4298
-      'table' => 'host_app_version',
4299
-      'field' => 'et_avg',
4300
-      'relationship' => 'none',
4282
+        ),
4283
+        'empty' => '',
4284
+        'hide_empty' => 0,
4285
+        'empty_zero' => 0,
4286
+        'hide_alter_empty' => 1,
4287
+        'exclude' => 0,
4288
+        'set_precision' => FALSE,
4289
+        'precision' => 0,
4290
+        'decimal' => '.',
4291
+        'separator' => ',',
4292
+        'format_plural' => 0,
4293
+        'format_plural_singular' => '1',
4294
+        'format_plural_plural' => '@count',
4295
+        'prefix' => '',
4296
+        'suffix' => '',
4297
+        'id' => 'et_avg',
4298
+        'table' => 'host_app_version',
4299
+        'field' => 'et_avg',
4300
+        'relationship' => 'none',
4301 4301
     ),
4302 4302
     'turnaround_avg' => array(
4303
-      'label' => 'Average turnaround time',
4304
-      'alter' => array(
4303
+        'label' => 'Average turnaround time',
4304
+        'alter' => array(
4305 4305
         'alter_text' => 0,
4306 4306
         'text' => '',
4307 4307
         'make_link' => 0,
@@ -4320,45 +4320,45 @@  discard block
 block discarded – undo
4320 4320
         'ellipsis' => 1,
4321 4321
         'html' => 0,
4322 4322
         'strip_tags' => 0,
4323
-      ),
4324
-      'empty' => '',
4325
-      'hide_empty' => 0,
4326
-      'empty_zero' => 0,
4327
-      'hide_alter_empty' => 1,
4328
-      'exclude' => 0,
4329
-      'set_precision' => 0,
4330
-      'precision' => '2',
4331
-      'decimal' => '.',
4332
-      'separator' => '',
4333
-      'format_plural' => 0,
4334
-      'format_plural_singular' => '1',
4335
-      'format_plural_plural' => '@count',
4336
-      'prefix' => '',
4337
-      'suffix' => '',
4338
-      'id' => 'turnaround_avg',
4339
-      'table' => 'host_app_version',
4340
-      'field' => 'turnaround_avg',
4341
-      'relationship' => 'none',
4323
+        ),
4324
+        'empty' => '',
4325
+        'hide_empty' => 0,
4326
+        'empty_zero' => 0,
4327
+        'hide_alter_empty' => 1,
4328
+        'exclude' => 0,
4329
+        'set_precision' => 0,
4330
+        'precision' => '2',
4331
+        'decimal' => '.',
4332
+        'separator' => '',
4333
+        'format_plural' => 0,
4334
+        'format_plural_singular' => '1',
4335
+        'format_plural_plural' => '@count',
4336
+        'prefix' => '',
4337
+        'suffix' => '',
4338
+        'id' => 'turnaround_avg',
4339
+        'table' => 'host_app_version',
4340
+        'field' => 'turnaround_avg',
4341
+        'relationship' => 'none',
4342 4342
     ),
4343
-  ));
4344
-  $handler->override_option('arguments', array(
4343
+    ));
4344
+    $handler->override_option('arguments', array(
4345 4345
     'host_id' => array(
4346
-      'default_action' => 'not found',
4347
-      'style_plugin' => 'default_summary',
4348
-      'style_options' => array(),
4349
-      'wildcard' => 'all',
4350
-      'wildcard_substitution' => 'All',
4351
-      'title' => '',
4352
-      'breadcrumb' => '',
4353
-      'default_argument_type' => 'fixed',
4354
-      'default_argument' => '',
4355
-      'validate_type' => 'numeric',
4356
-      'validate_fail' => 'not found',
4357
-      'id' => 'host_id',
4358
-      'table' => 'host_app_version',
4359
-      'field' => 'host_id',
4360
-      'validate_user_argument_type' => 'uid',
4361
-      'validate_user_roles' => array(
4346
+        'default_action' => 'not found',
4347
+        'style_plugin' => 'default_summary',
4348
+        'style_options' => array(),
4349
+        'wildcard' => 'all',
4350
+        'wildcard_substitution' => 'All',
4351
+        'title' => '',
4352
+        'breadcrumb' => '',
4353
+        'default_argument_type' => 'fixed',
4354
+        'default_argument' => '',
4355
+        'validate_type' => 'numeric',
4356
+        'validate_fail' => 'not found',
4357
+        'id' => 'host_id',
4358
+        'table' => 'host_app_version',
4359
+        'field' => 'host_id',
4360
+        'validate_user_argument_type' => 'uid',
4361
+        'validate_user_roles' => array(
4362 4362
         2 => 0,
4363 4363
         3519698132 => 0,
4364 4364
         1110965548 => 0,
@@ -4366,10 +4366,10 @@  discard block
 block discarded – undo
4366 4366
         1257454314 => 0,
4367 4367
         1271379760 => 0,
4368 4368
         933038561 => 0,
4369
-      ),
4370
-      'me_redirect' => 0,
4371
-      'me_validate_user_argument_type' => 'uid',
4372
-      'me_validate_user_roles' => array(
4369
+        ),
4370
+        'me_redirect' => 0,
4371
+        'me_validate_user_argument_type' => 'uid',
4372
+        'me_validate_user_roles' => array(
4373 4373
         2 => 0,
4374 4374
         3519698132 => 0,
4375 4375
         1110965548 => 0,
@@ -4377,20 +4377,20 @@  discard block
 block discarded – undo
4377 4377
         1257454314 => 0,
4378 4378
         1271379760 => 0,
4379 4379
         933038561 => 0,
4380
-      ),
4381
-      'relationship' => 'none',
4382
-      'default_options_div_prefix' => '',
4383
-      'default_taxonomy_tid_term_page' => 0,
4384
-      'default_taxonomy_tid_node' => 0,
4385
-      'default_taxonomy_tid_limit' => 0,
4386
-      'default_taxonomy_tid_vids' => array(
4380
+        ),
4381
+        'relationship' => 'none',
4382
+        'default_options_div_prefix' => '',
4383
+        'default_taxonomy_tid_term_page' => 0,
4384
+        'default_taxonomy_tid_node' => 0,
4385
+        'default_taxonomy_tid_limit' => 0,
4386
+        'default_taxonomy_tid_vids' => array(
4387 4387
         1 => 0,
4388 4388
         2 => 0,
4389
-      ),
4390
-      'default_argument_user' => 0,
4391
-      'default_argument_fixed' => '',
4392
-      'default_argument_php' => '',
4393
-      'validate_argument_node_type' => array(
4389
+        ),
4390
+        'default_argument_user' => 0,
4391
+        'default_argument_fixed' => '',
4392
+        'default_argument_php' => '',
4393
+        'validate_argument_node_type' => array(
4394 4394
         'page' => 0,
4395 4395
         'news' => 0,
4396 4396
         'team' => 0,
@@ -4399,51 +4399,51 @@  discard block
 block discarded – undo
4399 4399
         'forum' => 0,
4400 4400
         'panel' => 0,
4401 4401
         'story' => 0,
4402
-      ),
4403
-      'validate_argument_node_access' => 0,
4404
-      'validate_argument_nid_type' => 'nid',
4405
-      'validate_argument_vocabulary' => array(
4402
+        ),
4403
+        'validate_argument_node_access' => 0,
4404
+        'validate_argument_nid_type' => 'nid',
4405
+        'validate_argument_vocabulary' => array(
4406 4406
         1 => 0,
4407 4407
         2 => 0,
4408
-      ),
4409
-      'validate_argument_type' => 'tid',
4410
-      'validate_argument_transform' => 0,
4411
-      'validate_user_restrict_roles' => 0,
4412
-      'validate_argument_node_flag_name' => '*relationship*',
4413
-      'validate_argument_node_flag_test' => 'flaggable',
4414
-      'validate_argument_node_flag_id_type' => 'id',
4415
-      'validate_argument_user_flag_name' => '*relationship*',
4416
-      'validate_argument_user_flag_test' => 'flaggable',
4417
-      'validate_argument_user_flag_id_type' => 'id',
4418
-      'validate_argument_php' => '',
4419
-      'me_validate_user_restrict_roles' => 0,
4420
-    ),
4421
-  ));
4422
-  $handler->override_option('access', array(
4408
+        ),
4409
+        'validate_argument_type' => 'tid',
4410
+        'validate_argument_transform' => 0,
4411
+        'validate_user_restrict_roles' => 0,
4412
+        'validate_argument_node_flag_name' => '*relationship*',
4413
+        'validate_argument_node_flag_test' => 'flaggable',
4414
+        'validate_argument_node_flag_id_type' => 'id',
4415
+        'validate_argument_user_flag_name' => '*relationship*',
4416
+        'validate_argument_user_flag_test' => 'flaggable',
4417
+        'validate_argument_user_flag_id_type' => 'id',
4418
+        'validate_argument_php' => '',
4419
+        'me_validate_user_restrict_roles' => 0,
4420
+    ),
4421
+    ));
4422
+    $handler->override_option('access', array(
4423 4423
     'type' => 'none',
4424
-  ));
4425
-  $handler->override_option('cache', array(
4424
+    ));
4425
+    $handler->override_option('cache', array(
4426 4426
     'type' => 'none',
4427
-  ));
4428
-  $handler->override_option('use_pager', '1');
4429
-  $handler->override_option('style_options', array(
4427
+    ));
4428
+    $handler->override_option('use_pager', '1');
4429
+    $handler->override_option('style_options', array(
4430 4430
     'grouping' => '',
4431
-  ));
4432
-  $handler->override_option('row_options', array(
4431
+    ));
4432
+    $handler->override_option('row_options', array(
4433 4433
     'inline' => array(
4434
-      'user_friendly_name' => 'user_friendly_name',
4435
-      'version_num' => 'version_num',
4436
-      'name' => 'name',
4437
-      'plan_class' => 'plan_class',
4434
+        'user_friendly_name' => 'user_friendly_name',
4435
+        'version_num' => 'version_num',
4436
+        'name' => 'name',
4437
+        'plan_class' => 'plan_class',
4438 4438
     ),
4439 4439
     'separator' => ' ',
4440 4440
     'hide_empty' => 0,
4441
-  ));
4442
-  $handler = $view->new_display('page', 'Page', 'page_1');
4443
-  $handler->override_option('fields', array(
4441
+    ));
4442
+    $handler = $view->new_display('page', 'Page', 'page_1');
4443
+    $handler->override_option('fields', array(
4444 4444
     'user_friendly_name' => array(
4445
-      'label' => '',
4446
-      'alter' => array(
4445
+        'label' => '',
4446
+        'alter' => array(
4447 4447
         'alter_text' => 1,
4448 4448
         'text' => '<b>[user_friendly_name]',
4449 4449
         'make_link' => 0,
@@ -4462,23 +4462,23 @@  discard block
 block discarded – undo
4462 4462
         'ellipsis' => 1,
4463 4463
         'html' => 0,
4464 4464
         'strip_tags' => 0,
4465
-      ),
4466
-      'empty' => '',
4467
-      'hide_empty' => 0,
4468
-      'empty_zero' => 0,
4469
-      'hide_alter_empty' => 1,
4470
-      'exclude' => 0,
4471
-      'id' => 'user_friendly_name',
4472
-      'table' => 'app',
4473
-      'field' => 'user_friendly_name',
4474
-      'relationship' => 'appid',
4475
-      'override' => array(
4465
+        ),
4466
+        'empty' => '',
4467
+        'hide_empty' => 0,
4468
+        'empty_zero' => 0,
4469
+        'hide_alter_empty' => 1,
4470
+        'exclude' => 0,
4471
+        'id' => 'user_friendly_name',
4472
+        'table' => 'app',
4473
+        'field' => 'user_friendly_name',
4474
+        'relationship' => 'appid',
4475
+        'override' => array(
4476 4476
         'button' => 'Use default',
4477
-      ),
4477
+        ),
4478 4478
     ),
4479 4479
     'version_num' => array(
4480
-      'label' => '',
4481
-      'alter' => array(
4480
+        'label' => '',
4481
+        'alter' => array(
4482 4482
         'alter_text' => 0,
4483 4483
         'text' => '',
4484 4484
         'make_link' => 0,
@@ -4497,29 +4497,29 @@  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
-      'set_precision' => 0,
4507
-      'precision' => '2',
4508
-      'decimal' => '.',
4509
-      'separator' => '',
4510
-      'format_plural' => 0,
4511
-      'format_plural_singular' => '1',
4512
-      'format_plural_plural' => '@count',
4513
-      'prefix' => '',
4514
-      'suffix' => '',
4515
-      'id' => 'version_num',
4516
-      'table' => 'app_version',
4517
-      'field' => 'version_num',
4518
-      'relationship' => 'app_version_id',
4500
+        ),
4501
+        'empty' => '',
4502
+        'hide_empty' => 0,
4503
+        'empty_zero' => 0,
4504
+        'hide_alter_empty' => 1,
4505
+        'exclude' => 0,
4506
+        'set_precision' => 0,
4507
+        'precision' => '2',
4508
+        'decimal' => '.',
4509
+        'separator' => '',
4510
+        'format_plural' => 0,
4511
+        'format_plural_singular' => '1',
4512
+        'format_plural_plural' => '@count',
4513
+        'prefix' => '',
4514
+        'suffix' => '',
4515
+        'id' => 'version_num',
4516
+        'table' => 'app_version',
4517
+        'field' => 'version_num',
4518
+        'relationship' => 'app_version_id',
4519 4519
     ),
4520 4520
     'name' => array(
4521
-      'label' => '',
4522
-      'alter' => array(
4521
+        'label' => '',
4522
+        'alter' => array(
4523 4523
         'alter_text' => 0,
4524 4524
         'text' => '',
4525 4525
         'make_link' => 0,
@@ -4538,20 +4538,20 @@  discard block
 block discarded – undo
4538 4538
         'ellipsis' => 1,
4539 4539
         'html' => 0,
4540 4540
         'strip_tags' => 0,
4541
-      ),
4542
-      'empty' => '',
4543
-      'hide_empty' => 0,
4544
-      'empty_zero' => 0,
4545
-      'hide_alter_empty' => 1,
4546
-      'exclude' => 0,
4547
-      'id' => 'name',
4548
-      'table' => 'platform',
4549
-      'field' => 'name',
4550
-      'relationship' => 'platformid',
4541
+        ),
4542
+        'empty' => '',
4543
+        'hide_empty' => 0,
4544
+        'empty_zero' => 0,
4545
+        'hide_alter_empty' => 1,
4546
+        'exclude' => 0,
4547
+        'id' => 'name',
4548
+        'table' => 'platform',
4549
+        'field' => 'name',
4550
+        'relationship' => 'platformid',
4551 4551
     ),
4552 4552
     'plan_class' => array(
4553
-      'label' => '',
4554
-      'alter' => array(
4553
+        'label' => '',
4554
+        'alter' => array(
4555 4555
         'alter_text' => 1,
4556 4556
         'text' => '([plan_class])</b>',
4557 4557
         'make_link' => 0,
@@ -4570,23 +4570,23 @@  discard block
 block discarded – undo
4570 4570
         'ellipsis' => 1,
4571 4571
         'html' => 0,
4572 4572
         'strip_tags' => 0,
4573
-      ),
4574
-      'empty' => '',
4575
-      'hide_empty' => 0,
4576
-      'empty_zero' => 0,
4577
-      'hide_alter_empty' => 0,
4578
-      'exclude' => 0,
4579
-      'id' => 'plan_class',
4580
-      'table' => 'app_version',
4581
-      'field' => 'plan_class',
4582
-      'relationship' => 'app_version_id',
4583
-      'override' => array(
4573
+        ),
4574
+        'empty' => '',
4575
+        'hide_empty' => 0,
4576
+        'empty_zero' => 0,
4577
+        'hide_alter_empty' => 0,
4578
+        'exclude' => 0,
4579
+        'id' => 'plan_class',
4580
+        'table' => 'app_version',
4581
+        'field' => 'plan_class',
4582
+        'relationship' => 'app_version_id',
4583
+        'override' => array(
4584 4584
         'button' => 'Use default',
4585
-      ),
4585
+        ),
4586 4586
     ),
4587 4587
     'et_n' => array(
4588
-      'label' => 'Number of tasks completed',
4589
-      'alter' => array(
4588
+        'label' => 'Number of tasks completed',
4589
+        'alter' => array(
4590 4590
         'alter_text' => 0,
4591 4591
         'text' => '',
4592 4592
         'make_link' => 0,
@@ -4605,29 +4605,29 @@  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
-      'set_precision' => FALSE,
4614
-      'precision' => 0,
4615
-      'decimal' => '.',
4616
-      'separator' => '',
4617
-      'format_plural' => 0,
4618
-      'format_plural_singular' => '1',
4619
-      'format_plural_plural' => '@count',
4620
-      'prefix' => '',
4621
-      'suffix' => '',
4622
-      'exclude' => 0,
4623
-      'id' => 'et_n',
4624
-      'table' => 'host_app_version',
4625
-      'field' => 'et_n',
4626
-      'relationship' => 'none',
4608
+        ),
4609
+        'empty' => '',
4610
+        'hide_empty' => 0,
4611
+        'empty_zero' => 0,
4612
+        'hide_alter_empty' => 0,
4613
+        'set_precision' => FALSE,
4614
+        'precision' => 0,
4615
+        'decimal' => '.',
4616
+        'separator' => '',
4617
+        'format_plural' => 0,
4618
+        'format_plural_singular' => '1',
4619
+        'format_plural_plural' => '@count',
4620
+        'prefix' => '',
4621
+        'suffix' => '',
4622
+        'exclude' => 0,
4623
+        'id' => 'et_n',
4624
+        'table' => 'host_app_version',
4625
+        'field' => 'et_n',
4626
+        'relationship' => 'none',
4627 4627
     ),
4628 4628
     'max_jobs_per_day' => array(
4629
-      'label' => 'Max tasks per day',
4630
-      'alter' => array(
4629
+        'label' => 'Max tasks per day',
4630
+        'alter' => array(
4631 4631
         'alter_text' => 0,
4632 4632
         'text' => '',
4633 4633
         'make_link' => 0,
@@ -4646,29 +4646,29 @@  discard block
 block discarded – undo
4646 4646
         'ellipsis' => 1,
4647 4647
         'html' => 0,
4648 4648
         'strip_tags' => 0,
4649
-      ),
4650
-      'empty' => '',
4651
-      'hide_empty' => 0,
4652
-      'empty_zero' => 0,
4653
-      'hide_alter_empty' => 0,
4654
-      'set_precision' => FALSE,
4655
-      'precision' => 0,
4656
-      'decimal' => '.',
4657
-      'separator' => '',
4658
-      'format_plural' => 0,
4659
-      'format_plural_singular' => '1',
4660
-      'format_plural_plural' => '@count',
4661
-      'prefix' => '',
4662
-      'suffix' => '',
4663
-      'exclude' => 0,
4664
-      'id' => 'max_jobs_per_day',
4665
-      'table' => 'host_app_version',
4666
-      'field' => 'max_jobs_per_day',
4667
-      'relationship' => 'none',
4649
+        ),
4650
+        'empty' => '',
4651
+        'hide_empty' => 0,
4652
+        'empty_zero' => 0,
4653
+        'hide_alter_empty' => 0,
4654
+        'set_precision' => FALSE,
4655
+        'precision' => 0,
4656
+        'decimal' => '.',
4657
+        'separator' => '',
4658
+        'format_plural' => 0,
4659
+        'format_plural_singular' => '1',
4660
+        'format_plural_plural' => '@count',
4661
+        'prefix' => '',
4662
+        'suffix' => '',
4663
+        'exclude' => 0,
4664
+        'id' => 'max_jobs_per_day',
4665
+        'table' => 'host_app_version',
4666
+        'field' => 'max_jobs_per_day',
4667
+        'relationship' => 'none',
4668 4668
     ),
4669 4669
     'n_jobs_today' => array(
4670
-      'label' => 'Number of tasks today',
4671
-      'alter' => array(
4670
+        'label' => 'Number of tasks today',
4671
+        'alter' => array(
4672 4672
         'alter_text' => 0,
4673 4673
         'text' => '',
4674 4674
         'make_link' => 0,
@@ -4687,29 +4687,29 @@  discard block
 block discarded – undo
4687 4687
         'ellipsis' => 1,
4688 4688
         'html' => 0,
4689 4689
         'strip_tags' => 0,
4690
-      ),
4691
-      'empty' => '',
4692
-      'hide_empty' => 0,
4693
-      'empty_zero' => 0,
4694
-      'hide_alter_empty' => 0,
4695
-      'set_precision' => FALSE,
4696
-      'precision' => 0,
4697
-      'decimal' => '.',
4698
-      'separator' => '',
4699
-      'format_plural' => 0,
4700
-      'format_plural_singular' => '1',
4701
-      'format_plural_plural' => '@count',
4702
-      'prefix' => '',
4703
-      'suffix' => '',
4704
-      'exclude' => 0,
4705
-      'id' => 'n_jobs_today',
4706
-      'table' => 'host_app_version',
4707
-      'field' => 'n_jobs_today',
4708
-      'relationship' => 'none',
4690
+        ),
4691
+        'empty' => '',
4692
+        'hide_empty' => 0,
4693
+        'empty_zero' => 0,
4694
+        'hide_alter_empty' => 0,
4695
+        'set_precision' => FALSE,
4696
+        'precision' => 0,
4697
+        'decimal' => '.',
4698
+        'separator' => '',
4699
+        'format_plural' => 0,
4700
+        'format_plural_singular' => '1',
4701
+        'format_plural_plural' => '@count',
4702
+        'prefix' => '',
4703
+        'suffix' => '',
4704
+        'exclude' => 0,
4705
+        'id' => 'n_jobs_today',
4706
+        'table' => 'host_app_version',
4707
+        'field' => 'n_jobs_today',
4708
+        'relationship' => 'none',
4709 4709
     ),
4710 4710
     'consecutive_valid' => array(
4711
-      'label' => 'Consecutive valid tasks',
4712
-      'alter' => array(
4711
+        'label' => 'Consecutive valid tasks',
4712
+        'alter' => array(
4713 4713
         'alter_text' => 0,
4714 4714
         'text' => '',
4715 4715
         'make_link' => 0,
@@ -4728,29 +4728,29 @@  discard block
 block discarded – undo
4728 4728
         'ellipsis' => 1,
4729 4729
         'html' => 0,
4730 4730
         'strip_tags' => 0,
4731
-      ),
4732
-      'empty' => '',
4733
-      'hide_empty' => 0,
4734
-      'empty_zero' => 0,
4735
-      'hide_alter_empty' => 0,
4736
-      'set_precision' => FALSE,
4737
-      'precision' => 0,
4738
-      'decimal' => '.',
4739
-      'separator' => '',
4740
-      'format_plural' => 0,
4741
-      'format_plural_singular' => '1',
4742
-      'format_plural_plural' => '@count',
4743
-      'prefix' => '',
4744
-      'suffix' => '',
4745
-      'exclude' => 0,
4746
-      'id' => 'consecutive_valid',
4747
-      'table' => 'host_app_version',
4748
-      'field' => 'consecutive_valid',
4749
-      'relationship' => 'none',
4731
+        ),
4732
+        'empty' => '',
4733
+        'hide_empty' => 0,
4734
+        'empty_zero' => 0,
4735
+        'hide_alter_empty' => 0,
4736
+        'set_precision' => FALSE,
4737
+        'precision' => 0,
4738
+        'decimal' => '.',
4739
+        'separator' => '',
4740
+        'format_plural' => 0,
4741
+        'format_plural_singular' => '1',
4742
+        'format_plural_plural' => '@count',
4743
+        'prefix' => '',
4744
+        'suffix' => '',
4745
+        'exclude' => 0,
4746
+        'id' => 'consecutive_valid',
4747
+        'table' => 'host_app_version',
4748
+        'field' => 'consecutive_valid',
4749
+        'relationship' => 'none',
4750 4750
     ),
4751 4751
     'et_avg' => array(
4752
-      'label' => 'Average processing rate',
4753
-      'alter' => array(
4752
+        'label' => 'Average processing rate',
4753
+        'alter' => array(
4754 4754
         'alter_text' => 0,
4755 4755
         'text' => '',
4756 4756
         'make_link' => 0,
@@ -4769,29 +4769,29 @@  discard block
 block discarded – undo
4769 4769
         'ellipsis' => 1,
4770 4770
         'html' => 0,
4771 4771
         'strip_tags' => 0,
4772
-      ),
4773
-      'empty' => '',
4774
-      'hide_empty' => 0,
4775
-      'empty_zero' => 0,
4776
-      'hide_alter_empty' => 1,
4777
-      'exclude' => 0,
4778
-      'set_precision' => FALSE,
4779
-      'precision' => 0,
4780
-      'decimal' => '.',
4781
-      'separator' => ',',
4782
-      'format_plural' => 0,
4783
-      'format_plural_singular' => '1',
4784
-      'format_plural_plural' => '@count',
4785
-      'prefix' => '',
4786
-      'suffix' => '',
4787
-      'id' => 'et_avg',
4788
-      'table' => 'host_app_version',
4789
-      'field' => 'et_avg',
4790
-      'relationship' => 'none',
4772
+        ),
4773
+        'empty' => '',
4774
+        'hide_empty' => 0,
4775
+        'empty_zero' => 0,
4776
+        'hide_alter_empty' => 1,
4777
+        'exclude' => 0,
4778
+        'set_precision' => FALSE,
4779
+        'precision' => 0,
4780
+        'decimal' => '.',
4781
+        'separator' => ',',
4782
+        'format_plural' => 0,
4783
+        'format_plural_singular' => '1',
4784
+        'format_plural_plural' => '@count',
4785
+        'prefix' => '',
4786
+        'suffix' => '',
4787
+        'id' => 'et_avg',
4788
+        'table' => 'host_app_version',
4789
+        'field' => 'et_avg',
4790
+        'relationship' => 'none',
4791 4791
     ),
4792 4792
     'turnaround_avg' => array(
4793
-      'label' => 'Average turnaround time',
4794
-      'alter' => array(
4793
+        'label' => 'Average turnaround time',
4794
+        'alter' => array(
4795 4795
         'alter_text' => 0,
4796 4796
         'text' => '',
4797 4797
         'make_link' => 0,
@@ -4810,67 +4810,67 @@  discard block
 block discarded – undo
4810 4810
         'ellipsis' => 1,
4811 4811
         'html' => 0,
4812 4812
         'strip_tags' => 0,
4813
-      ),
4814
-      'empty' => '',
4815
-      'hide_empty' => 0,
4816
-      'empty_zero' => 0,
4817
-      'hide_alter_empty' => 1,
4818
-      'exclude' => 0,
4819
-      'set_precision' => 0,
4820
-      'precision' => '2',
4821
-      'decimal' => '.',
4822
-      'separator' => '',
4823
-      'format_plural' => 0,
4824
-      'format_plural_singular' => '1',
4825
-      'format_plural_plural' => '@count',
4826
-      'prefix' => '',
4827
-      'suffix' => '',
4828
-      'id' => 'turnaround_avg',
4829
-      'table' => 'host_app_version',
4830
-      'field' => 'turnaround_avg',
4831
-      'relationship' => 'none',
4813
+        ),
4814
+        'empty' => '',
4815
+        'hide_empty' => 0,
4816
+        'empty_zero' => 0,
4817
+        'hide_alter_empty' => 1,
4818
+        'exclude' => 0,
4819
+        'set_precision' => 0,
4820
+        'precision' => '2',
4821
+        'decimal' => '.',
4822
+        'separator' => '',
4823
+        'format_plural' => 0,
4824
+        'format_plural_singular' => '1',
4825
+        'format_plural_plural' => '@count',
4826
+        'prefix' => '',
4827
+        'suffix' => '',
4828
+        'id' => 'turnaround_avg',
4829
+        'table' => 'host_app_version',
4830
+        'field' => 'turnaround_avg',
4831
+        'relationship' => 'none',
4832 4832
     ),
4833
-  ));
4834
-  $handler->override_option('title', 'Application details');
4835
-  $handler->override_option('path', 'host/%/apps');
4836
-  $handler->override_option('menu', array(
4833
+    ));
4834
+    $handler->override_option('title', 'Application details');
4835
+    $handler->override_option('path', 'host/%/apps');
4836
+    $handler->override_option('menu', array(
4837 4837
     'type' => 'none',
4838 4838
     'title' => '',
4839 4839
     'description' => '',
4840 4840
     'weight' => 0,
4841 4841
     'name' => 'primary-links',
4842
-  ));
4843
-  $handler->override_option('tab_options', array(
4842
+    ));
4843
+    $handler->override_option('tab_options', array(
4844 4844
     'type' => 'none',
4845 4845
     'title' => '',
4846 4846
     'description' => '',
4847 4847
     'weight' => 0,
4848 4848
     'name' => 'navigation',
4849
-  ));
4849
+    ));
4850 4850
 
4851
-  $views[$view->name] = $view;
4851
+    $views[$view->name] = $view;
4852 4852
 
4853
-  // Exported view: boinc_host_list
4854
-  $view = new view;
4855
-  $view->name = 'boinc_host_list';
4856
-  $view->description = 'A list of computers associated with a given user';
4857
-  $view->tag = '';
4858
-  $view->base_table = 'host';
4859
-  $view->core = 0;
4860
-  $view->api_version = '2';
4861
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
4862
-  $handler = $view->new_display('default', 'Defaults', 'default');
4863
-  $handler->override_option('relationships', array(
4853
+    // Exported view: boinc_host_list
4854
+    $view = new view;
4855
+    $view->name = 'boinc_host_list';
4856
+    $view->description = 'A list of computers associated with a given user';
4857
+    $view->tag = '';
4858
+    $view->base_table = 'host';
4859
+    $view->core = 0;
4860
+    $view->api_version = '2';
4861
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
4862
+    $handler = $view->new_display('default', 'Defaults', 'default');
4863
+    $handler->override_option('relationships', array(
4864 4864
     'userid' => array(
4865
-      'id' => 'userid',
4866
-      'table' => 'host',
4867
-      'field' => 'userid',
4865
+        'id' => 'userid',
4866
+        'table' => 'host',
4867
+        'field' => 'userid',
4868 4868
     ),
4869
-  ));
4870
-  $handler->override_option('fields', array(
4869
+    ));
4870
+    $handler->override_option('fields', array(
4871 4871
     'id' => array(
4872
-      'label' => 'Computer ID',
4873
-      'alter' => array(
4872
+        'label' => 'Computer ID',
4873
+        'alter' => array(
4874 4874
         'alter_text' => 0,
4875 4875
         'text' => 'ID: [id]
4876 4876
 <a href="">Details</a> | <a href="">Tasks</a>
@@ -4890,25 +4890,25 @@  discard block
 block discarded – undo
4890 4890
         'ellipsis' => 1,
4891 4891
         'html' => 0,
4892 4892
         'strip_tags' => 0,
4893
-      ),
4894
-      'empty' => '',
4895
-      'hide_empty' => 0,
4896
-      'empty_zero' => 0,
4897
-      'set_precision' => FALSE,
4898
-      'precision' => 0,
4899
-      'decimal' => '.',
4900
-      'separator' => '',
4901
-      'prefix' => 'ID: ',
4902
-      'suffix' => '',
4903
-      'exclude' => 0,
4904
-      'id' => 'id',
4905
-      'table' => 'host',
4906
-      'field' => 'id',
4907
-      'relationship' => 'none',
4893
+        ),
4894
+        'empty' => '',
4895
+        'hide_empty' => 0,
4896
+        'empty_zero' => 0,
4897
+        'set_precision' => FALSE,
4898
+        'precision' => 0,
4899
+        'decimal' => '.',
4900
+        'separator' => '',
4901
+        'prefix' => 'ID: ',
4902
+        'suffix' => '',
4903
+        'exclude' => 0,
4904
+        'id' => 'id',
4905
+        'table' => 'host',
4906
+        'field' => 'id',
4907
+        'relationship' => 'none',
4908 4908
     ),
4909 4909
     'phpcode_3' => array(
4910
-      'label' => 'Computer links',
4911
-      'alter' => array(
4910
+        'label' => 'Computer links',
4911
+        'alter' => array(
4912 4912
         'alter_text' => 0,
4913 4913
         'text' => '',
4914 4914
         'make_link' => 0,
@@ -4927,23 +4927,23 @@  discard block
 block discarded – undo
4927 4927
         'ellipsis' => 1,
4928 4928
         'html' => 0,
4929 4929
         'strip_tags' => 0,
4930
-      ),
4931
-      'empty' => '',
4932
-      'hide_empty' => 0,
4933
-      'empty_zero' => 0,
4934
-      'hide_alter_empty' => 1,
4935
-      'value' => '<?php
4930
+        ),
4931
+        'empty' => '',
4932
+        'hide_empty' => 0,
4933
+        'empty_zero' => 0,
4934
+        'hide_alter_empty' => 1,
4935
+        'value' => '<?php
4936 4936
   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");
4937 4937
 ?>',
4938
-      'exclude' => 0,
4939
-      'id' => 'phpcode_3',
4940
-      'table' => 'customfield',
4941
-      'field' => 'phpcode',
4942
-      'relationship' => 'none',
4938
+        'exclude' => 0,
4939
+        'id' => 'phpcode_3',
4940
+        'table' => 'customfield',
4941
+        'field' => 'phpcode',
4942
+        'relationship' => 'none',
4943 4943
     ),
4944 4944
     'host_cpid' => array(
4945
-      'label' => 'Cross project ID',
4946
-      'alter' => array(
4945
+        'label' => 'Cross project ID',
4946
+        'alter' => array(
4947 4947
         'alter_text' => 0,
4948 4948
         'text' => '',
4949 4949
         'make_link' => 0,
@@ -4960,19 +4960,19 @@  discard block
 block discarded – undo
4960 4960
         'ellipsis' => 1,
4961 4961
         'html' => 0,
4962 4962
         'strip_tags' => 0,
4963
-      ),
4964
-      'empty' => '',
4965
-      'hide_empty' => 0,
4966
-      'empty_zero' => 0,
4967
-      'exclude' => 1,
4968
-      'id' => 'host_cpid',
4969
-      'table' => 'host',
4970
-      'field' => 'host_cpid',
4971
-      'relationship' => 'none',
4963
+        ),
4964
+        'empty' => '',
4965
+        'hide_empty' => 0,
4966
+        'empty_zero' => 0,
4967
+        'exclude' => 1,
4968
+        'id' => 'host_cpid',
4969
+        'table' => 'host',
4970
+        'field' => 'host_cpid',
4971
+        'relationship' => 'none',
4972 4972
     ),
4973 4973
     'phpcode_4' => array(
4974
-      'label' => 'Cross-project statistics',
4975
-      'alter' => array(
4974
+        'label' => 'Cross-project statistics',
4975
+        'alter' => array(
4976 4976
         'alter_text' => 0,
4977 4977
         'text' => '',
4978 4978
         'make_link' => 0,
@@ -4989,11 +4989,11 @@  discard block
 block discarded – undo
4989 4989
         'ellipsis' => 1,
4990 4990
         'html' => 0,
4991 4991
         'strip_tags' => 0,
4992
-      ),
4993
-      'empty' => '',
4994
-      'hide_empty' => 0,
4995
-      'empty_zero' => 0,
4996
-      'value' => '<?php
4992
+        ),
4993
+        'empty' => '',
4994
+        'hide_empty' => 0,
4995
+        'empty_zero' => 0,
4996
+        'value' => '<?php
4997 4997
   require_boinc(\'stats_sites\');
4998 4998
   global $host_sites;
4999 4999
   $x = "";
@@ -5006,15 +5006,15 @@  discard block
 block discarded – undo
5006 5006
   }
5007 5007
   echo "Cross-project stats: {$x}";
5008 5008
 ?>',
5009
-      'exclude' => 0,
5010
-      'id' => 'phpcode_4',
5011
-      'table' => 'customfield',
5012
-      'field' => 'phpcode',
5013
-      'relationship' => 'none',
5009
+        'exclude' => 0,
5010
+        'id' => 'phpcode_4',
5011
+        'table' => 'customfield',
5012
+        'field' => 'phpcode',
5013
+        'relationship' => 'none',
5014 5014
     ),
5015 5015
     'rownumber' => array(
5016
-      'label' => 'Rank',
5017
-      'alter' => array(
5016
+        'label' => 'Rank',
5017
+        'alter' => array(
5018 5018
         'alter_text' => 0,
5019 5019
         'text' => '',
5020 5020
         'make_link' => 0,
@@ -5031,19 +5031,19 @@  discard block
 block discarded – undo
5031 5031
         'ellipsis' => 1,
5032 5032
         'html' => 0,
5033 5033
         'strip_tags' => 0,
5034
-      ),
5035
-      'empty' => '',
5036
-      'hide_empty' => 0,
5037
-      'empty_zero' => 0,
5038
-      'exclude' => 0,
5039
-      'id' => 'rownumber',
5040
-      'table' => 'customfield',
5041
-      'field' => 'rownumber',
5042
-      'relationship' => 'none',
5034
+        ),
5035
+        'empty' => '',
5036
+        'hide_empty' => 0,
5037
+        'empty_zero' => 0,
5038
+        'exclude' => 0,
5039
+        'id' => 'rownumber',
5040
+        'table' => 'customfield',
5041
+        'field' => 'rownumber',
5042
+        'relationship' => 'none',
5043 5043
     ),
5044 5044
     'expavg_credit' => array(
5045
-      'label' => 'Avg. credit',
5046
-      'alter' => array(
5045
+        'label' => 'Avg. credit',
5046
+        'alter' => array(
5047 5047
         'alter_text' => 0,
5048 5048
         'text' => '',
5049 5049
         'make_link' => 0,
@@ -5060,25 +5060,25 @@  discard block
 block discarded – undo
5060 5060
         'ellipsis' => 1,
5061 5061
         'html' => 0,
5062 5062
         'strip_tags' => 0,
5063
-      ),
5064
-      'empty' => '',
5065
-      'hide_empty' => 0,
5066
-      'empty_zero' => 0,
5067
-      'set_precision' => 1,
5068
-      'precision' => '2',
5069
-      'decimal' => '.',
5070
-      'separator' => ',',
5071
-      'prefix' => '',
5072
-      'suffix' => '',
5073
-      'exclude' => 0,
5074
-      'id' => 'expavg_credit',
5075
-      'table' => 'host',
5076
-      'field' => 'expavg_credit',
5077
-      'relationship' => 'none',
5063
+        ),
5064
+        'empty' => '',
5065
+        'hide_empty' => 0,
5066
+        'empty_zero' => 0,
5067
+        'set_precision' => 1,
5068
+        'precision' => '2',
5069
+        'decimal' => '.',
5070
+        'separator' => ',',
5071
+        'prefix' => '',
5072
+        'suffix' => '',
5073
+        'exclude' => 0,
5074
+        'id' => 'expavg_credit',
5075
+        'table' => 'host',
5076
+        'field' => 'expavg_credit',
5077
+        'relationship' => 'none',
5078 5078
     ),
5079 5079
     'total_credit' => array(
5080
-      'label' => 'Total credit',
5081
-      'alter' => array(
5080
+        'label' => 'Total credit',
5081
+        'alter' => array(
5082 5082
         'alter_text' => 0,
5083 5083
         'text' => '',
5084 5084
         'make_link' => 0,
@@ -5097,29 +5097,29 @@  discard block
 block discarded – undo
5097 5097
         'ellipsis' => 1,
5098 5098
         'html' => 0,
5099 5099
         'strip_tags' => 0,
5100
-      ),
5101
-      'empty' => '',
5102
-      'hide_empty' => 0,
5103
-      'empty_zero' => 0,
5104
-      'hide_alter_empty' => 1,
5105
-      'set_precision' => 1,
5106
-      'precision' => '0',
5107
-      'decimal' => '.',
5108
-      'separator' => ',',
5109
-      'format_plural' => 0,
5110
-      'format_plural_singular' => '1',
5111
-      'format_plural_plural' => '@count',
5112
-      'prefix' => '',
5113
-      'suffix' => '',
5114
-      'exclude' => 0,
5115
-      'id' => 'total_credit',
5116
-      'table' => 'host',
5117
-      'field' => 'total_credit',
5118
-      'relationship' => 'none',
5100
+        ),
5101
+        'empty' => '',
5102
+        'hide_empty' => 0,
5103
+        'empty_zero' => 0,
5104
+        'hide_alter_empty' => 1,
5105
+        'set_precision' => 1,
5106
+        'precision' => '0',
5107
+        'decimal' => '.',
5108
+        'separator' => ',',
5109
+        'format_plural' => 0,
5110
+        'format_plural_singular' => '1',
5111
+        'format_plural_plural' => '@count',
5112
+        'prefix' => '',
5113
+        'suffix' => '',
5114
+        'exclude' => 0,
5115
+        'id' => 'total_credit',
5116
+        'table' => 'host',
5117
+        'field' => 'total_credit',
5118
+        'relationship' => 'none',
5119 5119
     ),
5120 5120
     'serialnum' => array(
5121
-      'label' => 'Serial Number',
5122
-      'alter' => array(
5121
+        'label' => 'Serial Number',
5122
+        'alter' => array(
5123 5123
         'alter_text' => 0,
5124 5124
         'text' => '',
5125 5125
         'make_link' => 0,
@@ -5136,19 +5136,19 @@  discard block
 block discarded – undo
5136 5136
         'ellipsis' => 1,
5137 5137
         'html' => 0,
5138 5138
         'strip_tags' => 0,
5139
-      ),
5140
-      'empty' => '',
5141
-      'hide_empty' => 0,
5142
-      'empty_zero' => 0,
5143
-      'exclude' => 1,
5144
-      'id' => 'serialnum',
5145
-      'table' => 'host',
5146
-      'field' => 'serialnum',
5147
-      'relationship' => 'none',
5139
+        ),
5140
+        'empty' => '',
5141
+        'hide_empty' => 0,
5142
+        'empty_zero' => 0,
5143
+        'exclude' => 1,
5144
+        'id' => 'serialnum',
5145
+        'table' => 'host',
5146
+        'field' => 'serialnum',
5147
+        'relationship' => 'none',
5148 5148
     ),
5149 5149
     'phpcode' => array(
5150
-      'label' => 'BOINC version',
5151
-      'alter' => array(
5150
+        'label' => 'BOINC version',
5151
+        'alter' => array(
5152 5152
         'alter_text' => 0,
5153 5153
         'text' => '',
5154 5154
         'make_link' => 0,
@@ -5165,23 +5165,23 @@  discard block
 block discarded – undo
5165 5165
         'ellipsis' => 1,
5166 5166
         'html' => 0,
5167 5167
         'strip_tags' => 0,
5168
-      ),
5169
-      'empty' => '',
5170
-      'hide_empty' => 0,
5171
-      'empty_zero' => 0,
5172
-      'value' => '<?php
5168
+        ),
5169
+        'empty' => '',
5170
+        'hide_empty' => 0,
5171
+        'empty_zero' => 0,
5172
+        'value' => '<?php
5173 5173
   require_boinc(\'host\');
5174 5174
   echo boinc_version($data->host_serialnum);
5175 5175
 ?>',
5176
-      'exclude' => 0,
5177
-      'id' => 'phpcode',
5178
-      'table' => 'customfield',
5179
-      'field' => 'phpcode',
5180
-      'relationship' => 'none',
5176
+        'exclude' => 0,
5177
+        'id' => 'phpcode',
5178
+        'table' => 'customfield',
5179
+        'field' => 'phpcode',
5180
+        'relationship' => 'none',
5181 5181
     ),
5182 5182
     'p_vendor' => array(
5183
-      'label' => 'CPU',
5184
-      'alter' => array(
5183
+        'label' => 'CPU',
5184
+        'alter' => array(
5185 5185
         'alter_text' => 0,
5186 5186
         'text' => '',
5187 5187
         'make_link' => 0,
@@ -5198,22 +5198,22 @@  discard block
 block discarded – undo
5198 5198
         'ellipsis' => 1,
5199 5199
         'html' => 0,
5200 5200
         'strip_tags' => 0,
5201
-      ),
5202
-      'empty' => '',
5203
-      'hide_empty' => 0,
5204
-      'empty_zero' => 0,
5205
-      'exclude' => 0,
5206
-      'id' => 'p_vendor',
5207
-      'table' => 'host',
5208
-      'field' => 'p_vendor',
5209
-      'relationship' => 'none',
5210
-      'override' => array(
5201
+        ),
5202
+        'empty' => '',
5203
+        'hide_empty' => 0,
5204
+        'empty_zero' => 0,
5205
+        'exclude' => 0,
5206
+        'id' => 'p_vendor',
5207
+        'table' => 'host',
5208
+        'field' => 'p_vendor',
5209
+        'relationship' => 'none',
5210
+        'override' => array(
5211 5211
         'button' => 'Override',
5212
-      ),
5212
+        ),
5213 5213
     ),
5214 5214
     'p_model' => array(
5215
-      'label' => 'CPU model',
5216
-      'alter' => array(
5215
+        'label' => 'CPU model',
5216
+        'alter' => array(
5217 5217
         'alter_text' => 0,
5218 5218
         'text' => '',
5219 5219
         'make_link' => 0,
@@ -5230,19 +5230,19 @@  discard block
 block discarded – undo
5230 5230
         'ellipsis' => 1,
5231 5231
         'html' => 0,
5232 5232
         'strip_tags' => 0,
5233
-      ),
5234
-      'empty' => '',
5235
-      'hide_empty' => 0,
5236
-      'empty_zero' => 0,
5237
-      'exclude' => 0,
5238
-      'id' => 'p_model',
5239
-      'table' => 'host',
5240
-      'field' => 'p_model',
5241
-      'relationship' => 'none',
5233
+        ),
5234
+        'empty' => '',
5235
+        'hide_empty' => 0,
5236
+        'empty_zero' => 0,
5237
+        'exclude' => 0,
5238
+        'id' => 'p_model',
5239
+        'table' => 'host',
5240
+        'field' => 'p_model',
5241
+        'relationship' => 'none',
5242 5242
     ),
5243 5243
     'p_ncpus' => array(
5244
-      'label' => 'Number of CPUs',
5245
-      'alter' => array(
5244
+        'label' => 'Number of CPUs',
5245
+        'alter' => array(
5246 5246
         'alter_text' => 1,
5247 5247
         'text' => '([p_ncpus] processors)',
5248 5248
         'make_link' => 0,
@@ -5259,19 +5259,19 @@  discard block
 block discarded – undo
5259 5259
         'ellipsis' => 1,
5260 5260
         'html' => 0,
5261 5261
         'strip_tags' => 0,
5262
-      ),
5263
-      'empty' => '',
5264
-      'hide_empty' => 0,
5265
-      'empty_zero' => 0,
5266
-      'exclude' => 0,
5267
-      'id' => 'p_ncpus',
5268
-      'table' => 'host',
5269
-      'field' => 'p_ncpus',
5270
-      'relationship' => 'none',
5262
+        ),
5263
+        'empty' => '',
5264
+        'hide_empty' => 0,
5265
+        'empty_zero' => 0,
5266
+        'exclude' => 0,
5267
+        'id' => 'p_ncpus',
5268
+        'table' => 'host',
5269
+        'field' => 'p_ncpus',
5270
+        'relationship' => 'none',
5271 5271
     ),
5272 5272
     'phpcode_1' => array(
5273
-      'label' => 'GPU',
5274
-      'alter' => array(
5273
+        'label' => 'GPU',
5274
+        'alter' => array(
5275 5275
         'alter_text' => 0,
5276 5276
         'text' => '',
5277 5277
         'make_link' => 0,
@@ -5288,23 +5288,23 @@  discard block
 block discarded – undo
5288 5288
         'ellipsis' => 1,
5289 5289
         'html' => 0,
5290 5290
         'strip_tags' => 0,
5291
-      ),
5292
-      'empty' => '',
5293
-      'hide_empty' => 0,
5294
-      'empty_zero' => 0,
5295
-      'value' => '<?php
5291
+        ),
5292
+        'empty' => '',
5293
+        'hide_empty' => 0,
5294
+        'empty_zero' => 0,
5295
+        'value' => '<?php
5296 5296
   require_boinc(\'host\');
5297 5297
   echo gpu_desc($data->host_serialnum);
5298 5298
 ?>',
5299
-      'exclude' => 0,
5300
-      'id' => 'phpcode_1',
5301
-      'table' => 'customfield',
5302
-      'field' => 'phpcode',
5303
-      'relationship' => 'none',
5299
+        'exclude' => 0,
5300
+        'id' => 'phpcode_1',
5301
+        'table' => 'customfield',
5302
+        'field' => 'phpcode',
5303
+        'relationship' => 'none',
5304 5304
     ),
5305 5305
     'os_name' => array(
5306
-      'label' => 'Operating system',
5307
-      'alter' => array(
5306
+        'label' => 'Operating system',
5307
+        'alter' => array(
5308 5308
         'alter_text' => 0,
5309 5309
         'text' => '',
5310 5310
         'make_link' => 0,
@@ -5321,19 +5321,19 @@  discard block
 block discarded – undo
5321 5321
         'ellipsis' => 1,
5322 5322
         'html' => 0,
5323 5323
         'strip_tags' => 0,
5324
-      ),
5325
-      'empty' => '',
5326
-      'hide_empty' => 0,
5327
-      'empty_zero' => 0,
5328
-      'exclude' => 0,
5329
-      'id' => 'os_name',
5330
-      'table' => 'host',
5331
-      'field' => 'os_name',
5332
-      'relationship' => 'none',
5324
+        ),
5325
+        'empty' => '',
5326
+        'hide_empty' => 0,
5327
+        'empty_zero' => 0,
5328
+        'exclude' => 0,
5329
+        'id' => 'os_name',
5330
+        'table' => 'host',
5331
+        'field' => 'os_name',
5332
+        'relationship' => 'none',
5333 5333
     ),
5334 5334
     'os_version' => array(
5335
-      'label' => 'Operating system version',
5336
-      'alter' => array(
5335
+        'label' => 'Operating system version',
5336
+        'alter' => array(
5337 5337
         'alter_text' => 0,
5338 5338
         'text' => '',
5339 5339
         'make_link' => 0,
@@ -5350,19 +5350,19 @@  discard block
 block discarded – undo
5350 5350
         'ellipsis' => 1,
5351 5351
         'html' => 0,
5352 5352
         'strip_tags' => 0,
5353
-      ),
5354
-      'empty' => '',
5355
-      'hide_empty' => 0,
5356
-      'empty_zero' => 0,
5357
-      'exclude' => 0,
5358
-      'id' => 'os_version',
5359
-      'table' => 'host',
5360
-      'field' => 'os_version',
5361
-      'relationship' => 'none',
5353
+        ),
5354
+        'empty' => '',
5355
+        'hide_empty' => 0,
5356
+        'empty_zero' => 0,
5357
+        'exclude' => 0,
5358
+        'id' => 'os_version',
5359
+        'table' => 'host',
5360
+        'field' => 'os_version',
5361
+        'relationship' => 'none',
5362 5362
     ),
5363 5363
     'rpc_time' => array(
5364
-      'label' => 'Last contact',
5365
-      'alter' => array(
5364
+        'label' => 'Last contact',
5365
+        'alter' => array(
5366 5366
         'alter_text' => 0,
5367 5367
         'text' => '',
5368 5368
         'make_link' => 0,
@@ -5381,22 +5381,22 @@  discard block
 block discarded – undo
5381 5381
         'ellipsis' => 1,
5382 5382
         'html' => 0,
5383 5383
         'strip_tags' => 0,
5384
-      ),
5385
-      'empty' => '',
5386
-      'hide_empty' => 0,
5387
-      'empty_zero' => 0,
5388
-      'hide_alter_empty' => 1,
5389
-      'date_format' => 'custom',
5390
-      'custom_date_format' => 'j M Y G:i:s T',
5391
-      'exclude' => 1,
5392
-      'id' => 'rpc_time',
5393
-      'table' => 'host',
5394
-      'field' => 'rpc_time',
5395
-      'relationship' => 'none',
5384
+        ),
5385
+        'empty' => '',
5386
+        'hide_empty' => 0,
5387
+        'empty_zero' => 0,
5388
+        'hide_alter_empty' => 1,
5389
+        'date_format' => 'custom',
5390
+        'custom_date_format' => 'j M Y G:i:s T',
5391
+        'exclude' => 1,
5392
+        'id' => 'rpc_time',
5393
+        'table' => 'host',
5394
+        'field' => 'rpc_time',
5395
+        'relationship' => 'none',
5396 5396
     ),
5397 5397
     'phpcode_2' => array(
5398
-      'label' => 'Last contact',
5399
-      'alter' => array(
5398
+        'label' => 'Last contact',
5399
+        'alter' => array(
5400 5400
         'alter_text' => 0,
5401 5401
         'text' => '',
5402 5402
         'make_link' => 0,
@@ -5415,48 +5415,48 @@  discard block
 block discarded – undo
5415 5415
         'ellipsis' => 1,
5416 5416
         'html' => 0,
5417 5417
         'strip_tags' => 0,
5418
-      ),
5419
-      'empty' => '',
5420
-      'hide_empty' => 0,
5421
-      'empty_zero' => 0,
5422
-      'hide_alter_empty' => 1,
5423
-      'value' => '<?php
5418
+        ),
5419
+        'empty' => '',
5420
+        'hide_empty' => 0,
5421
+        'empty_zero' => 0,
5422
+        'hide_alter_empty' => 1,
5423
+        'value' => '<?php
5424 5424
   echo boincwork_host_last_contact($data->host_rpc_time, $data->id);
5425 5425
 ?>',
5426
-      'exclude' => 0,
5427
-      'id' => 'phpcode_2',
5428
-      'table' => 'customfield',
5429
-      'field' => 'phpcode',
5430
-      'relationship' => 'none',
5431
-    ),
5432
-  ));
5433
-  $handler->override_option('arguments', array(
5426
+        'exclude' => 0,
5427
+        'id' => 'phpcode_2',
5428
+        'table' => 'customfield',
5429
+        'field' => 'phpcode',
5430
+        'relationship' => 'none',
5431
+    ),
5432
+    ));
5433
+    $handler->override_option('arguments', array(
5434 5434
     'userid' => array(
5435
-      'default_action' => 'not found',
5436
-      'style_plugin' => 'default_summary',
5437
-      'style_options' => array(),
5438
-      'wildcard' => 'all',
5439
-      'wildcard_substitution' => 'All',
5440
-      'title' => '',
5441
-      'breadcrumb' => '',
5442
-      'default_argument_type' => 'fixed',
5443
-      'default_argument' => '',
5444
-      'validate_type' => 'numeric',
5445
-      'validate_fail' => 'not found',
5446
-      'id' => 'userid',
5447
-      'table' => 'host',
5448
-      'field' => 'userid',
5449
-      'validate_user_argument_type' => 'uid',
5450
-      'validate_user_roles' => array(
5435
+        'default_action' => 'not found',
5436
+        'style_plugin' => 'default_summary',
5437
+        'style_options' => array(),
5438
+        'wildcard' => 'all',
5439
+        'wildcard_substitution' => 'All',
5440
+        'title' => '',
5441
+        'breadcrumb' => '',
5442
+        'default_argument_type' => 'fixed',
5443
+        'default_argument' => '',
5444
+        'validate_type' => 'numeric',
5445
+        'validate_fail' => 'not found',
5446
+        'id' => 'userid',
5447
+        'table' => 'host',
5448
+        'field' => 'userid',
5449
+        'validate_user_argument_type' => 'uid',
5450
+        'validate_user_roles' => array(
5451 5451
         2 => 0,
5452 5452
         3 => 0,
5453
-      ),
5454
-      'relationship' => 'none',
5455
-      'default_options_div_prefix' => '',
5456
-      'default_argument_fixed' => '',
5457
-      'default_argument_user' => 0,
5458
-      'default_argument_php' => '',
5459
-      'validate_argument_node_type' => array(
5453
+        ),
5454
+        'relationship' => 'none',
5455
+        'default_options_div_prefix' => '',
5456
+        'default_argument_fixed' => '',
5457
+        'default_argument_user' => 0,
5458
+        'default_argument_php' => '',
5459
+        'validate_argument_node_type' => array(
5460 5460
         'forum' => 0,
5461 5461
         'job_post' => 0,
5462 5462
         'news' => 0,
@@ -5464,215 +5464,215 @@  discard block
 block discarded – undo
5464 5464
         'profile' => 0,
5465 5465
         'story' => 0,
5466 5466
         'team' => 0,
5467
-      ),
5468
-      'validate_argument_node_access' => 0,
5469
-      'validate_argument_nid_type' => 'nid',
5470
-      'validate_argument_vocabulary' => array(
5467
+        ),
5468
+        'validate_argument_node_access' => 0,
5469
+        'validate_argument_nid_type' => 'nid',
5470
+        'validate_argument_vocabulary' => array(
5471 5471
         1 => 0,
5472
-      ),
5473
-      'validate_argument_type' => 'tid',
5474
-      'validate_argument_transform' => 0,
5475
-      'validate_user_restrict_roles' => 0,
5476
-      'validate_argument_php' => '',
5477
-    ),
5478
-  ));
5479
-  $handler->override_option('filters', array(
5472
+        ),
5473
+        'validate_argument_type' => 'tid',
5474
+        'validate_argument_transform' => 0,
5475
+        'validate_user_restrict_roles' => 0,
5476
+        'validate_argument_php' => '',
5477
+    ),
5478
+    ));
5479
+    $handler->override_option('filters', array(
5480 5480
     'show_hosts' => array(
5481
-      'operator' => '=',
5482
-      'value' => array(
5481
+        'operator' => '=',
5482
+        'value' => array(
5483 5483
         'value' => '1',
5484 5484
         'min' => '',
5485 5485
         'max' => '',
5486
-      ),
5487
-      'group' => '0',
5488
-      'exposed' => FALSE,
5489
-      'expose' => array(
5486
+        ),
5487
+        'group' => '0',
5488
+        'exposed' => FALSE,
5489
+        'expose' => array(
5490 5490
         'operator' => FALSE,
5491 5491
         'label' => '',
5492
-      ),
5493
-      'id' => 'show_hosts',
5494
-      'table' => 'user',
5495
-      'field' => 'show_hosts',
5496
-      'relationship' => 'userid',
5497
-    ),
5498
-  ));
5499
-  $handler->override_option('access', array(
5492
+        ),
5493
+        'id' => 'show_hosts',
5494
+        'table' => 'user',
5495
+        'field' => 'show_hosts',
5496
+        'relationship' => 'userid',
5497
+    ),
5498
+    ));
5499
+    $handler->override_option('access', array(
5500 5500
     'type' => 'none',
5501
-  ));
5502
-  $handler->override_option('cache', array(
5501
+    ));
5502
+    $handler->override_option('cache', array(
5503 5503
     'type' => 'none',
5504
-  ));
5505
-  $handler->override_option('empty_format', '1');
5506
-  $handler->override_option('items_per_page', 20);
5507
-  $handler->override_option('use_pager', '1');
5508
-  $handler->override_option('style_plugin', 'table');
5509
-  $handler->override_option('style_options', array(
5504
+    ));
5505
+    $handler->override_option('empty_format', '1');
5506
+    $handler->override_option('items_per_page', 20);
5507
+    $handler->override_option('use_pager', '1');
5508
+    $handler->override_option('style_plugin', 'table');
5509
+    $handler->override_option('style_options', array(
5510 5510
     'grouping' => '',
5511 5511
     'override' => 1,
5512 5512
     'sticky' => 1,
5513 5513
     'order' => 'desc',
5514 5514
     'summary' => '',
5515 5515
     'columns' => array(
5516
-      'id' => 'id',
5517
-      'phpcode_3' => 'id',
5518
-      'host_cpid' => 'host_cpid',
5519
-      'phpcode_4' => 'id',
5520
-      'rownumber' => 'rownumber',
5521
-      'expavg_credit' => 'expavg_credit',
5522
-      'total_credit' => 'total_credit',
5523
-      'serialnum' => 'serialnum',
5524
-      'phpcode' => 'phpcode',
5525
-      'p_vendor' => 'p_vendor',
5526
-      'p_model' => 'p_vendor',
5527
-      'p_ncpus' => 'p_vendor',
5528
-      'phpcode_1' => 'phpcode_1',
5529
-      'os_name' => 'os_name',
5530
-      'os_version' => 'os_name',
5531
-      'rpc_time' => 'rpc_time',
5532
-      'phpcode_2' => 'phpcode_2',
5516
+        'id' => 'id',
5517
+        'phpcode_3' => 'id',
5518
+        'host_cpid' => 'host_cpid',
5519
+        'phpcode_4' => 'id',
5520
+        'rownumber' => 'rownumber',
5521
+        'expavg_credit' => 'expavg_credit',
5522
+        'total_credit' => 'total_credit',
5523
+        'serialnum' => 'serialnum',
5524
+        'phpcode' => 'phpcode',
5525
+        'p_vendor' => 'p_vendor',
5526
+        'p_model' => 'p_vendor',
5527
+        'p_ncpus' => 'p_vendor',
5528
+        'phpcode_1' => 'phpcode_1',
5529
+        'os_name' => 'os_name',
5530
+        'os_version' => 'os_name',
5531
+        'rpc_time' => 'rpc_time',
5532
+        'phpcode_2' => 'phpcode_2',
5533 5533
     ),
5534 5534
     'info' => array(
5535
-      'id' => array(
5535
+        'id' => array(
5536 5536
         'sortable' => 1,
5537 5537
         'separator' => '<br/>',
5538
-      ),
5539
-      'phpcode_3' => array(
5538
+        ),
5539
+        'phpcode_3' => array(
5540 5540
         'separator' => '',
5541
-      ),
5542
-      'host_cpid' => array(
5541
+        ),
5542
+        'host_cpid' => array(
5543 5543
         'sortable' => 0,
5544 5544
         'separator' => '',
5545
-      ),
5546
-      'phpcode_4' => array(
5545
+        ),
5546
+        'phpcode_4' => array(
5547 5547
         'separator' => '',
5548
-      ),
5549
-      'rownumber' => array(
5548
+        ),
5549
+        'rownumber' => array(
5550 5550
         'separator' => '',
5551
-      ),
5552
-      'expavg_credit' => array(
5551
+        ),
5552
+        'expavg_credit' => array(
5553 5553
         'sortable' => 1,
5554 5554
         'separator' => '',
5555
-      ),
5556
-      'total_credit' => array(
5555
+        ),
5556
+        'total_credit' => array(
5557 5557
         'sortable' => 1,
5558 5558
         'separator' => '',
5559
-      ),
5560
-      'serialnum' => array(
5559
+        ),
5560
+        'serialnum' => array(
5561 5561
         'sortable' => 0,
5562 5562
         'separator' => '',
5563
-      ),
5564
-      'phpcode' => array(
5563
+        ),
5564
+        'phpcode' => array(
5565 5565
         'separator' => '',
5566
-      ),
5567
-      'p_vendor' => array(
5566
+        ),
5567
+        'p_vendor' => array(
5568 5568
         'sortable' => 1,
5569 5569
         'separator' => '<br/>',
5570
-      ),
5571
-      'p_model' => array(
5570
+        ),
5571
+        'p_model' => array(
5572 5572
         'sortable' => 0,
5573 5573
         'separator' => '',
5574
-      ),
5575
-      'p_ncpus' => array(
5574
+        ),
5575
+        'p_ncpus' => array(
5576 5576
         'sortable' => 0,
5577 5577
         'separator' => '',
5578
-      ),
5579
-      'phpcode_1' => array(
5578
+        ),
5579
+        'phpcode_1' => array(
5580 5580
         'separator' => '',
5581
-      ),
5582
-      'os_name' => array(
5581
+        ),
5582
+        'os_name' => array(
5583 5583
         'sortable' => 1,
5584 5584
         'separator' => '<br/>',
5585
-      ),
5586
-      'os_version' => array(
5585
+        ),
5586
+        'os_version' => array(
5587 5587
         'sortable' => 0,
5588 5588
         'separator' => '',
5589
-      ),
5590
-      'rpc_time' => array(
5589
+        ),
5590
+        'rpc_time' => array(
5591 5591
         'sortable' => 1,
5592 5592
         'separator' => '',
5593
-      ),
5594
-      'phpcode_2' => array(
5593
+        ),
5594
+        'phpcode_2' => array(
5595 5595
         'separator' => '',
5596
-      ),
5596
+        ),
5597 5597
     ),
5598 5598
     'default' => 'rpc_time',
5599
-  ));
5600
-  $handler = $view->new_display('page', 'User active hosts', 'page_1');
5601
-  $handler->override_option('filters', array(
5599
+    ));
5600
+    $handler = $view->new_display('page', 'User active hosts', 'page_1');
5601
+    $handler->override_option('filters', array(
5602 5602
     'rpc_time' => array(
5603
-      'operator' => '>',
5604
-      'value' => array(
5603
+        'operator' => '>',
5604
+        'value' => array(
5605 5605
         'type' => 'offset',
5606 5606
         'value' => '-30 days',
5607 5607
         'min' => '',
5608 5608
         'max' => '',
5609
-      ),
5610
-      'group' => '0',
5611
-      'exposed' => FALSE,
5612
-      'expose' => array(
5609
+        ),
5610
+        'group' => '0',
5611
+        'exposed' => FALSE,
5612
+        'expose' => array(
5613 5613
         'operator' => FALSE,
5614 5614
         'label' => '',
5615
-      ),
5616
-      'id' => 'rpc_time',
5617
-      'table' => 'host',
5618
-      'field' => 'rpc_time',
5619
-      'relationship' => 'none',
5615
+        ),
5616
+        'id' => 'rpc_time',
5617
+        'table' => 'host',
5618
+        'field' => 'rpc_time',
5619
+        'relationship' => 'none',
5620 5620
     ),
5621 5621
     'show_hosts' => array(
5622
-      'operator' => '=',
5623
-      'value' => array(
5622
+        'operator' => '=',
5623
+        'value' => array(
5624 5624
         'value' => '1',
5625 5625
         'min' => '',
5626 5626
         'max' => '',
5627
-      ),
5628
-      'group' => '0',
5629
-      'exposed' => FALSE,
5630
-      'expose' => array(
5627
+        ),
5628
+        'group' => '0',
5629
+        'exposed' => FALSE,
5630
+        'expose' => array(
5631 5631
         'operator' => FALSE,
5632 5632
         'label' => '',
5633
-      ),
5634
-      'id' => 'show_hosts',
5635
-      'table' => 'user',
5636
-      'field' => 'show_hosts',
5637
-      'relationship' => 'userid',
5638
-    ),
5639
-  ));
5640
-  $handler->override_option('path', 'account/%/computers/active');
5641
-  $handler->override_option('menu', array(
5633
+        ),
5634
+        'id' => 'show_hosts',
5635
+        'table' => 'user',
5636
+        'field' => 'show_hosts',
5637
+        'relationship' => 'userid',
5638
+    ),
5639
+    ));
5640
+    $handler->override_option('path', 'account/%/computers/active');
5641
+    $handler->override_option('menu', array(
5642 5642
     'type' => 'default tab',
5643 5643
     'title' => bts('Active in past 30 days', array(), NULL, 'boinc:account-host-list'),
5644 5644
     'description' => 'Show only computers that have been active in the past month',
5645 5645
     'weight' => '0',
5646 5646
     'name' => 'navigation',
5647
-  ));
5648
-  $handler->override_option('tab_options', array(
5647
+    ));
5648
+    $handler->override_option('tab_options', array(
5649 5649
     'type' => 'tab',
5650 5650
     'title' => 'Computers',
5651 5651
     'description' => 'Show the computers associated with this user',
5652 5652
     'weight' => '0',
5653 5653
     'name' => 'secondary-links',
5654
-  ));
5655
-  $handler = $view->new_display('page', 'User all hosts', 'page_2');
5656
-  $handler->override_option('path', 'account/%/computers/all');
5657
-  $handler->override_option('menu', array(
5654
+    ));
5655
+    $handler = $view->new_display('page', 'User all hosts', 'page_2');
5656
+    $handler->override_option('path', 'account/%/computers/all');
5657
+    $handler->override_option('menu', array(
5658 5658
     'type' => 'tab',
5659 5659
     'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'),
5660 5660
     'description' => 'Show all computers associated with the account',
5661 5661
     'weight' => '1',
5662 5662
     'name' => 'navigation',
5663
-  ));
5664
-  $handler->override_option('tab_options', array(
5663
+    ));
5664
+    $handler->override_option('tab_options', array(
5665 5665
     'type' => 'none',
5666 5666
     'title' => '',
5667 5667
     'description' => '',
5668 5668
     'weight' => 0,
5669 5669
     'name' => 'navigation',
5670
-  ));
5671
-  $handler = $view->new_display('page', 'Top hosts', 'page_3');
5672
-  $handler->override_option('fields', array(
5670
+    ));
5671
+    $handler = $view->new_display('page', 'Top hosts', 'page_3');
5672
+    $handler->override_option('fields', array(
5673 5673
     'id_1' => array(
5674
-      'label' => 'Id',
5675
-      'alter' => array(
5674
+        'label' => 'Id',
5675
+        'alter' => array(
5676 5676
         'alter_text' => 0,
5677 5677
         'text' => '',
5678 5678
         'make_link' => 0,
@@ -5691,32 +5691,32 @@  discard block
 block discarded – undo
5691 5691
         'ellipsis' => 1,
5692 5692
         'html' => 0,
5693 5693
         'strip_tags' => 0,
5694
-      ),
5695
-      'empty' => '',
5696
-      'hide_empty' => 0,
5697
-      'empty_zero' => 0,
5698
-      'hide_alter_empty' => 1,
5699
-      'set_precision' => FALSE,
5700
-      'precision' => 0,
5701
-      'decimal' => '.',
5702
-      'separator' => ',',
5703
-      'format_plural' => 0,
5704
-      'format_plural_singular' => '1',
5705
-      'format_plural_plural' => '@count',
5706
-      'prefix' => '',
5707
-      'suffix' => '',
5708
-      'exclude' => 1,
5709
-      'id' => 'id_1',
5710
-      'table' => 'user',
5711
-      'field' => 'id',
5712
-      'relationship' => 'userid',
5713
-      'override' => array(
5694
+        ),
5695
+        'empty' => '',
5696
+        'hide_empty' => 0,
5697
+        'empty_zero' => 0,
5698
+        'hide_alter_empty' => 1,
5699
+        'set_precision' => FALSE,
5700
+        'precision' => 0,
5701
+        'decimal' => '.',
5702
+        'separator' => ',',
5703
+        'format_plural' => 0,
5704
+        'format_plural_singular' => '1',
5705
+        'format_plural_plural' => '@count',
5706
+        'prefix' => '',
5707
+        'suffix' => '',
5708
+        'exclude' => 1,
5709
+        'id' => 'id_1',
5710
+        'table' => 'user',
5711
+        'field' => 'id',
5712
+        'relationship' => 'userid',
5713
+        'override' => array(
5714 5714
         'button' => 'Use default',
5715
-      ),
5715
+        ),
5716 5716
     ),
5717 5717
     'name' => array(
5718
-      'label' => 'Name',
5719
-      'alter' => array(
5718
+        'label' => 'Name',
5719
+        'alter' => array(
5720 5720
         'alter_text' => 0,
5721 5721
         'text' => '',
5722 5722
         'make_link' => 0,
@@ -5735,23 +5735,23 @@  discard block
 block discarded – undo
5735 5735
         'ellipsis' => 1,
5736 5736
         'html' => 0,
5737 5737
         'strip_tags' => 0,
5738
-      ),
5739
-      'empty' => '',
5740
-      'hide_empty' => 0,
5741
-      'empty_zero' => 0,
5742
-      'hide_alter_empty' => 1,
5743
-      'exclude' => 1,
5744
-      'id' => 'name',
5745
-      'table' => 'user',
5746
-      'field' => 'name',
5747
-      'relationship' => 'userid',
5748
-      'override' => array(
5738
+        ),
5739
+        'empty' => '',
5740
+        'hide_empty' => 0,
5741
+        'empty_zero' => 0,
5742
+        'hide_alter_empty' => 1,
5743
+        'exclude' => 1,
5744
+        'id' => 'name',
5745
+        'table' => 'user',
5746
+        'field' => 'name',
5747
+        'relationship' => 'userid',
5748
+        'override' => array(
5749 5749
         'button' => 'Use default',
5750
-      ),
5750
+        ),
5751 5751
     ),
5752 5752
     'show_hosts' => array(
5753
-      'label' => 'Show Hosts',
5754
-      'alter' => array(
5753
+        'label' => 'Show Hosts',
5754
+        'alter' => array(
5755 5755
         'alter_text' => 0,
5756 5756
         'text' => '',
5757 5757
         'make_link' => 0,
@@ -5770,32 +5770,32 @@  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
-      'set_precision' => FALSE,
5779
-      'precision' => 0,
5780
-      'decimal' => '.',
5781
-      'separator' => ',',
5782
-      'format_plural' => 0,
5783
-      'format_plural_singular' => '1',
5784
-      'format_plural_plural' => '@count',
5785
-      'prefix' => '',
5786
-      'suffix' => '',
5787
-      'exclude' => 1,
5788
-      'id' => 'show_hosts',
5789
-      'table' => 'user',
5790
-      'field' => 'show_hosts',
5791
-      'relationship' => 'userid',
5792
-      'override' => array(
5773
+        ),
5774
+        'empty' => '',
5775
+        'hide_empty' => 0,
5776
+        'empty_zero' => 0,
5777
+        'hide_alter_empty' => 1,
5778
+        'set_precision' => FALSE,
5779
+        'precision' => 0,
5780
+        'decimal' => '.',
5781
+        'separator' => ',',
5782
+        'format_plural' => 0,
5783
+        'format_plural_singular' => '1',
5784
+        'format_plural_plural' => '@count',
5785
+        'prefix' => '',
5786
+        'suffix' => '',
5787
+        'exclude' => 1,
5788
+        'id' => 'show_hosts',
5789
+        'table' => 'user',
5790
+        'field' => 'show_hosts',
5791
+        'relationship' => 'userid',
5792
+        'override' => array(
5793 5793
         'button' => 'Use default',
5794
-      ),
5794
+        ),
5795 5795
     ),
5796 5796
     'id' => array(
5797
-      'label' => 'Computer ID',
5798
-      'alter' => array(
5797
+        'label' => 'Computer ID',
5798
+        'alter' => array(
5799 5799
         'alter_text' => 0,
5800 5800
         'text' => 'ID: [id]
5801 5801
 <a href="">Details</a> | <a href="">Tasks</a>
@@ -5815,25 +5815,25 @@  discard block
 block discarded – undo
5815 5815
         'ellipsis' => 1,
5816 5816
         'html' => 0,
5817 5817
         'strip_tags' => 0,
5818
-      ),
5819
-      'empty' => '',
5820
-      'hide_empty' => 0,
5821
-      'empty_zero' => 0,
5822
-      'set_precision' => FALSE,
5823
-      'precision' => 0,
5824
-      'decimal' => '.',
5825
-      'separator' => '',
5826
-      'prefix' => 'ID: ',
5827
-      'suffix' => '',
5828
-      'exclude' => 0,
5829
-      'id' => 'id',
5830
-      'table' => 'host',
5831
-      'field' => 'id',
5832
-      'relationship' => 'none',
5818
+        ),
5819
+        'empty' => '',
5820
+        'hide_empty' => 0,
5821
+        'empty_zero' => 0,
5822
+        'set_precision' => FALSE,
5823
+        'precision' => 0,
5824
+        'decimal' => '.',
5825
+        'separator' => '',
5826
+        'prefix' => 'ID: ',
5827
+        'suffix' => '',
5828
+        'exclude' => 0,
5829
+        'id' => 'id',
5830
+        'table' => 'host',
5831
+        'field' => 'id',
5832
+        'relationship' => 'none',
5833 5833
     ),
5834 5834
     'phpcode_3' => array(
5835
-      'label' => 'Computer links',
5836
-      'alter' => array(
5835
+        'label' => 'Computer links',
5836
+        'alter' => array(
5837 5837
         'alter_text' => 0,
5838 5838
         'text' => '',
5839 5839
         'make_link' => 0,
@@ -5852,26 +5852,26 @@  discard block
 block discarded – undo
5852 5852
         'ellipsis' => 1,
5853 5853
         'html' => 0,
5854 5854
         'strip_tags' => 0,
5855
-      ),
5856
-      'empty' => '',
5857
-      'hide_empty' => 0,
5858
-      'empty_zero' => 0,
5859
-      'hide_alter_empty' => 1,
5860
-      'value' => '<?php
5855
+        ),
5856
+        'empty' => '',
5857
+        'hide_empty' => 0,
5858
+        'empty_zero' => 0,
5859
+        'hide_alter_empty' => 1,
5860
+        'value' => '<?php
5861 5861
   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");
5862 5862
 ?>',
5863
-      'exclude' => 0,
5864
-      'id' => 'phpcode_3',
5865
-      'table' => 'customfield',
5866
-      'field' => 'phpcode',
5867
-      'relationship' => 'none',
5868
-      'override' => array(
5863
+        'exclude' => 0,
5864
+        'id' => 'phpcode_3',
5865
+        'table' => 'customfield',
5866
+        'field' => 'phpcode',
5867
+        'relationship' => 'none',
5868
+        'override' => array(
5869 5869
         'button' => 'Use default',
5870
-      ),
5870
+        ),
5871 5871
     ),
5872 5872
     'host_cpid' => array(
5873
-      'label' => 'Cross project ID',
5874
-      'alter' => array(
5873
+        'label' => 'Cross project ID',
5874
+        'alter' => array(
5875 5875
         'alter_text' => 0,
5876 5876
         'text' => '',
5877 5877
         'make_link' => 0,
@@ -5888,19 +5888,19 @@  discard block
 block discarded – undo
5888 5888
         'ellipsis' => 1,
5889 5889
         'html' => 0,
5890 5890
         'strip_tags' => 0,
5891
-      ),
5892
-      'empty' => '',
5893
-      'hide_empty' => 0,
5894
-      'empty_zero' => 0,
5895
-      'exclude' => 1,
5896
-      'id' => 'host_cpid',
5897
-      'table' => 'host',
5898
-      'field' => 'host_cpid',
5899
-      'relationship' => 'none',
5891
+        ),
5892
+        'empty' => '',
5893
+        'hide_empty' => 0,
5894
+        'empty_zero' => 0,
5895
+        'exclude' => 1,
5896
+        'id' => 'host_cpid',
5897
+        'table' => 'host',
5898
+        'field' => 'host_cpid',
5899
+        'relationship' => 'none',
5900 5900
     ),
5901 5901
     'phpcode_4' => array(
5902
-      'label' => 'Cross-project statistics',
5903
-      'alter' => array(
5902
+        'label' => 'Cross-project statistics',
5903
+        'alter' => array(
5904 5904
         'alter_text' => 0,
5905 5905
         'text' => '',
5906 5906
         'make_link' => 0,
@@ -5919,12 +5919,12 @@  discard block
 block discarded – undo
5919 5919
         'ellipsis' => 1,
5920 5920
         'html' => 0,
5921 5921
         'strip_tags' => 0,
5922
-      ),
5923
-      'empty' => '',
5924
-      'hide_empty' => 0,
5925
-      'empty_zero' => 0,
5926
-      'hide_alter_empty' => 1,
5927
-      'value' => '<?php
5922
+        ),
5923
+        'empty' => '',
5924
+        'hide_empty' => 0,
5925
+        'empty_zero' => 0,
5926
+        'hide_alter_empty' => 1,
5927
+        'value' => '<?php
5928 5928
   require_boinc(\'stats_sites\');
5929 5929
   global $host_sites;
5930 5930
   $x = "";
@@ -5937,18 +5937,18 @@  discard block
 block discarded – undo
5937 5937
   }
5938 5938
   echo "Cross-project stats: {$x}";
5939 5939
 ?>',
5940
-      'exclude' => 0,
5941
-      'id' => 'phpcode_4',
5942
-      'table' => 'customfield',
5943
-      'field' => 'phpcode',
5944
-      'relationship' => 'none',
5945
-      'override' => array(
5940
+        'exclude' => 0,
5941
+        'id' => 'phpcode_4',
5942
+        'table' => 'customfield',
5943
+        'field' => 'phpcode',
5944
+        'relationship' => 'none',
5945
+        'override' => array(
5946 5946
         'button' => 'Use default',
5947
-      ),
5947
+        ),
5948 5948
     ),
5949 5949
     'rownumber' => array(
5950
-      'label' => 'Rank',
5951
-      'alter' => array(
5950
+        'label' => 'Rank',
5951
+        'alter' => array(
5952 5952
         'alter_text' => 0,
5953 5953
         'text' => '',
5954 5954
         'make_link' => 0,
@@ -5965,19 +5965,19 @@  discard block
 block discarded – undo
5965 5965
         'ellipsis' => 1,
5966 5966
         'html' => 0,
5967 5967
         'strip_tags' => 0,
5968
-      ),
5969
-      'empty' => '',
5970
-      'hide_empty' => 0,
5971
-      'empty_zero' => 0,
5972
-      'exclude' => 0,
5973
-      'id' => 'rownumber',
5974
-      'table' => 'customfield',
5975
-      'field' => 'rownumber',
5976
-      'relationship' => 'none',
5968
+        ),
5969
+        'empty' => '',
5970
+        'hide_empty' => 0,
5971
+        'empty_zero' => 0,
5972
+        'exclude' => 0,
5973
+        'id' => 'rownumber',
5974
+        'table' => 'customfield',
5975
+        'field' => 'rownumber',
5976
+        'relationship' => 'none',
5977 5977
     ),
5978 5978
     'phpcode_5' => array(
5979
-      'label' => 'Owner',
5980
-      'alter' => array(
5979
+        'label' => 'Owner',
5980
+        'alter' => array(
5981 5981
         'alter_text' => 0,
5982 5982
         'text' => '',
5983 5983
         'make_link' => 0,
@@ -5996,12 +5996,12 @@  discard block
 block discarded – undo
5996 5996
         'ellipsis' => 1,
5997 5997
         'html' => 0,
5998 5998
         'strip_tags' => 0,
5999
-      ),
6000
-      'empty' => '',
6001
-      'hide_empty' => 0,
6002
-      'empty_zero' => 0,
6003
-      'hide_alter_empty' => 1,
6004
-      'value' => '<?php 
5999
+        ),
6000
+        'empty' => '',
6001
+        'hide_empty' => 0,
6002
+        'empty_zero' => 0,
6003
+        'hide_alter_empty' => 1,
6004
+        'value' => '<?php 
6005 6005
 $uid = get_drupal_id($data->user_host_id);
6006 6006
 if ($data->user_host_show_hosts) {
6007 6007
   echo l($data->user_host_name, "account/{$uid}");
@@ -6009,18 +6009,18 @@  discard block
 block discarded – undo
6009 6009
 else {
6010 6010
   echo bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
6011 6011
 }',
6012
-      'exclude' => 0,
6013
-      'id' => 'phpcode_5',
6014
-      'table' => 'customfield',
6015
-      'field' => 'phpcode',
6016
-      'override' => array(
6012
+        'exclude' => 0,
6013
+        'id' => 'phpcode_5',
6014
+        'table' => 'customfield',
6015
+        'field' => 'phpcode',
6016
+        'override' => array(
6017 6017
         'button' => 'Use default',
6018
-      ),
6019
-      'relationship' => 'none',
6018
+        ),
6019
+        'relationship' => 'none',
6020 6020
     ),
6021 6021
     'expavg_credit' => array(
6022
-      'label' => 'Avg. credit',
6023
-      'alter' => array(
6022
+        'label' => 'Avg. credit',
6023
+        'alter' => array(
6024 6024
         'alter_text' => 0,
6025 6025
         'text' => '',
6026 6026
         'make_link' => 0,
@@ -6037,25 +6037,25 @@  discard block
 block discarded – undo
6037 6037
         'ellipsis' => 1,
6038 6038
         'html' => 0,
6039 6039
         'strip_tags' => 0,
6040
-      ),
6041
-      'empty' => '',
6042
-      'hide_empty' => 0,
6043
-      'empty_zero' => 0,
6044
-      'set_precision' => 1,
6045
-      'precision' => '2',
6046
-      'decimal' => '.',
6047
-      'separator' => ',',
6048
-      'prefix' => '',
6049
-      'suffix' => '',
6050
-      'exclude' => 0,
6051
-      'id' => 'expavg_credit',
6052
-      'table' => 'host',
6053
-      'field' => 'expavg_credit',
6054
-      'relationship' => 'none',
6040
+        ),
6041
+        'empty' => '',
6042
+        'hide_empty' => 0,
6043
+        'empty_zero' => 0,
6044
+        'set_precision' => 1,
6045
+        'precision' => '2',
6046
+        'decimal' => '.',
6047
+        'separator' => ',',
6048
+        'prefix' => '',
6049
+        'suffix' => '',
6050
+        'exclude' => 0,
6051
+        'id' => 'expavg_credit',
6052
+        'table' => 'host',
6053
+        'field' => 'expavg_credit',
6054
+        'relationship' => 'none',
6055 6055
     ),
6056 6056
     'total_credit' => array(
6057
-      'label' => 'Total credit',
6058
-      'alter' => array(
6057
+        'label' => 'Total credit',
6058
+        'alter' => array(
6059 6059
         'alter_text' => 0,
6060 6060
         'text' => '',
6061 6061
         'make_link' => 0,
@@ -6074,32 +6074,32 @@  discard block
 block discarded – undo
6074 6074
         'ellipsis' => 1,
6075 6075
         'html' => 0,
6076 6076
         'strip_tags' => 0,
6077
-      ),
6078
-      'empty' => '',
6079
-      'hide_empty' => 0,
6080
-      'empty_zero' => 0,
6081
-      'hide_alter_empty' => 1,
6082
-      'set_precision' => 1,
6083
-      'precision' => '0',
6084
-      'decimal' => '.',
6085
-      'separator' => ',',
6086
-      'format_plural' => 0,
6087
-      'format_plural_singular' => '1',
6088
-      'format_plural_plural' => '@count',
6089
-      'prefix' => '',
6090
-      'suffix' => '',
6091
-      'exclude' => 0,
6092
-      'id' => 'total_credit',
6093
-      'table' => 'host',
6094
-      'field' => 'total_credit',
6095
-      'relationship' => 'none',
6096
-      'override' => array(
6077
+        ),
6078
+        'empty' => '',
6079
+        'hide_empty' => 0,
6080
+        'empty_zero' => 0,
6081
+        'hide_alter_empty' => 1,
6082
+        'set_precision' => 1,
6083
+        'precision' => '0',
6084
+        'decimal' => '.',
6085
+        'separator' => ',',
6086
+        'format_plural' => 0,
6087
+        'format_plural_singular' => '1',
6088
+        'format_plural_plural' => '@count',
6089
+        'prefix' => '',
6090
+        'suffix' => '',
6091
+        'exclude' => 0,
6092
+        'id' => 'total_credit',
6093
+        'table' => 'host',
6094
+        'field' => 'total_credit',
6095
+        'relationship' => 'none',
6096
+        'override' => array(
6097 6097
         'button' => 'Use default',
6098
-      ),
6098
+        ),
6099 6099
     ),
6100 6100
     'serialnum' => array(
6101
-      'label' => 'Serial Number',
6102
-      'alter' => array(
6101
+        'label' => 'Serial Number',
6102
+        'alter' => array(
6103 6103
         'alter_text' => 0,
6104 6104
         'text' => '',
6105 6105
         'make_link' => 0,
@@ -6116,19 +6116,19 @@  discard block
 block discarded – undo
6116 6116
         'ellipsis' => 1,
6117 6117
         'html' => 0,
6118 6118
         'strip_tags' => 0,
6119
-      ),
6120
-      'empty' => '',
6121
-      'hide_empty' => 0,
6122
-      'empty_zero' => 0,
6123
-      'exclude' => 1,
6124
-      'id' => 'serialnum',
6125
-      'table' => 'host',
6126
-      'field' => 'serialnum',
6127
-      'relationship' => 'none',
6119
+        ),
6120
+        'empty' => '',
6121
+        'hide_empty' => 0,
6122
+        'empty_zero' => 0,
6123
+        'exclude' => 1,
6124
+        'id' => 'serialnum',
6125
+        'table' => 'host',
6126
+        'field' => 'serialnum',
6127
+        'relationship' => 'none',
6128 6128
     ),
6129 6129
     'phpcode' => array(
6130
-      'label' => 'BOINC version',
6131
-      'alter' => array(
6130
+        'label' => 'BOINC version',
6131
+        'alter' => array(
6132 6132
         'alter_text' => 0,
6133 6133
         'text' => '',
6134 6134
         'make_link' => 0,
@@ -6145,23 +6145,23 @@  discard block
 block discarded – undo
6145 6145
         'ellipsis' => 1,
6146 6146
         'html' => 0,
6147 6147
         'strip_tags' => 0,
6148
-      ),
6149
-      'empty' => '',
6150
-      'hide_empty' => 0,
6151
-      'empty_zero' => 0,
6152
-      'value' => '<?php
6148
+        ),
6149
+        'empty' => '',
6150
+        'hide_empty' => 0,
6151
+        'empty_zero' => 0,
6152
+        'value' => '<?php
6153 6153
   require_boinc(\'host\');
6154 6154
   echo boinc_version($data->host_serialnum);
6155 6155
 ?>',
6156
-      'exclude' => 0,
6157
-      'id' => 'phpcode',
6158
-      'table' => 'customfield',
6159
-      'field' => 'phpcode',
6160
-      'relationship' => 'none',
6156
+        'exclude' => 0,
6157
+        'id' => 'phpcode',
6158
+        'table' => 'customfield',
6159
+        'field' => 'phpcode',
6160
+        'relationship' => 'none',
6161 6161
     ),
6162 6162
     'p_vendor' => array(
6163
-      'label' => 'CPU',
6164
-      'alter' => array(
6163
+        'label' => 'CPU',
6164
+        'alter' => array(
6165 6165
         'alter_text' => 0,
6166 6166
         'text' => '',
6167 6167
         'make_link' => 0,
@@ -6178,22 +6178,22 @@  discard block
 block discarded – undo
6178 6178
         'ellipsis' => 1,
6179 6179
         'html' => 0,
6180 6180
         'strip_tags' => 0,
6181
-      ),
6182
-      'empty' => '',
6183
-      'hide_empty' => 0,
6184
-      'empty_zero' => 0,
6185
-      'exclude' => 0,
6186
-      'id' => 'p_vendor',
6187
-      'table' => 'host',
6188
-      'field' => 'p_vendor',
6189
-      'relationship' => 'none',
6190
-      'override' => array(
6181
+        ),
6182
+        'empty' => '',
6183
+        'hide_empty' => 0,
6184
+        'empty_zero' => 0,
6185
+        'exclude' => 0,
6186
+        'id' => 'p_vendor',
6187
+        'table' => 'host',
6188
+        'field' => 'p_vendor',
6189
+        'relationship' => 'none',
6190
+        'override' => array(
6191 6191
         'button' => 'Override',
6192
-      ),
6192
+        ),
6193 6193
     ),
6194 6194
     'p_model' => array(
6195
-      'label' => 'CPU model',
6196
-      'alter' => array(
6195
+        'label' => 'CPU model',
6196
+        'alter' => array(
6197 6197
         'alter_text' => 0,
6198 6198
         'text' => '',
6199 6199
         'make_link' => 0,
@@ -6210,19 +6210,19 @@  discard block
 block discarded – undo
6210 6210
         'ellipsis' => 1,
6211 6211
         'html' => 0,
6212 6212
         'strip_tags' => 0,
6213
-      ),
6214
-      'empty' => '',
6215
-      'hide_empty' => 0,
6216
-      'empty_zero' => 0,
6217
-      'exclude' => 0,
6218
-      'id' => 'p_model',
6219
-      'table' => 'host',
6220
-      'field' => 'p_model',
6221
-      'relationship' => 'none',
6213
+        ),
6214
+        'empty' => '',
6215
+        'hide_empty' => 0,
6216
+        'empty_zero' => 0,
6217
+        'exclude' => 0,
6218
+        'id' => 'p_model',
6219
+        'table' => 'host',
6220
+        'field' => 'p_model',
6221
+        'relationship' => 'none',
6222 6222
     ),
6223 6223
     'p_ncpus' => array(
6224
-      'label' => 'Number of CPUs',
6225
-      'alter' => array(
6224
+        'label' => 'Number of CPUs',
6225
+        'alter' => array(
6226 6226
         'alter_text' => 1,
6227 6227
         'text' => '([p_ncpus] processors)',
6228 6228
         'make_link' => 0,
@@ -6239,19 +6239,19 @@  discard block
 block discarded – undo
6239 6239
         'ellipsis' => 1,
6240 6240
         'html' => 0,
6241 6241
         'strip_tags' => 0,
6242
-      ),
6243
-      'empty' => '',
6244
-      'hide_empty' => 0,
6245
-      'empty_zero' => 0,
6246
-      'exclude' => 0,
6247
-      'id' => 'p_ncpus',
6248
-      'table' => 'host',
6249
-      'field' => 'p_ncpus',
6250
-      'relationship' => 'none',
6242
+        ),
6243
+        'empty' => '',
6244
+        'hide_empty' => 0,
6245
+        'empty_zero' => 0,
6246
+        'exclude' => 0,
6247
+        'id' => 'p_ncpus',
6248
+        'table' => 'host',
6249
+        'field' => 'p_ncpus',
6250
+        'relationship' => 'none',
6251 6251
     ),
6252 6252
     'phpcode_1' => array(
6253
-      'label' => 'GPU',
6254
-      'alter' => array(
6253
+        'label' => 'GPU',
6254
+        'alter' => array(
6255 6255
         'alter_text' => 0,
6256 6256
         'text' => '',
6257 6257
         'make_link' => 0,
@@ -6268,23 +6268,23 @@  discard block
 block discarded – undo
6268 6268
         'ellipsis' => 1,
6269 6269
         'html' => 0,
6270 6270
         'strip_tags' => 0,
6271
-      ),
6272
-      'empty' => '',
6273
-      'hide_empty' => 0,
6274
-      'empty_zero' => 0,
6275
-      'value' => '<?php
6271
+        ),
6272
+        'empty' => '',
6273
+        'hide_empty' => 0,
6274
+        'empty_zero' => 0,
6275
+        'value' => '<?php
6276 6276
   require_boinc(\'host\');
6277 6277
   echo gpu_desc($data->host_serialnum);
6278 6278
 ?>',
6279
-      'exclude' => 0,
6280
-      'id' => 'phpcode_1',
6281
-      'table' => 'customfield',
6282
-      'field' => 'phpcode',
6283
-      'relationship' => 'none',
6279
+        'exclude' => 0,
6280
+        'id' => 'phpcode_1',
6281
+        'table' => 'customfield',
6282
+        'field' => 'phpcode',
6283
+        'relationship' => 'none',
6284 6284
     ),
6285 6285
     'os_name' => array(
6286
-      'label' => 'Operating system',
6287
-      'alter' => array(
6286
+        'label' => 'Operating system',
6287
+        'alter' => array(
6288 6288
         'alter_text' => 0,
6289 6289
         'text' => '',
6290 6290
         'make_link' => 0,
@@ -6301,19 +6301,19 @@  discard block
 block discarded – undo
6301 6301
         'ellipsis' => 1,
6302 6302
         'html' => 0,
6303 6303
         'strip_tags' => 0,
6304
-      ),
6305
-      'empty' => '',
6306
-      'hide_empty' => 0,
6307
-      'empty_zero' => 0,
6308
-      'exclude' => 0,
6309
-      'id' => 'os_name',
6310
-      'table' => 'host',
6311
-      'field' => 'os_name',
6312
-      'relationship' => 'none',
6304
+        ),
6305
+        'empty' => '',
6306
+        'hide_empty' => 0,
6307
+        'empty_zero' => 0,
6308
+        'exclude' => 0,
6309
+        'id' => 'os_name',
6310
+        'table' => 'host',
6311
+        'field' => 'os_name',
6312
+        'relationship' => 'none',
6313 6313
     ),
6314 6314
     'os_version' => array(
6315
-      'label' => 'Operating system version',
6316
-      'alter' => array(
6315
+        'label' => 'Operating system version',
6316
+        'alter' => array(
6317 6317
         'alter_text' => 0,
6318 6318
         'text' => '',
6319 6319
         'make_link' => 0,
@@ -6330,164 +6330,164 @@  discard block
 block discarded – undo
6330 6330
         'ellipsis' => 1,
6331 6331
         'html' => 0,
6332 6332
         'strip_tags' => 0,
6333
-      ),
6334
-      'empty' => '',
6335
-      'hide_empty' => 0,
6336
-      'empty_zero' => 0,
6337
-      'exclude' => 0,
6338
-      'id' => 'os_version',
6339
-      'table' => 'host',
6340
-      'field' => 'os_version',
6341
-      'relationship' => 'none',
6333
+        ),
6334
+        'empty' => '',
6335
+        'hide_empty' => 0,
6336
+        'empty_zero' => 0,
6337
+        'exclude' => 0,
6338
+        'id' => 'os_version',
6339
+        'table' => 'host',
6340
+        'field' => 'os_version',
6341
+        'relationship' => 'none',
6342 6342
     ),
6343
-  ));
6344
-  $handler->override_option('arguments', array());
6345
-  $handler->override_option('filters', array(
6343
+    ));
6344
+    $handler->override_option('arguments', array());
6345
+    $handler->override_option('filters', array(
6346 6346
     'total_credit' => array(
6347
-      'operator' => '>=',
6348
-      'value' => array(
6347
+        'operator' => '>=',
6348
+        'value' => array(
6349 6349
         'value' => '1',
6350 6350
         'min' => '',
6351 6351
         'max' => '',
6352
-      ),
6353
-      'group' => '0',
6354
-      'exposed' => FALSE,
6355
-      'expose' => array(
6352
+        ),
6353
+        'group' => '0',
6354
+        'exposed' => FALSE,
6355
+        'expose' => array(
6356 6356
         'operator' => FALSE,
6357 6357
         'label' => '',
6358
-      ),
6359
-      'id' => 'total_credit',
6360
-      'table' => 'host',
6361
-      'field' => 'total_credit',
6362
-      'override' => array(
6358
+        ),
6359
+        'id' => 'total_credit',
6360
+        'table' => 'host',
6361
+        'field' => 'total_credit',
6362
+        'override' => array(
6363 6363
         'button' => 'Use default',
6364
-      ),
6365
-      'relationship' => 'none',
6364
+        ),
6365
+        'relationship' => 'none',
6366 6366
     ),
6367
-  ));
6368
-  $handler->override_option('items_per_page', 50);
6369
-  $handler->override_option('use_pager', '0');
6370
-  $handler->override_option('style_options', array(
6367
+    ));
6368
+    $handler->override_option('items_per_page', 50);
6369
+    $handler->override_option('use_pager', '0');
6370
+    $handler->override_option('style_options', array(
6371 6371
     'grouping' => '',
6372 6372
     'override' => 1,
6373 6373
     'sticky' => 1,
6374 6374
     'order' => 'desc',
6375 6375
     'summary' => '',
6376 6376
     'columns' => array(
6377
-      'id_1' => 'id_1',
6378
-      'name' => 'name',
6379
-      'show_hosts' => 'show_hosts',
6380
-      'id' => 'id',
6381
-      'phpcode_3' => 'id',
6382
-      'host_cpid' => 'host_cpid',
6383
-      'phpcode_4' => 'id',
6384
-      'rownumber' => 'rownumber',
6385
-      'phpcode_5' => 'phpcode_5',
6386
-      'expavg_credit' => 'expavg_credit',
6387
-      'total_credit' => 'total_credit',
6388
-      'serialnum' => 'serialnum',
6389
-      'phpcode' => 'phpcode',
6390
-      'p_vendor' => 'p_vendor',
6391
-      'p_model' => 'p_vendor',
6392
-      'p_ncpus' => 'p_vendor',
6393
-      'phpcode_1' => 'phpcode_1',
6394
-      'os_name' => 'os_name',
6395
-      'os_version' => 'os_name',
6377
+        'id_1' => 'id_1',
6378
+        'name' => 'name',
6379
+        'show_hosts' => 'show_hosts',
6380
+        'id' => 'id',
6381
+        'phpcode_3' => 'id',
6382
+        'host_cpid' => 'host_cpid',
6383
+        'phpcode_4' => 'id',
6384
+        'rownumber' => 'rownumber',
6385
+        'phpcode_5' => 'phpcode_5',
6386
+        'expavg_credit' => 'expavg_credit',
6387
+        'total_credit' => 'total_credit',
6388
+        'serialnum' => 'serialnum',
6389
+        'phpcode' => 'phpcode',
6390
+        'p_vendor' => 'p_vendor',
6391
+        'p_model' => 'p_vendor',
6392
+        'p_ncpus' => 'p_vendor',
6393
+        'phpcode_1' => 'phpcode_1',
6394
+        'os_name' => 'os_name',
6395
+        'os_version' => 'os_name',
6396 6396
     ),
6397 6397
     'info' => array(
6398
-      'id_1' => array(
6398
+        'id_1' => array(
6399 6399
         'sortable' => 0,
6400 6400
         'separator' => '',
6401
-      ),
6402
-      'name' => array(
6401
+        ),
6402
+        'name' => array(
6403 6403
         'sortable' => 0,
6404 6404
         'separator' => '',
6405
-      ),
6406
-      'show_hosts' => array(
6405
+        ),
6406
+        'show_hosts' => array(
6407 6407
         'sortable' => 0,
6408 6408
         'separator' => '',
6409
-      ),
6410
-      'id' => array(
6409
+        ),
6410
+        'id' => array(
6411 6411
         'sortable' => 0,
6412 6412
         'separator' => '<br/>',
6413
-      ),
6414
-      'phpcode_3' => array(
6413
+        ),
6414
+        'phpcode_3' => array(
6415 6415
         'separator' => '',
6416
-      ),
6417
-      'host_cpid' => array(
6416
+        ),
6417
+        'host_cpid' => array(
6418 6418
         'sortable' => 0,
6419 6419
         'separator' => '',
6420
-      ),
6421
-      'phpcode_4' => array(
6420
+        ),
6421
+        'phpcode_4' => array(
6422 6422
         'separator' => '',
6423
-      ),
6424
-      'rownumber' => array(
6423
+        ),
6424
+        'rownumber' => array(
6425 6425
         'separator' => '',
6426
-      ),
6427
-      'phpcode_5' => array(
6426
+        ),
6427
+        'phpcode_5' => array(
6428 6428
         'separator' => '',
6429
-      ),
6430
-      'expavg_credit' => array(
6429
+        ),
6430
+        'expavg_credit' => array(
6431 6431
         'sortable' => 1,
6432 6432
         'separator' => '',
6433
-      ),
6434
-      'total_credit' => array(
6433
+        ),
6434
+        'total_credit' => array(
6435 6435
         'sortable' => 1,
6436 6436
         'separator' => '',
6437
-      ),
6438
-      'serialnum' => array(
6437
+        ),
6438
+        'serialnum' => array(
6439 6439
         'sortable' => 0,
6440 6440
         'separator' => '',
6441
-      ),
6442
-      'phpcode' => array(
6441
+        ),
6442
+        'phpcode' => array(
6443 6443
         'separator' => '',
6444
-      ),
6445
-      'p_vendor' => array(
6444
+        ),
6445
+        'p_vendor' => array(
6446 6446
         'sortable' => 0,
6447 6447
         'separator' => '<br/>',
6448
-      ),
6449
-      'p_model' => array(
6448
+        ),
6449
+        'p_model' => array(
6450 6450
         'sortable' => 0,
6451 6451
         'separator' => '',
6452
-      ),
6453
-      'p_ncpus' => array(
6452
+        ),
6453
+        'p_ncpus' => array(
6454 6454
         'sortable' => 0,
6455 6455
         'separator' => '',
6456
-      ),
6457
-      'phpcode_1' => array(
6456
+        ),
6457
+        'phpcode_1' => array(
6458 6458
         'separator' => '',
6459
-      ),
6460
-      'os_name' => array(
6459
+        ),
6460
+        'os_name' => array(
6461 6461
         'sortable' => 0,
6462 6462
         'separator' => '<br/>',
6463
-      ),
6464
-      'os_version' => array(
6463
+        ),
6464
+        'os_version' => array(
6465 6465
         'sortable' => 0,
6466 6466
         'separator' => '',
6467
-      ),
6467
+        ),
6468 6468
     ),
6469 6469
     'default' => 'expavg_credit',
6470
-  ));
6471
-  $handler->override_option('path', 'community/stats/hosts');
6472
-  $handler->override_option('menu', array(
6470
+    ));
6471
+    $handler->override_option('path', 'community/stats/hosts');
6472
+    $handler->override_option('menu', array(
6473 6473
     'type' => 'tab',
6474 6474
     'title' => 'Top Computers',
6475 6475
     'description' => '',
6476 6476
     'weight' => '10',
6477 6477
     'name' => 'primary-links',
6478
-  ));
6479
-  $handler->override_option('tab_options', array(
6478
+    ));
6479
+    $handler->override_option('tab_options', array(
6480 6480
     'type' => 'none',
6481 6481
     'title' => '',
6482 6482
     'description' => '',
6483 6483
     'weight' => 0,
6484 6484
     'name' => 'navigation',
6485
-  ));
6486
-  $handler = $view->new_display('panel_pane', 'Top hosts pane', 'panel_pane_1');
6487
-  $handler->override_option('fields', array(
6485
+    ));
6486
+    $handler = $view->new_display('panel_pane', 'Top hosts pane', 'panel_pane_1');
6487
+    $handler->override_option('fields', array(
6488 6488
     'id_1' => array(
6489
-      'label' => 'Id',
6490
-      'alter' => array(
6489
+        'label' => 'Id',
6490
+        'alter' => array(
6491 6491
         'alter_text' => 0,
6492 6492
         'text' => '',
6493 6493
         'make_link' => 0,
@@ -6506,32 +6506,32 @@  discard block
 block discarded – undo
6506 6506
         'ellipsis' => 1,
6507 6507
         'html' => 0,
6508 6508
         'strip_tags' => 0,
6509
-      ),
6510
-      'empty' => '',
6511
-      'hide_empty' => 0,
6512
-      'empty_zero' => 0,
6513
-      'hide_alter_empty' => 1,
6514
-      'set_precision' => FALSE,
6515
-      'precision' => 0,
6516
-      'decimal' => '.',
6517
-      'separator' => '',
6518
-      'format_plural' => 0,
6519
-      'format_plural_singular' => '1',
6520
-      'format_plural_plural' => '@count',
6521
-      'prefix' => '',
6522
-      'suffix' => '',
6523
-      'exclude' => 1,
6524
-      'id' => 'id_1',
6525
-      'table' => 'user',
6526
-      'field' => 'id',
6527
-      'relationship' => 'userid',
6528
-      'override' => array(
6509
+        ),
6510
+        'empty' => '',
6511
+        'hide_empty' => 0,
6512
+        'empty_zero' => 0,
6513
+        'hide_alter_empty' => 1,
6514
+        'set_precision' => FALSE,
6515
+        'precision' => 0,
6516
+        'decimal' => '.',
6517
+        'separator' => '',
6518
+        'format_plural' => 0,
6519
+        'format_plural_singular' => '1',
6520
+        'format_plural_plural' => '@count',
6521
+        'prefix' => '',
6522
+        'suffix' => '',
6523
+        'exclude' => 1,
6524
+        'id' => 'id_1',
6525
+        'table' => 'user',
6526
+        'field' => 'id',
6527
+        'relationship' => 'userid',
6528
+        'override' => array(
6529 6529
         'button' => 'Use default',
6530
-      ),
6530
+        ),
6531 6531
     ),
6532 6532
     'name' => array(
6533
-      'label' => 'Name',
6534
-      'alter' => array(
6533
+        'label' => 'Name',
6534
+        'alter' => array(
6535 6535
         'alter_text' => 0,
6536 6536
         'text' => '',
6537 6537
         'make_link' => 0,
@@ -6550,23 +6550,23 @@  discard block
 block discarded – undo
6550 6550
         'ellipsis' => 1,
6551 6551
         'html' => 0,
6552 6552
         'strip_tags' => 0,
6553
-      ),
6554
-      'empty' => '',
6555
-      'hide_empty' => 0,
6556
-      'empty_zero' => 0,
6557
-      'hide_alter_empty' => 1,
6558
-      'exclude' => 1,
6559
-      'id' => 'name',
6560
-      'table' => 'user',
6561
-      'field' => 'name',
6562
-      'relationship' => 'userid',
6563
-      'override' => array(
6553
+        ),
6554
+        'empty' => '',
6555
+        'hide_empty' => 0,
6556
+        'empty_zero' => 0,
6557
+        'hide_alter_empty' => 1,
6558
+        'exclude' => 1,
6559
+        'id' => 'name',
6560
+        'table' => 'user',
6561
+        'field' => 'name',
6562
+        'relationship' => 'userid',
6563
+        'override' => array(
6564 6564
         'button' => 'Use default',
6565
-      ),
6565
+        ),
6566 6566
     ),
6567 6567
     'show_hosts' => array(
6568
-      'label' => 'Show Hosts',
6569
-      'alter' => array(
6568
+        'label' => 'Show Hosts',
6569
+        'alter' => array(
6570 6570
         'alter_text' => 0,
6571 6571
         'text' => '',
6572 6572
         'make_link' => 0,
@@ -6585,32 +6585,32 @@  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
-      'set_precision' => FALSE,
6594
-      'precision' => 0,
6595
-      'decimal' => '.',
6596
-      'separator' => '',
6597
-      'format_plural' => 0,
6598
-      'format_plural_singular' => '1',
6599
-      'format_plural_plural' => '@count',
6600
-      'prefix' => '',
6601
-      'suffix' => '',
6602
-      'exclude' => 1,
6603
-      'id' => 'show_hosts',
6604
-      'table' => 'user',
6605
-      'field' => 'show_hosts',
6606
-      'relationship' => 'userid',
6607
-      'override' => array(
6588
+        ),
6589
+        'empty' => '',
6590
+        'hide_empty' => 0,
6591
+        'empty_zero' => 0,
6592
+        'hide_alter_empty' => 1,
6593
+        'set_precision' => FALSE,
6594
+        'precision' => 0,
6595
+        'decimal' => '.',
6596
+        'separator' => '',
6597
+        'format_plural' => 0,
6598
+        'format_plural_singular' => '1',
6599
+        'format_plural_plural' => '@count',
6600
+        'prefix' => '',
6601
+        'suffix' => '',
6602
+        'exclude' => 1,
6603
+        'id' => 'show_hosts',
6604
+        'table' => 'user',
6605
+        'field' => 'show_hosts',
6606
+        'relationship' => 'userid',
6607
+        'override' => array(
6608 6608
         'button' => 'Use default',
6609
-      ),
6609
+        ),
6610 6610
     ),
6611 6611
     'rownumber' => array(
6612
-      'label' => 'Rank',
6613
-      'alter' => array(
6612
+        'label' => 'Rank',
6613
+        'alter' => array(
6614 6614
         'alter_text' => 0,
6615 6615
         'text' => '',
6616 6616
         'make_link' => 0,
@@ -6627,19 +6627,19 @@  discard block
 block discarded – undo
6627 6627
         'ellipsis' => 1,
6628 6628
         'html' => 0,
6629 6629
         'strip_tags' => 0,
6630
-      ),
6631
-      'empty' => '',
6632
-      'hide_empty' => 0,
6633
-      'empty_zero' => 0,
6634
-      'exclude' => 0,
6635
-      'id' => 'rownumber',
6636
-      'table' => 'customfield',
6637
-      'field' => 'rownumber',
6638
-      'relationship' => 'none',
6630
+        ),
6631
+        'empty' => '',
6632
+        'hide_empty' => 0,
6633
+        'empty_zero' => 0,
6634
+        'exclude' => 0,
6635
+        'id' => 'rownumber',
6636
+        'table' => 'customfield',
6637
+        'field' => 'rownumber',
6638
+        'relationship' => 'none',
6639 6639
     ),
6640 6640
     'id' => array(
6641
-      'label' => 'Computer ID',
6642
-      'alter' => array(
6641
+        'label' => 'Computer ID',
6642
+        'alter' => array(
6643 6643
         'alter_text' => 0,
6644 6644
         'text' => 'ID: [id]
6645 6645
 <a href="">Details</a> | <a href="">Tasks</a>
@@ -6661,32 +6661,32 @@  discard block
 block discarded – undo
6661 6661
         'ellipsis' => 1,
6662 6662
         'html' => 0,
6663 6663
         'strip_tags' => 0,
6664
-      ),
6665
-      'empty' => '',
6666
-      'hide_empty' => 0,
6667
-      'empty_zero' => 0,
6668
-      'hide_alter_empty' => 1,
6669
-      'set_precision' => FALSE,
6670
-      'precision' => 0,
6671
-      'decimal' => '.',
6672
-      'separator' => '',
6673
-      'format_plural' => 0,
6674
-      'format_plural_singular' => '1',
6675
-      'format_plural_plural' => '@count',
6676
-      'prefix' => '',
6677
-      'suffix' => '',
6678
-      'exclude' => 0,
6679
-      'id' => 'id',
6680
-      'table' => 'host',
6681
-      'field' => 'id',
6682
-      'relationship' => 'none',
6683
-      'override' => array(
6664
+        ),
6665
+        'empty' => '',
6666
+        'hide_empty' => 0,
6667
+        'empty_zero' => 0,
6668
+        'hide_alter_empty' => 1,
6669
+        'set_precision' => FALSE,
6670
+        'precision' => 0,
6671
+        'decimal' => '.',
6672
+        'separator' => '',
6673
+        'format_plural' => 0,
6674
+        'format_plural_singular' => '1',
6675
+        'format_plural_plural' => '@count',
6676
+        'prefix' => '',
6677
+        'suffix' => '',
6678
+        'exclude' => 0,
6679
+        'id' => 'id',
6680
+        'table' => 'host',
6681
+        'field' => 'id',
6682
+        'relationship' => 'none',
6683
+        'override' => array(
6684 6684
         'button' => 'Use default',
6685
-      ),
6685
+        ),
6686 6686
     ),
6687 6687
     'phpcode_3' => array(
6688
-      'label' => 'Computer links',
6689
-      'alter' => array(
6688
+        'label' => 'Computer links',
6689
+        'alter' => array(
6690 6690
         'alter_text' => 0,
6691 6691
         'text' => '',
6692 6692
         'make_link' => 0,
@@ -6705,26 +6705,26 @@  discard block
 block discarded – undo
6705 6705
         'ellipsis' => 1,
6706 6706
         'html' => 0,
6707 6707
         'strip_tags' => 0,
6708
-      ),
6709
-      'empty' => '',
6710
-      'hide_empty' => 0,
6711
-      'empty_zero' => 0,
6712
-      'hide_alter_empty' => 1,
6713
-      'value' => '<?php
6708
+        ),
6709
+        'empty' => '',
6710
+        'hide_empty' => 0,
6711
+        'empty_zero' => 0,
6712
+        'hide_alter_empty' => 1,
6713
+        'value' => '<?php
6714 6714
   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");
6715 6715
 ?>',
6716
-      'exclude' => 1,
6717
-      'id' => 'phpcode_3',
6718
-      'table' => 'customfield',
6719
-      'field' => 'phpcode',
6720
-      'relationship' => 'none',
6721
-      'override' => array(
6716
+        'exclude' => 1,
6717
+        'id' => 'phpcode_3',
6718
+        'table' => 'customfield',
6719
+        'field' => 'phpcode',
6720
+        'relationship' => 'none',
6721
+        'override' => array(
6722 6722
         'button' => 'Use default',
6723
-      ),
6723
+        ),
6724 6724
     ),
6725 6725
     'host_cpid' => array(
6726
-      'label' => 'Cross project ID',
6727
-      'alter' => array(
6726
+        'label' => 'Cross project ID',
6727
+        'alter' => array(
6728 6728
         'alter_text' => 0,
6729 6729
         'text' => '',
6730 6730
         'make_link' => 0,
@@ -6741,19 +6741,19 @@  discard block
 block discarded – undo
6741 6741
         'ellipsis' => 1,
6742 6742
         'html' => 0,
6743 6743
         'strip_tags' => 0,
6744
-      ),
6745
-      'empty' => '',
6746
-      'hide_empty' => 0,
6747
-      'empty_zero' => 0,
6748
-      'exclude' => 1,
6749
-      'id' => 'host_cpid',
6750
-      'table' => 'host',
6751
-      'field' => 'host_cpid',
6752
-      'relationship' => 'none',
6744
+        ),
6745
+        'empty' => '',
6746
+        'hide_empty' => 0,
6747
+        'empty_zero' => 0,
6748
+        'exclude' => 1,
6749
+        'id' => 'host_cpid',
6750
+        'table' => 'host',
6751
+        'field' => 'host_cpid',
6752
+        'relationship' => 'none',
6753 6753
     ),
6754 6754
     'phpcode_4' => array(
6755
-      'label' => 'Cross-project statistics',
6756
-      'alter' => array(
6755
+        'label' => 'Cross-project statistics',
6756
+        'alter' => array(
6757 6757
         'alter_text' => 0,
6758 6758
         'text' => '',
6759 6759
         'make_link' => 0,
@@ -6772,12 +6772,12 @@  discard block
 block discarded – undo
6772 6772
         'ellipsis' => 1,
6773 6773
         'html' => 0,
6774 6774
         'strip_tags' => 0,
6775
-      ),
6776
-      'empty' => '',
6777
-      'hide_empty' => 0,
6778
-      'empty_zero' => 0,
6779
-      'hide_alter_empty' => 1,
6780
-      'value' => '<?php
6775
+        ),
6776
+        'empty' => '',
6777
+        'hide_empty' => 0,
6778
+        'empty_zero' => 0,
6779
+        'hide_alter_empty' => 1,
6780
+        'value' => '<?php
6781 6781
   require_boinc(\'stats_sites\');
6782 6782
   global $host_sites;
6783 6783
   $x = "";
@@ -6790,18 +6790,18 @@  discard block
 block discarded – undo
6790 6790
   }
6791 6791
   echo "Cross-project stats: {$x}";
6792 6792
 ?>',
6793
-      'exclude' => 1,
6794
-      'id' => 'phpcode_4',
6795
-      'table' => 'customfield',
6796
-      'field' => 'phpcode',
6797
-      'relationship' => 'none',
6798
-      'override' => array(
6793
+        'exclude' => 1,
6794
+        'id' => 'phpcode_4',
6795
+        'table' => 'customfield',
6796
+        'field' => 'phpcode',
6797
+        'relationship' => 'none',
6798
+        'override' => array(
6799 6799
         'button' => 'Use default',
6800
-      ),
6800
+        ),
6801 6801
     ),
6802 6802
     'phpcode_5' => array(
6803
-      'label' => 'Owner',
6804
-      'alter' => array(
6803
+        'label' => 'Owner',
6804
+        'alter' => array(
6805 6805
         'alter_text' => 0,
6806 6806
         'text' => '',
6807 6807
         'make_link' => 0,
@@ -6820,12 +6820,12 @@  discard block
 block discarded – undo
6820 6820
         'ellipsis' => 1,
6821 6821
         'html' => 0,
6822 6822
         'strip_tags' => 0,
6823
-      ),
6824
-      'empty' => '',
6825
-      'hide_empty' => 0,
6826
-      'empty_zero' => 0,
6827
-      'hide_alter_empty' => 1,
6828
-      'value' => '<?php 
6823
+        ),
6824
+        'empty' => '',
6825
+        'hide_empty' => 0,
6826
+        'empty_zero' => 0,
6827
+        'hide_alter_empty' => 1,
6828
+        'value' => '<?php 
6829 6829
 $uid = get_drupal_id($data->user_host_id);
6830 6830
 if ($data->user_host_show_hosts) {
6831 6831
   echo l($data->user_host_name, "account/{$uid}");
@@ -6833,18 +6833,18 @@  discard block
 block discarded – undo
6833 6833
 else {
6834 6834
   echo bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
6835 6835
 }',
6836
-      'exclude' => 0,
6837
-      'id' => 'phpcode_5',
6838
-      'table' => 'customfield',
6839
-      'field' => 'phpcode',
6840
-      'override' => array(
6836
+        'exclude' => 0,
6837
+        'id' => 'phpcode_5',
6838
+        'table' => 'customfield',
6839
+        'field' => 'phpcode',
6840
+        'override' => array(
6841 6841
         'button' => 'Use default',
6842
-      ),
6843
-      'relationship' => 'none',
6842
+        ),
6843
+        'relationship' => 'none',
6844 6844
     ),
6845 6845
     'expavg_credit' => array(
6846
-      'label' => 'Recent average credit',
6847
-      'alter' => array(
6846
+        'label' => 'Recent average credit',
6847
+        'alter' => array(
6848 6848
         'alter_text' => 0,
6849 6849
         'text' => '',
6850 6850
         'make_link' => 0,
@@ -6863,32 +6863,32 @@  discard block
 block discarded – undo
6863 6863
         'ellipsis' => 1,
6864 6864
         'html' => 0,
6865 6865
         'strip_tags' => 0,
6866
-      ),
6867
-      'empty' => '',
6868
-      'hide_empty' => 0,
6869
-      'empty_zero' => 0,
6870
-      'hide_alter_empty' => 1,
6871
-      'set_precision' => 1,
6872
-      'precision' => '2',
6873
-      'decimal' => '.',
6874
-      'separator' => ',',
6875
-      'format_plural' => 0,
6876
-      'format_plural_singular' => '1',
6877
-      'format_plural_plural' => '@count',
6878
-      'prefix' => '',
6879
-      'suffix' => '',
6880
-      'exclude' => 0,
6881
-      'id' => 'expavg_credit',
6882
-      'table' => 'host',
6883
-      'field' => 'expavg_credit',
6884
-      'relationship' => 'none',
6885
-      'override' => array(
6866
+        ),
6867
+        'empty' => '',
6868
+        'hide_empty' => 0,
6869
+        'empty_zero' => 0,
6870
+        'hide_alter_empty' => 1,
6871
+        'set_precision' => 1,
6872
+        'precision' => '2',
6873
+        'decimal' => '.',
6874
+        'separator' => ',',
6875
+        'format_plural' => 0,
6876
+        'format_plural_singular' => '1',
6877
+        'format_plural_plural' => '@count',
6878
+        'prefix' => '',
6879
+        'suffix' => '',
6880
+        'exclude' => 0,
6881
+        'id' => 'expavg_credit',
6882
+        'table' => 'host',
6883
+        'field' => 'expavg_credit',
6884
+        'relationship' => 'none',
6885
+        'override' => array(
6886 6886
         'button' => 'Use default',
6887
-      ),
6887
+        ),
6888 6888
     ),
6889 6889
     'total_credit' => array(
6890
-      'label' => 'Total credit',
6891
-      'alter' => array(
6890
+        'label' => 'Total credit',
6891
+        'alter' => array(
6892 6892
         'alter_text' => 0,
6893 6893
         'text' => '',
6894 6894
         'make_link' => 0,
@@ -6907,32 +6907,32 @@  discard block
 block discarded – undo
6907 6907
         'ellipsis' => 1,
6908 6908
         'html' => 0,
6909 6909
         'strip_tags' => 0,
6910
-      ),
6911
-      'empty' => '',
6912
-      'hide_empty' => 0,
6913
-      'empty_zero' => 0,
6914
-      'hide_alter_empty' => 1,
6915
-      'set_precision' => 1,
6916
-      'precision' => '0',
6917
-      'decimal' => '.',
6918
-      'separator' => ',',
6919
-      'format_plural' => 0,
6920
-      'format_plural_singular' => '1',
6921
-      'format_plural_plural' => '@count',
6922
-      'prefix' => '',
6923
-      'suffix' => '',
6924
-      'exclude' => 0,
6925
-      'id' => 'total_credit',
6926
-      'table' => 'host',
6927
-      'field' => 'total_credit',
6928
-      'relationship' => 'none',
6929
-      'override' => array(
6910
+        ),
6911
+        'empty' => '',
6912
+        'hide_empty' => 0,
6913
+        'empty_zero' => 0,
6914
+        'hide_alter_empty' => 1,
6915
+        'set_precision' => 1,
6916
+        'precision' => '0',
6917
+        'decimal' => '.',
6918
+        'separator' => ',',
6919
+        'format_plural' => 0,
6920
+        'format_plural_singular' => '1',
6921
+        'format_plural_plural' => '@count',
6922
+        'prefix' => '',
6923
+        'suffix' => '',
6924
+        'exclude' => 0,
6925
+        'id' => 'total_credit',
6926
+        'table' => 'host',
6927
+        'field' => 'total_credit',
6928
+        'relationship' => 'none',
6929
+        'override' => array(
6930 6930
         'button' => 'Use default',
6931
-      ),
6931
+        ),
6932 6932
     ),
6933 6933
     'serialnum' => array(
6934
-      'label' => 'Serial Number',
6935
-      'alter' => array(
6934
+        'label' => 'Serial Number',
6935
+        'alter' => array(
6936 6936
         'alter_text' => 0,
6937 6937
         'text' => '',
6938 6938
         'make_link' => 0,
@@ -6949,19 +6949,19 @@  discard block
 block discarded – undo
6949 6949
         'ellipsis' => 1,
6950 6950
         'html' => 0,
6951 6951
         'strip_tags' => 0,
6952
-      ),
6953
-      'empty' => '',
6954
-      'hide_empty' => 0,
6955
-      'empty_zero' => 0,
6956
-      'exclude' => 1,
6957
-      'id' => 'serialnum',
6958
-      'table' => 'host',
6959
-      'field' => 'serialnum',
6960
-      'relationship' => 'none',
6952
+        ),
6953
+        'empty' => '',
6954
+        'hide_empty' => 0,
6955
+        'empty_zero' => 0,
6956
+        'exclude' => 1,
6957
+        'id' => 'serialnum',
6958
+        'table' => 'host',
6959
+        'field' => 'serialnum',
6960
+        'relationship' => 'none',
6961 6961
     ),
6962 6962
     'phpcode' => array(
6963
-      'label' => 'BOINC version',
6964
-      'alter' => array(
6963
+        'label' => 'BOINC version',
6964
+        'alter' => array(
6965 6965
         'alter_text' => 0,
6966 6966
         'text' => '',
6967 6967
         'make_link' => 0,
@@ -6980,27 +6980,27 @@  discard block
 block discarded – undo
6980 6980
         'ellipsis' => 1,
6981 6981
         'html' => 0,
6982 6982
         'strip_tags' => 0,
6983
-      ),
6984
-      'empty' => '',
6985
-      'hide_empty' => 0,
6986
-      'empty_zero' => 0,
6987
-      'hide_alter_empty' => 1,
6988
-      'value' => '<?php
6983
+        ),
6984
+        'empty' => '',
6985
+        'hide_empty' => 0,
6986
+        'empty_zero' => 0,
6987
+        'hide_alter_empty' => 1,
6988
+        'value' => '<?php
6989 6989
   require_boinc(\'host\');
6990 6990
   echo boinc_version($data->host_serialnum);
6991 6991
 ?>',
6992
-      'exclude' => 1,
6993
-      'id' => 'phpcode',
6994
-      'table' => 'customfield',
6995
-      'field' => 'phpcode',
6996
-      'relationship' => 'none',
6997
-      'override' => array(
6992
+        'exclude' => 1,
6993
+        'id' => 'phpcode',
6994
+        'table' => 'customfield',
6995
+        'field' => 'phpcode',
6996
+        'relationship' => 'none',
6997
+        'override' => array(
6998 6998
         'button' => 'Use default',
6999
-      ),
6999
+        ),
7000 7000
     ),
7001 7001
     'p_vendor' => array(
7002
-      'label' => 'CPU',
7003
-      'alter' => array(
7002
+        'label' => 'CPU',
7003
+        'alter' => array(
7004 7004
         'alter_text' => 0,
7005 7005
         'text' => '',
7006 7006
         'make_link' => 0,
@@ -7019,23 +7019,23 @@  discard block
 block discarded – undo
7019 7019
         'ellipsis' => 1,
7020 7020
         'html' => 0,
7021 7021
         'strip_tags' => 0,
7022
-      ),
7023
-      'empty' => '',
7024
-      'hide_empty' => 0,
7025
-      'empty_zero' => 0,
7026
-      'hide_alter_empty' => 1,
7027
-      'exclude' => 1,
7028
-      'id' => 'p_vendor',
7029
-      'table' => 'host',
7030
-      'field' => 'p_vendor',
7031
-      'relationship' => 'none',
7032
-      'override' => array(
7022
+        ),
7023
+        'empty' => '',
7024
+        'hide_empty' => 0,
7025
+        'empty_zero' => 0,
7026
+        'hide_alter_empty' => 1,
7027
+        'exclude' => 1,
7028
+        'id' => 'p_vendor',
7029
+        'table' => 'host',
7030
+        'field' => 'p_vendor',
7031
+        'relationship' => 'none',
7032
+        'override' => array(
7033 7033
         'button' => 'Use default',
7034
-      ),
7034
+        ),
7035 7035
     ),
7036 7036
     'p_model' => array(
7037
-      'label' => 'CPU model',
7038
-      'alter' => array(
7037
+        'label' => 'CPU model',
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_model',
7064
-      'table' => 'host',
7065
-      'field' => 'p_model',
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_model',
7064
+        'table' => 'host',
7065
+        'field' => 'p_model',
7066
+        'relationship' => 'none',
7067
+        'override' => array(
7068 7068
         'button' => 'Use default',
7069
-      ),
7069
+        ),
7070 7070
     ),
7071 7071
     'p_ncpus' => array(
7072
-      'label' => 'Number of CPUs',
7073
-      'alter' => array(
7072
+        'label' => 'Number of CPUs',
7073
+        'alter' => array(
7074 7074
         'alter_text' => 1,
7075 7075
         'text' => '([p_ncpus] processors)',
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_ncpus',
7099
-      'table' => 'host',
7100
-      'field' => 'p_ncpus',
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_ncpus',
7099
+        'table' => 'host',
7100
+        'field' => 'p_ncpus',
7101
+        'relationship' => 'none',
7102
+        'override' => array(
7103 7103
         'button' => 'Use default',
7104
-      ),
7104
+        ),
7105 7105
     ),
7106 7106
     'phpcode_1' => array(
7107
-      'label' => 'GPU',
7108
-      'alter' => array(
7107
+        'label' => 'GPU',
7108
+        'alter' => array(
7109 7109
         'alter_text' => 0,
7110 7110
         'text' => '',
7111 7111
         'make_link' => 0,
@@ -7124,27 +7124,27 @@  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
-      'value' => '<?php
7127
+        ),
7128
+        'empty' => '',
7129
+        'hide_empty' => 0,
7130
+        'empty_zero' => 0,
7131
+        'hide_alter_empty' => 1,
7132
+        'value' => '<?php
7133 7133
   require_boinc(\'host\');
7134 7134
   echo gpu_desc($data->host_serialnum);
7135 7135
 ?>',
7136
-      'exclude' => 1,
7137
-      'id' => 'phpcode_1',
7138
-      'table' => 'customfield',
7139
-      'field' => 'phpcode',
7140
-      'relationship' => 'none',
7141
-      'override' => array(
7136
+        'exclude' => 1,
7137
+        'id' => 'phpcode_1',
7138
+        'table' => 'customfield',
7139
+        'field' => 'phpcode',
7140
+        'relationship' => 'none',
7141
+        'override' => array(
7142 7142
         'button' => 'Use default',
7143
-      ),
7143
+        ),
7144 7144
     ),
7145 7145
     'os_name' => array(
7146
-      'label' => 'Operating system',
7147
-      'alter' => array(
7146
+        'label' => 'Operating system',
7147
+        'alter' => array(
7148 7148
         'alter_text' => 0,
7149 7149
         'text' => '',
7150 7150
         'make_link' => 0,
@@ -7163,23 +7163,23 @@  discard block
 block discarded – undo
7163 7163
         'ellipsis' => 1,
7164 7164
         'html' => 0,
7165 7165
         'strip_tags' => 0,
7166
-      ),
7167
-      'empty' => '',
7168
-      'hide_empty' => 0,
7169
-      'empty_zero' => 0,
7170
-      'hide_alter_empty' => 1,
7171
-      'exclude' => 1,
7172
-      'id' => 'os_name',
7173
-      'table' => 'host',
7174
-      'field' => 'os_name',
7175
-      'relationship' => 'none',
7176
-      'override' => array(
7166
+        ),
7167
+        'empty' => '',
7168
+        'hide_empty' => 0,
7169
+        'empty_zero' => 0,
7170
+        'hide_alter_empty' => 1,
7171
+        'exclude' => 1,
7172
+        'id' => 'os_name',
7173
+        'table' => 'host',
7174
+        'field' => 'os_name',
7175
+        'relationship' => 'none',
7176
+        'override' => array(
7177 7177
         'button' => 'Use default',
7178
-      ),
7178
+        ),
7179 7179
     ),
7180 7180
     'os_version' => array(
7181
-      'label' => 'Operating system version',
7182
-      'alter' => array(
7181
+        'label' => 'Operating system version',
7182
+        'alter' => array(
7183 7183
         'alter_text' => 0,
7184 7184
         'text' => '',
7185 7185
         'make_link' => 0,
@@ -7198,178 +7198,178 @@  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_version',
7208
-      'table' => 'host',
7209
-      'field' => 'os_version',
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_version',
7208
+        'table' => 'host',
7209
+        'field' => 'os_version',
7210
+        'relationship' => 'none',
7211
+        'override' => array(
7212 7212
         'button' => 'Use default',
7213
-      ),
7213
+        ),
7214 7214
     ),
7215
-  ));
7216
-  $handler->override_option('arguments', array());
7217
-  $handler->override_option('filters', array(
7215
+    ));
7216
+    $handler->override_option('arguments', array());
7217
+    $handler->override_option('filters', array(
7218 7218
     'show_hosts' => array(
7219
-      'operator' => '=',
7220
-      'value' => array(
7219
+        'operator' => '=',
7220
+        'value' => array(
7221 7221
         'value' => '1',
7222 7222
         'min' => '',
7223 7223
         'max' => '',
7224
-      ),
7225
-      'group' => '0',
7226
-      'exposed' => FALSE,
7227
-      'expose' => array(
7224
+        ),
7225
+        'group' => '0',
7226
+        'exposed' => FALSE,
7227
+        'expose' => array(
7228 7228
         'operator' => FALSE,
7229 7229
         'label' => '',
7230
-      ),
7231
-      'id' => 'show_hosts',
7232
-      'table' => 'user',
7233
-      'field' => 'show_hosts',
7234
-      'relationship' => 'userid',
7230
+        ),
7231
+        'id' => 'show_hosts',
7232
+        'table' => 'user',
7233
+        'field' => 'show_hosts',
7234
+        'relationship' => 'userid',
7235 7235
     ),
7236 7236
     'total_credit' => array(
7237
-      'operator' => '>=',
7238
-      'value' => array(
7237
+        'operator' => '>=',
7238
+        'value' => array(
7239 7239
         'value' => '1',
7240 7240
         'min' => '',
7241 7241
         'max' => '',
7242
-      ),
7243
-      'group' => '0',
7244
-      'exposed' => FALSE,
7245
-      'expose' => array(
7242
+        ),
7243
+        'group' => '0',
7244
+        'exposed' => FALSE,
7245
+        'expose' => array(
7246 7246
         'operator' => FALSE,
7247 7247
         'label' => '',
7248
-      ),
7249
-      'id' => 'total_credit',
7250
-      'table' => 'host',
7251
-      'field' => 'total_credit',
7252
-      'override' => array(
7248
+        ),
7249
+        'id' => 'total_credit',
7250
+        'table' => 'host',
7251
+        'field' => 'total_credit',
7252
+        'override' => array(
7253 7253
         'button' => 'Use default',
7254
-      ),
7255
-      'relationship' => 'none',
7256
-    ),
7257
-  ));
7258
-  $handler->override_option('title', 'Top computers');
7259
-  $handler->override_option('items_per_page', 10);
7260
-  $handler->override_option('use_pager', '0');
7261
-  $handler->override_option('use_more', 1);
7262
-  $handler->override_option('use_more_always', 0);
7263
-  $handler->override_option('use_more_text', 'view more');
7264
-  $handler->override_option('link_display', 'page_3');
7265
-  $handler->override_option('style_options', array(
7254
+        ),
7255
+        'relationship' => 'none',
7256
+    ),
7257
+    ));
7258
+    $handler->override_option('title', 'Top computers');
7259
+    $handler->override_option('items_per_page', 10);
7260
+    $handler->override_option('use_pager', '0');
7261
+    $handler->override_option('use_more', 1);
7262
+    $handler->override_option('use_more_always', 0);
7263
+    $handler->override_option('use_more_text', 'view more');
7264
+    $handler->override_option('link_display', 'page_3');
7265
+    $handler->override_option('style_options', array(
7266 7266
     'grouping' => '',
7267 7267
     'override' => 1,
7268 7268
     'sticky' => 0,
7269 7269
     'order' => 'desc',
7270 7270
     'summary' => '',
7271 7271
     'columns' => array(
7272
-      'id_1' => 'id_1',
7273
-      'name' => 'name',
7274
-      'show_hosts' => 'show_hosts',
7275
-      'rownumber' => 'rownumber',
7276
-      'id' => 'id',
7277
-      'phpcode_3' => 'id',
7278
-      'host_cpid' => 'host_cpid',
7279
-      'phpcode_4' => 'id',
7280
-      'phpcode_5' => 'phpcode_5',
7281
-      'expavg_credit' => 'expavg_credit',
7282
-      'total_credit' => 'total_credit',
7283
-      'serialnum' => 'serialnum',
7284
-      'phpcode' => 'phpcode',
7285
-      'p_vendor' => 'p_vendor',
7286
-      'p_model' => 'p_vendor',
7287
-      'p_ncpus' => 'p_vendor',
7288
-      'phpcode_1' => 'phpcode_1',
7289
-      'os_name' => 'os_name',
7290
-      'os_version' => 'os_name',
7272
+        'id_1' => 'id_1',
7273
+        'name' => 'name',
7274
+        'show_hosts' => 'show_hosts',
7275
+        'rownumber' => 'rownumber',
7276
+        'id' => 'id',
7277
+        'phpcode_3' => 'id',
7278
+        'host_cpid' => 'host_cpid',
7279
+        'phpcode_4' => 'id',
7280
+        'phpcode_5' => 'phpcode_5',
7281
+        'expavg_credit' => 'expavg_credit',
7282
+        'total_credit' => 'total_credit',
7283
+        'serialnum' => 'serialnum',
7284
+        'phpcode' => 'phpcode',
7285
+        'p_vendor' => 'p_vendor',
7286
+        'p_model' => 'p_vendor',
7287
+        'p_ncpus' => 'p_vendor',
7288
+        'phpcode_1' => 'phpcode_1',
7289
+        'os_name' => 'os_name',
7290
+        'os_version' => 'os_name',
7291 7291
     ),
7292 7292
     'info' => array(
7293
-      'id_1' => array(
7293
+        'id_1' => array(
7294 7294
         'sortable' => 0,
7295 7295
         'separator' => '',
7296
-      ),
7297
-      'name' => array(
7296
+        ),
7297
+        'name' => array(
7298 7298
         'sortable' => 0,
7299 7299
         'separator' => '',
7300
-      ),
7301
-      'show_hosts' => array(
7300
+        ),
7301
+        'show_hosts' => array(
7302 7302
         'sortable' => 0,
7303 7303
         'separator' => '',
7304
-      ),
7305
-      'rownumber' => array(
7304
+        ),
7305
+        'rownumber' => array(
7306 7306
         'separator' => '',
7307
-      ),
7308
-      'id' => array(
7307
+        ),
7308
+        'id' => array(
7309 7309
         'sortable' => 0,
7310 7310
         'separator' => ' | ',
7311
-      ),
7312
-      'phpcode_3' => array(
7311
+        ),
7312
+        'phpcode_3' => array(
7313 7313
         'separator' => '',
7314
-      ),
7315
-      'host_cpid' => array(
7314
+        ),
7315
+        'host_cpid' => array(
7316 7316
         'sortable' => 0,
7317 7317
         'separator' => '',
7318
-      ),
7319
-      'phpcode_4' => array(
7318
+        ),
7319
+        'phpcode_4' => array(
7320 7320
         'separator' => '',
7321
-      ),
7322
-      'phpcode_5' => array(
7321
+        ),
7322
+        'phpcode_5' => array(
7323 7323
         'separator' => '',
7324
-      ),
7325
-      'expavg_credit' => array(
7324
+        ),
7325
+        'expavg_credit' => array(
7326 7326
         'sortable' => 1,
7327 7327
         'separator' => '',
7328
-      ),
7329
-      'total_credit' => array(
7328
+        ),
7329
+        'total_credit' => array(
7330 7330
         'sortable' => 1,
7331 7331
         'separator' => '',
7332
-      ),
7333
-      'serialnum' => array(
7332
+        ),
7333
+        'serialnum' => array(
7334 7334
         'sortable' => 0,
7335 7335
         'separator' => '',
7336
-      ),
7337
-      'phpcode' => array(
7336
+        ),
7337
+        'phpcode' => array(
7338 7338
         'separator' => '',
7339
-      ),
7340
-      'p_vendor' => array(
7339
+        ),
7340
+        'p_vendor' => array(
7341 7341
         'sortable' => 1,
7342 7342
         'separator' => '<br/>',
7343
-      ),
7344
-      'p_model' => array(
7343
+        ),
7344
+        'p_model' => array(
7345 7345
         'sortable' => 0,
7346 7346
         'separator' => '',
7347
-      ),
7348
-      'p_ncpus' => array(
7347
+        ),
7348
+        'p_ncpus' => array(
7349 7349
         'sortable' => 0,
7350 7350
         'separator' => '',
7351
-      ),
7352
-      'phpcode_1' => array(
7351
+        ),
7352
+        'phpcode_1' => array(
7353 7353
         'separator' => '',
7354
-      ),
7355
-      'os_name' => array(
7354
+        ),
7355
+        'os_name' => array(
7356 7356
         'sortable' => 1,
7357 7357
         'separator' => '<br/>',
7358
-      ),
7359
-      'os_version' => array(
7358
+        ),
7359
+        'os_version' => array(
7360 7360
         'sortable' => 0,
7361 7361
         'separator' => '',
7362
-      ),
7362
+        ),
7363 7363
     ),
7364 7364
     'default' => 'expavg_credit',
7365
-  ));
7366
-  $handler->override_option('pane_title', '');
7367
-  $handler->override_option('pane_description', '');
7368
-  $handler->override_option('pane_category', array(
7365
+    ));
7366
+    $handler->override_option('pane_title', '');
7367
+    $handler->override_option('pane_description', '');
7368
+    $handler->override_option('pane_category', array(
7369 7369
     'name' => 'View panes',
7370 7370
     'weight' => 0,
7371
-  ));
7372
-  $handler->override_option('allow', array(
7371
+    ));
7372
+    $handler->override_option('allow', array(
7373 7373
     'use_pager' => FALSE,
7374 7374
     'items_per_page' => FALSE,
7375 7375
     'offset' => FALSE,
@@ -7379,27 +7379,27 @@  discard block
 block discarded – undo
7379 7379
     'title_override' => FALSE,
7380 7380
     'exposed_form' => FALSE,
7381 7381
     'fields_override' => FALSE,
7382
-  ));
7383
-  $handler->override_option('argument_input', array());
7384
-  $handler->override_option('link_to_view', 0);
7385
-  $handler->override_option('inherit_panels_path', 0);
7382
+    ));
7383
+    $handler->override_option('argument_input', array());
7384
+    $handler->override_option('link_to_view', 0);
7385
+    $handler->override_option('inherit_panels_path', 0);
7386 7386
 
7387
-  $views[$view->name] = $view;
7387
+    $views[$view->name] = $view;
7388 7388
 
7389
-  // Exported view: boinc_host_tasks_all
7390
-  $view = new view;
7391
-  $view->name = 'boinc_host_tasks_all';
7392
-  $view->description = 'A list of all tasks for the given host';
7393
-  $view->tag = '';
7394
-  $view->base_table = 'result';
7395
-  $view->core = 0;
7396
-  $view->api_version = '2';
7397
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
7398
-  $handler = $view->new_display('default', 'Defaults', 'default');
7399
-  $handler->override_option('fields', array(
7389
+    // Exported view: boinc_host_tasks_all
7390
+    $view = new view;
7391
+    $view->name = 'boinc_host_tasks_all';
7392
+    $view->description = 'A list of all tasks for the given host';
7393
+    $view->tag = '';
7394
+    $view->base_table = 'result';
7395
+    $view->core = 0;
7396
+    $view->api_version = '2';
7397
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
7398
+    $handler = $view->new_display('default', 'Defaults', 'default');
7399
+    $handler->override_option('fields', array(
7400 7400
     'name' => array(
7401
-      'label' => 'Name',
7402
-      'alter' => array(
7401
+        'label' => 'Name',
7402
+        'alter' => array(
7403 7403
         'alter_text' => 0,
7404 7404
         'text' => '',
7405 7405
         'make_link' => 0,
@@ -7418,20 +7418,20 @@  discard block
 block discarded – undo
7418 7418
         'ellipsis' => 1,
7419 7419
         'html' => 0,
7420 7420
         'strip_tags' => 0,
7421
-      ),
7422
-      'empty' => '',
7423
-      'hide_empty' => 0,
7424
-      'empty_zero' => 0,
7425
-      'hide_alter_empty' => 1,
7426
-      'exclude' => 1,
7427
-      'id' => 'name',
7428
-      'table' => 'result',
7429
-      'field' => 'name',
7430
-      'relationship' => 'none',
7421
+        ),
7422
+        'empty' => '',
7423
+        'hide_empty' => 0,
7424
+        'empty_zero' => 0,
7425
+        'hide_alter_empty' => 1,
7426
+        'exclude' => 1,
7427
+        'id' => 'name',
7428
+        'table' => 'result',
7429
+        'field' => 'name',
7430
+        'relationship' => 'none',
7431 7431
     ),
7432 7432
     'id' => array(
7433
-      'label' => 'Task ID',
7434
-      'alter' => array(
7433
+        'label' => 'Task ID',
7434
+        'alter' => array(
7435 7435
         'alter_text' => 0,
7436 7436
         'text' => '',
7437 7437
         'make_link' => 0,
@@ -7450,29 +7450,29 @@  discard block
 block discarded – undo
7450 7450
         'ellipsis' => 1,
7451 7451
         'html' => 0,
7452 7452
         'strip_tags' => 0,
7453
-      ),
7454
-      'empty' => '',
7455
-      'hide_empty' => 0,
7456
-      'empty_zero' => 0,
7457
-      'hide_alter_empty' => 1,
7458
-      'set_precision' => FALSE,
7459
-      'precision' => 0,
7460
-      'decimal' => '.',
7461
-      'separator' => '',
7462
-      'format_plural' => 0,
7463
-      'format_plural_singular' => '1',
7464
-      'format_plural_plural' => '@count',
7465
-      'prefix' => '',
7466
-      'suffix' => '',
7467
-      'exclude' => 0,
7468
-      'id' => 'id',
7469
-      'table' => 'result',
7470
-      'field' => 'id',
7471
-      'relationship' => 'none',
7453
+        ),
7454
+        'empty' => '',
7455
+        'hide_empty' => 0,
7456
+        'empty_zero' => 0,
7457
+        'hide_alter_empty' => 1,
7458
+        'set_precision' => FALSE,
7459
+        'precision' => 0,
7460
+        'decimal' => '.',
7461
+        'separator' => '',
7462
+        'format_plural' => 0,
7463
+        'format_plural_singular' => '1',
7464
+        'format_plural_plural' => '@count',
7465
+        'prefix' => '',
7466
+        'suffix' => '',
7467
+        'exclude' => 0,
7468
+        'id' => 'id',
7469
+        'table' => 'result',
7470
+        'field' => 'id',
7471
+        'relationship' => 'none',
7472 7472
     ),
7473 7473
     'workunitid' => array(
7474
-      'label' => 'Workunit ID',
7475
-      'alter' => array(
7474
+        'label' => 'Workunit ID',
7475
+        'alter' => array(
7476 7476
         'alter_text' => 0,
7477 7477
         'text' => '',
7478 7478
         'make_link' => 1,
@@ -7489,25 +7489,25 @@  discard block
 block discarded – undo
7489 7489
         'ellipsis' => 1,
7490 7490
         'html' => 0,
7491 7491
         'strip_tags' => 0,
7492
-      ),
7493
-      'empty' => '',
7494
-      'hide_empty' => 0,
7495
-      'empty_zero' => 0,
7496
-      'set_precision' => FALSE,
7497
-      'precision' => 0,
7498
-      'decimal' => '.',
7499
-      'separator' => '',
7500
-      'prefix' => '',
7501
-      'suffix' => '',
7502
-      'exclude' => 0,
7503
-      'id' => 'workunitid',
7504
-      'table' => 'result',
7505
-      'field' => 'workunitid',
7506
-      'relationship' => 'none',
7492
+        ),
7493
+        'empty' => '',
7494
+        'hide_empty' => 0,
7495
+        'empty_zero' => 0,
7496
+        'set_precision' => FALSE,
7497
+        'precision' => 0,
7498
+        'decimal' => '.',
7499
+        'separator' => '',
7500
+        'prefix' => '',
7501
+        'suffix' => '',
7502
+        'exclude' => 0,
7503
+        'id' => 'workunitid',
7504
+        'table' => 'result',
7505
+        'field' => 'workunitid',
7506
+        'relationship' => 'none',
7507 7507
     ),
7508 7508
     'sent_time' => array(
7509
-      'label' => 'Sent',
7510
-      'alter' => array(
7509
+        'label' => 'Sent',
7510
+        'alter' => array(
7511 7511
         'alter_text' => 0,
7512 7512
         'text' => '',
7513 7513
         'make_link' => 0,
@@ -7524,21 +7524,21 @@  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
-      'date_format' => 'custom',
7532
-      'custom_date_format' => 'j M Y G:i:s e',
7533
-      'exclude' => 1,
7534
-      'id' => 'sent_time',
7535
-      'table' => 'result',
7536
-      'field' => 'sent_time',
7537
-      'relationship' => 'none',
7527
+        ),
7528
+        'empty' => '',
7529
+        'hide_empty' => 0,
7530
+        'empty_zero' => 0,
7531
+        'date_format' => 'custom',
7532
+        'custom_date_format' => 'j M Y G:i:s e',
7533
+        'exclude' => 1,
7534
+        'id' => 'sent_time',
7535
+        'table' => 'result',
7536
+        'field' => 'sent_time',
7537
+        'relationship' => 'none',
7538 7538
     ),
7539 7539
     'received_time' => array(
7540
-      'label' => 'Received time',
7541
-      'alter' => array(
7540
+        'label' => 'Received time',
7541
+        'alter' => array(
7542 7542
         'alter_text' => 0,
7543 7543
         'text' => '',
7544 7544
         'make_link' => 0,
@@ -7555,21 +7555,21 @@  discard block
 block discarded – undo
7555 7555
         'ellipsis' => 1,
7556 7556
         'html' => 0,
7557 7557
         'strip_tags' => 0,
7558
-      ),
7559
-      'empty' => '',
7560
-      'hide_empty' => 0,
7561
-      'empty_zero' => 0,
7562
-      'date_format' => 'small',
7563
-      'custom_date_format' => '',
7564
-      'exclude' => 1,
7565
-      'id' => 'received_time',
7566
-      'table' => 'result',
7567
-      'field' => 'received_time',
7568
-      'relationship' => 'none',
7558
+        ),
7559
+        'empty' => '',
7560
+        'hide_empty' => 0,
7561
+        'empty_zero' => 0,
7562
+        'date_format' => 'small',
7563
+        'custom_date_format' => '',
7564
+        'exclude' => 1,
7565
+        'id' => 'received_time',
7566
+        'table' => 'result',
7567
+        'field' => 'received_time',
7568
+        'relationship' => 'none',
7569 7569
     ),
7570 7570
     'report_deadline' => array(
7571
-      'label' => 'Report deadline',
7572
-      'alter' => array(
7571
+        'label' => 'Report deadline',
7572
+        'alter' => array(
7573 7573
         'alter_text' => 0,
7574 7574
         'text' => '',
7575 7575
         'make_link' => 0,
@@ -7586,21 +7586,21 @@  discard block
 block discarded – undo
7586 7586
         'ellipsis' => 1,
7587 7587
         'html' => 0,
7588 7588
         'strip_tags' => 0,
7589
-      ),
7590
-      'empty' => '',
7591
-      'hide_empty' => 0,
7592
-      'empty_zero' => 0,
7593
-      'date_format' => 'small',
7594
-      'custom_date_format' => '',
7595
-      'exclude' => 1,
7596
-      'id' => 'report_deadline',
7597
-      'table' => 'result',
7598
-      'field' => 'report_deadline',
7599
-      'relationship' => 'none',
7589
+        ),
7590
+        'empty' => '',
7591
+        'hide_empty' => 0,
7592
+        'empty_zero' => 0,
7593
+        'date_format' => 'small',
7594
+        'custom_date_format' => '',
7595
+        'exclude' => 1,
7596
+        'id' => 'report_deadline',
7597
+        'table' => 'result',
7598
+        'field' => 'report_deadline',
7599
+        'relationship' => 'none',
7600 7600
     ),
7601 7601
     'phpcode_3' => array(
7602
-      'label' => 'Sent',
7603
-      'alter' => array(
7602
+        'label' => 'Sent',
7603
+        'alter' => array(
7604 7604
         'alter_text' => 0,
7605 7605
         'text' => '',
7606 7606
         'make_link' => 0,
@@ -7619,24 +7619,24 @@  discard block
 block discarded – undo
7619 7619
         'ellipsis' => 1,
7620 7620
         'html' => 0,
7621 7621
         'strip_tags' => 0,
7622
-      ),
7623
-      'empty' => '',
7624
-      'hide_empty' => 0,
7625
-      'empty_zero' => 0,
7626
-      'hide_alter_empty' => 1,
7627
-      'value' => '<?php
7622
+        ),
7623
+        'empty' => '',
7624
+        'hide_empty' => 0,
7625
+        'empty_zero' => 0,
7626
+        'hide_alter_empty' => 1,
7627
+        'value' => '<?php
7628 7628
   require_boinc(\'util\');
7629 7629
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
7630 7630
 ?>',
7631
-      'exclude' => 0,
7632
-      'id' => 'phpcode_3',
7633
-      'table' => 'customfield',
7634
-      'field' => 'phpcode',
7635
-      'relationship' => 'none',
7631
+        'exclude' => 0,
7632
+        'id' => 'phpcode_3',
7633
+        'table' => 'customfield',
7634
+        'field' => 'phpcode',
7635
+        'relationship' => 'none',
7636 7636
     ),
7637 7637
     'phpcode' => array(
7638
-      'label' => 'Time reported or deadline',
7639
-      'alter' => array(
7638
+        'label' => 'Time reported or deadline',
7639
+        'alter' => array(
7640 7640
         'alter_text' => 0,
7641 7641
         'text' => '',
7642 7642
         'make_link' => 0,
@@ -7655,24 +7655,24 @@  discard block
 block discarded – undo
7655 7655
         'ellipsis' => 1,
7656 7656
         'html' => 0,
7657 7657
         'strip_tags' => 0,
7658
-      ),
7659
-      'empty' => '',
7660
-      'hide_empty' => 0,
7661
-      'empty_zero' => 0,
7662
-      'hide_alter_empty' => 1,
7663
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
7664
-      'exclude' => 0,
7665
-      'id' => 'phpcode',
7666
-      'table' => 'customfield',
7667
-      'field' => 'phpcode',
7668
-      'override' => array(
7658
+        ),
7659
+        'empty' => '',
7660
+        'hide_empty' => 0,
7661
+        'empty_zero' => 0,
7662
+        'hide_alter_empty' => 1,
7663
+        'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
7664
+        'exclude' => 0,
7665
+        'id' => 'phpcode',
7666
+        'table' => 'customfield',
7667
+        'field' => 'phpcode',
7668
+        'override' => array(
7669 7669
         'button' => 'Override',
7670
-      ),
7671
-      'relationship' => 'none',
7670
+        ),
7671
+        'relationship' => 'none',
7672 7672
     ),
7673 7673
     'server_state' => array(
7674
-      'label' => 'Server state',
7675
-      'alter' => array(
7674
+        'label' => 'Server state',
7675
+        'alter' => array(
7676 7676
         'alter_text' => 0,
7677 7677
         'text' => '',
7678 7678
         'make_link' => 0,
@@ -7689,25 +7689,25 @@  discard block
 block discarded – undo
7689 7689
         'ellipsis' => 1,
7690 7690
         'html' => 0,
7691 7691
         'strip_tags' => 0,
7692
-      ),
7693
-      'empty' => '',
7694
-      'hide_empty' => 0,
7695
-      'empty_zero' => 0,
7696
-      'set_precision' => FALSE,
7697
-      'precision' => 0,
7698
-      'decimal' => '.',
7699
-      'separator' => '',
7700
-      'prefix' => '',
7701
-      'suffix' => '',
7702
-      'exclude' => 1,
7703
-      'id' => 'server_state',
7704
-      'table' => 'result',
7705
-      'field' => 'server_state',
7706
-      'relationship' => 'none',
7692
+        ),
7693
+        'empty' => '',
7694
+        'hide_empty' => 0,
7695
+        'empty_zero' => 0,
7696
+        'set_precision' => FALSE,
7697
+        'precision' => 0,
7698
+        'decimal' => '.',
7699
+        'separator' => '',
7700
+        'prefix' => '',
7701
+        'suffix' => '',
7702
+        'exclude' => 1,
7703
+        'id' => 'server_state',
7704
+        'table' => 'result',
7705
+        'field' => 'server_state',
7706
+        'relationship' => 'none',
7707 7707
     ),
7708 7708
     'outcome' => array(
7709
-      'label' => 'Outcome',
7710
-      'alter' => array(
7709
+        'label' => 'Outcome',
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' => 'outcome',
7739
-      'table' => 'result',
7740
-      'field' => 'outcome',
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' => 'outcome',
7739
+        'table' => 'result',
7740
+        'field' => 'outcome',
7741
+        'relationship' => 'none',
7742 7742
     ),
7743 7743
     'client_state' => array(
7744
-      'label' => 'Client state',
7745
-      'alter' => array(
7744
+        'label' => 'Client state',
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' => 'client_state',
7774
-      'table' => 'result',
7775
-      'field' => 'client_state',
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' => 'client_state',
7774
+        'table' => 'result',
7775
+        'field' => 'client_state',
7776
+        'relationship' => 'none',
7777 7777
     ),
7778 7778
     'validate_state' => array(
7779
-      'label' => 'Validation state',
7780
-      'alter' => array(
7779
+        'label' => 'Validation 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' => 'validate_state',
7809
-      'table' => 'result',
7810
-      'field' => 'validate_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' => 'validate_state',
7809
+        'table' => 'result',
7810
+        'field' => 'validate_state',
7811
+        'relationship' => 'none',
7812 7812
     ),
7813 7813
     'exit_status' => array(
7814
-      'label' => 'Exit status',
7815
-      'alter' => array(
7814
+        'label' => 'Exit status',
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' => 'exit_status',
7844
-      'table' => 'result',
7845
-      'field' => 'exit_status',
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' => 'exit_status',
7844
+        'table' => 'result',
7845
+        'field' => 'exit_status',
7846
+        'relationship' => 'none',
7847 7847
     ),
7848 7848
     'phpcode_1' => array(
7849
-      'label' => 'Status',
7850
-      'alter' => array(
7849
+        'label' => 'Status',
7850
+        'alter' => array(
7851 7851
         'alter_text' => 0,
7852 7852
         'text' => '',
7853 7853
         'make_link' => 0,
@@ -7864,11 +7864,11 @@  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
-      'value' => '<?php
7867
+        ),
7868
+        'empty' => '',
7869
+        'hide_empty' => 0,
7870
+        'empty_zero' => 0,
7871
+        'value' => '<?php
7872 7872
   require_boinc(\'result\');
7873 7873
   $result = new stdClass();
7874 7874
   $result->server_state = $data->result_server_state;
@@ -7878,18 +7878,18 @@  discard block
 block discarded – undo
7878 7878
   $result->exit_status = $data->result_exit_status;
7879 7879
   return state_string($result);
7880 7880
 ?>',
7881
-      'exclude' => 0,
7882
-      'id' => 'phpcode_1',
7883
-      'table' => 'customfield',
7884
-      'field' => 'phpcode',
7885
-      'override' => array(
7881
+        'exclude' => 0,
7882
+        'id' => 'phpcode_1',
7883
+        'table' => 'customfield',
7884
+        'field' => 'phpcode',
7885
+        'override' => array(
7886 7886
         'button' => 'Override',
7887
-      ),
7888
-      'relationship' => 'none',
7887
+        ),
7888
+        'relationship' => 'none',
7889 7889
     ),
7890 7890
     'elapsed_time' => array(
7891
-      'label' => 'Run time',
7892
-      'alter' => array(
7891
+        'label' => 'Run time',
7892
+        'alter' => array(
7893 7893
         'alter_text' => 0,
7894 7894
         'text' => '',
7895 7895
         'make_link' => 0,
@@ -7908,29 +7908,29 @@  discard block
 block discarded – undo
7908 7908
         'ellipsis' => 1,
7909 7909
         'html' => 0,
7910 7910
         'strip_tags' => 0,
7911
-      ),
7912
-      'empty' => '',
7913
-      'hide_empty' => 0,
7914
-      'empty_zero' => 0,
7915
-      'hide_alter_empty' => 1,
7916
-      'set_precision' => 1,
7917
-      'precision' => '2',
7918
-      'decimal' => '.',
7919
-      'separator' => ',',
7920
-      'format_plural' => 0,
7921
-      'format_plural_singular' => '1',
7922
-      'format_plural_plural' => '@count',
7923
-      'prefix' => '',
7924
-      'suffix' => '',
7925
-      'exclude' => 0,
7926
-      'id' => 'elapsed_time',
7927
-      'table' => 'result',
7928
-      'field' => 'elapsed_time',
7929
-      'relationship' => 'none',
7911
+        ),
7912
+        'empty' => '',
7913
+        'hide_empty' => 0,
7914
+        'empty_zero' => 0,
7915
+        'hide_alter_empty' => 1,
7916
+        'set_precision' => 1,
7917
+        'precision' => '2',
7918
+        'decimal' => '.',
7919
+        'separator' => ',',
7920
+        'format_plural' => 0,
7921
+        'format_plural_singular' => '1',
7922
+        'format_plural_plural' => '@count',
7923
+        'prefix' => '',
7924
+        'suffix' => '',
7925
+        'exclude' => 0,
7926
+        'id' => 'elapsed_time',
7927
+        'table' => 'result',
7928
+        'field' => 'elapsed_time',
7929
+        'relationship' => 'none',
7930 7930
     ),
7931 7931
     'cpu_time' => array(
7932
-      'label' => 'CPU time',
7933
-      'alter' => array(
7932
+        'label' => 'CPU time',
7933
+        'alter' => array(
7934 7934
         'alter_text' => 0,
7935 7935
         'text' => '',
7936 7936
         'make_link' => 0,
@@ -7949,29 +7949,29 @@  discard block
 block discarded – undo
7949 7949
         'ellipsis' => 1,
7950 7950
         'html' => 0,
7951 7951
         'strip_tags' => 0,
7952
-      ),
7953
-      'empty' => '',
7954
-      'hide_empty' => 0,
7955
-      'empty_zero' => 0,
7956
-      'hide_alter_empty' => 1,
7957
-      'set_precision' => 1,
7958
-      'precision' => '2',
7959
-      'decimal' => '.',
7960
-      'separator' => ',',
7961
-      'format_plural' => 0,
7962
-      'format_plural_singular' => '1',
7963
-      'format_plural_plural' => '@count',
7964
-      'prefix' => '',
7965
-      'suffix' => '',
7966
-      'exclude' => 0,
7967
-      'id' => 'cpu_time',
7968
-      'table' => 'result',
7969
-      'field' => 'cpu_time',
7970
-      'relationship' => 'none',
7952
+        ),
7953
+        'empty' => '',
7954
+        'hide_empty' => 0,
7955
+        'empty_zero' => 0,
7956
+        'hide_alter_empty' => 1,
7957
+        'set_precision' => 1,
7958
+        'precision' => '2',
7959
+        'decimal' => '.',
7960
+        'separator' => ',',
7961
+        'format_plural' => 0,
7962
+        'format_plural_singular' => '1',
7963
+        'format_plural_plural' => '@count',
7964
+        'prefix' => '',
7965
+        'suffix' => '',
7966
+        'exclude' => 0,
7967
+        'id' => 'cpu_time',
7968
+        'table' => 'result',
7969
+        'field' => 'cpu_time',
7970
+        'relationship' => 'none',
7971 7971
     ),
7972 7972
     'granted_credit' => array(
7973
-      'label' => 'Granted credit',
7974
-      'alter' => array(
7973
+        'label' => 'Granted credit',
7974
+        'alter' => array(
7975 7975
         'alter_text' => 0,
7976 7976
         'text' => '',
7977 7977
         'make_link' => 0,
@@ -7990,29 +7990,29 @@  discard block
 block discarded – undo
7990 7990
         'ellipsis' => 1,
7991 7991
         'html' => 0,
7992 7992
         'strip_tags' => 0,
7993
-      ),
7994
-      'empty' => '',
7995
-      'hide_empty' => 0,
7996
-      'empty_zero' => 0,
7997
-      'hide_alter_empty' => 0,
7998
-      'set_precision' => 1,
7999
-      'precision' => '0',
8000
-      'decimal' => '.',
8001
-      'separator' => ',',
8002
-      'format_plural' => 0,
8003
-      'format_plural_singular' => '1',
8004
-      'format_plural_plural' => '@count',
8005
-      'prefix' => '',
8006
-      'suffix' => '',
8007
-      'exclude' => 0,
8008
-      'id' => 'granted_credit',
8009
-      'table' => 'result',
8010
-      'field' => 'granted_credit',
8011
-      'relationship' => 'none',
7993
+        ),
7994
+        'empty' => '',
7995
+        'hide_empty' => 0,
7996
+        'empty_zero' => 0,
7997
+        'hide_alter_empty' => 0,
7998
+        'set_precision' => 1,
7999
+        'precision' => '0',
8000
+        'decimal' => '.',
8001
+        'separator' => ',',
8002
+        'format_plural' => 0,
8003
+        'format_plural_singular' => '1',
8004
+        'format_plural_plural' => '@count',
8005
+        'prefix' => '',
8006
+        'suffix' => '',
8007
+        'exclude' => 0,
8008
+        'id' => 'granted_credit',
8009
+        'table' => 'result',
8010
+        'field' => 'granted_credit',
8011
+        'relationship' => 'none',
8012 8012
     ),
8013 8013
     'appid' => array(
8014
-      'label' => 'Application ID',
8015
-      'alter' => array(
8014
+        'label' => 'Application ID',
8015
+        'alter' => array(
8016 8016
         'alter_text' => 0,
8017 8017
         'text' => '',
8018 8018
         'make_link' => 0,
@@ -8031,29 +8031,29 @@  discard block
 block discarded – undo
8031 8031
         'ellipsis' => 1,
8032 8032
         'html' => 0,
8033 8033
         'strip_tags' => 0,
8034
-      ),
8035
-      'empty' => '',
8036
-      'hide_empty' => 0,
8037
-      'empty_zero' => 0,
8038
-      'hide_alter_empty' => 1,
8039
-      'set_precision' => FALSE,
8040
-      'precision' => 0,
8041
-      'decimal' => '.',
8042
-      'separator' => '',
8043
-      'format_plural' => 0,
8044
-      'format_plural_singular' => '1',
8045
-      'format_plural_plural' => '@count',
8046
-      'prefix' => '',
8047
-      'suffix' => '',
8048
-      'exclude' => 1,
8049
-      'id' => 'appid',
8050
-      'table' => 'result',
8051
-      'field' => 'appid',
8052
-      'relationship' => 'none',
8034
+        ),
8035
+        'empty' => '',
8036
+        'hide_empty' => 0,
8037
+        'empty_zero' => 0,
8038
+        'hide_alter_empty' => 1,
8039
+        'set_precision' => FALSE,
8040
+        'precision' => 0,
8041
+        'decimal' => '.',
8042
+        'separator' => '',
8043
+        'format_plural' => 0,
8044
+        'format_plural_singular' => '1',
8045
+        'format_plural_plural' => '@count',
8046
+        'prefix' => '',
8047
+        'suffix' => '',
8048
+        'exclude' => 1,
8049
+        'id' => 'appid',
8050
+        'table' => 'result',
8051
+        'field' => 'appid',
8052
+        'relationship' => 'none',
8053 8053
     ),
8054 8054
     'app_version_id' => array(
8055
-      'label' => 'Application version',
8056
-      'alter' => array(
8055
+        'label' => 'Application version',
8056
+        'alter' => array(
8057 8057
         'alter_text' => 0,
8058 8058
         'text' => '',
8059 8059
         'make_link' => 0,
@@ -8070,25 +8070,25 @@  discard block
 block discarded – undo
8070 8070
         'ellipsis' => 1,
8071 8071
         'html' => 0,
8072 8072
         'strip_tags' => 0,
8073
-      ),
8074
-      'empty' => '',
8075
-      'hide_empty' => 0,
8076
-      'empty_zero' => 0,
8077
-      'set_precision' => FALSE,
8078
-      'precision' => 0,
8079
-      'decimal' => '.',
8080
-      'separator' => '',
8081
-      'prefix' => '',
8082
-      'suffix' => '',
8083
-      'exclude' => 1,
8084
-      'id' => 'app_version_id',
8085
-      'table' => 'result',
8086
-      'field' => 'app_version_id',
8087
-      'relationship' => 'none',
8073
+        ),
8074
+        'empty' => '',
8075
+        'hide_empty' => 0,
8076
+        'empty_zero' => 0,
8077
+        'set_precision' => FALSE,
8078
+        'precision' => 0,
8079
+        'decimal' => '.',
8080
+        'separator' => '',
8081
+        'prefix' => '',
8082
+        'suffix' => '',
8083
+        'exclude' => 1,
8084
+        'id' => 'app_version_id',
8085
+        'table' => 'result',
8086
+        'field' => 'app_version_id',
8087
+        'relationship' => 'none',
8088 8088
     ),
8089 8089
     'phpcode_2' => array(
8090
-      'label' => 'Application',
8091
-      'alter' => array(
8090
+        'label' => 'Application',
8091
+        'alter' => array(
8092 8092
         'alter_text' => 0,
8093 8093
         'text' => '',
8094 8094
         'make_link' => 0,
@@ -8107,55 +8107,55 @@  discard block
 block discarded – undo
8107 8107
         'ellipsis' => 1,
8108 8108
         'html' => 0,
8109 8109
         'strip_tags' => 0,
8110
-      ),
8111
-      'empty' => '',
8112
-      'hide_empty' => 0,
8113
-      'empty_zero' => 0,
8114
-      'hide_alter_empty' => 1,
8115
-      'value' => '<?php
8110
+        ),
8111
+        'empty' => '',
8112
+        'hide_empty' => 0,
8113
+        'empty_zero' => 0,
8114
+        'hide_alter_empty' => 1,
8115
+        'value' => '<?php
8116 8116
   require_boinc(\'result\');
8117 8117
   $result = new stdClass();
8118 8118
   $result->appid = $data->result_appid;
8119 8119
   $result->app_version_id = $data->result_app_version_id;
8120 8120
   return app_version_string($result);
8121 8121
 ?>',
8122
-      'exclude' => 0,
8123
-      'id' => 'phpcode_2',
8124
-      'table' => 'customfield',
8125
-      'field' => 'phpcode',
8126
-      'override' => array(
8122
+        'exclude' => 0,
8123
+        'id' => 'phpcode_2',
8124
+        'table' => 'customfield',
8125
+        'field' => 'phpcode',
8126
+        'override' => array(
8127 8127
         'button' => 'Override',
8128
-      ),
8129
-      'relationship' => 'none',
8128
+        ),
8129
+        'relationship' => 'none',
8130 8130
     ),
8131
-  ));
8132
-  $handler->override_option('arguments', array(
8131
+    ));
8132
+    $handler->override_option('arguments', array(
8133 8133
     'hostid' => array(
8134
-      'default_action' => 'not found',
8135
-      'style_plugin' => 'default_summary',
8136
-      'style_options' => array(),
8137
-      'wildcard' => 'all',
8138
-      'wildcard_substitution' => 'All',
8139
-      'title' => 'Tasks for computer %1',
8140
-      'breadcrumb' => '',
8141
-      'default_argument_type' => 'fixed',
8142
-      'default_argument' => '',
8143
-      'validate_type' => 'numeric',
8144
-      'validate_fail' => 'not found',
8145
-      'id' => 'hostid',
8146
-      'table' => 'result',
8147
-      'field' => 'hostid',
8148
-      'validate_user_argument_type' => 'uid',
8149
-      'validate_user_roles' => array(
8134
+        'default_action' => 'not found',
8135
+        'style_plugin' => 'default_summary',
8136
+        'style_options' => array(),
8137
+        'wildcard' => 'all',
8138
+        'wildcard_substitution' => 'All',
8139
+        'title' => 'Tasks for computer %1',
8140
+        'breadcrumb' => '',
8141
+        'default_argument_type' => 'fixed',
8142
+        'default_argument' => '',
8143
+        'validate_type' => 'numeric',
8144
+        'validate_fail' => 'not found',
8145
+        'id' => 'hostid',
8146
+        'table' => 'result',
8147
+        'field' => 'hostid',
8148
+        'validate_user_argument_type' => 'uid',
8149
+        'validate_user_roles' => array(
8150 8150
         2 => 0,
8151 8151
         3 => 0,
8152
-      ),
8153
-      'relationship' => 'none',
8154
-      'default_options_div_prefix' => '',
8155
-      'default_argument_fixed' => '',
8156
-      'default_argument_user' => 0,
8157
-      'default_argument_php' => '',
8158
-      'validate_argument_node_type' => array(
8152
+        ),
8153
+        'relationship' => 'none',
8154
+        'default_options_div_prefix' => '',
8155
+        'default_argument_fixed' => '',
8156
+        'default_argument_user' => 0,
8157
+        'default_argument_php' => '',
8158
+        'validate_argument_node_type' => array(
8159 8159
         'forum' => 0,
8160 8160
         'job_post' => 0,
8161 8161
         'news' => 0,
@@ -8163,687 +8163,687 @@  discard block
 block discarded – undo
8163 8163
         'profile' => 0,
8164 8164
         'story' => 0,
8165 8165
         'team' => 0,
8166
-      ),
8167
-      'validate_argument_node_access' => 0,
8168
-      'validate_argument_nid_type' => 'nid',
8169
-      'validate_argument_vocabulary' => array(
8166
+        ),
8167
+        'validate_argument_node_access' => 0,
8168
+        'validate_argument_nid_type' => 'nid',
8169
+        'validate_argument_vocabulary' => array(
8170 8170
         1 => 0,
8171
-      ),
8172
-      'validate_argument_type' => 'tid',
8173
-      'validate_argument_transform' => 0,
8174
-      'validate_user_restrict_roles' => 0,
8175
-      'validate_argument_php' => '',
8176
-    ),
8177
-  ));
8178
-  $handler->override_option('access', array(
8171
+        ),
8172
+        'validate_argument_type' => 'tid',
8173
+        'validate_argument_transform' => 0,
8174
+        'validate_user_restrict_roles' => 0,
8175
+        'validate_argument_php' => '',
8176
+    ),
8177
+    ));
8178
+    $handler->override_option('access', array(
8179 8179
     'type' => 'none',
8180
-  ));
8181
-  $handler->override_option('cache', array(
8180
+    ));
8181
+    $handler->override_option('cache', array(
8182 8182
     'type' => 'none',
8183
-  ));
8184
-  $handler->override_option('items_per_page', 20);
8185
-  $handler->override_option('use_pager', '1');
8186
-  $handler->override_option('style_plugin', 'table');
8187
-  $handler->override_option('style_options', array(
8183
+    ));
8184
+    $handler->override_option('items_per_page', 20);
8185
+    $handler->override_option('use_pager', '1');
8186
+    $handler->override_option('style_plugin', 'table');
8187
+    $handler->override_option('style_options', array(
8188 8188
     'grouping' => '',
8189 8189
     'override' => 1,
8190 8190
     'sticky' => 1,
8191 8191
     'order' => 'desc',
8192 8192
     'summary' => '',
8193 8193
     'columns' => array(
8194
-      'id' => 'id',
8195
-      'workunitid' => 'workunitid',
8196
-      'sent_time' => 'sent_time',
8197
-      'received_time' => 'received_time',
8198
-      'report_deadline' => 'report_deadline',
8199
-      'phpcode_3' => 'phpcode_3',
8200
-      'phpcode' => 'phpcode',
8201
-      'server_state' => 'server_state',
8202
-      'outcome' => 'outcome',
8203
-      'client_state' => 'client_state',
8204
-      'validate_state' => 'validate_state',
8205
-      'exit_status' => 'exit_status',
8206
-      'phpcode_1' => 'phpcode_1',
8207
-      'elapsed_time' => 'elapsed_time',
8208
-      'cpu_time' => 'cpu_time',
8209
-      'claimed_credit_1' => 'claimed_credit_1',
8210
-      'granted_credit' => 'granted_credit',
8211
-      'app_version_id' => 'app_version_id',
8212
-      'phpcode_2' => 'phpcode_2',
8194
+        'id' => 'id',
8195
+        'workunitid' => 'workunitid',
8196
+        'sent_time' => 'sent_time',
8197
+        'received_time' => 'received_time',
8198
+        'report_deadline' => 'report_deadline',
8199
+        'phpcode_3' => 'phpcode_3',
8200
+        'phpcode' => 'phpcode',
8201
+        'server_state' => 'server_state',
8202
+        'outcome' => 'outcome',
8203
+        'client_state' => 'client_state',
8204
+        'validate_state' => 'validate_state',
8205
+        'exit_status' => 'exit_status',
8206
+        'phpcode_1' => 'phpcode_1',
8207
+        'elapsed_time' => 'elapsed_time',
8208
+        'cpu_time' => 'cpu_time',
8209
+        'claimed_credit_1' => 'claimed_credit_1',
8210
+        'granted_credit' => 'granted_credit',
8211
+        'app_version_id' => 'app_version_id',
8212
+        'phpcode_2' => 'phpcode_2',
8213 8213
     ),
8214 8214
     'info' => array(
8215
-      'id' => array(
8215
+        'id' => array(
8216 8216
         'sortable' => 1,
8217 8217
         'separator' => '',
8218
-      ),
8219
-      'workunitid' => array(
8218
+        ),
8219
+        'workunitid' => array(
8220 8220
         'sortable' => 1,
8221 8221
         'separator' => '',
8222
-      ),
8223
-      'sent_time' => array(
8222
+        ),
8223
+        'sent_time' => array(
8224 8224
         'sortable' => 1,
8225 8225
         'separator' => '',
8226
-      ),
8227
-      'received_time' => array(
8226
+        ),
8227
+        'received_time' => array(
8228 8228
         'sortable' => 1,
8229 8229
         'separator' => '',
8230
-      ),
8231
-      'report_deadline' => array(
8230
+        ),
8231
+        'report_deadline' => array(
8232 8232
         'sortable' => 1,
8233 8233
         'separator' => '',
8234
-      ),
8235
-      'phpcode_3' => array(
8234
+        ),
8235
+        'phpcode_3' => array(
8236 8236
         'separator' => '',
8237
-      ),
8238
-      'phpcode' => array(
8237
+        ),
8238
+        'phpcode' => array(
8239 8239
         'separator' => '',
8240
-      ),
8241
-      'server_state' => array(
8240
+        ),
8241
+        'server_state' => array(
8242 8242
         'sortable' => 0,
8243 8243
         'separator' => '',
8244
-      ),
8245
-      'outcome' => array(
8244
+        ),
8245
+        'outcome' => array(
8246 8246
         'sortable' => 0,
8247 8247
         'separator' => '',
8248
-      ),
8249
-      'client_state' => array(
8248
+        ),
8249
+        'client_state' => array(
8250 8250
         'sortable' => 0,
8251 8251
         'separator' => '',
8252
-      ),
8253
-      'validate_state' => array(
8252
+        ),
8253
+        'validate_state' => array(
8254 8254
         'sortable' => 0,
8255 8255
         'separator' => '',
8256
-      ),
8257
-      'exit_status' => array(
8256
+        ),
8257
+        'exit_status' => array(
8258 8258
         'sortable' => 0,
8259 8259
         'separator' => '',
8260
-      ),
8261
-      'phpcode_1' => array(
8260
+        ),
8261
+        'phpcode_1' => array(
8262 8262
         'separator' => '',
8263
-      ),
8264
-      'elapsed_time' => array(
8263
+        ),
8264
+        'elapsed_time' => array(
8265 8265
         'sortable' => 1,
8266 8266
         'separator' => '',
8267
-      ),
8268
-      'cpu_time' => array(
8267
+        ),
8268
+        'cpu_time' => array(
8269 8269
         'sortable' => 1,
8270 8270
         'separator' => '',
8271
-      ),
8272
-      'claimed_credit_1' => array(
8271
+        ),
8272
+        'claimed_credit_1' => array(
8273 8273
         'sortable' => 1,
8274 8274
         'separator' => '',
8275
-      ),
8276
-      'granted_credit' => array(
8275
+        ),
8276
+        'granted_credit' => array(
8277 8277
         'sortable' => 1,
8278 8278
         'separator' => '',
8279
-      ),
8280
-      'app_version_id' => array(
8279
+        ),
8280
+        'app_version_id' => array(
8281 8281
         'sortable' => 1,
8282 8282
         'separator' => '',
8283
-      ),
8284
-      'phpcode_2' => array(
8283
+        ),
8284
+        'phpcode_2' => array(
8285 8285
         'separator' => '',
8286
-      ),
8286
+        ),
8287 8287
     ),
8288 8288
     'default' => 'id',
8289
-  ));
8290
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
8291
-  $handler->override_option('path', 'host/%/tasks/all');
8292
-  $handler->override_option('menu', array(
8289
+    ));
8290
+    $handler = $view->new_display('page', 'All tasks', 'page_1');
8291
+    $handler->override_option('path', 'host/%/tasks/all');
8292
+    $handler->override_option('menu', array(
8293 8293
     'type' => 'default tab',
8294 8294
     'title' => 'All tasks',
8295 8295
     'description' => 'Show all tasks associated with the host',
8296 8296
     'weight' => '0',
8297 8297
     'name' => 'navigation',
8298
-  ));
8299
-  $handler->override_option('tab_options', array(
8298
+    ));
8299
+    $handler->override_option('tab_options', array(
8300 8300
     'type' => 'tab',
8301 8301
     'title' => 'Tasks',
8302 8302
     'description' => 'Show all tasks',
8303 8303
     'weight' => '0',
8304 8304
     'name' => 'secondary-links',
8305
-  ));
8306
-  $handler = $view->new_display('page', 'Error', 'page_2');
8307
-  $handler->override_option('filters', array(
8305
+    ));
8306
+    $handler = $view->new_display('page', 'Error', 'page_2');
8307
+    $handler->override_option('filters', array(
8308 8308
     'server_state' => array(
8309
-      'operator' => '=',
8310
-      'value' => array(
8309
+        'operator' => '=',
8310
+        'value' => array(
8311 8311
         'value' => '5',
8312 8312
         'min' => '',
8313 8313
         'max' => '',
8314
-      ),
8315
-      'group' => '0',
8316
-      'exposed' => FALSE,
8317
-      'expose' => array(
8314
+        ),
8315
+        'group' => '0',
8316
+        'exposed' => FALSE,
8317
+        'expose' => array(
8318 8318
         'operator' => FALSE,
8319 8319
         'label' => '',
8320
-      ),
8321
-      'id' => 'server_state',
8322
-      'table' => 'result',
8323
-      'field' => 'server_state',
8324
-      'override' => array(
8320
+        ),
8321
+        'id' => 'server_state',
8322
+        'table' => 'result',
8323
+        'field' => 'server_state',
8324
+        'override' => array(
8325 8325
         'button' => 'Use default',
8326
-      ),
8327
-      'relationship' => 'none',
8326
+        ),
8327
+        'relationship' => 'none',
8328 8328
     ),
8329 8329
     'outcome' => array(
8330
-      'operator' => '>=',
8331
-      'value' => array(
8330
+        'operator' => '>=',
8331
+        'value' => array(
8332 8332
         'value' => '3',
8333 8333
         'min' => '',
8334 8334
         'max' => '',
8335
-      ),
8336
-      'group' => '0',
8337
-      'exposed' => FALSE,
8338
-      'expose' => array(
8335
+        ),
8336
+        'group' => '0',
8337
+        'exposed' => FALSE,
8338
+        'expose' => array(
8339 8339
         'operator' => FALSE,
8340 8340
         'label' => '',
8341
-      ),
8342
-      'id' => 'outcome',
8343
-      'table' => 'result',
8344
-      'field' => 'outcome',
8345
-      'override' => array(
8341
+        ),
8342
+        'id' => 'outcome',
8343
+        'table' => 'result',
8344
+        'field' => 'outcome',
8345
+        'override' => array(
8346 8346
         'button' => 'Use default',
8347
-      ),
8348
-      'relationship' => 'none',
8347
+        ),
8348
+        'relationship' => 'none',
8349 8349
     ),
8350 8350
     'outcome_1' => array(
8351
-      'operator' => 'not between',
8352
-      'value' => array(
8351
+        'operator' => 'not between',
8352
+        'value' => array(
8353 8353
         'value' => '',
8354 8354
         'min' => '4',
8355 8355
         'max' => '7',
8356
-      ),
8357
-      'group' => '0',
8358
-      'exposed' => FALSE,
8359
-      'expose' => array(
8356
+        ),
8357
+        'group' => '0',
8358
+        'exposed' => FALSE,
8359
+        'expose' => array(
8360 8360
         'operator' => FALSE,
8361 8361
         'label' => '',
8362
-      ),
8363
-      'id' => 'outcome_1',
8364
-      'table' => 'result',
8365
-      'field' => 'outcome',
8366
-      'override' => array(
8362
+        ),
8363
+        'id' => 'outcome_1',
8364
+        'table' => 'result',
8365
+        'field' => 'outcome',
8366
+        'override' => array(
8367 8367
         'button' => 'Use default',
8368
-      ),
8369
-      'relationship' => 'none',
8368
+        ),
8369
+        'relationship' => 'none',
8370 8370
     ),
8371 8371
     'outcome_2' => array(
8372
-      'operator' => '<=',
8373
-      'value' => array(
8372
+        'operator' => '<=',
8373
+        'value' => array(
8374 8374
         'value' => '7',
8375 8375
         'min' => '',
8376 8376
         'max' => '',
8377
-      ),
8378
-      'group' => '0',
8379
-      'exposed' => FALSE,
8380
-      'expose' => array(
8377
+        ),
8378
+        'group' => '0',
8379
+        'exposed' => FALSE,
8380
+        'expose' => array(
8381 8381
         'operator' => FALSE,
8382 8382
         'label' => '',
8383
-      ),
8384
-      'id' => 'outcome_2',
8385
-      'table' => 'result',
8386
-      'field' => 'outcome',
8387
-      'override' => array(
8383
+        ),
8384
+        'id' => 'outcome_2',
8385
+        'table' => 'result',
8386
+        'field' => 'outcome',
8387
+        'override' => array(
8388 8388
         'button' => 'Use default',
8389
-      ),
8390
-      'relationship' => 'none',
8389
+        ),
8390
+        'relationship' => 'none',
8391 8391
     ),
8392
-  ));
8393
-  $handler->override_option('path', 'host/%/tasks/error');
8394
-  $handler->override_option('menu', array(
8392
+    ));
8393
+    $handler->override_option('path', 'host/%/tasks/error');
8394
+    $handler->override_option('menu', array(
8395 8395
     'type' => 'tab',
8396 8396
     'title' => 'Error',
8397 8397
     'description' => 'Show tasks with errors associated with the host',
8398 8398
     'weight' => '5',
8399 8399
     'name' => 'navigation',
8400
-  ));
8401
-  $handler->override_option('tab_options', array(
8400
+    ));
8401
+    $handler->override_option('tab_options', array(
8402 8402
     'type' => 'none',
8403 8403
     'title' => '',
8404 8404
     'description' => '',
8405 8405
     'weight' => 0,
8406 8406
     'name' => 'navigation',
8407
-  ));
8408
-  $handler = $view->new_display('page', 'In progress', 'page_3');
8409
-  $handler->override_option('filters', array(
8407
+    ));
8408
+    $handler = $view->new_display('page', 'In progress', 'page_3');
8409
+    $handler->override_option('filters', array(
8410 8410
     'server_state' => array(
8411
-      'operator' => '=',
8412
-      'value' => array(
8411
+        'operator' => '=',
8412
+        'value' => array(
8413 8413
         'value' => '4',
8414 8414
         'min' => '',
8415 8415
         'max' => '',
8416
-      ),
8417
-      'group' => '0',
8418
-      'exposed' => FALSE,
8419
-      'expose' => array(
8416
+        ),
8417
+        'group' => '0',
8418
+        'exposed' => FALSE,
8419
+        'expose' => array(
8420 8420
         'operator' => FALSE,
8421 8421
         'label' => '',
8422
-      ),
8423
-      'id' => 'server_state',
8424
-      'table' => 'result',
8425
-      'field' => 'server_state',
8426
-      'override' => array(
8422
+        ),
8423
+        'id' => 'server_state',
8424
+        'table' => 'result',
8425
+        'field' => 'server_state',
8426
+        'override' => array(
8427 8427
         'button' => 'Use default',
8428
-      ),
8429
-      'relationship' => 'none',
8428
+        ),
8429
+        'relationship' => 'none',
8430 8430
     ),
8431
-  ));
8432
-  $handler->override_option('path', 'host/%/tasks/active');
8433
-  $handler->override_option('menu', array(
8431
+    ));
8432
+    $handler->override_option('path', 'host/%/tasks/active');
8433
+    $handler->override_option('menu', array(
8434 8434
     'type' => 'tab',
8435 8435
     'title' => 'In progress',
8436 8436
     'description' => 'Show tasks in progress associated with the host',
8437 8437
     'weight' => '1',
8438 8438
     'name' => 'navigation',
8439
-  ));
8440
-  $handler->override_option('tab_options', array(
8439
+    ));
8440
+    $handler->override_option('tab_options', array(
8441 8441
     'type' => 'none',
8442 8442
     'title' => '',
8443 8443
     'description' => '',
8444 8444
     'weight' => 0,
8445 8445
     'name' => 'navigation',
8446
-  ));
8447
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
8448
-  $handler->override_option('filters', array(
8446
+    ));
8447
+    $handler = $view->new_display('page', 'Invalidated', 'page_4');
8448
+    $handler->override_option('filters', array(
8449 8449
     'server_state' => array(
8450
-      'operator' => '=',
8451
-      'value' => array(
8450
+        'operator' => '=',
8451
+        'value' => array(
8452 8452
         'value' => '5',
8453 8453
         'min' => '',
8454 8454
         'max' => '',
8455
-      ),
8456
-      'group' => '0',
8457
-      'exposed' => FALSE,
8458
-      'expose' => array(
8455
+        ),
8456
+        'group' => '0',
8457
+        'exposed' => FALSE,
8458
+        'expose' => array(
8459 8459
         'operator' => FALSE,
8460 8460
         'label' => '',
8461
-      ),
8462
-      'id' => 'server_state',
8463
-      'table' => 'result',
8464
-      'field' => 'server_state',
8465
-      'override' => array(
8461
+        ),
8462
+        'id' => 'server_state',
8463
+        'table' => 'result',
8464
+        'field' => 'server_state',
8465
+        'override' => array(
8466 8466
         'button' => 'Use default',
8467
-      ),
8468
-      'relationship' => 'none',
8467
+        ),
8468
+        'relationship' => 'none',
8469 8469
     ),
8470 8470
     'views_or_begin_2' => array(
8471
-      'id' => 'views_or_begin_2',
8472
-      'table' => 'views_or',
8473
-      'field' => 'views_or_begin',
8471
+        'id' => 'views_or_begin_2',
8472
+        'table' => 'views_or',
8473
+        'field' => 'views_or_begin',
8474 8474
     ),
8475 8475
     'outcome' => array(
8476
-      'operator' => '=',
8477
-      'value' => array(
8476
+        'operator' => '=',
8477
+        'value' => array(
8478 8478
         'value' => '6',
8479 8479
         'min' => '',
8480 8480
         'max' => '',
8481
-      ),
8482
-      'group' => '0',
8483
-      'exposed' => FALSE,
8484
-      'expose' => array(
8481
+        ),
8482
+        'group' => '0',
8483
+        'exposed' => FALSE,
8484
+        'expose' => array(
8485 8485
         'operator' => FALSE,
8486 8486
         'label' => '',
8487
-      ),
8488
-      'id' => 'outcome',
8489
-      'table' => 'result',
8490
-      'field' => 'outcome',
8491
-      'override' => array(
8487
+        ),
8488
+        'id' => 'outcome',
8489
+        'table' => 'result',
8490
+        'field' => 'outcome',
8491
+        'override' => array(
8492 8492
         'button' => 'Use default',
8493
-      ),
8494
-      'relationship' => 'none',
8493
+        ),
8494
+        'relationship' => 'none',
8495 8495
     ),
8496 8496
     'views_or_next_3' => array(
8497
-      'id' => 'views_or_next_3',
8498
-      'table' => 'views_or',
8499
-      'field' => 'views_or_next',
8497
+        'id' => 'views_or_next_3',
8498
+        'table' => 'views_or',
8499
+        'field' => 'views_or_next',
8500 8500
     ),
8501 8501
     'outcome_1' => array(
8502
-      'operator' => '=',
8503
-      'value' => array(
8502
+        'operator' => '=',
8503
+        'value' => array(
8504 8504
         'value' => '1',
8505 8505
         'min' => '',
8506 8506
         'max' => '',
8507
-      ),
8508
-      'group' => '0',
8509
-      'exposed' => FALSE,
8510
-      'expose' => array(
8507
+        ),
8508
+        'group' => '0',
8509
+        'exposed' => FALSE,
8510
+        'expose' => array(
8511 8511
         'operator' => FALSE,
8512 8512
         'label' => '',
8513
-      ),
8514
-      'id' => 'outcome_1',
8515
-      'table' => 'result',
8516
-      'field' => 'outcome',
8517
-      'override' => array(
8513
+        ),
8514
+        'id' => 'outcome_1',
8515
+        'table' => 'result',
8516
+        'field' => 'outcome',
8517
+        'override' => array(
8518 8518
         'button' => 'Use default',
8519
-      ),
8520
-      'relationship' => 'none',
8519
+        ),
8520
+        'relationship' => 'none',
8521 8521
     ),
8522 8522
     'views_or_begin' => array(
8523
-      'id' => 'views_or_begin',
8524
-      'table' => 'views_or',
8525
-      'field' => 'views_or_begin',
8523
+        'id' => 'views_or_begin',
8524
+        'table' => 'views_or',
8525
+        'field' => 'views_or_begin',
8526 8526
     ),
8527 8527
     'validate_state' => array(
8528
-      'operator' => '=',
8529
-      'value' => array(
8528
+        'operator' => '=',
8529
+        'value' => array(
8530 8530
         'value' => '2',
8531 8531
         'min' => '',
8532 8532
         'max' => '',
8533
-      ),
8534
-      'group' => '0',
8535
-      'exposed' => FALSE,
8536
-      'expose' => array(
8533
+        ),
8534
+        'group' => '0',
8535
+        'exposed' => FALSE,
8536
+        'expose' => array(
8537 8537
         'operator' => FALSE,
8538 8538
         'label' => '',
8539
-      ),
8540
-      'id' => 'validate_state',
8541
-      'table' => 'result',
8542
-      'field' => 'validate_state',
8543
-      'override' => array(
8539
+        ),
8540
+        'id' => 'validate_state',
8541
+        'table' => 'result',
8542
+        'field' => 'validate_state',
8543
+        'override' => array(
8544 8544
         'button' => 'Use default',
8545
-      ),
8546
-      'relationship' => 'none',
8545
+        ),
8546
+        'relationship' => 'none',
8547 8547
     ),
8548 8548
     'views_or_next_4' => array(
8549
-      'id' => 'views_or_next_4',
8550
-      'table' => 'views_or',
8551
-      'field' => 'views_or_next',
8549
+        'id' => 'views_or_next_4',
8550
+        'table' => 'views_or',
8551
+        'field' => 'views_or_next',
8552 8552
     ),
8553 8553
     'validate_state_1' => array(
8554
-      'operator' => '=',
8555
-      'value' => array(
8554
+        'operator' => '=',
8555
+        'value' => array(
8556 8556
         'value' => '3',
8557 8557
         'min' => '',
8558 8558
         'max' => '',
8559
-      ),
8560
-      'group' => '0',
8561
-      'exposed' => FALSE,
8562
-      'expose' => array(
8559
+        ),
8560
+        'group' => '0',
8561
+        'exposed' => FALSE,
8562
+        'expose' => array(
8563 8563
         'operator' => FALSE,
8564 8564
         'label' => '',
8565
-      ),
8566
-      'id' => 'validate_state_1',
8567
-      'table' => 'result',
8568
-      'field' => 'validate_state',
8569
-      'override' => array(
8565
+        ),
8566
+        'id' => 'validate_state_1',
8567
+        'table' => 'result',
8568
+        'field' => 'validate_state',
8569
+        'override' => array(
8570 8570
         'button' => 'Use default',
8571
-      ),
8572
-      'relationship' => 'none',
8571
+        ),
8572
+        'relationship' => 'none',
8573 8573
     ),
8574 8574
     'views_or_next' => array(
8575
-      'id' => 'views_or_next',
8576
-      'table' => 'views_or',
8577
-      'field' => 'views_or_next',
8575
+        'id' => 'views_or_next',
8576
+        'table' => 'views_or',
8577
+        'field' => 'views_or_next',
8578 8578
     ),
8579 8579
     'validate_state_2' => array(
8580
-      'operator' => '=',
8581
-      'value' => array(
8580
+        'operator' => '=',
8581
+        'value' => array(
8582 8582
         'value' => '5',
8583 8583
         'min' => '',
8584 8584
         'max' => '',
8585
-      ),
8586
-      'group' => '0',
8587
-      'exposed' => FALSE,
8588
-      'expose' => array(
8585
+        ),
8586
+        'group' => '0',
8587
+        'exposed' => FALSE,
8588
+        'expose' => array(
8589 8589
         'operator' => FALSE,
8590 8590
         'label' => '',
8591
-      ),
8592
-      'id' => 'validate_state_2',
8593
-      'table' => 'result',
8594
-      'field' => 'validate_state',
8595
-      'override' => array(
8591
+        ),
8592
+        'id' => 'validate_state_2',
8593
+        'table' => 'result',
8594
+        'field' => 'validate_state',
8595
+        'override' => array(
8596 8596
         'button' => 'Use default',
8597
-      ),
8598
-      'relationship' => 'none',
8597
+        ),
8598
+        'relationship' => 'none',
8599 8599
     ),
8600 8600
     'views_or_end_3' => array(
8601
-      'id' => 'views_or_end_3',
8602
-      'table' => 'views_or',
8603
-      'field' => 'views_or_end',
8601
+        'id' => 'views_or_end_3',
8602
+        'table' => 'views_or',
8603
+        'field' => 'views_or_end',
8604 8604
     ),
8605 8605
     'views_or_end_2' => array(
8606
-      'id' => 'views_or_end_2',
8607
-      'table' => 'views_or',
8608
-      'field' => 'views_or_end',
8606
+        'id' => 'views_or_end_2',
8607
+        'table' => 'views_or',
8608
+        'field' => 'views_or_end',
8609 8609
     ),
8610
-  ));
8611
-  $handler->override_option('path', 'host/%/tasks/invalid');
8612
-  $handler->override_option('menu', array(
8610
+    ));
8611
+    $handler->override_option('path', 'host/%/tasks/invalid');
8612
+    $handler->override_option('menu', array(
8613 8613
     'type' => 'tab',
8614 8614
     'title' => 'Invalid',
8615 8615
     'description' => 'Show invalidated tasks associated with the host',
8616 8616
     'weight' => '4',
8617 8617
     'name' => 'navigation',
8618
-  ));
8619
-  $handler->override_option('tab_options', array(
8618
+    ));
8619
+    $handler->override_option('tab_options', array(
8620 8620
     'type' => 'none',
8621 8621
     'title' => '',
8622 8622
     'description' => '',
8623 8623
     'weight' => 0,
8624 8624
     'name' => 'navigation',
8625
-  ));
8626
-  $handler = $view->new_display('page', 'Pending', 'page_5');
8627
-  $handler->override_option('filters', array(
8625
+    ));
8626
+    $handler = $view->new_display('page', 'Pending', 'page_5');
8627
+    $handler->override_option('filters', array(
8628 8628
     'server_state' => array(
8629
-      'operator' => '=',
8630
-      'value' => array(
8629
+        'operator' => '=',
8630
+        'value' => array(
8631 8631
         'value' => '5',
8632 8632
         'min' => '',
8633 8633
         'max' => '',
8634
-      ),
8635
-      'group' => '0',
8636
-      'exposed' => FALSE,
8637
-      'expose' => array(
8634
+        ),
8635
+        'group' => '0',
8636
+        'exposed' => FALSE,
8637
+        'expose' => array(
8638 8638
         'operator' => FALSE,
8639 8639
         'label' => '',
8640
-      ),
8641
-      'id' => 'server_state',
8642
-      'table' => 'result',
8643
-      'field' => 'server_state',
8644
-      'override' => array(
8640
+        ),
8641
+        'id' => 'server_state',
8642
+        'table' => 'result',
8643
+        'field' => 'server_state',
8644
+        'override' => array(
8645 8645
         'button' => 'Use default',
8646
-      ),
8647
-      'relationship' => 'none',
8646
+        ),
8647
+        'relationship' => 'none',
8648 8648
     ),
8649 8649
     'outcome' => array(
8650
-      'operator' => '=',
8651
-      'value' => array(
8650
+        'operator' => '=',
8651
+        'value' => array(
8652 8652
         'value' => '1',
8653 8653
         'min' => '',
8654 8654
         'max' => '',
8655
-      ),
8656
-      'group' => '0',
8657
-      'exposed' => FALSE,
8658
-      'expose' => array(
8655
+        ),
8656
+        'group' => '0',
8657
+        'exposed' => FALSE,
8658
+        'expose' => array(
8659 8659
         'operator' => FALSE,
8660 8660
         'label' => '',
8661
-      ),
8662
-      'id' => 'outcome',
8663
-      'table' => 'result',
8664
-      'field' => 'outcome',
8665
-      'override' => array(
8661
+        ),
8662
+        'id' => 'outcome',
8663
+        'table' => 'result',
8664
+        'field' => 'outcome',
8665
+        'override' => array(
8666 8666
         'button' => 'Use default',
8667
-      ),
8668
-      'relationship' => 'none',
8667
+        ),
8668
+        'relationship' => 'none',
8669 8669
     ),
8670 8670
     'validate_state' => array(
8671
-      'operator' => '>=',
8672
-      'value' => array(
8671
+        'operator' => '>=',
8672
+        'value' => array(
8673 8673
         'value' => '0',
8674 8674
         'min' => '',
8675 8675
         'max' => '',
8676
-      ),
8677
-      'group' => '0',
8678
-      'exposed' => FALSE,
8679
-      'expose' => array(
8676
+        ),
8677
+        'group' => '0',
8678
+        'exposed' => FALSE,
8679
+        'expose' => array(
8680 8680
         'operator' => FALSE,
8681 8681
         'label' => '',
8682
-      ),
8683
-      'id' => 'validate_state',
8684
-      'table' => 'result',
8685
-      'field' => 'validate_state',
8686
-      'override' => array(
8682
+        ),
8683
+        'id' => 'validate_state',
8684
+        'table' => 'result',
8685
+        'field' => 'validate_state',
8686
+        'override' => array(
8687 8687
         'button' => 'Use default',
8688
-      ),
8689
-      'relationship' => 'none',
8688
+        ),
8689
+        'relationship' => 'none',
8690 8690
     ),
8691 8691
     'validate_state_1' => array(
8692
-      'operator' => 'not between',
8693
-      'value' => array(
8692
+        'operator' => 'not between',
8693
+        'value' => array(
8694 8694
         'value' => '',
8695 8695
         'min' => '0',
8696 8696
         'max' => '4',
8697
-      ),
8698
-      'group' => '0',
8699
-      'exposed' => FALSE,
8700
-      'expose' => array(
8697
+        ),
8698
+        'group' => '0',
8699
+        'exposed' => FALSE,
8700
+        'expose' => array(
8701 8701
         'operator' => FALSE,
8702 8702
         'label' => '',
8703
-      ),
8704
-      'id' => 'validate_state_1',
8705
-      'table' => 'result',
8706
-      'field' => 'validate_state',
8707
-      'override' => array(
8703
+        ),
8704
+        'id' => 'validate_state_1',
8705
+        'table' => 'result',
8706
+        'field' => 'validate_state',
8707
+        'override' => array(
8708 8708
         'button' => 'Use default',
8709
-      ),
8710
-      'relationship' => 'none',
8709
+        ),
8710
+        'relationship' => 'none',
8711 8711
     ),
8712 8712
     'validate_state_2' => array(
8713
-      'operator' => '<=',
8714
-      'value' => array(
8713
+        'operator' => '<=',
8714
+        'value' => array(
8715 8715
         'value' => '4',
8716 8716
         'min' => '',
8717 8717
         'max' => '',
8718
-      ),
8719
-      'group' => '0',
8720
-      'exposed' => FALSE,
8721
-      'expose' => array(
8718
+        ),
8719
+        'group' => '0',
8720
+        'exposed' => FALSE,
8721
+        'expose' => array(
8722 8722
         'operator' => FALSE,
8723 8723
         'label' => '',
8724
-      ),
8725
-      'id' => 'validate_state_2',
8726
-      'table' => 'result',
8727
-      'field' => 'validate_state',
8728
-      'override' => array(
8724
+        ),
8725
+        'id' => 'validate_state_2',
8726
+        'table' => 'result',
8727
+        'field' => 'validate_state',
8728
+        'override' => array(
8729 8729
         'button' => 'Use default',
8730
-      ),
8731
-      'relationship' => 'none',
8730
+        ),
8731
+        'relationship' => 'none',
8732 8732
     ),
8733
-  ));
8734
-  $handler->override_option('path', 'host/%/tasks/pending');
8735
-  $handler->override_option('menu', array(
8733
+    ));
8734
+    $handler->override_option('path', 'host/%/tasks/pending');
8735
+    $handler->override_option('menu', array(
8736 8736
     'type' => 'tab',
8737 8737
     'title' => 'Pending',
8738 8738
     'description' => 'Show tasks associated with the host with results pending',
8739 8739
     'weight' => '2',
8740 8740
     'name' => 'navigation',
8741
-  ));
8742
-  $handler->override_option('tab_options', array(
8741
+    ));
8742
+    $handler->override_option('tab_options', array(
8743 8743
     'type' => 'none',
8744 8744
     'title' => '',
8745 8745
     'description' => '',
8746 8746
     'weight' => 0,
8747 8747
     'name' => 'navigation',
8748
-  ));
8749
-  $handler = $view->new_display('page', 'Validated', 'page_6');
8750
-  $handler->override_option('filters', array(
8748
+    ));
8749
+    $handler = $view->new_display('page', 'Validated', 'page_6');
8750
+    $handler->override_option('filters', array(
8751 8751
     'server_state' => array(
8752
-      'operator' => '=',
8753
-      'value' => array(
8752
+        'operator' => '=',
8753
+        'value' => array(
8754 8754
         'value' => '5',
8755 8755
         'min' => '',
8756 8756
         'max' => '',
8757
-      ),
8758
-      'group' => '0',
8759
-      'exposed' => FALSE,
8760
-      'expose' => array(
8757
+        ),
8758
+        'group' => '0',
8759
+        'exposed' => FALSE,
8760
+        'expose' => array(
8761 8761
         'operator' => FALSE,
8762 8762
         'label' => '',
8763
-      ),
8764
-      'id' => 'server_state',
8765
-      'table' => 'result',
8766
-      'field' => 'server_state',
8767
-      'override' => array(
8763
+        ),
8764
+        'id' => 'server_state',
8765
+        'table' => 'result',
8766
+        'field' => 'server_state',
8767
+        'override' => array(
8768 8768
         'button' => 'Use default',
8769
-      ),
8770
-      'relationship' => 'none',
8769
+        ),
8770
+        'relationship' => 'none',
8771 8771
     ),
8772 8772
     'outcome' => array(
8773
-      'operator' => '=',
8774
-      'value' => array(
8773
+        'operator' => '=',
8774
+        'value' => array(
8775 8775
         'value' => '1',
8776 8776
         'min' => '',
8777 8777
         'max' => '',
8778
-      ),
8779
-      'group' => '0',
8780
-      'exposed' => FALSE,
8781
-      'expose' => array(
8778
+        ),
8779
+        'group' => '0',
8780
+        'exposed' => FALSE,
8781
+        'expose' => array(
8782 8782
         'operator' => FALSE,
8783 8783
         'label' => '',
8784
-      ),
8785
-      'id' => 'outcome',
8786
-      'table' => 'result',
8787
-      'field' => 'outcome',
8788
-      'override' => array(
8784
+        ),
8785
+        'id' => 'outcome',
8786
+        'table' => 'result',
8787
+        'field' => 'outcome',
8788
+        'override' => array(
8789 8789
         'button' => 'Use default',
8790
-      ),
8791
-      'relationship' => 'none',
8790
+        ),
8791
+        'relationship' => 'none',
8792 8792
     ),
8793 8793
     'validate_state' => array(
8794
-      'operator' => '=',
8795
-      'value' => array(
8794
+        'operator' => '=',
8795
+        'value' => array(
8796 8796
         'value' => '1',
8797 8797
         'min' => '',
8798 8798
         'max' => '',
8799
-      ),
8800
-      'group' => '0',
8801
-      'exposed' => FALSE,
8802
-      'expose' => array(
8799
+        ),
8800
+        'group' => '0',
8801
+        'exposed' => FALSE,
8802
+        'expose' => array(
8803 8803
         'operator' => FALSE,
8804 8804
         'label' => '',
8805
-      ),
8806
-      'id' => 'validate_state',
8807
-      'table' => 'result',
8808
-      'field' => 'validate_state',
8809
-      'override' => array(
8805
+        ),
8806
+        'id' => 'validate_state',
8807
+        'table' => 'result',
8808
+        'field' => 'validate_state',
8809
+        'override' => array(
8810 8810
         'button' => 'Use default',
8811
-      ),
8812
-      'relationship' => 'none',
8811
+        ),
8812
+        'relationship' => 'none',
8813 8813
     ),
8814
-  ));
8815
-  $handler->override_option('path', 'host/%/tasks/valid');
8816
-  $handler->override_option('menu', array(
8814
+    ));
8815
+    $handler->override_option('path', 'host/%/tasks/valid');
8816
+    $handler->override_option('menu', array(
8817 8817
     'type' => 'tab',
8818 8818
     'title' => 'Valid',
8819 8819
     'description' => 'Show validated tasks associated with the host',
8820 8820
     'weight' => '3',
8821 8821
     'name' => 'navigation',
8822
-  ));
8823
-  $handler->override_option('tab_options', array(
8822
+    ));
8823
+    $handler->override_option('tab_options', array(
8824 8824
     'type' => 'none',
8825 8825
     'title' => '',
8826 8826
     'description' => '',
8827 8827
     'weight' => 0,
8828 8828
     'name' => 'navigation',
8829
-  ));
8829
+    ));
8830 8830
 
8831
-  $views[$view->name] = $view;
8831
+    $views[$view->name] = $view;
8832 8832
 
8833
-  // Exported view: boinc_task
8834
-  $view = new view;
8835
-  $view->name = 'boinc_task';
8836
-  $view->description = 'Details for a specific task';
8837
-  $view->tag = '';
8838
-  $view->base_table = 'result';
8839
-  $view->core = 0;
8840
-  $view->api_version = '2';
8841
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
8842
-  $handler = $view->new_display('default', 'Defaults', 'default');
8843
-  $handler->override_option('fields', array(
8833
+    // Exported view: boinc_task
8834
+    $view = new view;
8835
+    $view->name = 'boinc_task';
8836
+    $view->description = 'Details for a specific task';
8837
+    $view->tag = '';
8838
+    $view->base_table = 'result';
8839
+    $view->core = 0;
8840
+    $view->api_version = '2';
8841
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
8842
+    $handler = $view->new_display('default', 'Defaults', 'default');
8843
+    $handler->override_option('fields', array(
8844 8844
     'name' => array(
8845
-      'label' => 'Name',
8846
-      'alter' => array(
8845
+        'label' => 'Name',
8846
+        'alter' => array(
8847 8847
         'alter_text' => 0,
8848 8848
         'text' => '',
8849 8849
         'make_link' => 0,
@@ -8860,19 +8860,19 @@  discard block
 block discarded – undo
8860 8860
         'ellipsis' => 1,
8861 8861
         'html' => 0,
8862 8862
         'strip_tags' => 0,
8863
-      ),
8864
-      'empty' => '',
8865
-      'hide_empty' => 0,
8866
-      'empty_zero' => 0,
8867
-      'exclude' => 0,
8868
-      'id' => 'name',
8869
-      'table' => 'result',
8870
-      'field' => 'name',
8871
-      'relationship' => 'none',
8863
+        ),
8864
+        'empty' => '',
8865
+        'hide_empty' => 0,
8866
+        'empty_zero' => 0,
8867
+        'exclude' => 0,
8868
+        'id' => 'name',
8869
+        'table' => 'result',
8870
+        'field' => 'name',
8871
+        'relationship' => 'none',
8872 8872
     ),
8873 8873
     'workunitid' => array(
8874
-      'label' => 'Workunit ID',
8875
-      'alter' => array(
8874
+        'label' => 'Workunit ID',
8875
+        'alter' => array(
8876 8876
         'alter_text' => 0,
8877 8877
         'text' => '',
8878 8878
         'make_link' => 1,
@@ -8889,25 +8889,25 @@  discard block
 block discarded – undo
8889 8889
         'ellipsis' => 1,
8890 8890
         'html' => 0,
8891 8891
         'strip_tags' => 0,
8892
-      ),
8893
-      'empty' => '',
8894
-      'hide_empty' => 0,
8895
-      'empty_zero' => 0,
8896
-      'set_precision' => FALSE,
8897
-      'precision' => 0,
8898
-      'decimal' => '.',
8899
-      'separator' => '',
8900
-      'prefix' => '',
8901
-      'suffix' => '',
8902
-      'exclude' => 0,
8903
-      'id' => 'workunitid',
8904
-      'table' => 'result',
8905
-      'field' => 'workunitid',
8906
-      'relationship' => 'none',
8892
+        ),
8893
+        'empty' => '',
8894
+        'hide_empty' => 0,
8895
+        'empty_zero' => 0,
8896
+        'set_precision' => FALSE,
8897
+        'precision' => 0,
8898
+        'decimal' => '.',
8899
+        'separator' => '',
8900
+        'prefix' => '',
8901
+        'suffix' => '',
8902
+        'exclude' => 0,
8903
+        'id' => 'workunitid',
8904
+        'table' => 'result',
8905
+        'field' => 'workunitid',
8906
+        'relationship' => 'none',
8907 8907
     ),
8908 8908
     'create_time' => array(
8909
-      'label' => 'Created',
8910
-      'alter' => array(
8909
+        'label' => 'Created',
8910
+        'alter' => array(
8911 8911
         'alter_text' => 0,
8912 8912
         'text' => '',
8913 8913
         'make_link' => 0,
@@ -8926,22 +8926,22 @@  discard block
 block discarded – undo
8926 8926
         'ellipsis' => 1,
8927 8927
         'html' => 0,
8928 8928
         'strip_tags' => 0,
8929
-      ),
8930
-      'empty' => '',
8931
-      'hide_empty' => 0,
8932
-      'empty_zero' => 0,
8933
-      'hide_alter_empty' => 1,
8934
-      'date_format' => 'custom',
8935
-      'custom_date_format' => 'j M Y G:i:s T',
8936
-      'exclude' => 0,
8937
-      'id' => 'create_time',
8938
-      'table' => 'result',
8939
-      'field' => 'create_time',
8940
-      'relationship' => 'none',
8929
+        ),
8930
+        'empty' => '',
8931
+        'hide_empty' => 0,
8932
+        'empty_zero' => 0,
8933
+        'hide_alter_empty' => 1,
8934
+        'date_format' => 'custom',
8935
+        'custom_date_format' => 'j M Y G:i:s T',
8936
+        'exclude' => 0,
8937
+        'id' => 'create_time',
8938
+        'table' => 'result',
8939
+        'field' => 'create_time',
8940
+        'relationship' => 'none',
8941 8941
     ),
8942 8942
     'sent_time' => array(
8943
-      'label' => 'Sent',
8944
-      'alter' => array(
8943
+        'label' => 'Sent',
8944
+        'alter' => array(
8945 8945
         'alter_text' => 0,
8946 8946
         'text' => '',
8947 8947
         'make_link' => 0,
@@ -8960,22 +8960,22 @@  discard block
 block discarded – undo
8960 8960
         'ellipsis' => 1,
8961 8961
         'html' => 0,
8962 8962
         'strip_tags' => 0,
8963
-      ),
8964
-      'empty' => '',
8965
-      'hide_empty' => 0,
8966
-      'empty_zero' => 0,
8967
-      'hide_alter_empty' => 1,
8968
-      'date_format' => 'custom',
8969
-      'custom_date_format' => 'j M Y G:i:s T',
8970
-      'exclude' => 0,
8971
-      'id' => 'sent_time',
8972
-      'table' => 'result',
8973
-      'field' => 'sent_time',
8974
-      'relationship' => 'none',
8963
+        ),
8964
+        'empty' => '',
8965
+        'hide_empty' => 0,
8966
+        'empty_zero' => 0,
8967
+        'hide_alter_empty' => 1,
8968
+        'date_format' => 'custom',
8969
+        'custom_date_format' => 'j M Y G:i:s T',
8970
+        'exclude' => 0,
8971
+        'id' => 'sent_time',
8972
+        'table' => 'result',
8973
+        'field' => 'sent_time',
8974
+        'relationship' => 'none',
8975 8975
     ),
8976 8976
     'report_deadline' => array(
8977
-      'label' => 'Report deadline',
8978
-      'alter' => array(
8977
+        'label' => 'Report deadline',
8978
+        'alter' => array(
8979 8979
         'alter_text' => 0,
8980 8980
         'text' => '',
8981 8981
         'make_link' => 0,
@@ -8994,22 +8994,22 @@  discard block
 block discarded – undo
8994 8994
         'ellipsis' => 1,
8995 8995
         'html' => 0,
8996 8996
         'strip_tags' => 0,
8997
-      ),
8998
-      'empty' => '',
8999
-      'hide_empty' => 0,
9000
-      'empty_zero' => 0,
9001
-      'hide_alter_empty' => 1,
9002
-      'date_format' => 'custom',
9003
-      'custom_date_format' => 'j M Y G:i:s T',
9004
-      'exclude' => 0,
9005
-      'id' => 'report_deadline',
9006
-      'table' => 'result',
9007
-      'field' => 'report_deadline',
9008
-      'relationship' => 'none',
8997
+        ),
8998
+        'empty' => '',
8999
+        'hide_empty' => 0,
9000
+        'empty_zero' => 0,
9001
+        'hide_alter_empty' => 1,
9002
+        'date_format' => 'custom',
9003
+        'custom_date_format' => 'j M Y G:i:s T',
9004
+        'exclude' => 0,
9005
+        'id' => 'report_deadline',
9006
+        'table' => 'result',
9007
+        'field' => 'report_deadline',
9008
+        'relationship' => 'none',
9009 9009
     ),
9010 9010
     'received_time' => array(
9011
-      'label' => 'Received',
9012
-      'alter' => array(
9011
+        'label' => 'Received',
9012
+        'alter' => array(
9013 9013
         'alter_text' => 0,
9014 9014
         'text' => '',
9015 9015
         'make_link' => 0,
@@ -9028,22 +9028,22 @@  discard block
 block discarded – undo
9028 9028
         'ellipsis' => 1,
9029 9029
         'html' => 0,
9030 9030
         'strip_tags' => 0,
9031
-      ),
9032
-      'empty' => '',
9033
-      'hide_empty' => 0,
9034
-      'empty_zero' => 0,
9035
-      'hide_alter_empty' => 1,
9036
-      'date_format' => 'custom',
9037
-      'custom_date_format' => 'j M Y G:i:s T',
9038
-      'exclude' => 0,
9039
-      'id' => 'received_time',
9040
-      'table' => 'result',
9041
-      'field' => 'received_time',
9042
-      'relationship' => 'none',
9031
+        ),
9032
+        'empty' => '',
9033
+        'hide_empty' => 0,
9034
+        'empty_zero' => 0,
9035
+        'hide_alter_empty' => 1,
9036
+        'date_format' => 'custom',
9037
+        'custom_date_format' => 'j M Y G:i:s T',
9038
+        'exclude' => 0,
9039
+        'id' => 'received_time',
9040
+        'table' => 'result',
9041
+        'field' => 'received_time',
9042
+        'relationship' => 'none',
9043 9043
     ),
9044 9044
     'server_state' => array(
9045
-      'label' => 'Server state',
9046
-      'alter' => array(
9045
+        'label' => 'Server state',
9046
+        'alter' => array(
9047 9047
         'alter_text' => 0,
9048 9048
         'text' => '',
9049 9049
         'make_link' => 0,
@@ -9062,29 +9062,29 @@  discard block
 block discarded – undo
9062 9062
         'ellipsis' => 1,
9063 9063
         'html' => 0,
9064 9064
         'strip_tags' => 0,
9065
-      ),
9066
-      'empty' => '',
9067
-      'hide_empty' => 0,
9068
-      'empty_zero' => 0,
9069
-      'hide_alter_empty' => 1,
9070
-      'set_precision' => FALSE,
9071
-      'precision' => 0,
9072
-      'decimal' => '.',
9073
-      'separator' => '',
9074
-      'format_plural' => 0,
9075
-      'format_plural_singular' => '1',
9076
-      'format_plural_plural' => '@count',
9077
-      'prefix' => '',
9078
-      'suffix' => '',
9079
-      'exclude' => 1,
9080
-      'id' => 'server_state',
9081
-      'table' => 'result',
9082
-      'field' => 'server_state',
9083
-      'relationship' => 'none',
9065
+        ),
9066
+        'empty' => '',
9067
+        'hide_empty' => 0,
9068
+        'empty_zero' => 0,
9069
+        'hide_alter_empty' => 1,
9070
+        'set_precision' => FALSE,
9071
+        'precision' => 0,
9072
+        'decimal' => '.',
9073
+        'separator' => '',
9074
+        'format_plural' => 0,
9075
+        'format_plural_singular' => '1',
9076
+        'format_plural_plural' => '@count',
9077
+        'prefix' => '',
9078
+        'suffix' => '',
9079
+        'exclude' => 1,
9080
+        'id' => 'server_state',
9081
+        'table' => 'result',
9082
+        'field' => 'server_state',
9083
+        'relationship' => 'none',
9084 9084
     ),
9085 9085
     'phpcode_3' => array(
9086
-      'label' => 'Server state',
9087
-      'alter' => array(
9086
+        'label' => 'Server state',
9087
+        'alter' => array(
9088 9088
         'alter_text' => 0,
9089 9089
         'text' => '',
9090 9090
         'make_link' => 0,
@@ -9103,26 +9103,26 @@  discard block
 block discarded – undo
9103 9103
         'ellipsis' => 1,
9104 9104
         'html' => 0,
9105 9105
         'strip_tags' => 0,
9106
-      ),
9107
-      'empty' => '',
9108
-      'hide_empty' => 0,
9109
-      'empty_zero' => 0,
9110
-      'hide_alter_empty' => 1,
9111
-      'value' => '<?php
9106
+        ),
9107
+        'empty' => '',
9108
+        'hide_empty' => 0,
9109
+        'empty_zero' => 0,
9110
+        'hide_alter_empty' => 1,
9111
+        'value' => '<?php
9112 9112
   require_boinc(array(\'result\', \'util\'));
9113 9113
   $result = new stdClass();
9114 9114
   $result->server_state = $data->result_server_state;
9115 9115
   return result_server_state_string($result);
9116 9116
 ?>',
9117
-      'exclude' => 0,
9118
-      'id' => 'phpcode_3',
9119
-      'table' => 'customfield',
9120
-      'field' => 'phpcode',
9121
-      'relationship' => 'none',
9117
+        'exclude' => 0,
9118
+        'id' => 'phpcode_3',
9119
+        'table' => 'customfield',
9120
+        'field' => 'phpcode',
9121
+        'relationship' => 'none',
9122 9122
     ),
9123 9123
     'outcome' => array(
9124
-      'label' => 'Outcome',
9125
-      'alter' => array(
9124
+        'label' => 'Outcome',
9125
+        'alter' => array(
9126 9126
         'alter_text' => 0,
9127 9127
         'text' => '',
9128 9128
         'make_link' => 0,
@@ -9141,29 +9141,29 @@  discard block
 block discarded – undo
9141 9141
         'ellipsis' => 1,
9142 9142
         'html' => 0,
9143 9143
         'strip_tags' => 0,
9144
-      ),
9145
-      'empty' => '',
9146
-      'hide_empty' => 0,
9147
-      'empty_zero' => 0,
9148
-      'hide_alter_empty' => 1,
9149
-      'set_precision' => FALSE,
9150
-      'precision' => 0,
9151
-      'decimal' => '.',
9152
-      'separator' => '',
9153
-      'format_plural' => 0,
9154
-      'format_plural_singular' => '1',
9155
-      'format_plural_plural' => '@count',
9156
-      'prefix' => '',
9157
-      'suffix' => '',
9158
-      'exclude' => 1,
9159
-      'id' => 'outcome',
9160
-      'table' => 'result',
9161
-      'field' => 'outcome',
9162
-      'relationship' => 'none',
9144
+        ),
9145
+        'empty' => '',
9146
+        'hide_empty' => 0,
9147
+        'empty_zero' => 0,
9148
+        'hide_alter_empty' => 1,
9149
+        'set_precision' => FALSE,
9150
+        'precision' => 0,
9151
+        'decimal' => '.',
9152
+        'separator' => '',
9153
+        'format_plural' => 0,
9154
+        'format_plural_singular' => '1',
9155
+        'format_plural_plural' => '@count',
9156
+        'prefix' => '',
9157
+        'suffix' => '',
9158
+        'exclude' => 1,
9159
+        'id' => 'outcome',
9160
+        'table' => 'result',
9161
+        'field' => 'outcome',
9162
+        'relationship' => 'none',
9163 9163
     ),
9164 9164
     'phpcode_4' => array(
9165
-      'label' => 'Outcome',
9166
-      'alter' => array(
9165
+        'label' => 'Outcome',
9166
+        'alter' => array(
9167 9167
         'alter_text' => 0,
9168 9168
         'text' => '',
9169 9169
         'make_link' => 0,
@@ -9182,26 +9182,26 @@  discard block
 block discarded – undo
9182 9182
         'ellipsis' => 1,
9183 9183
         'html' => 0,
9184 9184
         'strip_tags' => 0,
9185
-      ),
9186
-      'empty' => '',
9187
-      'hide_empty' => 0,
9188
-      'empty_zero' => 0,
9189
-      'hide_alter_empty' => 1,
9190
-      'value' => '<?php
9185
+        ),
9186
+        'empty' => '',
9187
+        'hide_empty' => 0,
9188
+        'empty_zero' => 0,
9189
+        'hide_alter_empty' => 1,
9190
+        'value' => '<?php
9191 9191
   require_boinc(array(\'result\', \'util\'));
9192 9192
   $result = new stdClass();
9193 9193
   $result->outcome = $data->result_outcome;
9194 9194
   return result_outcome_string($result);
9195 9195
 ?>',
9196
-      'exclude' => 0,
9197
-      'id' => 'phpcode_4',
9198
-      'table' => 'customfield',
9199
-      'field' => 'phpcode',
9200
-      'relationship' => 'none',
9196
+        'exclude' => 0,
9197
+        'id' => 'phpcode_4',
9198
+        'table' => 'customfield',
9199
+        'field' => 'phpcode',
9200
+        'relationship' => 'none',
9201 9201
     ),
9202 9202
     'client_state' => array(
9203
-      'label' => 'Client state',
9204
-      'alter' => array(
9203
+        'label' => 'Client state',
9204
+        'alter' => array(
9205 9205
         'alter_text' => 0,
9206 9206
         'text' => '',
9207 9207
         'make_link' => 0,
@@ -9220,29 +9220,29 @@  discard block
 block discarded – undo
9220 9220
         'ellipsis' => 1,
9221 9221
         'html' => 0,
9222 9222
         'strip_tags' => 0,
9223
-      ),
9224
-      'empty' => '',
9225
-      'hide_empty' => 0,
9226
-      'empty_zero' => 0,
9227
-      'hide_alter_empty' => 1,
9228
-      'set_precision' => FALSE,
9229
-      'precision' => 0,
9230
-      'decimal' => '.',
9231
-      'separator' => '',
9232
-      'format_plural' => 0,
9233
-      'format_plural_singular' => '1',
9234
-      'format_plural_plural' => '@count',
9235
-      'prefix' => '',
9236
-      'suffix' => '',
9237
-      'exclude' => 1,
9238
-      'id' => 'client_state',
9239
-      'table' => 'result',
9240
-      'field' => 'client_state',
9241
-      'relationship' => 'none',
9223
+        ),
9224
+        'empty' => '',
9225
+        'hide_empty' => 0,
9226
+        'empty_zero' => 0,
9227
+        'hide_alter_empty' => 1,
9228
+        'set_precision' => FALSE,
9229
+        'precision' => 0,
9230
+        'decimal' => '.',
9231
+        'separator' => '',
9232
+        'format_plural' => 0,
9233
+        'format_plural_singular' => '1',
9234
+        'format_plural_plural' => '@count',
9235
+        'prefix' => '',
9236
+        'suffix' => '',
9237
+        'exclude' => 1,
9238
+        'id' => 'client_state',
9239
+        'table' => 'result',
9240
+        'field' => 'client_state',
9241
+        'relationship' => 'none',
9242 9242
     ),
9243 9243
     'phpcode_5' => array(
9244
-      'label' => 'Client state',
9245
-      'alter' => array(
9244
+        'label' => 'Client state',
9245
+        'alter' => array(
9246 9246
         'alter_text' => 0,
9247 9247
         'text' => '',
9248 9248
         'make_link' => 0,
@@ -9261,26 +9261,26 @@  discard block
 block discarded – undo
9261 9261
         'ellipsis' => 1,
9262 9262
         'html' => 0,
9263 9263
         'strip_tags' => 0,
9264
-      ),
9265
-      'empty' => '',
9266
-      'hide_empty' => 0,
9267
-      'empty_zero' => 0,
9268
-      'hide_alter_empty' => 1,
9269
-      'value' => '<?php
9264
+        ),
9265
+        'empty' => '',
9266
+        'hide_empty' => 0,
9267
+        'empty_zero' => 0,
9268
+        'hide_alter_empty' => 1,
9269
+        'value' => '<?php
9270 9270
   require_boinc(array(\'result\', \'util\'));
9271 9271
   $result = new stdClass();
9272 9272
   $result->client_state = $data->result_client_state;
9273 9273
   return result_client_state_string($result);
9274 9274
 ?>',
9275
-      'exclude' => 0,
9276
-      'id' => 'phpcode_5',
9277
-      'table' => 'customfield',
9278
-      'field' => 'phpcode',
9279
-      'relationship' => 'none',
9275
+        'exclude' => 0,
9276
+        'id' => 'phpcode_5',
9277
+        'table' => 'customfield',
9278
+        'field' => 'phpcode',
9279
+        'relationship' => 'none',
9280 9280
     ),
9281 9281
     'exit_status' => array(
9282
-      'label' => 'Exit status',
9283
-      'alter' => array(
9282
+        'label' => 'Exit status',
9283
+        'alter' => array(
9284 9284
         'alter_text' => 0,
9285 9285
         'text' => '',
9286 9286
         'make_link' => 0,
@@ -9299,29 +9299,29 @@  discard block
 block discarded – undo
9299 9299
         'ellipsis' => 1,
9300 9300
         'html' => 0,
9301 9301
         'strip_tags' => 0,
9302
-      ),
9303
-      'empty' => '',
9304
-      'hide_empty' => 0,
9305
-      'empty_zero' => 0,
9306
-      'hide_alter_empty' => 1,
9307
-      'set_precision' => FALSE,
9308
-      'precision' => 0,
9309
-      'decimal' => '.',
9310
-      'separator' => '',
9311
-      'format_plural' => 0,
9312
-      'format_plural_singular' => '1',
9313
-      'format_plural_plural' => '@count',
9314
-      'prefix' => '',
9315
-      'suffix' => '',
9316
-      'exclude' => 1,
9317
-      'id' => 'exit_status',
9318
-      'table' => 'result',
9319
-      'field' => 'exit_status',
9320
-      'relationship' => 'none',
9302
+        ),
9303
+        'empty' => '',
9304
+        'hide_empty' => 0,
9305
+        'empty_zero' => 0,
9306
+        'hide_alter_empty' => 1,
9307
+        'set_precision' => FALSE,
9308
+        'precision' => 0,
9309
+        'decimal' => '.',
9310
+        'separator' => '',
9311
+        'format_plural' => 0,
9312
+        'format_plural_singular' => '1',
9313
+        'format_plural_plural' => '@count',
9314
+        'prefix' => '',
9315
+        'suffix' => '',
9316
+        'exclude' => 1,
9317
+        'id' => 'exit_status',
9318
+        'table' => 'result',
9319
+        'field' => 'exit_status',
9320
+        'relationship' => 'none',
9321 9321
     ),
9322 9322
     'phpcode_6' => array(
9323
-      'label' => 'Exit status',
9324
-      'alter' => array(
9323
+        'label' => 'Exit status',
9324
+        'alter' => array(
9325 9325
         'alter_text' => 0,
9326 9326
         'text' => '',
9327 9327
         'make_link' => 0,
@@ -9340,24 +9340,24 @@  discard block
 block discarded – undo
9340 9340
         'ellipsis' => 1,
9341 9341
         'html' => 0,
9342 9342
         'strip_tags' => 0,
9343
-      ),
9344
-      'empty' => '',
9345
-      'hide_empty' => 0,
9346
-      'empty_zero' => 0,
9347
-      'hide_alter_empty' => 1,
9348
-      'value' => '<?php
9343
+        ),
9344
+        'empty' => '',
9345
+        'hide_empty' => 0,
9346
+        'empty_zero' => 0,
9347
+        'hide_alter_empty' => 1,
9348
+        'value' => '<?php
9349 9349
   require_boinc(array(\'result\', \'util\'));
9350 9350
   return exit_status_string($data->result_exit_status);
9351 9351
 ?>',
9352
-      'exclude' => 0,
9353
-      'id' => 'phpcode_6',
9354
-      'table' => 'customfield',
9355
-      'field' => 'phpcode',
9356
-      'relationship' => 'none',
9352
+        'exclude' => 0,
9353
+        'id' => 'phpcode_6',
9354
+        'table' => 'customfield',
9355
+        'field' => 'phpcode',
9356
+        'relationship' => 'none',
9357 9357
     ),
9358 9358
     'hostid' => array(
9359
-      'label' => 'Computer',
9360
-      'alter' => array(
9359
+        'label' => 'Computer',
9360
+        'alter' => array(
9361 9361
         'alter_text' => 0,
9362 9362
         'text' => '',
9363 9363
         'make_link' => 1,
@@ -9374,25 +9374,25 @@  discard block
 block discarded – undo
9374 9374
         'ellipsis' => 1,
9375 9375
         'html' => 0,
9376 9376
         'strip_tags' => 0,
9377
-      ),
9378
-      'empty' => '',
9379
-      'hide_empty' => 0,
9380
-      'empty_zero' => 0,
9381
-      'set_precision' => FALSE,
9382
-      'precision' => 0,
9383
-      'decimal' => '.',
9384
-      'separator' => '',
9385
-      'prefix' => '',
9386
-      'suffix' => '',
9387
-      'exclude' => 0,
9388
-      'id' => 'hostid',
9389
-      'table' => 'result',
9390
-      'field' => 'hostid',
9391
-      'relationship' => 'none',
9377
+        ),
9378
+        'empty' => '',
9379
+        'hide_empty' => 0,
9380
+        'empty_zero' => 0,
9381
+        'set_precision' => FALSE,
9382
+        'precision' => 0,
9383
+        'decimal' => '.',
9384
+        'separator' => '',
9385
+        'prefix' => '',
9386
+        'suffix' => '',
9387
+        'exclude' => 0,
9388
+        'id' => 'hostid',
9389
+        'table' => 'result',
9390
+        'field' => 'hostid',
9391
+        'relationship' => 'none',
9392 9392
     ),
9393 9393
     'elapsed_time' => array(
9394
-      'label' => 'Run time (sec)',
9395
-      'alter' => array(
9394
+        'label' => 'Run time (sec)',
9395
+        'alter' => array(
9396 9396
         'alter_text' => 0,
9397 9397
         'text' => '',
9398 9398
         'make_link' => 0,
@@ -9409,25 +9409,25 @@  discard block
 block discarded – undo
9409 9409
         'ellipsis' => 1,
9410 9410
         'html' => 0,
9411 9411
         'strip_tags' => 0,
9412
-      ),
9413
-      'empty' => '',
9414
-      'hide_empty' => 0,
9415
-      'empty_zero' => 0,
9416
-      'set_precision' => 1,
9417
-      'precision' => '2',
9418
-      'decimal' => '.',
9419
-      'separator' => ',',
9420
-      'prefix' => '',
9421
-      'suffix' => '',
9422
-      'exclude' => 0,
9423
-      'id' => 'elapsed_time',
9424
-      'table' => 'result',
9425
-      'field' => 'elapsed_time',
9426
-      'relationship' => 'none',
9412
+        ),
9413
+        'empty' => '',
9414
+        'hide_empty' => 0,
9415
+        'empty_zero' => 0,
9416
+        'set_precision' => 1,
9417
+        'precision' => '2',
9418
+        'decimal' => '.',
9419
+        'separator' => ',',
9420
+        'prefix' => '',
9421
+        'suffix' => '',
9422
+        'exclude' => 0,
9423
+        'id' => 'elapsed_time',
9424
+        'table' => 'result',
9425
+        'field' => 'elapsed_time',
9426
+        'relationship' => 'none',
9427 9427
     ),
9428 9428
     'cpu_time' => array(
9429
-      'label' => 'CPU time (sec)',
9430
-      'alter' => array(
9429
+        'label' => 'CPU time (sec)',
9430
+        'alter' => array(
9431 9431
         'alter_text' => 0,
9432 9432
         'text' => '',
9433 9433
         'make_link' => 0,
@@ -9444,25 +9444,25 @@  discard block
 block discarded – undo
9444 9444
         'ellipsis' => 1,
9445 9445
         'html' => 0,
9446 9446
         'strip_tags' => 0,
9447
-      ),
9448
-      'empty' => '',
9449
-      'hide_empty' => 0,
9450
-      'empty_zero' => 0,
9451
-      'set_precision' => 1,
9452
-      'precision' => '2',
9453
-      'decimal' => '.',
9454
-      'separator' => ',',
9455
-      'prefix' => '',
9456
-      'suffix' => '',
9457
-      'exclude' => 0,
9458
-      'id' => 'cpu_time',
9459
-      'table' => 'result',
9460
-      'field' => 'cpu_time',
9461
-      'relationship' => 'none',
9447
+        ),
9448
+        'empty' => '',
9449
+        'hide_empty' => 0,
9450
+        'empty_zero' => 0,
9451
+        'set_precision' => 1,
9452
+        'precision' => '2',
9453
+        'decimal' => '.',
9454
+        'separator' => ',',
9455
+        'prefix' => '',
9456
+        'suffix' => '',
9457
+        'exclude' => 0,
9458
+        'id' => 'cpu_time',
9459
+        'table' => 'result',
9460
+        'field' => 'cpu_time',
9461
+        'relationship' => 'none',
9462 9462
     ),
9463 9463
     'peak_working_set_size' => array(
9464
-      'label' => 'Peak working set size (MB)',
9465
-      'alter' => array(
9464
+        'label' => 'Peak working set size (MB)',
9465
+        'alter' => array(
9466 9466
         'alter_text' => 0,
9467 9467
         'text' => '',
9468 9468
         'make_link' => 0,
@@ -9481,29 +9481,29 @@  discard block
 block discarded – undo
9481 9481
         'ellipsis' => 1,
9482 9482
         'html' => 0,
9483 9483
         'strip_tags' => 0,
9484
-      ),
9485
-      'empty' => '',
9486
-      'hide_empty' => 0,
9487
-      'empty_zero' => 0,
9488
-      'hide_alter_empty' => 1,
9489
-      'set_precision' => FALSE,
9490
-      'precision' => 0,
9491
-      'decimal' => '.',
9492
-      'separator' => ',',
9493
-      'format_plural' => 0,
9494
-      'format_plural_singular' => '1',
9495
-      'format_plural_plural' => '@count',
9496
-      'prefix' => '',
9497
-      'suffix' => '',
9498
-      'exclude' => 0,
9499
-      'id' => 'peak_working_set_size',
9500
-      'table' => 'result',
9501
-      'field' => 'peak_working_set_size',
9502
-      'relationship' => 'none',
9484
+        ),
9485
+        'empty' => '',
9486
+        'hide_empty' => 0,
9487
+        'empty_zero' => 0,
9488
+        'hide_alter_empty' => 1,
9489
+        'set_precision' => FALSE,
9490
+        'precision' => 0,
9491
+        'decimal' => '.',
9492
+        'separator' => ',',
9493
+        'format_plural' => 0,
9494
+        'format_plural_singular' => '1',
9495
+        'format_plural_plural' => '@count',
9496
+        'prefix' => '',
9497
+        'suffix' => '',
9498
+        'exclude' => 0,
9499
+        'id' => 'peak_working_set_size',
9500
+        'table' => 'result',
9501
+        'field' => 'peak_working_set_size',
9502
+        'relationship' => 'none',
9503 9503
     ),
9504 9504
     'peak_swap_size' => array(
9505
-      'label' => 'Peak swap size (MB)',
9506
-      'alter' => array(
9505
+        'label' => 'Peak swap size (MB)',
9506
+        'alter' => array(
9507 9507
         'alter_text' => 0,
9508 9508
         'text' => '',
9509 9509
         'make_link' => 0,
@@ -9522,29 +9522,29 @@  discard block
 block discarded – undo
9522 9522
         'ellipsis' => 1,
9523 9523
         'html' => 0,
9524 9524
         'strip_tags' => 0,
9525
-      ),
9526
-      'empty' => '',
9527
-      'hide_empty' => 0,
9528
-      'empty_zero' => 0,
9529
-      'hide_alter_empty' => 1,
9530
-      'set_precision' => FALSE,
9531
-      'precision' => 0,
9532
-      'decimal' => '.',
9533
-      'separator' => ',',
9534
-      'format_plural' => 0,
9535
-      'format_plural_singular' => '1',
9536
-      'format_plural_plural' => '@count',
9537
-      'prefix' => '',
9538
-      'suffix' => '',
9539
-      'exclude' => 0,
9540
-      'id' => 'peak_swap_size',
9541
-      'table' => 'result',
9542
-      'field' => 'peak_swap_size',
9543
-      'relationship' => 'none',
9525
+        ),
9526
+        'empty' => '',
9527
+        'hide_empty' => 0,
9528
+        'empty_zero' => 0,
9529
+        'hide_alter_empty' => 1,
9530
+        'set_precision' => FALSE,
9531
+        'precision' => 0,
9532
+        'decimal' => '.',
9533
+        'separator' => ',',
9534
+        'format_plural' => 0,
9535
+        'format_plural_singular' => '1',
9536
+        'format_plural_plural' => '@count',
9537
+        'prefix' => '',
9538
+        'suffix' => '',
9539
+        'exclude' => 0,
9540
+        'id' => 'peak_swap_size',
9541
+        'table' => 'result',
9542
+        'field' => 'peak_swap_size',
9543
+        'relationship' => 'none',
9544 9544
     ),
9545 9545
     'peak_disk_usage' => array(
9546
-      'label' => 'Peak disk usage (MB)',
9547
-      'alter' => array(
9546
+        'label' => 'Peak disk usage (MB)',
9547
+        'alter' => array(
9548 9548
         'alter_text' => 0,
9549 9549
         'text' => '',
9550 9550
         'make_link' => 0,
@@ -9563,29 +9563,29 @@  discard block
 block discarded – undo
9563 9563
         'ellipsis' => 1,
9564 9564
         'html' => 0,
9565 9565
         'strip_tags' => 0,
9566
-      ),
9567
-      'empty' => '',
9568
-      'hide_empty' => 0,
9569
-      'empty_zero' => 0,
9570
-      'hide_alter_empty' => 1,
9571
-      'set_precision' => FALSE,
9572
-      'precision' => 0,
9573
-      'decimal' => '.',
9574
-      'separator' => ',',
9575
-      'format_plural' => 0,
9576
-      'format_plural_singular' => '1',
9577
-      'format_plural_plural' => '@count',
9578
-      'prefix' => '',
9579
-      'suffix' => '',
9580
-      'exclude' => 0,
9581
-      'id' => 'peak_disk_usage',
9582
-      'table' => 'result',
9583
-      'field' => 'peak_disk_usage',
9584
-      'relationship' => 'none',
9566
+        ),
9567
+        'empty' => '',
9568
+        'hide_empty' => 0,
9569
+        'empty_zero' => 0,
9570
+        'hide_alter_empty' => 1,
9571
+        'set_precision' => FALSE,
9572
+        'precision' => 0,
9573
+        'decimal' => '.',
9574
+        'separator' => ',',
9575
+        'format_plural' => 0,
9576
+        'format_plural_singular' => '1',
9577
+        'format_plural_plural' => '@count',
9578
+        'prefix' => '',
9579
+        'suffix' => '',
9580
+        'exclude' => 0,
9581
+        'id' => 'peak_disk_usage',
9582
+        'table' => 'result',
9583
+        'field' => 'peak_disk_usage',
9584
+        'relationship' => 'none',
9585 9585
     ),
9586 9586
     'validate_state' => array(
9587
-      'label' => 'Validation state',
9588
-      'alter' => array(
9587
+        'label' => 'Validation state',
9588
+        'alter' => array(
9589 9589
         'alter_text' => 0,
9590 9590
         'text' => '',
9591 9591
         'make_link' => 0,
@@ -9604,29 +9604,29 @@  discard block
 block discarded – undo
9604 9604
         'ellipsis' => 1,
9605 9605
         'html' => 0,
9606 9606
         'strip_tags' => 0,
9607
-      ),
9608
-      'empty' => '',
9609
-      'hide_empty' => 0,
9610
-      'empty_zero' => 0,
9611
-      'hide_alter_empty' => 1,
9612
-      'set_precision' => FALSE,
9613
-      'precision' => 0,
9614
-      'decimal' => '.',
9615
-      'separator' => '',
9616
-      'format_plural' => 0,
9617
-      'format_plural_singular' => '1',
9618
-      'format_plural_plural' => '@count',
9619
-      'prefix' => '',
9620
-      'suffix' => '',
9621
-      'exclude' => 1,
9622
-      'id' => 'validate_state',
9623
-      'table' => 'result',
9624
-      'field' => 'validate_state',
9625
-      'relationship' => 'none',
9607
+        ),
9608
+        'empty' => '',
9609
+        'hide_empty' => 0,
9610
+        'empty_zero' => 0,
9611
+        'hide_alter_empty' => 1,
9612
+        'set_precision' => FALSE,
9613
+        'precision' => 0,
9614
+        'decimal' => '.',
9615
+        'separator' => '',
9616
+        'format_plural' => 0,
9617
+        'format_plural_singular' => '1',
9618
+        'format_plural_plural' => '@count',
9619
+        'prefix' => '',
9620
+        'suffix' => '',
9621
+        'exclude' => 1,
9622
+        'id' => 'validate_state',
9623
+        'table' => 'result',
9624
+        'field' => 'validate_state',
9625
+        'relationship' => 'none',
9626 9626
     ),
9627 9627
     'phpcode_7' => array(
9628
-      'label' => 'Validation state',
9629
-      'alter' => array(
9628
+        'label' => 'Validation state',
9629
+        'alter' => array(
9630 9630
         'alter_text' => 0,
9631 9631
         'text' => '',
9632 9632
         'make_link' => 0,
@@ -9645,26 +9645,26 @@  discard block
 block discarded – undo
9645 9645
         'ellipsis' => 1,
9646 9646
         'html' => 0,
9647 9647
         'strip_tags' => 0,
9648
-      ),
9649
-      'empty' => '',
9650
-      'hide_empty' => 0,
9651
-      'empty_zero' => 0,
9652
-      'hide_alter_empty' => 1,
9653
-      'value' => '<?php
9648
+        ),
9649
+        'empty' => '',
9650
+        'hide_empty' => 0,
9651
+        'empty_zero' => 0,
9652
+        'hide_alter_empty' => 1,
9653
+        'value' => '<?php
9654 9654
   require_boinc(array(\'result\', \'util\'));
9655 9655
   $result = new stdClass();
9656 9656
   $result->validate_state = $data->result_validate_state;
9657 9657
   return validate_state_str($result);
9658 9658
 ?>',
9659
-      'exclude' => 0,
9660
-      'id' => 'phpcode_7',
9661
-      'table' => 'customfield',
9662
-      'field' => 'phpcode',
9663
-      'relationship' => 'none',
9659
+        'exclude' => 0,
9660
+        'id' => 'phpcode_7',
9661
+        'table' => 'customfield',
9662
+        'field' => 'phpcode',
9663
+        'relationship' => 'none',
9664 9664
     ),
9665 9665
     'granted_credit' => array(
9666
-      'label' => 'Granted credit',
9667
-      'alter' => array(
9666
+        'label' => 'Granted credit',
9667
+        'alter' => array(
9668 9668
         'alter_text' => 0,
9669 9669
         'text' => '',
9670 9670
         'make_link' => 0,
@@ -9683,29 +9683,29 @@  discard block
 block discarded – undo
9683 9683
         'ellipsis' => 1,
9684 9684
         'html' => 0,
9685 9685
         'strip_tags' => 0,
9686
-      ),
9687
-      'empty' => '',
9688
-      'hide_empty' => 0,
9689
-      'empty_zero' => 0,
9690
-      'hide_alter_empty' => 0,
9691
-      'set_precision' => 1,
9692
-      'precision' => '0',
9693
-      'decimal' => '.',
9694
-      'separator' => ',',
9695
-      'format_plural' => 0,
9696
-      'format_plural_singular' => '1',
9697
-      'format_plural_plural' => '@count',
9698
-      'prefix' => '',
9699
-      'suffix' => '',
9700
-      'exclude' => 0,
9701
-      'id' => 'granted_credit',
9702
-      'table' => 'result',
9703
-      'field' => 'granted_credit',
9704
-      'relationship' => 'none',
9686
+        ),
9687
+        'empty' => '',
9688
+        'hide_empty' => 0,
9689
+        'empty_zero' => 0,
9690
+        'hide_alter_empty' => 0,
9691
+        'set_precision' => 1,
9692
+        'precision' => '0',
9693
+        'decimal' => '.',
9694
+        'separator' => ',',
9695
+        'format_plural' => 0,
9696
+        'format_plural_singular' => '1',
9697
+        'format_plural_plural' => '@count',
9698
+        'prefix' => '',
9699
+        'suffix' => '',
9700
+        'exclude' => 0,
9701
+        'id' => 'granted_credit',
9702
+        'table' => 'result',
9703
+        'field' => 'granted_credit',
9704
+        'relationship' => 'none',
9705 9705
     ),
9706 9706
     'appid' => array(
9707
-      'label' => 'Application ID',
9708
-      'alter' => array(
9707
+        'label' => 'Application ID',
9708
+        'alter' => array(
9709 9709
         'alter_text' => 0,
9710 9710
         'text' => '',
9711 9711
         'make_link' => 0,
@@ -9724,29 +9724,29 @@  discard block
 block discarded – undo
9724 9724
         'ellipsis' => 1,
9725 9725
         'html' => 0,
9726 9726
         'strip_tags' => 0,
9727
-      ),
9728
-      'empty' => '',
9729
-      'hide_empty' => 0,
9730
-      'empty_zero' => 0,
9731
-      'hide_alter_empty' => 1,
9732
-      'set_precision' => FALSE,
9733
-      'precision' => 0,
9734
-      'decimal' => '.',
9735
-      'separator' => ',',
9736
-      'format_plural' => 0,
9737
-      'format_plural_singular' => '1',
9738
-      'format_plural_plural' => '@count',
9739
-      'prefix' => '',
9740
-      'suffix' => '',
9741
-      'exclude' => 1,
9742
-      'id' => 'appid',
9743
-      'table' => 'result',
9744
-      'field' => 'appid',
9745
-      'relationship' => 'none',
9727
+        ),
9728
+        'empty' => '',
9729
+        'hide_empty' => 0,
9730
+        'empty_zero' => 0,
9731
+        'hide_alter_empty' => 1,
9732
+        'set_precision' => FALSE,
9733
+        'precision' => 0,
9734
+        'decimal' => '.',
9735
+        'separator' => ',',
9736
+        'format_plural' => 0,
9737
+        'format_plural_singular' => '1',
9738
+        'format_plural_plural' => '@count',
9739
+        'prefix' => '',
9740
+        'suffix' => '',
9741
+        'exclude' => 1,
9742
+        'id' => 'appid',
9743
+        'table' => 'result',
9744
+        'field' => 'appid',
9745
+        'relationship' => 'none',
9746 9746
     ),
9747 9747
     'app_version_id' => array(
9748
-      'label' => 'Application version',
9749
-      'alter' => array(
9748
+        'label' => 'Application version',
9749
+        'alter' => array(
9750 9750
         'alter_text' => 0,
9751 9751
         'text' => '',
9752 9752
         'make_link' => 0,
@@ -9765,29 +9765,29 @@  discard block
 block discarded – undo
9765 9765
         'ellipsis' => 1,
9766 9766
         'html' => 0,
9767 9767
         'strip_tags' => 0,
9768
-      ),
9769
-      'empty' => '',
9770
-      'hide_empty' => 0,
9771
-      'empty_zero' => 0,
9772
-      'hide_alter_empty' => 1,
9773
-      'set_precision' => FALSE,
9774
-      'precision' => 0,
9775
-      'decimal' => '.',
9776
-      'separator' => '',
9777
-      'format_plural' => 0,
9778
-      'format_plural_singular' => '1',
9779
-      'format_plural_plural' => '@count',
9780
-      'prefix' => '',
9781
-      'suffix' => '',
9782
-      'exclude' => 1,
9783
-      'id' => 'app_version_id',
9784
-      'table' => 'result',
9785
-      'field' => 'app_version_id',
9786
-      'relationship' => 'none',
9768
+        ),
9769
+        'empty' => '',
9770
+        'hide_empty' => 0,
9771
+        'empty_zero' => 0,
9772
+        'hide_alter_empty' => 1,
9773
+        'set_precision' => FALSE,
9774
+        'precision' => 0,
9775
+        'decimal' => '.',
9776
+        'separator' => '',
9777
+        'format_plural' => 0,
9778
+        'format_plural_singular' => '1',
9779
+        'format_plural_plural' => '@count',
9780
+        'prefix' => '',
9781
+        'suffix' => '',
9782
+        'exclude' => 1,
9783
+        'id' => 'app_version_id',
9784
+        'table' => 'result',
9785
+        'field' => 'app_version_id',
9786
+        'relationship' => 'none',
9787 9787
     ),
9788 9788
     'phpcode_2' => array(
9789
-      'label' => 'Application',
9790
-      'alter' => array(
9789
+        'label' => 'Application',
9790
+        'alter' => array(
9791 9791
         'alter_text' => 0,
9792 9792
         'text' => '',
9793 9793
         'make_link' => 0,
@@ -9806,30 +9806,30 @@  discard block
 block discarded – undo
9806 9806
         'ellipsis' => 1,
9807 9807
         'html' => 0,
9808 9808
         'strip_tags' => 0,
9809
-      ),
9810
-      'empty' => '',
9811
-      'hide_empty' => 0,
9812
-      'empty_zero' => 0,
9813
-      'hide_alter_empty' => 1,
9814
-      'value' => '<?php
9809
+        ),
9810
+        'empty' => '',
9811
+        'hide_empty' => 0,
9812
+        'empty_zero' => 0,
9813
+        'hide_alter_empty' => 1,
9814
+        'value' => '<?php
9815 9815
   require_boinc(array(\'result\', \'util\'));
9816 9816
   $result = new stdClass();
9817 9817
   $result->appid = $data->result_appid;
9818 9818
   $result->app_version_id = $data->result_app_version_id;
9819 9819
   return app_version_string($result);
9820 9820
 ?>',
9821
-      'exclude' => 0,
9822
-      'id' => 'phpcode_2',
9823
-      'table' => 'customfield',
9824
-      'field' => 'phpcode',
9825
-      'override' => array(
9821
+        'exclude' => 0,
9822
+        'id' => 'phpcode_2',
9823
+        'table' => 'customfield',
9824
+        'field' => 'phpcode',
9825
+        'override' => array(
9826 9826
         'button' => 'Override',
9827
-      ),
9828
-      'relationship' => 'none',
9827
+        ),
9828
+        'relationship' => 'none',
9829 9829
     ),
9830 9830
     'stderr_out' => array(
9831
-      'label' => 'Stderr output',
9832
-      'alter' => array(
9831
+        'label' => 'Stderr output',
9832
+        'alter' => array(
9833 9833
         'alter_text' => 0,
9834 9834
         'text' => '<pre>[stderr_out]</pre>',
9835 9835
         'make_link' => 0,
@@ -9846,47 +9846,47 @@  discard block
 block discarded – undo
9846 9846
         'ellipsis' => 1,
9847 9847
         'html' => 0,
9848 9848
         'strip_tags' => 0,
9849
-      ),
9850
-      'empty' => '',
9851
-      'hide_empty' => 0,
9852
-      'empty_zero' => 0,
9853
-      'exclude' => 1,
9854
-      'id' => 'stderr_out',
9855
-      'table' => 'result',
9856
-      'field' => 'stderr_out',
9857
-      'override' => array(
9849
+        ),
9850
+        'empty' => '',
9851
+        'hide_empty' => 0,
9852
+        'empty_zero' => 0,
9853
+        'exclude' => 1,
9854
+        'id' => 'stderr_out',
9855
+        'table' => 'result',
9856
+        'field' => 'stderr_out',
9857
+        'override' => array(
9858 9858
         'button' => 'Override',
9859
-      ),
9860
-      'relationship' => 'none',
9859
+        ),
9860
+        'relationship' => 'none',
9861 9861
     ),
9862
-  ));
9863
-  $handler->override_option('arguments', array(
9862
+    ));
9863
+    $handler->override_option('arguments', array(
9864 9864
     'id' => array(
9865
-      'default_action' => 'not found',
9866
-      'style_plugin' => 'default_summary',
9867
-      'style_options' => array(),
9868
-      'wildcard' => 'all',
9869
-      'wildcard_substitution' => 'All',
9870
-      'title' => 'Task %1',
9871
-      'breadcrumb' => '',
9872
-      'default_argument_type' => 'fixed',
9873
-      'default_argument' => '',
9874
-      'validate_type' => 'numeric',
9875
-      'validate_fail' => 'not found',
9876
-      'id' => 'id',
9877
-      'table' => 'result',
9878
-      'field' => 'id',
9879
-      'validate_user_argument_type' => 'uid',
9880
-      'validate_user_roles' => array(
9865
+        'default_action' => 'not found',
9866
+        'style_plugin' => 'default_summary',
9867
+        'style_options' => array(),
9868
+        'wildcard' => 'all',
9869
+        'wildcard_substitution' => 'All',
9870
+        'title' => 'Task %1',
9871
+        'breadcrumb' => '',
9872
+        'default_argument_type' => 'fixed',
9873
+        'default_argument' => '',
9874
+        'validate_type' => 'numeric',
9875
+        'validate_fail' => 'not found',
9876
+        'id' => 'id',
9877
+        'table' => 'result',
9878
+        'field' => 'id',
9879
+        'validate_user_argument_type' => 'uid',
9880
+        'validate_user_roles' => array(
9881 9881
         2 => 0,
9882 9882
         3 => 0,
9883
-      ),
9884
-      'relationship' => 'none',
9885
-      'default_options_div_prefix' => '',
9886
-      'default_argument_fixed' => '',
9887
-      'default_argument_user' => 0,
9888
-      'default_argument_php' => '',
9889
-      'validate_argument_node_type' => array(
9883
+        ),
9884
+        'relationship' => 'none',
9885
+        'default_options_div_prefix' => '',
9886
+        'default_argument_fixed' => '',
9887
+        'default_argument_user' => 0,
9888
+        'default_argument_php' => '',
9889
+        'validate_argument_node_type' => array(
9890 9890
         'forum' => 0,
9891 9891
         'job_post' => 0,
9892 9892
         'news' => 0,
@@ -9894,69 +9894,69 @@  discard block
 block discarded – undo
9894 9894
         'profile' => 0,
9895 9895
         'story' => 0,
9896 9896
         'team' => 0,
9897
-      ),
9898
-      'validate_argument_node_access' => 0,
9899
-      'validate_argument_nid_type' => 'nid',
9900
-      'validate_argument_vocabulary' => array(
9897
+        ),
9898
+        'validate_argument_node_access' => 0,
9899
+        'validate_argument_nid_type' => 'nid',
9900
+        'validate_argument_vocabulary' => array(
9901 9901
         1 => 0,
9902
-      ),
9903
-      'validate_argument_type' => 'tid',
9904
-      'validate_argument_transform' => 0,
9905
-      'validate_user_restrict_roles' => 0,
9906
-      'validate_argument_php' => '',
9907
-    ),
9908
-  ));
9909
-  $handler->override_option('access', array(
9902
+        ),
9903
+        'validate_argument_type' => 'tid',
9904
+        'validate_argument_transform' => 0,
9905
+        'validate_user_restrict_roles' => 0,
9906
+        'validate_argument_php' => '',
9907
+    ),
9908
+    ));
9909
+    $handler->override_option('access', array(
9910 9910
     'type' => 'none',
9911
-  ));
9912
-  $handler->override_option('cache', array(
9911
+    ));
9912
+    $handler->override_option('cache', array(
9913 9913
     'type' => 'none',
9914
-  ));
9915
-  $handler->override_option('footer_format', '1');
9916
-  $handler->override_option('footer_empty', 0);
9917
-  $handler->override_option('items_per_page', 0);
9918
-  $handler = $view->new_display('page', 'Page', 'page_1');
9919
-  $handler->override_option('items_per_page', 20);
9920
-  $handler->override_option('use_pager', '1');
9921
-  $handler->override_option('style_plugin', 'grid');
9922
-  $handler->override_option('style_options', array(
9914
+    ));
9915
+    $handler->override_option('footer_format', '1');
9916
+    $handler->override_option('footer_empty', 0);
9917
+    $handler->override_option('items_per_page', 0);
9918
+    $handler = $view->new_display('page', 'Page', 'page_1');
9919
+    $handler->override_option('items_per_page', 20);
9920
+    $handler->override_option('use_pager', '1');
9921
+    $handler->override_option('style_plugin', 'grid');
9922
+    $handler->override_option('style_options', array(
9923 9923
     'grouping' => '',
9924 9924
     'columns' => '2',
9925 9925
     'alignment' => 'vertical',
9926 9926
     'fill_single_line' => 1,
9927
-  ));
9928
-  $handler->override_option('path', 'task');
9929
-  $handler->override_option('menu', array(
9927
+    ));
9928
+    $handler->override_option('path', 'task');
9929
+    $handler->override_option('menu', array(
9930 9930
     'type' => 'none',
9931 9931
     'title' => 'All tasks',
9932 9932
     'description' => 'Show all tasks associated with the account',
9933 9933
     'weight' => '0',
9934 9934
     'name' => 'navigation',
9935
-  ));
9936
-  $handler->override_option('tab_options', array(
9935
+    ));
9936
+    $handler->override_option('tab_options', array(
9937 9937
     'type' => 'normal',
9938 9938
     'title' => 'Tasks',
9939 9939
     'description' => 'Show all tasks',
9940 9940
     'weight' => '0',
9941 9941
     'name' => 'secondary-links',
9942
-  ));
9942
+    ));
9943 9943
 
9944
-  $views[$view->name] = $view;
9944
+    $views[$view->name] = $view;
9945 9945
 
9946
-  // Exported view: boinc_users
9947
-  $view = new view;
9948
-  $view->name = 'boinc_users';
9949
-  $view->description = 'User lists and statistics';
9950
-  $view->tag = '';
9951
-  $view->base_table = 'user';
9952
-  $view->core = 6;
9953
-  $view->api_version = '2';
9954
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
9955
-  $handler = $view->new_display('default', 'Defaults', 'default');
9956
-  $handler->override_option('fields', array(
9946
+    // Exported view: boinc_users
9947
+    $view = new view;
9948
+    $view->name = 'boinc_users';
9949
+    $view->description = 'User lists and statistics';
9950
+    $view->tag = '';
9951
+    $view->base_table = 'user';
9952
+    $view->core = 6;
9953
+    $view->api_version = '2';
9954
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
9955
+    $handler = $view->new_display('default', 'Defaults', 'default');
9956
+    $handler->override_option('fields', array(
9957 9957
     'rownumber' => array(
9958
-      'label' => 'Rank',
9959
-      'alter' => array(
9958
+        'label' => 'Rank',
9959
+        'alter' => array(
9960 9960
         'alter_text' => 0,
9961 9961
         'text' => '',
9962 9962
         'make_link' => 0,
@@ -9975,20 +9975,20 @@  discard block
 block discarded – undo
9975 9975
         'ellipsis' => 1,
9976 9976
         'html' => 0,
9977 9977
         'strip_tags' => 0,
9978
-      ),
9979
-      'empty' => '',
9980
-      'hide_empty' => 0,
9981
-      'empty_zero' => 0,
9982
-      'hide_alter_empty' => 1,
9983
-      'exclude' => 0,
9984
-      'id' => 'rownumber',
9985
-      'table' => 'customfield',
9986
-      'field' => 'rownumber',
9987
-      'relationship' => 'none',
9978
+        ),
9979
+        'empty' => '',
9980
+        'hide_empty' => 0,
9981
+        'empty_zero' => 0,
9982
+        'hide_alter_empty' => 1,
9983
+        'exclude' => 0,
9984
+        'id' => 'rownumber',
9985
+        'table' => 'customfield',
9986
+        'field' => 'rownumber',
9987
+        'relationship' => 'none',
9988 9988
     ),
9989 9989
     'id' => array(
9990
-      'label' => 'Id',
9991
-      'alter' => array(
9990
+        'label' => 'Id',
9991
+        'alter' => array(
9992 9992
         'alter_text' => 0,
9993 9993
         'text' => '',
9994 9994
         'make_link' => 0,
@@ -10007,29 +10007,29 @@  discard block
 block discarded – undo
10007 10007
         'ellipsis' => 1,
10008 10008
         'html' => 0,
10009 10009
         'strip_tags' => 0,
10010
-      ),
10011
-      'empty' => '',
10012
-      'hide_empty' => 0,
10013
-      'empty_zero' => 0,
10014
-      'hide_alter_empty' => 1,
10015
-      'set_precision' => FALSE,
10016
-      'precision' => 0,
10017
-      'decimal' => '.',
10018
-      'separator' => '',
10019
-      'format_plural' => 0,
10020
-      'format_plural_singular' => '1',
10021
-      'format_plural_plural' => '@count',
10022
-      'prefix' => '',
10023
-      'suffix' => '',
10024
-      'exclude' => 1,
10025
-      'id' => 'id',
10026
-      'table' => 'user',
10027
-      'field' => 'id',
10028
-      'relationship' => 'none',
10010
+        ),
10011
+        'empty' => '',
10012
+        'hide_empty' => 0,
10013
+        'empty_zero' => 0,
10014
+        'hide_alter_empty' => 1,
10015
+        'set_precision' => FALSE,
10016
+        'precision' => 0,
10017
+        'decimal' => '.',
10018
+        'separator' => '',
10019
+        'format_plural' => 0,
10020
+        'format_plural_singular' => '1',
10021
+        'format_plural_plural' => '@count',
10022
+        'prefix' => '',
10023
+        'suffix' => '',
10024
+        'exclude' => 1,
10025
+        'id' => 'id',
10026
+        'table' => 'user',
10027
+        'field' => 'id',
10028
+        'relationship' => 'none',
10029 10029
     ),
10030 10030
     'name' => array(
10031
-      'label' => 'Name',
10032
-      'alter' => array(
10031
+        'label' => 'Name',
10032
+        'alter' => array(
10033 10033
         'alter_text' => 0,
10034 10034
         'text' => '',
10035 10035
         'make_link' => 0,
@@ -10048,20 +10048,20 @@  discard block
 block discarded – undo
10048 10048
         'ellipsis' => 1,
10049 10049
         'html' => 0,
10050 10050
         'strip_tags' => 0,
10051
-      ),
10052
-      'empty' => '',
10053
-      'hide_empty' => 0,
10054
-      'empty_zero' => 0,
10055
-      'hide_alter_empty' => 1,
10056
-      'exclude' => 1,
10057
-      'id' => 'name',
10058
-      'table' => 'user',
10059
-      'field' => 'name',
10060
-      'relationship' => 'none',
10051
+        ),
10052
+        'empty' => '',
10053
+        'hide_empty' => 0,
10054
+        'empty_zero' => 0,
10055
+        'hide_alter_empty' => 1,
10056
+        'exclude' => 1,
10057
+        'id' => 'name',
10058
+        'table' => 'user',
10059
+        'field' => 'name',
10060
+        'relationship' => 'none',
10061 10061
     ),
10062 10062
     'phpcode' => array(
10063
-      'label' => 'Name',
10064
-      'alter' => array(
10063
+        'label' => 'Name',
10064
+        'alter' => array(
10065 10065
         'alter_text' => 0,
10066 10066
         'text' => '',
10067 10067
         'make_link' => 0,
@@ -10080,12 +10080,12 @@  discard block
 block discarded – undo
10080 10080
         'ellipsis' => 1,
10081 10081
         'html' => 0,
10082 10082
         'strip_tags' => 0,
10083
-      ),
10084
-      'empty' => '',
10085
-      'hide_empty' => 0,
10086
-      'empty_zero' => 0,
10087
-      'hide_alter_empty' => 1,
10088
-      'value' => '<?php
10083
+        ),
10084
+        'empty' => '',
10085
+        'hide_empty' => 0,
10086
+        'empty_zero' => 0,
10087
+        'hide_alter_empty' => 1,
10088
+        'value' => '<?php
10089 10089
   $uid = boincuser_lookup_uid($data->id);
10090 10090
   if ($uid) {
10091 10091
     $account = user_load($uid);
@@ -10096,15 +10096,15 @@  discard block
 block discarded – undo
10096 10096
     print $data->user_name;
10097 10097
   }
10098 10098
 ?>',
10099
-      'exclude' => 0,
10100
-      'id' => 'phpcode',
10101
-      'table' => 'customfield',
10102
-      'field' => 'phpcode',
10103
-      'relationship' => 'none',
10099
+        'exclude' => 0,
10100
+        'id' => 'phpcode',
10101
+        'table' => 'customfield',
10102
+        'field' => 'phpcode',
10103
+        'relationship' => 'none',
10104 10104
     ),
10105 10105
     'expavg_credit' => array(
10106
-      'label' => 'Recent average credit',
10107
-      'alter' => array(
10106
+        'label' => 'Recent average credit',
10107
+        'alter' => array(
10108 10108
         'alter_text' => 0,
10109 10109
         'text' => '',
10110 10110
         'make_link' => 0,
@@ -10123,29 +10123,29 @@  discard block
 block discarded – undo
10123 10123
         'ellipsis' => 1,
10124 10124
         'html' => 0,
10125 10125
         'strip_tags' => 0,
10126
-      ),
10127
-      'empty' => '0',
10128
-      'hide_empty' => 0,
10129
-      'empty_zero' => 0,
10130
-      'hide_alter_empty' => 0,
10131
-      'set_precision' => 1,
10132
-      'precision' => '2',
10133
-      'decimal' => '.',
10134
-      'separator' => ',',
10135
-      'format_plural' => 0,
10136
-      'format_plural_singular' => '1',
10137
-      'format_plural_plural' => '@count',
10138
-      'prefix' => '',
10139
-      'suffix' => '',
10140
-      'exclude' => 0,
10141
-      'id' => 'expavg_credit',
10142
-      'table' => 'user',
10143
-      'field' => 'expavg_credit',
10144
-      'relationship' => 'none',
10126
+        ),
10127
+        'empty' => '0',
10128
+        'hide_empty' => 0,
10129
+        'empty_zero' => 0,
10130
+        'hide_alter_empty' => 0,
10131
+        'set_precision' => 1,
10132
+        'precision' => '2',
10133
+        'decimal' => '.',
10134
+        'separator' => ',',
10135
+        'format_plural' => 0,
10136
+        'format_plural_singular' => '1',
10137
+        'format_plural_plural' => '@count',
10138
+        'prefix' => '',
10139
+        'suffix' => '',
10140
+        'exclude' => 0,
10141
+        'id' => 'expavg_credit',
10142
+        'table' => 'user',
10143
+        'field' => 'expavg_credit',
10144
+        'relationship' => 'none',
10145 10145
     ),
10146 10146
     'total_credit' => array(
10147
-      'label' => 'Total Credit',
10148
-      'alter' => array(
10147
+        'label' => 'Total Credit',
10148
+        'alter' => array(
10149 10149
         'alter_text' => 0,
10150 10150
         'text' => '',
10151 10151
         'make_link' => 0,
@@ -10164,29 +10164,29 @@  discard block
 block discarded – undo
10164 10164
         'ellipsis' => 1,
10165 10165
         'html' => 0,
10166 10166
         'strip_tags' => 0,
10167
-      ),
10168
-      'empty' => '0',
10169
-      'hide_empty' => 0,
10170
-      'empty_zero' => 0,
10171
-      'hide_alter_empty' => 0,
10172
-      'set_precision' => 1,
10173
-      'precision' => '0',
10174
-      'decimal' => '.',
10175
-      'separator' => ',',
10176
-      'format_plural' => 0,
10177
-      'format_plural_singular' => '1',
10178
-      'format_plural_plural' => '@count',
10179
-      'prefix' => '',
10180
-      'suffix' => '',
10181
-      'exclude' => 0,
10182
-      'id' => 'total_credit',
10183
-      'table' => 'user',
10184
-      'field' => 'total_credit',
10185
-      'relationship' => 'none',
10167
+        ),
10168
+        'empty' => '0',
10169
+        'hide_empty' => 0,
10170
+        'empty_zero' => 0,
10171
+        'hide_alter_empty' => 0,
10172
+        'set_precision' => 1,
10173
+        'precision' => '0',
10174
+        'decimal' => '.',
10175
+        'separator' => ',',
10176
+        'format_plural' => 0,
10177
+        'format_plural_singular' => '1',
10178
+        'format_plural_plural' => '@count',
10179
+        'prefix' => '',
10180
+        'suffix' => '',
10181
+        'exclude' => 0,
10182
+        'id' => 'total_credit',
10183
+        'table' => 'user',
10184
+        'field' => 'total_credit',
10185
+        'relationship' => 'none',
10186 10186
     ),
10187 10187
     'country' => array(
10188
-      'label' => 'Country',
10189
-      'alter' => array(
10188
+        'label' => 'Country',
10189
+        'alter' => array(
10190 10190
         'alter_text' => 0,
10191 10191
         'text' => '',
10192 10192
         'make_link' => 0,
@@ -10205,20 +10205,20 @@  discard block
 block discarded – undo
10205 10205
         'ellipsis' => 1,
10206 10206
         'html' => 0,
10207 10207
         'strip_tags' => 0,
10208
-      ),
10209
-      'empty' => '',
10210
-      'hide_empty' => 0,
10211
-      'empty_zero' => 0,
10212
-      'hide_alter_empty' => 1,
10213
-      'exclude' => 0,
10214
-      'id' => 'country',
10215
-      'table' => 'user',
10216
-      'field' => 'country',
10217
-      'relationship' => 'none',
10208
+        ),
10209
+        'empty' => '',
10210
+        'hide_empty' => 0,
10211
+        'empty_zero' => 0,
10212
+        'hide_alter_empty' => 1,
10213
+        'exclude' => 0,
10214
+        'id' => 'country',
10215
+        'table' => 'user',
10216
+        'field' => 'country',
10217
+        'relationship' => 'none',
10218 10218
     ),
10219 10219
     'create_time' => array(
10220
-      'label' => 'Joined',
10221
-      'alter' => array(
10220
+        'label' => 'Joined',
10221
+        'alter' => array(
10222 10222
         'alter_text' => 0,
10223 10223
         'text' => '',
10224 10224
         'make_link' => 0,
@@ -10237,120 +10237,120 @@  discard block
 block discarded – undo
10237 10237
         'ellipsis' => 1,
10238 10238
         'html' => 0,
10239 10239
         'strip_tags' => 0,
10240
-      ),
10241
-      'empty' => '',
10242
-      'hide_empty' => 0,
10243
-      'empty_zero' => 0,
10244
-      'hide_alter_empty' => 1,
10245
-      'date_format' => 'time ago',
10246
-      'custom_date_format' => '',
10247
-      'exclude' => 0,
10248
-      'id' => 'create_time',
10249
-      'table' => 'user',
10250
-      'field' => 'create_time',
10251
-      'relationship' => 'none',
10240
+        ),
10241
+        'empty' => '',
10242
+        'hide_empty' => 0,
10243
+        'empty_zero' => 0,
10244
+        'hide_alter_empty' => 1,
10245
+        'date_format' => 'time ago',
10246
+        'custom_date_format' => '',
10247
+        'exclude' => 0,
10248
+        'id' => 'create_time',
10249
+        'table' => 'user',
10250
+        'field' => 'create_time',
10251
+        'relationship' => 'none',
10252 10252
     ),
10253
-  ));
10254
-  $handler->override_option('filters', array(
10253
+    ));
10254
+    $handler->override_option('filters', array(
10255 10255
     'total_credit' => array(
10256
-      'operator' => '>=',
10257
-      'value' => array(
10256
+        'operator' => '>=',
10257
+        'value' => array(
10258 10258
         'value' => '1',
10259 10259
         'min' => '',
10260 10260
         'max' => '',
10261
-      ),
10262
-      'group' => '0',
10263
-      'exposed' => FALSE,
10264
-      'expose' => array(
10261
+        ),
10262
+        'group' => '0',
10263
+        'exposed' => FALSE,
10264
+        'expose' => array(
10265 10265
         'operator' => FALSE,
10266 10266
         'label' => '',
10267
-      ),
10268
-      'id' => 'total_credit',
10269
-      'table' => 'user',
10270
-      'field' => 'total_credit',
10271
-      'relationship' => 'none',
10272
-    ),
10273
-  ));
10274
-  $handler->override_option('access', array(
10267
+        ),
10268
+        'id' => 'total_credit',
10269
+        'table' => 'user',
10270
+        'field' => 'total_credit',
10271
+        'relationship' => 'none',
10272
+    ),
10273
+    ));
10274
+    $handler->override_option('access', array(
10275 10275
     'type' => 'none',
10276
-  ));
10277
-  $handler->override_option('cache', array(
10276
+    ));
10277
+    $handler->override_option('cache', array(
10278 10278
     'type' => 'none',
10279
-  ));
10280
-  $handler->override_option('items_per_page', 100);
10281
-  $handler->override_option('use_pager', '0');
10282
-  $handler->override_option('style_plugin', 'table');
10283
-  $handler->override_option('style_options', array(
10279
+    ));
10280
+    $handler->override_option('items_per_page', 100);
10281
+    $handler->override_option('use_pager', '0');
10282
+    $handler->override_option('style_plugin', 'table');
10283
+    $handler->override_option('style_options', array(
10284 10284
     'grouping' => '',
10285 10285
     'override' => 1,
10286 10286
     'sticky' => 1,
10287 10287
     'order' => 'desc',
10288 10288
     'summary' => '',
10289 10289
     'columns' => array(
10290
-      'rownumber' => 'rownumber',
10291
-      'id' => 'id',
10292
-      'name' => 'name',
10293
-      'phpcode' => 'phpcode',
10294
-      'expavg_credit' => 'expavg_credit',
10295
-      'total_credit' => 'total_credit',
10296
-      'country' => 'country',
10297
-      'create_time' => 'create_time',
10290
+        'rownumber' => 'rownumber',
10291
+        'id' => 'id',
10292
+        'name' => 'name',
10293
+        'phpcode' => 'phpcode',
10294
+        'expavg_credit' => 'expavg_credit',
10295
+        'total_credit' => 'total_credit',
10296
+        'country' => 'country',
10297
+        'create_time' => 'create_time',
10298 10298
     ),
10299 10299
     'info' => array(
10300
-      'rownumber' => array(
10300
+        'rownumber' => array(
10301 10301
         'separator' => '',
10302
-      ),
10303
-      'id' => array(
10302
+        ),
10303
+        'id' => array(
10304 10304
         'sortable' => 0,
10305 10305
         'separator' => '',
10306
-      ),
10307
-      'name' => array(
10306
+        ),
10307
+        'name' => array(
10308 10308
         'sortable' => 0,
10309 10309
         'separator' => '',
10310
-      ),
10311
-      'phpcode' => array(
10310
+        ),
10311
+        'phpcode' => array(
10312 10312
         'separator' => '',
10313
-      ),
10314
-      'expavg_credit' => array(
10313
+        ),
10314
+        'expavg_credit' => array(
10315 10315
         'sortable' => 1,
10316 10316
         'separator' => '',
10317
-      ),
10318
-      'total_credit' => array(
10317
+        ),
10318
+        'total_credit' => array(
10319 10319
         'sortable' => 1,
10320 10320
         'separator' => '',
10321
-      ),
10322
-      'country' => array(
10321
+        ),
10322
+        'country' => array(
10323 10323
         'sortable' => 0,
10324 10324
         'separator' => '',
10325
-      ),
10326
-      'create_time' => array(
10325
+        ),
10326
+        'create_time' => array(
10327 10327
         'sortable' => 1,
10328 10328
         'separator' => '',
10329
-      ),
10329
+        ),
10330 10330
     ),
10331 10331
     'default' => 'expavg_credit',
10332
-  ));
10333
-  $handler = $view->new_display('page', 'Top users', 'page_1');
10334
-  $handler->override_option('path', 'community/stats/users');
10335
-  $handler->override_option('menu', array(
10332
+    ));
10333
+    $handler = $view->new_display('page', 'Top users', 'page_1');
10334
+    $handler->override_option('path', 'community/stats/users');
10335
+    $handler->override_option('menu', array(
10336 10336
     'type' => 'tab',
10337 10337
     'title' => 'Top Users',
10338 10338
     'description' => '',
10339 10339
     'weight' => '0',
10340 10340
     'name' => 'primary-links',
10341
-  ));
10342
-  $handler->override_option('tab_options', array(
10341
+    ));
10342
+    $handler->override_option('tab_options', array(
10343 10343
     'type' => 'none',
10344 10344
     'title' => '',
10345 10345
     'description' => '',
10346 10346
     'weight' => 0,
10347 10347
     'name' => 'navigation',
10348
-  ));
10349
-  $handler = $view->new_display('panel_pane', 'Top users pane', 'panel_pane_1');
10350
-  $handler->override_option('fields', array(
10348
+    ));
10349
+    $handler = $view->new_display('panel_pane', 'Top users pane', 'panel_pane_1');
10350
+    $handler->override_option('fields', array(
10351 10351
     'rownumber' => array(
10352
-      'label' => 'Rank',
10353
-      'alter' => array(
10352
+        'label' => 'Rank',
10353
+        'alter' => array(
10354 10354
         'alter_text' => 0,
10355 10355
         'text' => '',
10356 10356
         'make_link' => 0,
@@ -10369,20 +10369,20 @@  discard block
 block discarded – undo
10369 10369
         'ellipsis' => 1,
10370 10370
         'html' => 0,
10371 10371
         'strip_tags' => 0,
10372
-      ),
10373
-      'empty' => '',
10374
-      'hide_empty' => 0,
10375
-      'empty_zero' => 0,
10376
-      'hide_alter_empty' => 1,
10377
-      'exclude' => 0,
10378
-      'id' => 'rownumber',
10379
-      'table' => 'customfield',
10380
-      'field' => 'rownumber',
10381
-      'relationship' => 'none',
10372
+        ),
10373
+        'empty' => '',
10374
+        'hide_empty' => 0,
10375
+        'empty_zero' => 0,
10376
+        'hide_alter_empty' => 1,
10377
+        'exclude' => 0,
10378
+        'id' => 'rownumber',
10379
+        'table' => 'customfield',
10380
+        'field' => 'rownumber',
10381
+        'relationship' => 'none',
10382 10382
     ),
10383 10383
     'id' => array(
10384
-      'label' => 'Id',
10385
-      'alter' => array(
10384
+        'label' => 'Id',
10385
+        'alter' => array(
10386 10386
         'alter_text' => 0,
10387 10387
         'text' => '',
10388 10388
         'make_link' => 0,
@@ -10401,29 +10401,29 @@  discard block
 block discarded – undo
10401 10401
         'ellipsis' => 1,
10402 10402
         'html' => 0,
10403 10403
         'strip_tags' => 0,
10404
-      ),
10405
-      'empty' => '',
10406
-      'hide_empty' => 0,
10407
-      'empty_zero' => 0,
10408
-      'hide_alter_empty' => 1,
10409
-      'set_precision' => FALSE,
10410
-      'precision' => 0,
10411
-      'decimal' => '.',
10412
-      'separator' => '',
10413
-      'format_plural' => 0,
10414
-      'format_plural_singular' => '1',
10415
-      'format_plural_plural' => '@count',
10416
-      'prefix' => '',
10417
-      'suffix' => '',
10418
-      'exclude' => 1,
10419
-      'id' => 'id',
10420
-      'table' => 'user',
10421
-      'field' => 'id',
10422
-      'relationship' => 'none',
10404
+        ),
10405
+        'empty' => '',
10406
+        'hide_empty' => 0,
10407
+        'empty_zero' => 0,
10408
+        'hide_alter_empty' => 1,
10409
+        'set_precision' => FALSE,
10410
+        'precision' => 0,
10411
+        'decimal' => '.',
10412
+        'separator' => '',
10413
+        'format_plural' => 0,
10414
+        'format_plural_singular' => '1',
10415
+        'format_plural_plural' => '@count',
10416
+        'prefix' => '',
10417
+        'suffix' => '',
10418
+        'exclude' => 1,
10419
+        'id' => 'id',
10420
+        'table' => 'user',
10421
+        'field' => 'id',
10422
+        'relationship' => 'none',
10423 10423
     ),
10424 10424
     'name' => array(
10425
-      'label' => 'Name',
10426
-      'alter' => array(
10425
+        'label' => 'Name',
10426
+        'alter' => array(
10427 10427
         'alter_text' => 0,
10428 10428
         'text' => '',
10429 10429
         'make_link' => 0,
@@ -10442,20 +10442,20 @@  discard block
 block discarded – undo
10442 10442
         'ellipsis' => 1,
10443 10443
         'html' => 0,
10444 10444
         'strip_tags' => 0,
10445
-      ),
10446
-      'empty' => '',
10447
-      'hide_empty' => 0,
10448
-      'empty_zero' => 0,
10449
-      'hide_alter_empty' => 1,
10450
-      'exclude' => 1,
10451
-      'id' => 'name',
10452
-      'table' => 'user',
10453
-      'field' => 'name',
10454
-      'relationship' => 'none',
10445
+        ),
10446
+        'empty' => '',
10447
+        'hide_empty' => 0,
10448
+        'empty_zero' => 0,
10449
+        'hide_alter_empty' => 1,
10450
+        'exclude' => 1,
10451
+        'id' => 'name',
10452
+        'table' => 'user',
10453
+        'field' => 'name',
10454
+        'relationship' => 'none',
10455 10455
     ),
10456 10456
     'phpcode' => array(
10457
-      'label' => 'Name',
10458
-      'alter' => array(
10457
+        'label' => 'Name',
10458
+        'alter' => array(
10459 10459
         'alter_text' => 0,
10460 10460
         'text' => '',
10461 10461
         'make_link' => 0,
@@ -10474,12 +10474,12 @@  discard block
 block discarded – undo
10474 10474
         'ellipsis' => 1,
10475 10475
         'html' => 0,
10476 10476
         'strip_tags' => 0,
10477
-      ),
10478
-      'empty' => '',
10479
-      'hide_empty' => 0,
10480
-      'empty_zero' => 0,
10481
-      'hide_alter_empty' => 1,
10482
-      'value' => '<?php
10477
+        ),
10478
+        'empty' => '',
10479
+        'hide_empty' => 0,
10480
+        'empty_zero' => 0,
10481
+        'hide_alter_empty' => 1,
10482
+        'value' => '<?php
10483 10483
   $uid = boincuser_lookup_uid($data->id);
10484 10484
   if ($uid) {
10485 10485
     $account = user_load($uid);
@@ -10490,15 +10490,15 @@  discard block
 block discarded – undo
10490 10490
     print $data->user_name;
10491 10491
   }
10492 10492
 ?>',
10493
-      'exclude' => 0,
10494
-      'id' => 'phpcode',
10495
-      'table' => 'customfield',
10496
-      'field' => 'phpcode',
10497
-      'relationship' => 'none',
10493
+        'exclude' => 0,
10494
+        'id' => 'phpcode',
10495
+        'table' => 'customfield',
10496
+        'field' => 'phpcode',
10497
+        'relationship' => 'none',
10498 10498
     ),
10499 10499
     'country' => array(
10500
-      'label' => 'Country',
10501
-      'alter' => array(
10500
+        'label' => 'Country',
10501
+        'alter' => array(
10502 10502
         'alter_text' => 0,
10503 10503
         'text' => '',
10504 10504
         'make_link' => 0,
@@ -10517,20 +10517,20 @@  discard block
 block discarded – undo
10517 10517
         'ellipsis' => 1,
10518 10518
         'html' => 0,
10519 10519
         'strip_tags' => 0,
10520
-      ),
10521
-      'empty' => '',
10522
-      'hide_empty' => 0,
10523
-      'empty_zero' => 0,
10524
-      'hide_alter_empty' => 1,
10525
-      'exclude' => 0,
10526
-      'id' => 'country',
10527
-      'table' => 'user',
10528
-      'field' => 'country',
10529
-      'relationship' => 'none',
10520
+        ),
10521
+        'empty' => '',
10522
+        'hide_empty' => 0,
10523
+        'empty_zero' => 0,
10524
+        'hide_alter_empty' => 1,
10525
+        'exclude' => 0,
10526
+        'id' => 'country',
10527
+        'table' => 'user',
10528
+        'field' => 'country',
10529
+        'relationship' => 'none',
10530 10530
     ),
10531 10531
     'expavg_credit' => array(
10532
-      'label' => 'Recent average credit',
10533
-      'alter' => array(
10532
+        'label' => 'Recent average credit',
10533
+        'alter' => array(
10534 10534
         'alter_text' => 0,
10535 10535
         'text' => '',
10536 10536
         'make_link' => 0,
@@ -10549,32 +10549,32 @@  discard block
 block discarded – undo
10549 10549
         'ellipsis' => 1,
10550 10550
         'html' => 0,
10551 10551
         'strip_tags' => 0,
10552
-      ),
10553
-      'empty' => '0',
10554
-      'hide_empty' => 0,
10555
-      'empty_zero' => 0,
10556
-      'hide_alter_empty' => 0,
10557
-      'set_precision' => 1,
10558
-      'precision' => '2',
10559
-      'decimal' => '.',
10560
-      'separator' => ',',
10561
-      'format_plural' => 0,
10562
-      'format_plural_singular' => '1',
10563
-      'format_plural_plural' => '@count',
10564
-      'prefix' => '',
10565
-      'suffix' => '',
10566
-      'exclude' => 0,
10567
-      'id' => 'expavg_credit',
10568
-      'table' => 'user',
10569
-      'field' => 'expavg_credit',
10570
-      'relationship' => 'none',
10571
-      'override' => array(
10552
+        ),
10553
+        'empty' => '0',
10554
+        'hide_empty' => 0,
10555
+        'empty_zero' => 0,
10556
+        'hide_alter_empty' => 0,
10557
+        'set_precision' => 1,
10558
+        'precision' => '2',
10559
+        'decimal' => '.',
10560
+        'separator' => ',',
10561
+        'format_plural' => 0,
10562
+        'format_plural_singular' => '1',
10563
+        'format_plural_plural' => '@count',
10564
+        'prefix' => '',
10565
+        'suffix' => '',
10566
+        'exclude' => 0,
10567
+        'id' => 'expavg_credit',
10568
+        'table' => 'user',
10569
+        'field' => 'expavg_credit',
10570
+        'relationship' => 'none',
10571
+        'override' => array(
10572 10572
         'button' => 'Use default',
10573
-      ),
10573
+        ),
10574 10574
     ),
10575 10575
     'total_credit' => array(
10576
-      'label' => 'Total Credit',
10577
-      'alter' => array(
10576
+        'label' => 'Total Credit',
10577
+        'alter' => array(
10578 10578
         'alter_text' => 0,
10579 10579
         'text' => '',
10580 10580
         'make_link' => 0,
@@ -10593,29 +10593,29 @@  discard block
 block discarded – undo
10593 10593
         'ellipsis' => 1,
10594 10594
         'html' => 0,
10595 10595
         'strip_tags' => 0,
10596
-      ),
10597
-      'empty' => '0',
10598
-      'hide_empty' => 0,
10599
-      'empty_zero' => 0,
10600
-      'hide_alter_empty' => 0,
10601
-      'set_precision' => 1,
10602
-      'precision' => '0',
10603
-      'decimal' => '.',
10604
-      'separator' => ',',
10605
-      'format_plural' => 0,
10606
-      'format_plural_singular' => '1',
10607
-      'format_plural_plural' => '@count',
10608
-      'prefix' => '',
10609
-      'suffix' => '',
10610
-      'exclude' => 0,
10611
-      'id' => 'total_credit',
10612
-      'table' => 'user',
10613
-      'field' => 'total_credit',
10614
-      'relationship' => 'none',
10596
+        ),
10597
+        'empty' => '0',
10598
+        'hide_empty' => 0,
10599
+        'empty_zero' => 0,
10600
+        'hide_alter_empty' => 0,
10601
+        'set_precision' => 1,
10602
+        'precision' => '0',
10603
+        'decimal' => '.',
10604
+        'separator' => ',',
10605
+        'format_plural' => 0,
10606
+        'format_plural_singular' => '1',
10607
+        'format_plural_plural' => '@count',
10608
+        'prefix' => '',
10609
+        'suffix' => '',
10610
+        'exclude' => 0,
10611
+        'id' => 'total_credit',
10612
+        'table' => 'user',
10613
+        'field' => 'total_credit',
10614
+        'relationship' => 'none',
10615 10615
     ),
10616 10616
     'create_time' => array(
10617
-      'label' => 'Joined',
10618
-      'alter' => array(
10617
+        'label' => 'Joined',
10618
+        'alter' => array(
10619 10619
         'alter_text' => 0,
10620 10620
         'text' => '',
10621 10621
         'make_link' => 0,
@@ -10634,85 +10634,85 @@  discard block
 block discarded – undo
10634 10634
         'ellipsis' => 1,
10635 10635
         'html' => 0,
10636 10636
         'strip_tags' => 0,
10637
-      ),
10638
-      'empty' => '',
10639
-      'hide_empty' => 0,
10640
-      'empty_zero' => 0,
10641
-      'hide_alter_empty' => 1,
10642
-      'date_format' => 'time ago',
10643
-      'custom_date_format' => '',
10644
-      'exclude' => 1,
10645
-      'id' => 'create_time',
10646
-      'table' => 'user',
10647
-      'field' => 'create_time',
10648
-      'relationship' => 'none',
10649
-      'override' => array(
10637
+        ),
10638
+        'empty' => '',
10639
+        'hide_empty' => 0,
10640
+        'empty_zero' => 0,
10641
+        'hide_alter_empty' => 1,
10642
+        'date_format' => 'time ago',
10643
+        'custom_date_format' => '',
10644
+        'exclude' => 1,
10645
+        'id' => 'create_time',
10646
+        'table' => 'user',
10647
+        'field' => 'create_time',
10648
+        'relationship' => 'none',
10649
+        'override' => array(
10650 10650
         'button' => 'Use default',
10651
-      ),
10652
-    ),
10653
-  ));
10654
-  $handler->override_option('title', 'Top participants');
10655
-  $handler->override_option('items_per_page', 10);
10656
-  $handler->override_option('use_more', 1);
10657
-  $handler->override_option('use_more_always', 0);
10658
-  $handler->override_option('use_more_text', 'view more');
10659
-  $handler->override_option('style_options', array(
10651
+        ),
10652
+    ),
10653
+    ));
10654
+    $handler->override_option('title', 'Top participants');
10655
+    $handler->override_option('items_per_page', 10);
10656
+    $handler->override_option('use_more', 1);
10657
+    $handler->override_option('use_more_always', 0);
10658
+    $handler->override_option('use_more_text', 'view more');
10659
+    $handler->override_option('style_options', array(
10660 10660
     'grouping' => '',
10661 10661
     'override' => 1,
10662 10662
     'sticky' => 0,
10663 10663
     'order' => 'desc',
10664 10664
     'summary' => '',
10665 10665
     'columns' => array(
10666
-      'rownumber' => 'rownumber',
10667
-      'id' => 'id',
10668
-      'name' => 'name',
10669
-      'phpcode' => 'phpcode',
10670
-      'country' => 'country',
10671
-      'expavg_credit' => 'expavg_credit',
10672
-      'total_credit' => 'total_credit',
10673
-      'create_time' => 'create_time',
10666
+        'rownumber' => 'rownumber',
10667
+        'id' => 'id',
10668
+        'name' => 'name',
10669
+        'phpcode' => 'phpcode',
10670
+        'country' => 'country',
10671
+        'expavg_credit' => 'expavg_credit',
10672
+        'total_credit' => 'total_credit',
10673
+        'create_time' => 'create_time',
10674 10674
     ),
10675 10675
     'info' => array(
10676
-      'rownumber' => array(
10676
+        'rownumber' => array(
10677 10677
         'separator' => '',
10678
-      ),
10679
-      'id' => array(
10678
+        ),
10679
+        'id' => array(
10680 10680
         'sortable' => 0,
10681 10681
         'separator' => '',
10682
-      ),
10683
-      'name' => array(
10682
+        ),
10683
+        'name' => array(
10684 10684
         'sortable' => 0,
10685 10685
         'separator' => '',
10686
-      ),
10687
-      'phpcode' => array(
10686
+        ),
10687
+        'phpcode' => array(
10688 10688
         'separator' => '',
10689
-      ),
10690
-      'country' => array(
10689
+        ),
10690
+        'country' => array(
10691 10691
         'sortable' => 0,
10692 10692
         'separator' => '',
10693
-      ),
10694
-      'expavg_credit' => array(
10693
+        ),
10694
+        'expavg_credit' => array(
10695 10695
         'sortable' => 1,
10696 10696
         'separator' => '',
10697
-      ),
10698
-      'total_credit' => array(
10697
+        ),
10698
+        'total_credit' => array(
10699 10699
         'sortable' => 1,
10700 10700
         'separator' => '',
10701
-      ),
10702
-      'create_time' => array(
10701
+        ),
10702
+        'create_time' => array(
10703 10703
         'sortable' => 1,
10704 10704
         'separator' => '',
10705
-      ),
10705
+        ),
10706 10706
     ),
10707 10707
     'default' => 'expavg_credit',
10708
-  ));
10709
-  $handler->override_option('pane_title', '');
10710
-  $handler->override_option('pane_description', '');
10711
-  $handler->override_option('pane_category', array(
10708
+    ));
10709
+    $handler->override_option('pane_title', '');
10710
+    $handler->override_option('pane_description', '');
10711
+    $handler->override_option('pane_category', array(
10712 10712
     'name' => 'View panes',
10713 10713
     'weight' => 0,
10714
-  ));
10715
-  $handler->override_option('allow', array(
10714
+    ));
10715
+    $handler->override_option('allow', array(
10716 10716
     'use_pager' => FALSE,
10717 10717
     'items_per_page' => FALSE,
10718 10718
     'offset' => FALSE,
@@ -10722,37 +10722,37 @@  discard block
 block discarded – undo
10722 10722
     'title_override' => FALSE,
10723 10723
     'exposed_form' => FALSE,
10724 10724
     'fields_override' => FALSE,
10725
-  ));
10726
-  $handler->override_option('argument_input', array());
10727
-  $handler->override_option('link_to_view', 0);
10728
-  $handler->override_option('inherit_panels_path', 0);
10725
+    ));
10726
+    $handler->override_option('argument_input', array());
10727
+    $handler->override_option('link_to_view', 0);
10728
+    $handler->override_option('inherit_panels_path', 0);
10729 10729
 
10730
-  $views[$view->name] = $view;
10730
+    $views[$view->name] = $view;
10731 10731
 
10732
-  // Exported view: boinc_workunit
10733
-  $view = new view;
10734
-  $view->name = 'boinc_workunit';
10735
-  $view->description = 'Details for a specific workunit';
10736
-  $view->tag = '';
10737
-  $view->base_table = 'workunit';
10738
-  $view->core = 0;
10739
-  $view->api_version = '2';
10740
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10741
-  $handler = $view->new_display('default', 'Defaults', 'default');
10742
-  $handler->override_option('relationships', array(
10732
+    // Exported view: boinc_workunit
10733
+    $view = new view;
10734
+    $view->name = 'boinc_workunit';
10735
+    $view->description = 'Details for a specific workunit';
10736
+    $view->tag = '';
10737
+    $view->base_table = 'workunit';
10738
+    $view->core = 0;
10739
+    $view->api_version = '2';
10740
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10741
+    $handler = $view->new_display('default', 'Defaults', 'default');
10742
+    $handler->override_option('relationships', array(
10743 10743
     'appid' => array(
10744
-      'label' => 'Application',
10745
-      'required' => 1,
10746
-      'id' => 'appid',
10747
-      'table' => 'workunit',
10748
-      'field' => 'appid',
10749
-      'relationship' => 'none',
10750
-    ),
10751
-  ));
10752
-  $handler->override_option('fields', array(
10744
+        'label' => 'Application',
10745
+        'required' => 1,
10746
+        'id' => 'appid',
10747
+        'table' => 'workunit',
10748
+        'field' => 'appid',
10749
+        'relationship' => 'none',
10750
+    ),
10751
+    ));
10752
+    $handler->override_option('fields', array(
10753 10753
     'name' => array(
10754
-      'label' => 'Name',
10755
-      'alter' => array(
10754
+        'label' => 'Name',
10755
+        'alter' => array(
10756 10756
         'alter_text' => 0,
10757 10757
         'text' => '',
10758 10758
         'make_link' => 0,
@@ -10769,19 +10769,19 @@  discard block
 block discarded – undo
10769 10769
         'ellipsis' => 1,
10770 10770
         'html' => 0,
10771 10771
         'strip_tags' => 0,
10772
-      ),
10773
-      'empty' => '',
10774
-      'hide_empty' => 0,
10775
-      'empty_zero' => 0,
10776
-      'exclude' => 0,
10777
-      'id' => 'name',
10778
-      'table' => 'workunit',
10779
-      'field' => 'name',
10780
-      'relationship' => 'none',
10772
+        ),
10773
+        'empty' => '',
10774
+        'hide_empty' => 0,
10775
+        'empty_zero' => 0,
10776
+        'exclude' => 0,
10777
+        'id' => 'name',
10778
+        'table' => 'workunit',
10779
+        'field' => 'name',
10780
+        'relationship' => 'none',
10781 10781
     ),
10782 10782
     'phpcode_8' => array(
10783
-      'label' => 'dont_suppress_pending',
10784
-      'alter' => array(
10783
+        'label' => 'dont_suppress_pending',
10784
+        'alter' => array(
10785 10785
         'alter_text' => 0,
10786 10786
         'text' => '',
10787 10787
         'make_link' => 0,
@@ -10800,25 +10800,25 @@  discard block
 block discarded – undo
10800 10800
         'ellipsis' => 1,
10801 10801
         'html' => 0,
10802 10802
         'strip_tags' => 0,
10803
-      ),
10804
-      'empty' => '',
10805
-      'hide_empty' => 0,
10806
-      'empty_zero' => 0,
10807
-      'hide_alter_empty' => 1,
10808
-      'value' => '<?php
10803
+        ),
10804
+        'empty' => '',
10805
+        'hide_empty' => 0,
10806
+        'empty_zero' => 0,
10807
+        'hide_alter_empty' => 1,
10808
+        'value' => '<?php
10809 10809
   require_boinc(\'util\');
10810 10810
   $dont_suppress_pending = parse_bool(get_config(), "dont_suppress_pending");
10811 10811
   $data->dontsuppresspending = $dont_suppress_pending;
10812 10812
 ?>',
10813
-      'exclude' => 1,
10814
-      'id' => 'phpcode_8',
10815
-      'table' => 'customfield',
10816
-      'field' => 'phpcode',
10817
-      'relationship' => 'none',
10813
+        'exclude' => 1,
10814
+        'id' => 'phpcode_8',
10815
+        'table' => 'customfield',
10816
+        'field' => 'phpcode',
10817
+        'relationship' => 'none',
10818 10818
     ),
10819 10819
     'user_friendly_name' => array(
10820
-      'label' => 'Application',
10821
-      'alter' => array(
10820
+        'label' => 'Application',
10821
+        'alter' => array(
10822 10822
         'alter_text' => 0,
10823 10823
         'text' => '',
10824 10824
         'make_link' => 0,
@@ -10835,19 +10835,19 @@  discard block
 block discarded – undo
10835 10835
         'ellipsis' => 1,
10836 10836
         'html' => 0,
10837 10837
         'strip_tags' => 0,
10838
-      ),
10839
-      'empty' => '',
10840
-      'hide_empty' => 0,
10841
-      'empty_zero' => 0,
10842
-      'exclude' => 0,
10843
-      'id' => 'user_friendly_name',
10844
-      'table' => 'app',
10845
-      'field' => 'user_friendly_name',
10846
-      'relationship' => 'appid',
10838
+        ),
10839
+        'empty' => '',
10840
+        'hide_empty' => 0,
10841
+        'empty_zero' => 0,
10842
+        'exclude' => 0,
10843
+        'id' => 'user_friendly_name',
10844
+        'table' => 'app',
10845
+        'field' => 'user_friendly_name',
10846
+        'relationship' => 'appid',
10847 10847
     ),
10848 10848
     'create_time' => array(
10849
-      'label' => 'Created',
10850
-      'alter' => array(
10849
+        'label' => 'Created',
10850
+        'alter' => array(
10851 10851
         'alter_text' => 0,
10852 10852
         'text' => '',
10853 10853
         'make_link' => 0,
@@ -10864,21 +10864,21 @@  discard block
 block discarded – undo
10864 10864
         'ellipsis' => 1,
10865 10865
         'html' => 0,
10866 10866
         'strip_tags' => 0,
10867
-      ),
10868
-      'empty' => '',
10869
-      'hide_empty' => 0,
10870
-      'empty_zero' => 0,
10871
-      'date_format' => 'custom',
10872
-      'custom_date_format' => 'j M Y G:i:s T',
10873
-      'exclude' => 0,
10874
-      'id' => 'create_time',
10875
-      'table' => 'workunit',
10876
-      'field' => 'create_time',
10877
-      'relationship' => 'none',
10867
+        ),
10868
+        'empty' => '',
10869
+        'hide_empty' => 0,
10870
+        'empty_zero' => 0,
10871
+        'date_format' => 'custom',
10872
+        'custom_date_format' => 'j M Y G:i:s T',
10873
+        'exclude' => 0,
10874
+        'id' => 'create_time',
10875
+        'table' => 'workunit',
10876
+        'field' => 'create_time',
10877
+        'relationship' => 'none',
10878 10878
     ),
10879 10879
     'canonical_resultid' => array(
10880
-      'label' => 'Canonical result',
10881
-      'alter' => array(
10880
+        'label' => 'Canonical result',
10881
+        'alter' => array(
10882 10882
         'alter_text' => 0,
10883 10883
         'text' => '',
10884 10884
         'make_link' => 0,
@@ -10895,25 +10895,25 @@  discard block
 block discarded – undo
10895 10895
         'ellipsis' => 1,
10896 10896
         'html' => 0,
10897 10897
         'strip_tags' => 0,
10898
-      ),
10899
-      'empty' => '',
10900
-      'hide_empty' => 0,
10901
-      'empty_zero' => 0,
10902
-      'set_precision' => FALSE,
10903
-      'precision' => 0,
10904
-      'decimal' => '.',
10905
-      'separator' => '',
10906
-      'prefix' => '',
10907
-      'suffix' => '',
10908
-      'exclude' => 1,
10909
-      'id' => 'canonical_resultid',
10910
-      'table' => 'workunit',
10911
-      'field' => 'canonical_resultid',
10912
-      'relationship' => 'none',
10898
+        ),
10899
+        'empty' => '',
10900
+        'hide_empty' => 0,
10901
+        'empty_zero' => 0,
10902
+        'set_precision' => FALSE,
10903
+        'precision' => 0,
10904
+        'decimal' => '.',
10905
+        'separator' => '',
10906
+        'prefix' => '',
10907
+        'suffix' => '',
10908
+        'exclude' => 1,
10909
+        'id' => 'canonical_resultid',
10910
+        'table' => 'workunit',
10911
+        'field' => 'canonical_resultid',
10912
+        'relationship' => 'none',
10913 10913
     ),
10914 10914
     'canonical_credit' => array(
10915
-      'label' => 'Canonical credit',
10916
-      'alter' => array(
10915
+        'label' => 'Canonical credit',
10916
+        'alter' => array(
10917 10917
         'alter_text' => 0,
10918 10918
         'text' => '',
10919 10919
         'make_link' => 0,
@@ -10930,25 +10930,25 @@  discard block
 block discarded – undo
10930 10930
         'ellipsis' => 1,
10931 10931
         'html' => 0,
10932 10932
         'strip_tags' => 0,
10933
-      ),
10934
-      'empty' => '',
10935
-      'hide_empty' => 0,
10936
-      'empty_zero' => 0,
10937
-      'set_precision' => 0,
10938
-      'precision' => '0',
10939
-      'decimal' => '.',
10940
-      'separator' => ',',
10941
-      'prefix' => '',
10942
-      'suffix' => '',
10943
-      'exclude' => 1,
10944
-      'id' => 'canonical_credit',
10945
-      'table' => 'workunit',
10946
-      'field' => 'canonical_credit',
10947
-      'relationship' => 'none',
10933
+        ),
10934
+        'empty' => '',
10935
+        'hide_empty' => 0,
10936
+        'empty_zero' => 0,
10937
+        'set_precision' => 0,
10938
+        'precision' => '0',
10939
+        'decimal' => '.',
10940
+        'separator' => ',',
10941
+        'prefix' => '',
10942
+        'suffix' => '',
10943
+        'exclude' => 1,
10944
+        'id' => 'canonical_credit',
10945
+        'table' => 'workunit',
10946
+        'field' => 'canonical_credit',
10947
+        'relationship' => 'none',
10948 10948
     ),
10949 10949
     'phpcode' => array(
10950
-      'label' => 'Canonical result',
10951
-      'alter' => array(
10950
+        'label' => 'Canonical result',
10951
+        'alter' => array(
10952 10952
         'alter_text' => 0,
10953 10953
         'text' => '',
10954 10954
         'make_link' => 0,
@@ -10965,24 +10965,24 @@  discard block
 block discarded – undo
10965 10965
         'ellipsis' => 1,
10966 10966
         'html' => 0,
10967 10967
         'strip_tags' => 0,
10968
-      ),
10969
-      'empty' => '',
10970
-      'hide_empty' => 1,
10971
-      'empty_zero' => 0,
10972
-      'value' => '<?php
10968
+        ),
10969
+        'empty' => '',
10970
+        'hide_empty' => 1,
10971
+        'empty_zero' => 0,
10972
+        'value' => '<?php
10973 10973
   if ($data->workunit_canonical_resultid) {
10974 10974
     echo l($data->workunit_canonical_resultid, "task/{$data->workunit_canonical_resultid}");
10975 10975
   }
10976 10976
 ?>',
10977
-      'exclude' => 0,
10978
-      'id' => 'phpcode',
10979
-      'table' => 'customfield',
10980
-      'field' => 'phpcode',
10981
-      'relationship' => 'none',
10977
+        'exclude' => 0,
10978
+        'id' => 'phpcode',
10979
+        'table' => 'customfield',
10980
+        'field' => 'phpcode',
10981
+        'relationship' => 'none',
10982 10982
     ),
10983 10983
     'phpcode_1' => array(
10984
-      'label' => 'Granted credit',
10985
-      'alter' => array(
10984
+        'label' => 'Granted credit',
10985
+        'alter' => array(
10986 10986
         'alter_text' => 0,
10987 10987
         'text' => '',
10988 10988
         'make_link' => 0,
@@ -10999,24 +10999,24 @@  discard block
 block discarded – undo
10999 10999
         'ellipsis' => 1,
11000 11000
         'html' => 0,
11001 11001
         'strip_tags' => 0,
11002
-      ),
11003
-      'empty' => '',
11004
-      'hide_empty' => 1,
11005
-      'empty_zero' => 0,
11006
-      'value' => '<?php
11002
+        ),
11003
+        'empty' => '',
11004
+        'hide_empty' => 1,
11005
+        'empty_zero' => 0,
11006
+        'value' => '<?php
11007 11007
   if ($data->workunit_canonical_resultid) {
11008 11008
     echo $data->workunit_canonical_credit;
11009 11009
   }
11010 11010
 ?>',
11011
-      'exclude' => 0,
11012
-      'id' => 'phpcode_1',
11013
-      'table' => 'customfield',
11014
-      'field' => 'phpcode',
11015
-      'relationship' => 'none',
11011
+        'exclude' => 0,
11012
+        'id' => 'phpcode_1',
11013
+        'table' => 'customfield',
11014
+        'field' => 'phpcode',
11015
+        'relationship' => 'none',
11016 11016
     ),
11017 11017
     'error_mask' => array(
11018
-      'label' => 'Error mask',
11019
-      'alter' => array(
11018
+        'label' => 'Error mask',
11019
+        'alter' => array(
11020 11020
         'alter_text' => 0,
11021 11021
         'text' => '',
11022 11022
         'make_link' => 0,
@@ -11033,25 +11033,25 @@  discard block
 block discarded – undo
11033 11033
         'ellipsis' => 1,
11034 11034
         'html' => 0,
11035 11035
         'strip_tags' => 0,
11036
-      ),
11037
-      'empty' => '',
11038
-      'hide_empty' => 0,
11039
-      'empty_zero' => 0,
11040
-      'set_precision' => FALSE,
11041
-      'precision' => 0,
11042
-      'decimal' => '.',
11043
-      'separator' => '',
11044
-      'prefix' => '',
11045
-      'suffix' => '',
11046
-      'exclude' => 1,
11047
-      'id' => 'error_mask',
11048
-      'table' => 'workunit',
11049
-      'field' => 'error_mask',
11050
-      'relationship' => 'none',
11036
+        ),
11037
+        'empty' => '',
11038
+        'hide_empty' => 0,
11039
+        'empty_zero' => 0,
11040
+        'set_precision' => FALSE,
11041
+        'precision' => 0,
11042
+        'decimal' => '.',
11043
+        'separator' => '',
11044
+        'prefix' => '',
11045
+        'suffix' => '',
11046
+        'exclude' => 1,
11047
+        'id' => 'error_mask',
11048
+        'table' => 'workunit',
11049
+        'field' => 'error_mask',
11050
+        'relationship' => 'none',
11051 11051
     ),
11052 11052
     'target_nresults' => array(
11053
-      'label' => 'Initial replication',
11054
-      'alter' => array(
11053
+        'label' => 'Initial replication',
11054
+        'alter' => array(
11055 11055
         'alter_text' => 0,
11056 11056
         'text' => '',
11057 11057
         'make_link' => 0,
@@ -11068,25 +11068,25 @@  discard block
 block discarded – undo
11068 11068
         'ellipsis' => 1,
11069 11069
         'html' => 0,
11070 11070
         'strip_tags' => 0,
11071
-      ),
11072
-      'empty' => '',
11073
-      'hide_empty' => 0,
11074
-      'empty_zero' => 0,
11075
-      'set_precision' => FALSE,
11076
-      'precision' => 0,
11077
-      'decimal' => '.',
11078
-      'separator' => '',
11079
-      'prefix' => '',
11080
-      'suffix' => '',
11081
-      'exclude' => 1,
11082
-      'id' => 'target_nresults',
11083
-      'table' => 'workunit',
11084
-      'field' => 'target_nresults',
11085
-      'relationship' => 'none',
11071
+        ),
11072
+        'empty' => '',
11073
+        'hide_empty' => 0,
11074
+        'empty_zero' => 0,
11075
+        'set_precision' => FALSE,
11076
+        'precision' => 0,
11077
+        'decimal' => '.',
11078
+        'separator' => '',
11079
+        'prefix' => '',
11080
+        'suffix' => '',
11081
+        'exclude' => 1,
11082
+        'id' => 'target_nresults',
11083
+        'table' => 'workunit',
11084
+        'field' => 'target_nresults',
11085
+        'relationship' => 'none',
11086 11086
     ),
11087 11087
     'max_error_results' => array(
11088
-      'label' => 'Max error tasks',
11089
-      'alter' => array(
11088
+        'label' => 'Max error tasks',
11089
+        'alter' => array(
11090 11090
         'alter_text' => 0,
11091 11091
         'text' => '',
11092 11092
         'make_link' => 0,
@@ -11103,25 +11103,25 @@  discard block
 block discarded – undo
11103 11103
         'ellipsis' => 1,
11104 11104
         'html' => 0,
11105 11105
         'strip_tags' => 0,
11106
-      ),
11107
-      'empty' => '',
11108
-      'hide_empty' => 0,
11109
-      'empty_zero' => 0,
11110
-      'set_precision' => FALSE,
11111
-      'precision' => 0,
11112
-      'decimal' => '.',
11113
-      'separator' => '',
11114
-      'prefix' => '',
11115
-      'suffix' => '',
11116
-      'exclude' => 1,
11117
-      'id' => 'max_error_results',
11118
-      'table' => 'workunit',
11119
-      'field' => 'max_error_results',
11120
-      'relationship' => 'none',
11106
+        ),
11107
+        'empty' => '',
11108
+        'hide_empty' => 0,
11109
+        'empty_zero' => 0,
11110
+        'set_precision' => FALSE,
11111
+        'precision' => 0,
11112
+        'decimal' => '.',
11113
+        'separator' => '',
11114
+        'prefix' => '',
11115
+        'suffix' => '',
11116
+        'exclude' => 1,
11117
+        'id' => 'max_error_results',
11118
+        'table' => 'workunit',
11119
+        'field' => 'max_error_results',
11120
+        'relationship' => 'none',
11121 11121
     ),
11122 11122
     'max_success_results' => array(
11123
-      'label' => 'Max success tasks',
11124
-      'alter' => array(
11123
+        'label' => 'Max success tasks',
11124
+        'alter' => array(
11125 11125
         'alter_text' => 0,
11126 11126
         'text' => '',
11127 11127
         'make_link' => 0,
@@ -11138,25 +11138,25 @@  discard block
 block discarded – undo
11138 11138
         'ellipsis' => 1,
11139 11139
         'html' => 0,
11140 11140
         'strip_tags' => 0,
11141
-      ),
11142
-      'empty' => '',
11143
-      'hide_empty' => 0,
11144
-      'empty_zero' => 0,
11145
-      'set_precision' => FALSE,
11146
-      'precision' => 0,
11147
-      'decimal' => '.',
11148
-      'separator' => '',
11149
-      'prefix' => '',
11150
-      'suffix' => '',
11151
-      'exclude' => 1,
11152
-      'id' => 'max_success_results',
11153
-      'table' => 'workunit',
11154
-      'field' => 'max_success_results',
11155
-      'relationship' => 'none',
11141
+        ),
11142
+        'empty' => '',
11143
+        'hide_empty' => 0,
11144
+        'empty_zero' => 0,
11145
+        'set_precision' => FALSE,
11146
+        'precision' => 0,
11147
+        'decimal' => '.',
11148
+        'separator' => '',
11149
+        'prefix' => '',
11150
+        'suffix' => '',
11151
+        'exclude' => 1,
11152
+        'id' => 'max_success_results',
11153
+        'table' => 'workunit',
11154
+        'field' => 'max_success_results',
11155
+        'relationship' => 'none',
11156 11156
     ),
11157 11157
     'max_total_results' => array(
11158
-      'label' => 'Max total tasks',
11159
-      'alter' => array(
11158
+        'label' => 'Max total tasks',
11159
+        'alter' => array(
11160 11160
         'alter_text' => 0,
11161 11161
         'text' => '',
11162 11162
         'make_link' => 0,
@@ -11173,25 +11173,25 @@  discard block
 block discarded – undo
11173 11173
         'ellipsis' => 1,
11174 11174
         'html' => 0,
11175 11175
         'strip_tags' => 0,
11176
-      ),
11177
-      'empty' => '',
11178
-      'hide_empty' => 0,
11179
-      'empty_zero' => 0,
11180
-      'set_precision' => FALSE,
11181
-      'precision' => 0,
11182
-      'decimal' => '.',
11183
-      'separator' => '',
11184
-      'prefix' => '',
11185
-      'suffix' => '',
11186
-      'exclude' => 1,
11187
-      'id' => 'max_total_results',
11188
-      'table' => 'workunit',
11189
-      'field' => 'max_total_results',
11190
-      'relationship' => 'none',
11176
+        ),
11177
+        'empty' => '',
11178
+        'hide_empty' => 0,
11179
+        'empty_zero' => 0,
11180
+        'set_precision' => FALSE,
11181
+        'precision' => 0,
11182
+        'decimal' => '.',
11183
+        'separator' => '',
11184
+        'prefix' => '',
11185
+        'suffix' => '',
11186
+        'exclude' => 1,
11187
+        'id' => 'max_total_results',
11188
+        'table' => 'workunit',
11189
+        'field' => 'max_total_results',
11190
+        'relationship' => 'none',
11191 11191
     ),
11192 11192
     'min_quorum' => array(
11193
-      'label' => 'Minimum quorum',
11194
-      'alter' => array(
11193
+        'label' => 'Minimum quorum',
11194
+        'alter' => array(
11195 11195
         'alter_text' => 0,
11196 11196
         'text' => '',
11197 11197
         'make_link' => 0,
@@ -11208,25 +11208,25 @@  discard block
 block discarded – undo
11208 11208
         'ellipsis' => 1,
11209 11209
         'html' => 0,
11210 11210
         'strip_tags' => 0,
11211
-      ),
11212
-      'empty' => '',
11213
-      'hide_empty' => 0,
11214
-      'empty_zero' => 0,
11215
-      'set_precision' => FALSE,
11216
-      'precision' => 0,
11217
-      'decimal' => '.',
11218
-      'separator' => '',
11219
-      'prefix' => '',
11220
-      'suffix' => '',
11221
-      'exclude' => 1,
11222
-      'id' => 'min_quorum',
11223
-      'table' => 'workunit',
11224
-      'field' => 'min_quorum',
11225
-      'relationship' => 'none',
11211
+        ),
11212
+        'empty' => '',
11213
+        'hide_empty' => 0,
11214
+        'empty_zero' => 0,
11215
+        'set_precision' => FALSE,
11216
+        'precision' => 0,
11217
+        'decimal' => '.',
11218
+        'separator' => '',
11219
+        'prefix' => '',
11220
+        'suffix' => '',
11221
+        'exclude' => 1,
11222
+        'id' => 'min_quorum',
11223
+        'table' => 'workunit',
11224
+        'field' => 'min_quorum',
11225
+        'relationship' => 'none',
11226 11226
     ),
11227 11227
     'target_nresults_1' => array(
11228
-      'label' => 'Target number of results',
11229
-      'alter' => array(
11228
+        'label' => 'Target number of results',
11229
+        'alter' => array(
11230 11230
         'alter_text' => 0,
11231 11231
         'text' => '',
11232 11232
         'make_link' => 0,
@@ -11243,25 +11243,25 @@  discard block
 block discarded – undo
11243 11243
         'ellipsis' => 1,
11244 11244
         'html' => 0,
11245 11245
         'strip_tags' => 0,
11246
-      ),
11247
-      'empty' => '',
11248
-      'hide_empty' => 0,
11249
-      'empty_zero' => 0,
11250
-      'set_precision' => FALSE,
11251
-      'precision' => 0,
11252
-      'decimal' => '.',
11253
-      'separator' => '',
11254
-      'prefix' => '',
11255
-      'suffix' => '',
11256
-      'exclude' => 1,
11257
-      'id' => 'target_nresults_1',
11258
-      'table' => 'app',
11259
-      'field' => 'target_nresults',
11260
-      'relationship' => 'appid',
11246
+        ),
11247
+        'empty' => '',
11248
+        'hide_empty' => 0,
11249
+        'empty_zero' => 0,
11250
+        'set_precision' => FALSE,
11251
+        'precision' => 0,
11252
+        'decimal' => '.',
11253
+        'separator' => '',
11254
+        'prefix' => '',
11255
+        'suffix' => '',
11256
+        'exclude' => 1,
11257
+        'id' => 'target_nresults_1',
11258
+        'table' => 'app',
11259
+        'field' => 'target_nresults',
11260
+        'relationship' => 'appid',
11261 11261
     ),
11262 11262
     'phpcode_3' => array(
11263
-      'label' => 'Minimum quorum',
11264
-      'alter' => array(
11263
+        'label' => 'Minimum quorum',
11264
+        'alter' => array(
11265 11265
         'alter_text' => 0,
11266 11266
         'text' => '',
11267 11267
         'make_link' => 0,
@@ -11280,25 +11280,25 @@  discard block
 block discarded – undo
11280 11280
         'ellipsis' => 1,
11281 11281
         'html' => 0,
11282 11282
         'strip_tags' => 0,
11283
-      ),
11284
-      'empty' => '',
11285
-      'hide_empty' => 1,
11286
-      'empty_zero' => 0,
11287
-      'hide_alter_empty' => 1,
11288
-      'value' => '<?php
11283
+        ),
11284
+        'empty' => '',
11285
+        'hide_empty' => 1,
11286
+        'empty_zero' => 0,
11287
+        'hide_alter_empty' => 1,
11288
+        'value' => '<?php
11289 11289
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11290 11290
     echo $data->workunit_min_quorum;
11291 11291
   }
11292 11292
 ?>',
11293
-      'exclude' => 0,
11294
-      'id' => 'phpcode_3',
11295
-      'table' => 'customfield',
11296
-      'field' => 'phpcode',
11297
-      'relationship' => 'none',
11293
+        'exclude' => 0,
11294
+        'id' => 'phpcode_3',
11295
+        'table' => 'customfield',
11296
+        'field' => 'phpcode',
11297
+        'relationship' => 'none',
11298 11298
     ),
11299 11299
     'phpcode_4' => array(
11300
-      'label' => 'Initial replication',
11301
-      'alter' => array(
11300
+        'label' => 'Initial replication',
11301
+        'alter' => array(
11302 11302
         'alter_text' => 0,
11303 11303
         'text' => '',
11304 11304
         'make_link' => 0,
@@ -11317,26 +11317,26 @@  discard block
 block discarded – undo
11317 11317
         'ellipsis' => 1,
11318 11318
         'html' => 0,
11319 11319
         'strip_tags' => 0,
11320
-      ),
11321
-      'empty' => '',
11322
-      'hide_empty' => 1,
11323
-      'empty_zero' => 0,
11324
-      'hide_alter_empty' => 1,
11325
-      'value' => '<?php
11320
+        ),
11321
+        'empty' => '',
11322
+        'hide_empty' => 1,
11323
+        'empty_zero' => 0,
11324
+        'hide_alter_empty' => 1,
11325
+        'value' => '<?php
11326 11326
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11327 11327
 
11328 11328
     echo $data->workunit_target_nresults;
11329 11329
   }
11330 11330
 ?>',
11331
-      'exclude' => 0,
11332
-      'id' => 'phpcode_4',
11333
-      'table' => 'customfield',
11334
-      'field' => 'phpcode',
11335
-      'relationship' => 'none',
11331
+        'exclude' => 0,
11332
+        'id' => 'phpcode_4',
11333
+        'table' => 'customfield',
11334
+        'field' => 'phpcode',
11335
+        'relationship' => 'none',
11336 11336
     ),
11337 11337
     'phpcode_5' => array(
11338
-      'label' => 'Max # of error/total/success tasks',
11339
-      'alter' => array(
11338
+        'label' => 'Max # of error/total/success tasks',
11339
+        'alter' => array(
11340 11340
         'alter_text' => 0,
11341 11341
         'text' => '',
11342 11342
         'make_link' => 0,
@@ -11355,25 +11355,25 @@  discard block
 block discarded – undo
11355 11355
         'ellipsis' => 1,
11356 11356
         'html' => 0,
11357 11357
         'strip_tags' => 0,
11358
-      ),
11359
-      'empty' => '',
11360
-      'hide_empty' => 1,
11361
-      'empty_zero' => 0,
11362
-      'hide_alter_empty' => 1,
11363
-      'value' => '<?php
11358
+        ),
11359
+        'empty' => '',
11360
+        'hide_empty' => 1,
11361
+        'empty_zero' => 0,
11362
+        'hide_alter_empty' => 1,
11363
+        'value' => '<?php
11364 11364
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11365 11365
     echo "{$data->workunit_max_error_results}, {$data->workunit_max_total_results}, {$data->workunit_max_success_results}";
11366 11366
   }
11367 11367
 ?>',
11368
-      'exclude' => 0,
11369
-      'id' => 'phpcode_5',
11370
-      'table' => 'customfield',
11371
-      'field' => 'phpcode',
11372
-      'relationship' => 'none',
11368
+        'exclude' => 0,
11369
+        'id' => 'phpcode_5',
11370
+        'table' => 'customfield',
11371
+        'field' => 'phpcode',
11372
+        'relationship' => 'none',
11373 11373
     ),
11374 11374
     'phpcode_6' => array(
11375
-      'label' => 'Errors',
11376
-      'alter' => array(
11375
+        'label' => 'Errors',
11376
+        'alter' => array(
11377 11377
         'alter_text' => 0,
11378 11378
         'text' => '',
11379 11379
         'make_link' => 0,
@@ -11392,12 +11392,12 @@  discard block
 block discarded – undo
11392 11392
         'ellipsis' => 1,
11393 11393
         'html' => 0,
11394 11394
         'strip_tags' => 0,
11395
-      ),
11396
-      'empty' => '',
11397
-      'hide_empty' => 1,
11398
-      'empty_zero' => 0,
11399
-      'hide_alter_empty' => 1,
11400
-      'value' => '<?php
11395
+        ),
11396
+        'empty' => '',
11397
+        'hide_empty' => 1,
11398
+        'empty_zero' => 0,
11399
+        'hide_alter_empty' => 1,
11400
+        'value' => '<?php
11401 11401
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11402 11402
     if ($data->workunit_error_mask) {
11403 11403
       require_boinc(\'result\');
@@ -11405,15 +11405,15 @@  discard block
 block discarded – undo
11405 11405
     }
11406 11406
   }
11407 11407
 ?>',
11408
-      'exclude' => 0,
11409
-      'id' => 'phpcode_6',
11410
-      'table' => 'customfield',
11411
-      'field' => 'phpcode',
11412
-      'relationship' => 'none',
11408
+        'exclude' => 0,
11409
+        'id' => 'phpcode_6',
11410
+        'table' => 'customfield',
11411
+        'field' => 'phpcode',
11412
+        'relationship' => 'none',
11413 11413
     ),
11414 11414
     'need_validate' => array(
11415
-      'label' => 'Needs validation',
11416
-      'alter' => array(
11415
+        'label' => 'Needs validation',
11416
+        'alter' => array(
11417 11417
         'alter_text' => 0,
11418 11418
         'text' => '',
11419 11419
         'make_link' => 0,
@@ -11430,25 +11430,25 @@  discard block
 block discarded – undo
11430 11430
         'ellipsis' => 1,
11431 11431
         'html' => 0,
11432 11432
         'strip_tags' => 0,
11433
-      ),
11434
-      'empty' => '',
11435
-      'hide_empty' => 0,
11436
-      'empty_zero' => 0,
11437
-      'set_precision' => FALSE,
11438
-      'precision' => 0,
11439
-      'decimal' => '.',
11440
-      'separator' => ',',
11441
-      'prefix' => '',
11442
-      'suffix' => '',
11443
-      'exclude' => 1,
11444
-      'id' => 'need_validate',
11445
-      'table' => 'workunit',
11446
-      'field' => 'need_validate',
11447
-      'relationship' => 'none',
11433
+        ),
11434
+        'empty' => '',
11435
+        'hide_empty' => 0,
11436
+        'empty_zero' => 0,
11437
+        'set_precision' => FALSE,
11438
+        'precision' => 0,
11439
+        'decimal' => '.',
11440
+        'separator' => ',',
11441
+        'prefix' => '',
11442
+        'suffix' => '',
11443
+        'exclude' => 1,
11444
+        'id' => 'need_validate',
11445
+        'table' => 'workunit',
11446
+        'field' => 'need_validate',
11447
+        'relationship' => 'none',
11448 11448
     ),
11449 11449
     'phpcode_7' => array(
11450
-      'label' => 'Validation',
11451
-      'alter' => array(
11450
+        'label' => 'Validation',
11451
+        'alter' => array(
11452 11452
         'alter_text' => 0,
11453 11453
         'text' => '',
11454 11454
         'make_link' => 0,
@@ -11467,12 +11467,12 @@  discard block
 block discarded – undo
11467 11467
         'ellipsis' => 1,
11468 11468
         'html' => 0,
11469 11469
         'strip_tags' => 0,
11470
-      ),
11471
-      'empty' => '',
11472
-      'hide_empty' => 1,
11473
-      'empty_zero' => 0,
11474
-      'hide_alter_empty' => 1,
11475
-      'value' => '<?php
11470
+        ),
11471
+        'empty' => '',
11472
+        'hide_empty' => 1,
11473
+        'empty_zero' => 0,
11474
+        'hide_alter_empty' => 1,
11475
+        'value' => '<?php
11476 11476
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11477 11477
 
11478 11478
     if ($data->workunit_need_validate) {
@@ -11480,40 +11480,40 @@  discard block
 block discarded – undo
11480 11480
     }
11481 11481
   }
11482 11482
 ?>',
11483
-      'exclude' => 0,
11484
-      'id' => 'phpcode_7',
11485
-      'table' => 'customfield',
11486
-      'field' => 'phpcode',
11487
-      'relationship' => 'none',
11488
-    ),
11489
-  ));
11490
-  $handler->override_option('arguments', array(
11483
+        'exclude' => 0,
11484
+        'id' => 'phpcode_7',
11485
+        'table' => 'customfield',
11486
+        'field' => 'phpcode',
11487
+        'relationship' => 'none',
11488
+    ),
11489
+    ));
11490
+    $handler->override_option('arguments', array(
11491 11491
     'id' => array(
11492
-      'default_action' => 'not found',
11493
-      'style_plugin' => 'default_summary',
11494
-      'style_options' => array(),
11495
-      'wildcard' => 'all',
11496
-      'wildcard_substitution' => 'All',
11497
-      'title' => 'Workunit %1',
11498
-      'breadcrumb' => '',
11499
-      'default_argument_type' => 'fixed',
11500
-      'default_argument' => '',
11501
-      'validate_type' => 'numeric',
11502
-      'validate_fail' => 'not found',
11503
-      'id' => 'id',
11504
-      'table' => 'workunit',
11505
-      'field' => 'id',
11506
-      'validate_user_argument_type' => 'uid',
11507
-      'validate_user_roles' => array(
11492
+        'default_action' => 'not found',
11493
+        'style_plugin' => 'default_summary',
11494
+        'style_options' => array(),
11495
+        'wildcard' => 'all',
11496
+        'wildcard_substitution' => 'All',
11497
+        'title' => 'Workunit %1',
11498
+        'breadcrumb' => '',
11499
+        'default_argument_type' => 'fixed',
11500
+        'default_argument' => '',
11501
+        'validate_type' => 'numeric',
11502
+        'validate_fail' => 'not found',
11503
+        'id' => 'id',
11504
+        'table' => 'workunit',
11505
+        'field' => 'id',
11506
+        'validate_user_argument_type' => 'uid',
11507
+        'validate_user_roles' => array(
11508 11508
         2 => 0,
11509 11509
         3 => 0,
11510
-      ),
11511
-      'relationship' => 'none',
11512
-      'default_options_div_prefix' => '',
11513
-      'default_argument_fixed' => '',
11514
-      'default_argument_user' => 0,
11515
-      'default_argument_php' => '',
11516
-      'validate_argument_node_type' => array(
11510
+        ),
11511
+        'relationship' => 'none',
11512
+        'default_options_div_prefix' => '',
11513
+        'default_argument_fixed' => '',
11514
+        'default_argument_user' => 0,
11515
+        'default_argument_php' => '',
11516
+        'validate_argument_node_type' => array(
11517 11517
         'forum' => 0,
11518 11518
         'job_post' => 0,
11519 11519
         'news' => 0,
@@ -11521,59 +11521,59 @@  discard block
 block discarded – undo
11521 11521
         'profile' => 0,
11522 11522
         'story' => 0,
11523 11523
         'team' => 0,
11524
-      ),
11525
-      'validate_argument_node_access' => 0,
11526
-      'validate_argument_nid_type' => 'nid',
11527
-      'validate_argument_vocabulary' => array(
11524
+        ),
11525
+        'validate_argument_node_access' => 0,
11526
+        'validate_argument_nid_type' => 'nid',
11527
+        'validate_argument_vocabulary' => array(
11528 11528
         1 => 0,
11529
-      ),
11530
-      'validate_argument_type' => 'tid',
11531
-      'validate_argument_transform' => 0,
11532
-      'validate_user_restrict_roles' => 0,
11533
-      'validate_argument_php' => '',
11534
-    ),
11535
-  ));
11536
-  $handler->override_option('access', array(
11529
+        ),
11530
+        'validate_argument_type' => 'tid',
11531
+        'validate_argument_transform' => 0,
11532
+        'validate_user_restrict_roles' => 0,
11533
+        'validate_argument_php' => '',
11534
+    ),
11535
+    ));
11536
+    $handler->override_option('access', array(
11537 11537
     'type' => 'none',
11538
-  ));
11539
-  $handler->override_option('cache', array(
11538
+    ));
11539
+    $handler->override_option('cache', array(
11540 11540
     'type' => 'none',
11541
-  ));
11542
-  $handler->override_option('footer_format', '1');
11543
-  $handler->override_option('footer_empty', 0);
11544
-  $handler = $view->new_display('page', 'Page', 'page_1');
11545
-  $handler->override_option('path', 'workunit');
11546
-  $handler->override_option('menu', array(
11541
+    ));
11542
+    $handler->override_option('footer_format', '1');
11543
+    $handler->override_option('footer_empty', 0);
11544
+    $handler = $view->new_display('page', 'Page', 'page_1');
11545
+    $handler->override_option('path', 'workunit');
11546
+    $handler->override_option('menu', array(
11547 11547
     'type' => 'none',
11548 11548
     'title' => '',
11549 11549
     'description' => '',
11550 11550
     'weight' => 0,
11551 11551
     'name' => 'primary-links',
11552
-  ));
11553
-  $handler->override_option('tab_options', array(
11552
+    ));
11553
+    $handler->override_option('tab_options', array(
11554 11554
     'type' => 'none',
11555 11555
     'title' => '',
11556 11556
     'description' => '',
11557 11557
     'weight' => 0,
11558 11558
     'name' => 'navigation',
11559
-  ));
11559
+    ));
11560 11560
 
11561
-  $views[$view->name] = $view;
11561
+    $views[$view->name] = $view;
11562 11562
 
11563
-  // Exported view: boinc_workunit_tasks_all
11564
-  $view = new view;
11565
-  $view->name = 'boinc_workunit_tasks_all';
11566
-  $view->description = 'A list of all tasks in a given workunit';
11567
-  $view->tag = '';
11568
-  $view->base_table = 'result';
11569
-  $view->core = 6;
11570
-  $view->api_version = '2';
11571
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
11572
-  $handler = $view->new_display('default', 'Defaults', 'default');
11573
-  $handler->override_option('fields', array(
11563
+    // Exported view: boinc_workunit_tasks_all
11564
+    $view = new view;
11565
+    $view->name = 'boinc_workunit_tasks_all';
11566
+    $view->description = 'A list of all tasks in a given workunit';
11567
+    $view->tag = '';
11568
+    $view->base_table = 'result';
11569
+    $view->core = 6;
11570
+    $view->api_version = '2';
11571
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
11572
+    $handler = $view->new_display('default', 'Defaults', 'default');
11573
+    $handler->override_option('fields', array(
11574 11574
     'name' => array(
11575
-      'label' => 'Name',
11576
-      'alter' => array(
11575
+        'label' => 'Name',
11576
+        'alter' => array(
11577 11577
         'alter_text' => 0,
11578 11578
         'text' => '',
11579 11579
         'make_link' => 0,
@@ -11592,20 +11592,20 @@  discard block
 block discarded – undo
11592 11592
         'ellipsis' => 1,
11593 11593
         'html' => 0,
11594 11594
         'strip_tags' => 0,
11595
-      ),
11596
-      'empty' => '',
11597
-      'hide_empty' => 0,
11598
-      'empty_zero' => 0,
11599
-      'hide_alter_empty' => 1,
11600
-      'exclude' => 1,
11601
-      'id' => 'name',
11602
-      'table' => 'result',
11603
-      'field' => 'name',
11604
-      'relationship' => 'none',
11595
+        ),
11596
+        'empty' => '',
11597
+        'hide_empty' => 0,
11598
+        'empty_zero' => 0,
11599
+        'hide_alter_empty' => 1,
11600
+        'exclude' => 1,
11601
+        'id' => 'name',
11602
+        'table' => 'result',
11603
+        'field' => 'name',
11604
+        'relationship' => 'none',
11605 11605
     ),
11606 11606
     'id' => array(
11607
-      'label' => 'Task ID',
11608
-      'alter' => array(
11607
+        'label' => 'Task ID',
11608
+        'alter' => array(
11609 11609
         'alter_text' => 0,
11610 11610
         'text' => '',
11611 11611
         'make_link' => 0,
@@ -11624,29 +11624,29 @@  discard block
 block discarded – undo
11624 11624
         'ellipsis' => 1,
11625 11625
         'html' => 0,
11626 11626
         'strip_tags' => 0,
11627
-      ),
11628
-      'empty' => '',
11629
-      'hide_empty' => 0,
11630
-      'empty_zero' => 0,
11631
-      'hide_alter_empty' => 1,
11632
-      'set_precision' => FALSE,
11633
-      'precision' => 0,
11634
-      'decimal' => '.',
11635
-      'separator' => '',
11636
-      'format_plural' => 0,
11637
-      'format_plural_singular' => '1',
11638
-      'format_plural_plural' => '@count',
11639
-      'prefix' => '',
11640
-      'suffix' => '',
11641
-      'exclude' => 0,
11642
-      'id' => 'id',
11643
-      'table' => 'result',
11644
-      'field' => 'id',
11645
-      'relationship' => 'none',
11627
+        ),
11628
+        'empty' => '',
11629
+        'hide_empty' => 0,
11630
+        'empty_zero' => 0,
11631
+        'hide_alter_empty' => 1,
11632
+        'set_precision' => FALSE,
11633
+        'precision' => 0,
11634
+        'decimal' => '.',
11635
+        'separator' => '',
11636
+        'format_plural' => 0,
11637
+        'format_plural_singular' => '1',
11638
+        'format_plural_plural' => '@count',
11639
+        'prefix' => '',
11640
+        'suffix' => '',
11641
+        'exclude' => 0,
11642
+        'id' => 'id',
11643
+        'table' => 'result',
11644
+        'field' => 'id',
11645
+        'relationship' => 'none',
11646 11646
     ),
11647 11647
     'hostid' => array(
11648
-      'label' => 'Computer',
11649
-      'alter' => array(
11648
+        'label' => 'Computer',
11649
+        'alter' => array(
11650 11650
         'alter_text' => 0,
11651 11651
         'text' => '',
11652 11652
         'make_link' => 1,
@@ -11665,29 +11665,29 @@  discard block
 block discarded – undo
11665 11665
         'ellipsis' => 1,
11666 11666
         'html' => 0,
11667 11667
         'strip_tags' => 0,
11668
-      ),
11669
-      'empty' => '',
11670
-      'hide_empty' => 0,
11671
-      'empty_zero' => 0,
11672
-      'hide_alter_empty' => 1,
11673
-      'set_precision' => FALSE,
11674
-      'precision' => 0,
11675
-      'decimal' => '.',
11676
-      'separator' => '',
11677
-      'format_plural' => 0,
11678
-      'format_plural_singular' => '1',
11679
-      'format_plural_plural' => '@count',
11680
-      'prefix' => '',
11681
-      'suffix' => '',
11682
-      'exclude' => 0,
11683
-      'id' => 'hostid',
11684
-      'table' => 'result',
11685
-      'field' => 'hostid',
11686
-      'relationship' => 'none',
11668
+        ),
11669
+        'empty' => '',
11670
+        'hide_empty' => 0,
11671
+        'empty_zero' => 0,
11672
+        'hide_alter_empty' => 1,
11673
+        'set_precision' => FALSE,
11674
+        'precision' => 0,
11675
+        'decimal' => '.',
11676
+        'separator' => '',
11677
+        'format_plural' => 0,
11678
+        'format_plural_singular' => '1',
11679
+        'format_plural_plural' => '@count',
11680
+        'prefix' => '',
11681
+        'suffix' => '',
11682
+        'exclude' => 0,
11683
+        'id' => 'hostid',
11684
+        'table' => 'result',
11685
+        'field' => 'hostid',
11686
+        'relationship' => 'none',
11687 11687
     ),
11688 11688
     'sent_time' => array(
11689
-      'label' => 'Sent',
11690
-      'alter' => array(
11689
+        'label' => 'Sent',
11690
+        'alter' => array(
11691 11691
         'alter_text' => 0,
11692 11692
         'text' => '',
11693 11693
         'make_link' => 0,
@@ -11704,21 +11704,21 @@  discard block
 block discarded – undo
11704 11704
         'ellipsis' => 1,
11705 11705
         'html' => 0,
11706 11706
         'strip_tags' => 0,
11707
-      ),
11708
-      'empty' => '',
11709
-      'hide_empty' => 0,
11710
-      'empty_zero' => 0,
11711
-      'date_format' => 'custom',
11712
-      'custom_date_format' => 'j M Y G:i:s e',
11713
-      'exclude' => 1,
11714
-      'id' => 'sent_time',
11715
-      'table' => 'result',
11716
-      'field' => 'sent_time',
11717
-      'relationship' => 'none',
11707
+        ),
11708
+        'empty' => '',
11709
+        'hide_empty' => 0,
11710
+        'empty_zero' => 0,
11711
+        'date_format' => 'custom',
11712
+        'custom_date_format' => 'j M Y G:i:s e',
11713
+        'exclude' => 1,
11714
+        'id' => 'sent_time',
11715
+        'table' => 'result',
11716
+        'field' => 'sent_time',
11717
+        'relationship' => 'none',
11718 11718
     ),
11719 11719
     'received_time' => array(
11720
-      'label' => 'Received time',
11721
-      'alter' => array(
11720
+        'label' => 'Received time',
11721
+        'alter' => array(
11722 11722
         'alter_text' => 0,
11723 11723
         'text' => '',
11724 11724
         'make_link' => 0,
@@ -11735,21 +11735,21 @@  discard block
 block discarded – undo
11735 11735
         'ellipsis' => 1,
11736 11736
         'html' => 0,
11737 11737
         'strip_tags' => 0,
11738
-      ),
11739
-      'empty' => '',
11740
-      'hide_empty' => 0,
11741
-      'empty_zero' => 0,
11742
-      'date_format' => 'small',
11743
-      'custom_date_format' => '',
11744
-      'exclude' => 1,
11745
-      'id' => 'received_time',
11746
-      'table' => 'result',
11747
-      'field' => 'received_time',
11748
-      'relationship' => 'none',
11738
+        ),
11739
+        'empty' => '',
11740
+        'hide_empty' => 0,
11741
+        'empty_zero' => 0,
11742
+        'date_format' => 'small',
11743
+        'custom_date_format' => '',
11744
+        'exclude' => 1,
11745
+        'id' => 'received_time',
11746
+        'table' => 'result',
11747
+        'field' => 'received_time',
11748
+        'relationship' => 'none',
11749 11749
     ),
11750 11750
     'report_deadline' => array(
11751
-      'label' => 'Report deadline',
11752
-      'alter' => array(
11751
+        'label' => 'Report deadline',
11752
+        'alter' => array(
11753 11753
         'alter_text' => 0,
11754 11754
         'text' => '',
11755 11755
         'make_link' => 0,
@@ -11766,21 +11766,21 @@  discard block
 block discarded – undo
11766 11766
         'ellipsis' => 1,
11767 11767
         'html' => 0,
11768 11768
         'strip_tags' => 0,
11769
-      ),
11770
-      'empty' => '',
11771
-      'hide_empty' => 0,
11772
-      'empty_zero' => 0,
11773
-      'date_format' => 'small',
11774
-      'custom_date_format' => '',
11775
-      'exclude' => 1,
11776
-      'id' => 'report_deadline',
11777
-      'table' => 'result',
11778
-      'field' => 'report_deadline',
11779
-      'relationship' => 'none',
11769
+        ),
11770
+        'empty' => '',
11771
+        'hide_empty' => 0,
11772
+        'empty_zero' => 0,
11773
+        'date_format' => 'small',
11774
+        'custom_date_format' => '',
11775
+        'exclude' => 1,
11776
+        'id' => 'report_deadline',
11777
+        'table' => 'result',
11778
+        'field' => 'report_deadline',
11779
+        'relationship' => 'none',
11780 11780
     ),
11781 11781
     'phpcode_3' => array(
11782
-      'label' => 'Sent',
11783
-      'alter' => array(
11782
+        'label' => 'Sent',
11783
+        'alter' => array(
11784 11784
         'alter_text' => 0,
11785 11785
         'text' => '',
11786 11786
         'make_link' => 0,
@@ -11799,24 +11799,24 @@  discard block
 block discarded – undo
11799 11799
         'ellipsis' => 1,
11800 11800
         'html' => 0,
11801 11801
         'strip_tags' => 0,
11802
-      ),
11803
-      'empty' => '',
11804
-      'hide_empty' => 0,
11805
-      'empty_zero' => 0,
11806
-      'hide_alter_empty' => 1,
11807
-      'value' => '<?php
11802
+        ),
11803
+        'empty' => '',
11804
+        'hide_empty' => 0,
11805
+        'empty_zero' => 0,
11806
+        'hide_alter_empty' => 1,
11807
+        'value' => '<?php
11808 11808
   require_boinc(\'util\');
11809 11809
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
11810 11810
 ?>',
11811
-      'exclude' => 0,
11812
-      'id' => 'phpcode_3',
11813
-      'table' => 'customfield',
11814
-      'field' => 'phpcode',
11815
-      'relationship' => 'none',
11811
+        'exclude' => 0,
11812
+        'id' => 'phpcode_3',
11813
+        'table' => 'customfield',
11814
+        'field' => 'phpcode',
11815
+        'relationship' => 'none',
11816 11816
     ),
11817 11817
     'phpcode' => array(
11818
-      'label' => 'Time reported or deadline',
11819
-      'alter' => array(
11818
+        'label' => 'Time reported or deadline',
11819
+        'alter' => array(
11820 11820
         'alter_text' => 0,
11821 11821
         'text' => '',
11822 11822
         'make_link' => 0,
@@ -11835,24 +11835,24 @@  discard block
 block discarded – undo
11835 11835
         'ellipsis' => 1,
11836 11836
         'html' => 0,
11837 11837
         'strip_tags' => 0,
11838
-      ),
11839
-      'empty' => '',
11840
-      'hide_empty' => 0,
11841
-      'empty_zero' => 0,
11842
-      'hide_alter_empty' => 1,
11843
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
11844
-      'exclude' => 0,
11845
-      'id' => 'phpcode',
11846
-      'table' => 'customfield',
11847
-      'field' => 'phpcode',
11848
-      'override' => array(
11838
+        ),
11839
+        'empty' => '',
11840
+        'hide_empty' => 0,
11841
+        'empty_zero' => 0,
11842
+        'hide_alter_empty' => 1,
11843
+        'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
11844
+        'exclude' => 0,
11845
+        'id' => 'phpcode',
11846
+        'table' => 'customfield',
11847
+        'field' => 'phpcode',
11848
+        'override' => array(
11849 11849
         'button' => 'Override',
11850
-      ),
11851
-      'relationship' => 'none',
11850
+        ),
11851
+        'relationship' => 'none',
11852 11852
     ),
11853 11853
     'server_state' => array(
11854
-      'label' => 'Server state',
11855
-      'alter' => array(
11854
+        'label' => 'Server state',
11855
+        'alter' => array(
11856 11856
         'alter_text' => 0,
11857 11857
         'text' => '',
11858 11858
         'make_link' => 0,
@@ -11869,25 +11869,25 @@  discard block
 block discarded – undo
11869 11869
         'ellipsis' => 1,
11870 11870
         'html' => 0,
11871 11871
         'strip_tags' => 0,
11872
-      ),
11873
-      'empty' => '',
11874
-      'hide_empty' => 0,
11875
-      'empty_zero' => 0,
11876
-      'set_precision' => FALSE,
11877
-      'precision' => 0,
11878
-      'decimal' => '.',
11879
-      'separator' => '',
11880
-      'prefix' => '',
11881
-      'suffix' => '',
11882
-      'exclude' => 1,
11883
-      'id' => 'server_state',
11884
-      'table' => 'result',
11885
-      'field' => 'server_state',
11886
-      'relationship' => 'none',
11872
+        ),
11873
+        'empty' => '',
11874
+        'hide_empty' => 0,
11875
+        'empty_zero' => 0,
11876
+        'set_precision' => FALSE,
11877
+        'precision' => 0,
11878
+        'decimal' => '.',
11879
+        'separator' => '',
11880
+        'prefix' => '',
11881
+        'suffix' => '',
11882
+        'exclude' => 1,
11883
+        'id' => 'server_state',
11884
+        'table' => 'result',
11885
+        'field' => 'server_state',
11886
+        'relationship' => 'none',
11887 11887
     ),
11888 11888
     'outcome' => array(
11889
-      'label' => 'Outcome',
11890
-      'alter' => array(
11889
+        'label' => 'Outcome',
11890
+        'alter' => array(
11891 11891
         'alter_text' => 0,
11892 11892
         'text' => '',
11893 11893
         'make_link' => 0,
@@ -11904,25 +11904,25 @@  discard block
 block discarded – undo
11904 11904
         'ellipsis' => 1,
11905 11905
         'html' => 0,
11906 11906
         'strip_tags' => 0,
11907
-      ),
11908
-      'empty' => '',
11909
-      'hide_empty' => 0,
11910
-      'empty_zero' => 0,
11911
-      'set_precision' => FALSE,
11912
-      'precision' => 0,
11913
-      'decimal' => '.',
11914
-      'separator' => '',
11915
-      'prefix' => '',
11916
-      'suffix' => '',
11917
-      'exclude' => 1,
11918
-      'id' => 'outcome',
11919
-      'table' => 'result',
11920
-      'field' => 'outcome',
11921
-      'relationship' => 'none',
11907
+        ),
11908
+        'empty' => '',
11909
+        'hide_empty' => 0,
11910
+        'empty_zero' => 0,
11911
+        'set_precision' => FALSE,
11912
+        'precision' => 0,
11913
+        'decimal' => '.',
11914
+        'separator' => '',
11915
+        'prefix' => '',
11916
+        'suffix' => '',
11917
+        'exclude' => 1,
11918
+        'id' => 'outcome',
11919
+        'table' => 'result',
11920
+        'field' => 'outcome',
11921
+        'relationship' => 'none',
11922 11922
     ),
11923 11923
     'client_state' => array(
11924
-      'label' => 'Client state',
11925
-      'alter' => array(
11924
+        'label' => 'Client state',
11925
+        'alter' => array(
11926 11926
         'alter_text' => 0,
11927 11927
         'text' => '',
11928 11928
         'make_link' => 0,
@@ -11939,25 +11939,25 @@  discard block
 block discarded – undo
11939 11939
         'ellipsis' => 1,
11940 11940
         'html' => 0,
11941 11941
         'strip_tags' => 0,
11942
-      ),
11943
-      'empty' => '',
11944
-      'hide_empty' => 0,
11945
-      'empty_zero' => 0,
11946
-      'set_precision' => FALSE,
11947
-      'precision' => 0,
11948
-      'decimal' => '.',
11949
-      'separator' => '',
11950
-      'prefix' => '',
11951
-      'suffix' => '',
11952
-      'exclude' => 1,
11953
-      'id' => 'client_state',
11954
-      'table' => 'result',
11955
-      'field' => 'client_state',
11956
-      'relationship' => 'none',
11942
+        ),
11943
+        'empty' => '',
11944
+        'hide_empty' => 0,
11945
+        'empty_zero' => 0,
11946
+        'set_precision' => FALSE,
11947
+        'precision' => 0,
11948
+        'decimal' => '.',
11949
+        'separator' => '',
11950
+        'prefix' => '',
11951
+        'suffix' => '',
11952
+        'exclude' => 1,
11953
+        'id' => 'client_state',
11954
+        'table' => 'result',
11955
+        'field' => 'client_state',
11956
+        'relationship' => 'none',
11957 11957
     ),
11958 11958
     'validate_state' => array(
11959
-      'label' => 'Validation state',
11960
-      'alter' => array(
11959
+        'label' => 'Validation state',
11960
+        'alter' => array(
11961 11961
         'alter_text' => 0,
11962 11962
         'text' => '',
11963 11963
         'make_link' => 0,
@@ -11974,25 +11974,25 @@  discard block
 block discarded – undo
11974 11974
         'ellipsis' => 1,
11975 11975
         'html' => 0,
11976 11976
         'strip_tags' => 0,
11977
-      ),
11978
-      'empty' => '',
11979
-      'hide_empty' => 0,
11980
-      'empty_zero' => 0,
11981
-      'set_precision' => FALSE,
11982
-      'precision' => 0,
11983
-      'decimal' => '.',
11984
-      'separator' => '',
11985
-      'prefix' => '',
11986
-      'suffix' => '',
11987
-      'exclude' => 1,
11988
-      'id' => 'validate_state',
11989
-      'table' => 'result',
11990
-      'field' => 'validate_state',
11991
-      'relationship' => 'none',
11977
+        ),
11978
+        'empty' => '',
11979
+        'hide_empty' => 0,
11980
+        'empty_zero' => 0,
11981
+        'set_precision' => FALSE,
11982
+        'precision' => 0,
11983
+        'decimal' => '.',
11984
+        'separator' => '',
11985
+        'prefix' => '',
11986
+        'suffix' => '',
11987
+        'exclude' => 1,
11988
+        'id' => 'validate_state',
11989
+        'table' => 'result',
11990
+        'field' => 'validate_state',
11991
+        'relationship' => 'none',
11992 11992
     ),
11993 11993
     'exit_status' => array(
11994
-      'label' => 'Exit status',
11995
-      'alter' => array(
11994
+        'label' => 'Exit status',
11995
+        'alter' => array(
11996 11996
         'alter_text' => 0,
11997 11997
         'text' => '',
11998 11998
         'make_link' => 0,
@@ -12009,25 +12009,25 @@  discard block
 block discarded – undo
12009 12009
         'ellipsis' => 1,
12010 12010
         'html' => 0,
12011 12011
         'strip_tags' => 0,
12012
-      ),
12013
-      'empty' => '',
12014
-      'hide_empty' => 0,
12015
-      'empty_zero' => 0,
12016
-      'set_precision' => FALSE,
12017
-      'precision' => 0,
12018
-      'decimal' => '.',
12019
-      'separator' => '',
12020
-      'prefix' => '',
12021
-      'suffix' => '',
12022
-      'exclude' => 1,
12023
-      'id' => 'exit_status',
12024
-      'table' => 'result',
12025
-      'field' => 'exit_status',
12026
-      'relationship' => 'none',
12012
+        ),
12013
+        'empty' => '',
12014
+        'hide_empty' => 0,
12015
+        'empty_zero' => 0,
12016
+        'set_precision' => FALSE,
12017
+        'precision' => 0,
12018
+        'decimal' => '.',
12019
+        'separator' => '',
12020
+        'prefix' => '',
12021
+        'suffix' => '',
12022
+        'exclude' => 1,
12023
+        'id' => 'exit_status',
12024
+        'table' => 'result',
12025
+        'field' => 'exit_status',
12026
+        'relationship' => 'none',
12027 12027
     ),
12028 12028
     'phpcode_1' => array(
12029
-      'label' => 'Status',
12030
-      'alter' => array(
12029
+        'label' => 'Status',
12030
+        'alter' => array(
12031 12031
         'alter_text' => 0,
12032 12032
         'text' => '',
12033 12033
         'make_link' => 0,
@@ -12044,11 +12044,11 @@  discard block
 block discarded – undo
12044 12044
         'ellipsis' => 1,
12045 12045
         'html' => 0,
12046 12046
         'strip_tags' => 0,
12047
-      ),
12048
-      'empty' => '',
12049
-      'hide_empty' => 0,
12050
-      'empty_zero' => 0,
12051
-      'value' => '<?php
12047
+        ),
12048
+        'empty' => '',
12049
+        'hide_empty' => 0,
12050
+        'empty_zero' => 0,
12051
+        'value' => '<?php
12052 12052
   require_boinc(\'result\');
12053 12053
   $result = new stdClass();
12054 12054
   $result->server_state = $data->result_server_state;
@@ -12058,18 +12058,18 @@  discard block
 block discarded – undo
12058 12058
   $result->exit_status = $data->result_exit_status;
12059 12059
   return state_string($result);
12060 12060
 ?>',
12061
-      'exclude' => 0,
12062
-      'id' => 'phpcode_1',
12063
-      'table' => 'customfield',
12064
-      'field' => 'phpcode',
12065
-      'override' => array(
12061
+        'exclude' => 0,
12062
+        'id' => 'phpcode_1',
12063
+        'table' => 'customfield',
12064
+        'field' => 'phpcode',
12065
+        'override' => array(
12066 12066
         'button' => 'Override',
12067
-      ),
12068
-      'relationship' => 'none',
12067
+        ),
12068
+        'relationship' => 'none',
12069 12069
     ),
12070 12070
     'elapsed_time' => array(
12071
-      'label' => 'Run time',
12072
-      'alter' => array(
12071
+        'label' => 'Run time',
12072
+        'alter' => array(
12073 12073
         'alter_text' => 0,
12074 12074
         'text' => '',
12075 12075
         'make_link' => 0,
@@ -12088,29 +12088,29 @@  discard block
 block discarded – undo
12088 12088
         'ellipsis' => 1,
12089 12089
         'html' => 0,
12090 12090
         'strip_tags' => 0,
12091
-      ),
12092
-      'empty' => '',
12093
-      'hide_empty' => 0,
12094
-      'empty_zero' => 0,
12095
-      'hide_alter_empty' => 1,
12096
-      'set_precision' => 1,
12097
-      'precision' => '2',
12098
-      'decimal' => '.',
12099
-      'separator' => ',',
12100
-      'format_plural' => 0,
12101
-      'format_plural_singular' => '1',
12102
-      'format_plural_plural' => '@count',
12103
-      'prefix' => '',
12104
-      'suffix' => '',
12105
-      'exclude' => 0,
12106
-      'id' => 'elapsed_time',
12107
-      'table' => 'result',
12108
-      'field' => 'elapsed_time',
12109
-      'relationship' => 'none',
12091
+        ),
12092
+        'empty' => '',
12093
+        'hide_empty' => 0,
12094
+        'empty_zero' => 0,
12095
+        'hide_alter_empty' => 1,
12096
+        'set_precision' => 1,
12097
+        'precision' => '2',
12098
+        'decimal' => '.',
12099
+        'separator' => ',',
12100
+        'format_plural' => 0,
12101
+        'format_plural_singular' => '1',
12102
+        'format_plural_plural' => '@count',
12103
+        'prefix' => '',
12104
+        'suffix' => '',
12105
+        'exclude' => 0,
12106
+        'id' => 'elapsed_time',
12107
+        'table' => 'result',
12108
+        'field' => 'elapsed_time',
12109
+        'relationship' => 'none',
12110 12110
     ),
12111 12111
     'cpu_time' => array(
12112
-      'label' => 'CPU time',
12113
-      'alter' => array(
12112
+        'label' => 'CPU time',
12113
+        'alter' => array(
12114 12114
         'alter_text' => 0,
12115 12115
         'text' => '',
12116 12116
         'make_link' => 0,
@@ -12129,29 +12129,29 @@  discard block
 block discarded – undo
12129 12129
         'ellipsis' => 1,
12130 12130
         'html' => 0,
12131 12131
         'strip_tags' => 0,
12132
-      ),
12133
-      'empty' => '',
12134
-      'hide_empty' => 0,
12135
-      'empty_zero' => 0,
12136
-      'hide_alter_empty' => 1,
12137
-      'set_precision' => 1,
12138
-      'precision' => '2',
12139
-      'decimal' => '.',
12140
-      'separator' => ',',
12141
-      'format_plural' => 0,
12142
-      'format_plural_singular' => '1',
12143
-      'format_plural_plural' => '@count',
12144
-      'prefix' => '',
12145
-      'suffix' => '',
12146
-      'exclude' => 0,
12147
-      'id' => 'cpu_time',
12148
-      'table' => 'result',
12149
-      'field' => 'cpu_time',
12150
-      'relationship' => 'none',
12132
+        ),
12133
+        'empty' => '',
12134
+        'hide_empty' => 0,
12135
+        'empty_zero' => 0,
12136
+        'hide_alter_empty' => 1,
12137
+        'set_precision' => 1,
12138
+        'precision' => '2',
12139
+        'decimal' => '.',
12140
+        'separator' => ',',
12141
+        'format_plural' => 0,
12142
+        'format_plural_singular' => '1',
12143
+        'format_plural_plural' => '@count',
12144
+        'prefix' => '',
12145
+        'suffix' => '',
12146
+        'exclude' => 0,
12147
+        'id' => 'cpu_time',
12148
+        'table' => 'result',
12149
+        'field' => 'cpu_time',
12150
+        'relationship' => 'none',
12151 12151
     ),
12152 12152
     'granted_credit' => array(
12153
-      'label' => 'Granted credit',
12154
-      'alter' => array(
12153
+        'label' => 'Granted credit',
12154
+        'alter' => array(
12155 12155
         'alter_text' => 0,
12156 12156
         'text' => '',
12157 12157
         'make_link' => 0,
@@ -12170,29 +12170,29 @@  discard block
 block discarded – undo
12170 12170
         'ellipsis' => 1,
12171 12171
         'html' => 0,
12172 12172
         'strip_tags' => 0,
12173
-      ),
12174
-      'empty' => '',
12175
-      'hide_empty' => 0,
12176
-      'empty_zero' => 0,
12177
-      'hide_alter_empty' => 0,
12178
-      'set_precision' => 1,
12179
-      'precision' => '0',
12180
-      'decimal' => '.',
12181
-      'separator' => ',',
12182
-      'format_plural' => 0,
12183
-      'format_plural_singular' => '1',
12184
-      'format_plural_plural' => '@count',
12185
-      'prefix' => '',
12186
-      'suffix' => '',
12187
-      'exclude' => 0,
12188
-      'id' => 'granted_credit',
12189
-      'table' => 'result',
12190
-      'field' => 'granted_credit',
12191
-      'relationship' => 'none',
12173
+        ),
12174
+        'empty' => '',
12175
+        'hide_empty' => 0,
12176
+        'empty_zero' => 0,
12177
+        'hide_alter_empty' => 0,
12178
+        'set_precision' => 1,
12179
+        'precision' => '0',
12180
+        'decimal' => '.',
12181
+        'separator' => ',',
12182
+        'format_plural' => 0,
12183
+        'format_plural_singular' => '1',
12184
+        'format_plural_plural' => '@count',
12185
+        'prefix' => '',
12186
+        'suffix' => '',
12187
+        'exclude' => 0,
12188
+        'id' => 'granted_credit',
12189
+        'table' => 'result',
12190
+        'field' => 'granted_credit',
12191
+        'relationship' => 'none',
12192 12192
     ),
12193 12193
     'appid' => array(
12194
-      'label' => 'Application ID',
12195
-      'alter' => array(
12194
+        'label' => 'Application ID',
12195
+        'alter' => array(
12196 12196
         'alter_text' => 0,
12197 12197
         'text' => '',
12198 12198
         'make_link' => 0,
@@ -12211,29 +12211,29 @@  discard block
 block discarded – undo
12211 12211
         'ellipsis' => 1,
12212 12212
         'html' => 0,
12213 12213
         'strip_tags' => 0,
12214
-      ),
12215
-      'empty' => '',
12216
-      'hide_empty' => 0,
12217
-      'empty_zero' => 0,
12218
-      'hide_alter_empty' => 1,
12219
-      'set_precision' => FALSE,
12220
-      'precision' => 0,
12221
-      'decimal' => '.',
12222
-      'separator' => '',
12223
-      'format_plural' => 0,
12224
-      'format_plural_singular' => '1',
12225
-      'format_plural_plural' => '@count',
12226
-      'prefix' => '',
12227
-      'suffix' => '',
12228
-      'exclude' => 1,
12229
-      'id' => 'appid',
12230
-      'table' => 'result',
12231
-      'field' => 'appid',
12232
-      'relationship' => 'none',
12214
+        ),
12215
+        'empty' => '',
12216
+        'hide_empty' => 0,
12217
+        'empty_zero' => 0,
12218
+        'hide_alter_empty' => 1,
12219
+        'set_precision' => FALSE,
12220
+        'precision' => 0,
12221
+        'decimal' => '.',
12222
+        'separator' => '',
12223
+        'format_plural' => 0,
12224
+        'format_plural_singular' => '1',
12225
+        'format_plural_plural' => '@count',
12226
+        'prefix' => '',
12227
+        'suffix' => '',
12228
+        'exclude' => 1,
12229
+        'id' => 'appid',
12230
+        'table' => 'result',
12231
+        'field' => 'appid',
12232
+        'relationship' => 'none',
12233 12233
     ),
12234 12234
     'app_version_id' => array(
12235
-      'label' => 'Application version',
12236
-      'alter' => array(
12235
+        'label' => 'Application version',
12236
+        'alter' => array(
12237 12237
         'alter_text' => 0,
12238 12238
         'text' => '',
12239 12239
         'make_link' => 0,
@@ -12250,25 +12250,25 @@  discard block
 block discarded – undo
12250 12250
         'ellipsis' => 1,
12251 12251
         'html' => 0,
12252 12252
         'strip_tags' => 0,
12253
-      ),
12254
-      'empty' => '',
12255
-      'hide_empty' => 0,
12256
-      'empty_zero' => 0,
12257
-      'set_precision' => FALSE,
12258
-      'precision' => 0,
12259
-      'decimal' => '.',
12260
-      'separator' => '',
12261
-      'prefix' => '',
12262
-      'suffix' => '',
12263
-      'exclude' => 1,
12264
-      'id' => 'app_version_id',
12265
-      'table' => 'result',
12266
-      'field' => 'app_version_id',
12267
-      'relationship' => 'none',
12253
+        ),
12254
+        'empty' => '',
12255
+        'hide_empty' => 0,
12256
+        'empty_zero' => 0,
12257
+        'set_precision' => FALSE,
12258
+        'precision' => 0,
12259
+        'decimal' => '.',
12260
+        'separator' => '',
12261
+        'prefix' => '',
12262
+        'suffix' => '',
12263
+        'exclude' => 1,
12264
+        'id' => 'app_version_id',
12265
+        'table' => 'result',
12266
+        'field' => 'app_version_id',
12267
+        'relationship' => 'none',
12268 12268
     ),
12269 12269
     'phpcode_2' => array(
12270
-      'label' => 'Application',
12271
-      'alter' => array(
12270
+        'label' => 'Application',
12271
+        'alter' => array(
12272 12272
         'alter_text' => 0,
12273 12273
         'text' => '',
12274 12274
         'make_link' => 0,
@@ -12287,756 +12287,756 @@  discard block
 block discarded – undo
12287 12287
         'ellipsis' => 1,
12288 12288
         'html' => 0,
12289 12289
         'strip_tags' => 0,
12290
-      ),
12291
-      'empty' => '',
12292
-      'hide_empty' => 0,
12293
-      'empty_zero' => 0,
12294
-      'hide_alter_empty' => 1,
12295
-      'value' => '<?php
12290
+        ),
12291
+        'empty' => '',
12292
+        'hide_empty' => 0,
12293
+        'empty_zero' => 0,
12294
+        'hide_alter_empty' => 1,
12295
+        'value' => '<?php
12296 12296
   require_boinc(\'result\');
12297 12297
   $result = new stdClass();
12298 12298
   $result->appid = $data->result_appid;
12299 12299
   $result->app_version_id = $data->result_app_version_id;
12300 12300
   return app_version_string($result);
12301 12301
 ?>',
12302
-      'exclude' => 0,
12303
-      'id' => 'phpcode_2',
12304
-      'table' => 'customfield',
12305
-      'field' => 'phpcode',
12306
-      'override' => array(
12302
+        'exclude' => 0,
12303
+        'id' => 'phpcode_2',
12304
+        'table' => 'customfield',
12305
+        'field' => 'phpcode',
12306
+        'override' => array(
12307 12307
         'button' => 'Override',
12308
-      ),
12309
-      'relationship' => 'none',
12308
+        ),
12309
+        'relationship' => 'none',
12310 12310
     ),
12311
-  ));
12312
-  $handler->override_option('arguments', array(
12311
+    ));
12312
+    $handler->override_option('arguments', array(
12313 12313
     'workunitid' => array(
12314
-      'default_action' => 'not found',
12315
-      'style_plugin' => 'default_summary',
12316
-      'style_options' => array(),
12317
-      'wildcard' => 'all',
12318
-      'wildcard_substitution' => 'All',
12319
-      'title' => 'Tasks for workunit %1',
12320
-      'breadcrumb' => '',
12321
-      'default_argument_type' => 'fixed',
12322
-      'default_argument' => '',
12323
-      'validate_type' => 'numeric',
12324
-      'validate_fail' => 'not found',
12325
-      'id' => 'workunitid',
12326
-      'table' => 'result',
12327
-      'field' => 'workunitid',
12328
-      'validate_user_argument_type' => 'uid',
12329
-      'validate_user_roles' => array(
12314
+        'default_action' => 'not found',
12315
+        'style_plugin' => 'default_summary',
12316
+        'style_options' => array(),
12317
+        'wildcard' => 'all',
12318
+        'wildcard_substitution' => 'All',
12319
+        'title' => 'Tasks for workunit %1',
12320
+        'breadcrumb' => '',
12321
+        'default_argument_type' => 'fixed',
12322
+        'default_argument' => '',
12323
+        'validate_type' => 'numeric',
12324
+        'validate_fail' => 'not found',
12325
+        'id' => 'workunitid',
12326
+        'table' => 'result',
12327
+        'field' => 'workunitid',
12328
+        'validate_user_argument_type' => 'uid',
12329
+        'validate_user_roles' => array(
12330 12330
         2 => 0,
12331 12331
         4 => 0,
12332 12332
         7 => 0,
12333 12333
         5 => 0,
12334 12334
         3 => 0,
12335 12335
         6 => 0,
12336
-      ),
12337
-      'me_redirect' => 0,
12338
-      'me_validate_user_argument_type' => 'uid',
12339
-      'me_validate_user_roles' => array(
12336
+        ),
12337
+        'me_redirect' => 0,
12338
+        'me_validate_user_argument_type' => 'uid',
12339
+        'me_validate_user_roles' => array(
12340 12340
         2 => 0,
12341 12341
         4 => 0,
12342 12342
         7 => 0,
12343 12343
         5 => 0,
12344 12344
         3 => 0,
12345 12345
         6 => 0,
12346
-      ),
12347
-      'relationship' => 'none',
12348
-      'default_options_div_prefix' => '',
12349
-      'default_taxonomy_tid_term_page' => 0,
12350
-      'default_taxonomy_tid_node' => 0,
12351
-      'default_taxonomy_tid_limit' => 0,
12352
-      'default_taxonomy_tid_vids' => array(
12346
+        ),
12347
+        'relationship' => 'none',
12348
+        'default_options_div_prefix' => '',
12349
+        'default_taxonomy_tid_term_page' => 0,
12350
+        'default_taxonomy_tid_node' => 0,
12351
+        'default_taxonomy_tid_limit' => 0,
12352
+        'default_taxonomy_tid_vids' => array(
12353 12353
         1 => 0,
12354 12354
         2 => 0,
12355
-      ),
12356
-      'default_argument_user' => 0,
12357
-      'default_argument_fixed' => '',
12358
-      'default_argument_php' => '',
12359
-      'validate_argument_node_type' => array(
12355
+        ),
12356
+        'default_argument_user' => 0,
12357
+        'default_argument_fixed' => '',
12358
+        'default_argument_php' => '',
12359
+        'validate_argument_node_type' => array(
12360 12360
         'page' => 0,
12361 12361
         'news' => 0,
12362 12362
         'profile' => 0,
12363 12363
         'forum' => 0,
12364 12364
         'panel' => 0,
12365 12365
         'story' => 0,
12366
-      ),
12367
-      'validate_argument_node_access' => 0,
12368
-      'validate_argument_nid_type' => 'nid',
12369
-      'validate_argument_vocabulary' => array(
12366
+        ),
12367
+        'validate_argument_node_access' => 0,
12368
+        'validate_argument_nid_type' => 'nid',
12369
+        'validate_argument_vocabulary' => array(
12370 12370
         1 => 0,
12371 12371
         2 => 0,
12372
-      ),
12373
-      'validate_argument_type' => 'tid',
12374
-      'validate_argument_transform' => 0,
12375
-      'validate_user_restrict_roles' => 0,
12376
-      'validate_argument_node_flag_name' => '*relationship*',
12377
-      'validate_argument_node_flag_test' => 'flaggable',
12378
-      'validate_argument_node_flag_id_type' => 'id',
12379
-      'validate_argument_user_flag_name' => '*relationship*',
12380
-      'validate_argument_user_flag_test' => 'flaggable',
12381
-      'validate_argument_user_flag_id_type' => 'id',
12382
-      'validate_argument_php' => '',
12383
-      'me_validate_user_restrict_roles' => 0,
12384
-    ),
12385
-  ));
12386
-  $handler->override_option('access', array(
12372
+        ),
12373
+        'validate_argument_type' => 'tid',
12374
+        'validate_argument_transform' => 0,
12375
+        'validate_user_restrict_roles' => 0,
12376
+        'validate_argument_node_flag_name' => '*relationship*',
12377
+        'validate_argument_node_flag_test' => 'flaggable',
12378
+        'validate_argument_node_flag_id_type' => 'id',
12379
+        'validate_argument_user_flag_name' => '*relationship*',
12380
+        'validate_argument_user_flag_test' => 'flaggable',
12381
+        'validate_argument_user_flag_id_type' => 'id',
12382
+        'validate_argument_php' => '',
12383
+        'me_validate_user_restrict_roles' => 0,
12384
+    ),
12385
+    ));
12386
+    $handler->override_option('access', array(
12387 12387
     'type' => 'none',
12388
-  ));
12389
-  $handler->override_option('cache', array(
12388
+    ));
12389
+    $handler->override_option('cache', array(
12390 12390
     'type' => 'none',
12391
-  ));
12392
-  $handler->override_option('items_per_page', 20);
12393
-  $handler->override_option('use_pager', '1');
12394
-  $handler->override_option('style_plugin', 'table');
12395
-  $handler->override_option('style_options', array(
12391
+    ));
12392
+    $handler->override_option('items_per_page', 20);
12393
+    $handler->override_option('use_pager', '1');
12394
+    $handler->override_option('style_plugin', 'table');
12395
+    $handler->override_option('style_options', array(
12396 12396
     'grouping' => '',
12397 12397
     'override' => 1,
12398 12398
     'sticky' => 1,
12399 12399
     'order' => 'asc',
12400 12400
     'summary' => '',
12401 12401
     'columns' => array(
12402
-      'id' => 'id',
12403
-      'hostid' => 'hostid',
12404
-      'sent_time' => 'sent_time',
12405
-      'received_time' => 'received_time',
12406
-      'report_deadline' => 'report_deadline',
12407
-      'phpcode_3' => 'phpcode_3',
12408
-      'phpcode' => 'phpcode',
12409
-      'server_state' => 'server_state',
12410
-      'outcome' => 'outcome',
12411
-      'client_state' => 'client_state',
12412
-      'validate_state' => 'validate_state',
12413
-      'exit_status' => 'exit_status',
12414
-      'phpcode_1' => 'phpcode_1',
12415
-      'elapsed_time' => 'elapsed_time',
12416
-      'cpu_time' => 'cpu_time',
12417
-      'claimed_credit_1' => 'claimed_credit_1',
12418
-      'granted_credit' => 'granted_credit',
12419
-      'app_version_id' => 'app_version_id',
12420
-      'phpcode_2' => 'phpcode_2',
12402
+        'id' => 'id',
12403
+        'hostid' => 'hostid',
12404
+        'sent_time' => 'sent_time',
12405
+        'received_time' => 'received_time',
12406
+        'report_deadline' => 'report_deadline',
12407
+        'phpcode_3' => 'phpcode_3',
12408
+        'phpcode' => 'phpcode',
12409
+        'server_state' => 'server_state',
12410
+        'outcome' => 'outcome',
12411
+        'client_state' => 'client_state',
12412
+        'validate_state' => 'validate_state',
12413
+        'exit_status' => 'exit_status',
12414
+        'phpcode_1' => 'phpcode_1',
12415
+        'elapsed_time' => 'elapsed_time',
12416
+        'cpu_time' => 'cpu_time',
12417
+        'claimed_credit_1' => 'claimed_credit_1',
12418
+        'granted_credit' => 'granted_credit',
12419
+        'app_version_id' => 'app_version_id',
12420
+        'phpcode_2' => 'phpcode_2',
12421 12421
     ),
12422 12422
     'info' => array(
12423
-      'id' => array(
12423
+        'id' => array(
12424 12424
         'sortable' => 1,
12425 12425
         'separator' => '',
12426
-      ),
12427
-      'hostid' => array(
12426
+        ),
12427
+        'hostid' => array(
12428 12428
         'sortable' => 1,
12429 12429
         'separator' => '',
12430
-      ),
12431
-      'sent_time' => array(
12430
+        ),
12431
+        'sent_time' => array(
12432 12432
         'sortable' => 1,
12433 12433
         'separator' => '',
12434
-      ),
12435
-      'received_time' => array(
12434
+        ),
12435
+        'received_time' => array(
12436 12436
         'sortable' => 1,
12437 12437
         'separator' => '',
12438
-      ),
12439
-      'report_deadline' => array(
12438
+        ),
12439
+        'report_deadline' => array(
12440 12440
         'sortable' => 1,
12441 12441
         'separator' => '',
12442
-      ),
12443
-      'phpcode_3' => array(
12442
+        ),
12443
+        'phpcode_3' => array(
12444 12444
         'separator' => '',
12445
-      ),
12446
-      'phpcode' => array(
12445
+        ),
12446
+        'phpcode' => array(
12447 12447
         'separator' => '',
12448
-      ),
12449
-      'server_state' => array(
12448
+        ),
12449
+        'server_state' => array(
12450 12450
         'sortable' => 0,
12451 12451
         'separator' => '',
12452
-      ),
12453
-      'outcome' => array(
12452
+        ),
12453
+        'outcome' => array(
12454 12454
         'sortable' => 0,
12455 12455
         'separator' => '',
12456
-      ),
12457
-      'client_state' => array(
12456
+        ),
12457
+        'client_state' => array(
12458 12458
         'sortable' => 0,
12459 12459
         'separator' => '',
12460
-      ),
12461
-      'validate_state' => array(
12460
+        ),
12461
+        'validate_state' => array(
12462 12462
         'sortable' => 0,
12463 12463
         'separator' => '',
12464
-      ),
12465
-      'exit_status' => array(
12464
+        ),
12465
+        'exit_status' => array(
12466 12466
         'sortable' => 0,
12467 12467
         'separator' => '',
12468
-      ),
12469
-      'phpcode_1' => array(
12468
+        ),
12469
+        'phpcode_1' => array(
12470 12470
         'separator' => '',
12471
-      ),
12472
-      'elapsed_time' => array(
12471
+        ),
12472
+        'elapsed_time' => array(
12473 12473
         'sortable' => 1,
12474 12474
         'separator' => '',
12475
-      ),
12476
-      'cpu_time' => array(
12475
+        ),
12476
+        'cpu_time' => array(
12477 12477
         'sortable' => 1,
12478 12478
         'separator' => '',
12479
-      ),
12480
-      'claimed_credit_1' => array(
12479
+        ),
12480
+        'claimed_credit_1' => array(
12481 12481
         'sortable' => 1,
12482 12482
         'separator' => '',
12483
-      ),
12484
-      'granted_credit' => array(
12483
+        ),
12484
+        'granted_credit' => array(
12485 12485
         'sortable' => 1,
12486 12486
         'separator' => '',
12487
-      ),
12488
-      'app_version_id' => array(
12487
+        ),
12488
+        'app_version_id' => array(
12489 12489
         'sortable' => 1,
12490 12490
         'separator' => '',
12491
-      ),
12492
-      'phpcode_2' => array(
12491
+        ),
12492
+        'phpcode_2' => array(
12493 12493
         'separator' => '',
12494
-      ),
12494
+        ),
12495 12495
     ),
12496 12496
     'default' => 'id',
12497
-  ));
12498
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
12499
-  $handler->override_option('path', 'workunit/%/tasks/all');
12500
-  $handler->override_option('menu', array(
12497
+    ));
12498
+    $handler = $view->new_display('page', 'All tasks', 'page_1');
12499
+    $handler->override_option('path', 'workunit/%/tasks/all');
12500
+    $handler->override_option('menu', array(
12501 12501
     'type' => 'default tab',
12502 12502
     'title' => 'All tasks',
12503 12503
     'description' => 'Show all tasks associated with the workunit',
12504 12504
     'weight' => '0',
12505 12505
     'name' => 'navigation',
12506
-  ));
12507
-  $handler->override_option('tab_options', array(
12506
+    ));
12507
+    $handler->override_option('tab_options', array(
12508 12508
     'type' => 'tab',
12509 12509
     'title' => 'Tasks',
12510 12510
     'description' => 'Show all tasks',
12511 12511
     'weight' => '0',
12512 12512
     'name' => 'secondary-links',
12513
-  ));
12514
-  $handler = $view->new_display('page', 'Error', 'page_2');
12515
-  $handler->override_option('filters', array(
12513
+    ));
12514
+    $handler = $view->new_display('page', 'Error', 'page_2');
12515
+    $handler->override_option('filters', array(
12516 12516
     'server_state' => array(
12517
-      'operator' => '=',
12518
-      'value' => array(
12517
+        'operator' => '=',
12518
+        'value' => array(
12519 12519
         'value' => '5',
12520 12520
         'min' => '',
12521 12521
         'max' => '',
12522
-      ),
12523
-      'group' => '0',
12524
-      'exposed' => FALSE,
12525
-      'expose' => array(
12522
+        ),
12523
+        'group' => '0',
12524
+        'exposed' => FALSE,
12525
+        'expose' => array(
12526 12526
         'operator' => FALSE,
12527 12527
         'label' => '',
12528
-      ),
12529
-      'id' => 'server_state',
12530
-      'table' => 'result',
12531
-      'field' => 'server_state',
12532
-      'override' => array(
12528
+        ),
12529
+        'id' => 'server_state',
12530
+        'table' => 'result',
12531
+        'field' => 'server_state',
12532
+        'override' => array(
12533 12533
         'button' => 'Use default',
12534
-      ),
12535
-      'relationship' => 'none',
12534
+        ),
12535
+        'relationship' => 'none',
12536 12536
     ),
12537 12537
     'outcome' => array(
12538
-      'operator' => '>=',
12539
-      'value' => array(
12538
+        'operator' => '>=',
12539
+        'value' => array(
12540 12540
         'value' => '3',
12541 12541
         'min' => '',
12542 12542
         'max' => '',
12543
-      ),
12544
-      'group' => '0',
12545
-      'exposed' => FALSE,
12546
-      'expose' => array(
12543
+        ),
12544
+        'group' => '0',
12545
+        'exposed' => FALSE,
12546
+        'expose' => array(
12547 12547
         'operator' => FALSE,
12548 12548
         'label' => '',
12549
-      ),
12550
-      'id' => 'outcome',
12551
-      'table' => 'result',
12552
-      'field' => 'outcome',
12553
-      'override' => array(
12549
+        ),
12550
+        'id' => 'outcome',
12551
+        'table' => 'result',
12552
+        'field' => 'outcome',
12553
+        'override' => array(
12554 12554
         'button' => 'Use default',
12555
-      ),
12556
-      'relationship' => 'none',
12555
+        ),
12556
+        'relationship' => 'none',
12557 12557
     ),
12558 12558
     'outcome_1' => array(
12559
-      'operator' => 'not between',
12560
-      'value' => array(
12559
+        'operator' => 'not between',
12560
+        'value' => array(
12561 12561
         'value' => '',
12562 12562
         'min' => '4',
12563 12563
         'max' => '7',
12564
-      ),
12565
-      'group' => '0',
12566
-      'exposed' => FALSE,
12567
-      'expose' => array(
12564
+        ),
12565
+        'group' => '0',
12566
+        'exposed' => FALSE,
12567
+        'expose' => array(
12568 12568
         'operator' => FALSE,
12569 12569
         'label' => '',
12570
-      ),
12571
-      'id' => 'outcome_1',
12572
-      'table' => 'result',
12573
-      'field' => 'outcome',
12574
-      'override' => array(
12570
+        ),
12571
+        'id' => 'outcome_1',
12572
+        'table' => 'result',
12573
+        'field' => 'outcome',
12574
+        'override' => array(
12575 12575
         'button' => 'Use default',
12576
-      ),
12577
-      'relationship' => 'none',
12576
+        ),
12577
+        'relationship' => 'none',
12578 12578
     ),
12579 12579
     'outcome_2' => array(
12580
-      'operator' => '<=',
12581
-      'value' => array(
12580
+        'operator' => '<=',
12581
+        'value' => array(
12582 12582
         'value' => '7',
12583 12583
         'min' => '',
12584 12584
         'max' => '',
12585
-      ),
12586
-      'group' => '0',
12587
-      'exposed' => FALSE,
12588
-      'expose' => array(
12585
+        ),
12586
+        'group' => '0',
12587
+        'exposed' => FALSE,
12588
+        'expose' => array(
12589 12589
         'operator' => FALSE,
12590 12590
         'label' => '',
12591
-      ),
12592
-      'id' => 'outcome_2',
12593
-      'table' => 'result',
12594
-      'field' => 'outcome',
12595
-      'override' => array(
12591
+        ),
12592
+        'id' => 'outcome_2',
12593
+        'table' => 'result',
12594
+        'field' => 'outcome',
12595
+        'override' => array(
12596 12596
         'button' => 'Use default',
12597
-      ),
12598
-      'relationship' => 'none',
12597
+        ),
12598
+        'relationship' => 'none',
12599 12599
     ),
12600
-  ));
12601
-  $handler->override_option('path', 'workunit/%/tasks/error');
12602
-  $handler->override_option('menu', array(
12600
+    ));
12601
+    $handler->override_option('path', 'workunit/%/tasks/error');
12602
+    $handler->override_option('menu', array(
12603 12603
     'type' => 'tab',
12604 12604
     'title' => 'Error',
12605 12605
     'description' => 'Show tasks with errors associated with the workunit',
12606 12606
     'weight' => '5',
12607 12607
     'name' => 'navigation',
12608
-  ));
12609
-  $handler->override_option('tab_options', array(
12608
+    ));
12609
+    $handler->override_option('tab_options', array(
12610 12610
     'type' => 'none',
12611 12611
     'title' => '',
12612 12612
     'description' => '',
12613 12613
     'weight' => 0,
12614 12614
     'name' => 'navigation',
12615
-  ));
12616
-  $handler = $view->new_display('page', 'In progress', 'page_3');
12617
-  $handler->override_option('filters', array(
12615
+    ));
12616
+    $handler = $view->new_display('page', 'In progress', 'page_3');
12617
+    $handler->override_option('filters', array(
12618 12618
     'server_state' => array(
12619
-      'operator' => '=',
12620
-      'value' => array(
12619
+        'operator' => '=',
12620
+        'value' => array(
12621 12621
         'value' => '4',
12622 12622
         'min' => '',
12623 12623
         'max' => '',
12624
-      ),
12625
-      'group' => '0',
12626
-      'exposed' => FALSE,
12627
-      'expose' => array(
12624
+        ),
12625
+        'group' => '0',
12626
+        'exposed' => FALSE,
12627
+        'expose' => array(
12628 12628
         'operator' => FALSE,
12629 12629
         'label' => '',
12630
-      ),
12631
-      'id' => 'server_state',
12632
-      'table' => 'result',
12633
-      'field' => 'server_state',
12634
-      'override' => array(
12630
+        ),
12631
+        'id' => 'server_state',
12632
+        'table' => 'result',
12633
+        'field' => 'server_state',
12634
+        'override' => array(
12635 12635
         'button' => 'Use default',
12636
-      ),
12637
-      'relationship' => 'none',
12636
+        ),
12637
+        'relationship' => 'none',
12638 12638
     ),
12639
-  ));
12640
-  $handler->override_option('path', 'workunit/%/tasks/active');
12641
-  $handler->override_option('menu', array(
12639
+    ));
12640
+    $handler->override_option('path', 'workunit/%/tasks/active');
12641
+    $handler->override_option('menu', array(
12642 12642
     'type' => 'tab',
12643 12643
     'title' => 'In progress',
12644 12644
     'description' => 'Show tasks in progress associated with the workunit',
12645 12645
     'weight' => '1',
12646 12646
     'name' => 'navigation',
12647
-  ));
12648
-  $handler->override_option('tab_options', array(
12647
+    ));
12648
+    $handler->override_option('tab_options', array(
12649 12649
     'type' => 'none',
12650 12650
     'title' => '',
12651 12651
     'description' => '',
12652 12652
     'weight' => 0,
12653 12653
     'name' => 'navigation',
12654
-  ));
12655
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
12656
-  $handler->override_option('filters', array(
12654
+    ));
12655
+    $handler = $view->new_display('page', 'Invalidated', 'page_4');
12656
+    $handler->override_option('filters', array(
12657 12657
     'server_state' => array(
12658
-      'operator' => '=',
12659
-      'value' => array(
12658
+        'operator' => '=',
12659
+        'value' => array(
12660 12660
         'value' => '5',
12661 12661
         'min' => '',
12662 12662
         'max' => '',
12663
-      ),
12664
-      'group' => '0',
12665
-      'exposed' => FALSE,
12666
-      'expose' => array(
12663
+        ),
12664
+        'group' => '0',
12665
+        'exposed' => FALSE,
12666
+        'expose' => array(
12667 12667
         'operator' => FALSE,
12668 12668
         'label' => '',
12669
-      ),
12670
-      'id' => 'server_state',
12671
-      'table' => 'result',
12672
-      'field' => 'server_state',
12673
-      'override' => array(
12669
+        ),
12670
+        'id' => 'server_state',
12671
+        'table' => 'result',
12672
+        'field' => 'server_state',
12673
+        'override' => array(
12674 12674
         'button' => 'Use default',
12675
-      ),
12676
-      'relationship' => 'none',
12675
+        ),
12676
+        'relationship' => 'none',
12677 12677
     ),
12678 12678
     'views_or_begin_2' => array(
12679
-      'id' => 'views_or_begin_2',
12680
-      'table' => 'views_or',
12681
-      'field' => 'views_or_begin',
12679
+        'id' => 'views_or_begin_2',
12680
+        'table' => 'views_or',
12681
+        'field' => 'views_or_begin',
12682 12682
     ),
12683 12683
     'outcome' => array(
12684
-      'operator' => '=',
12685
-      'value' => array(
12684
+        'operator' => '=',
12685
+        'value' => array(
12686 12686
         'value' => '6',
12687 12687
         'min' => '',
12688 12688
         'max' => '',
12689
-      ),
12690
-      'group' => '0',
12691
-      'exposed' => FALSE,
12692
-      'expose' => array(
12689
+        ),
12690
+        'group' => '0',
12691
+        'exposed' => FALSE,
12692
+        'expose' => array(
12693 12693
         'operator' => FALSE,
12694 12694
         'label' => '',
12695
-      ),
12696
-      'id' => 'outcome',
12697
-      'table' => 'result',
12698
-      'field' => 'outcome',
12699
-      'override' => array(
12695
+        ),
12696
+        'id' => 'outcome',
12697
+        'table' => 'result',
12698
+        'field' => 'outcome',
12699
+        'override' => array(
12700 12700
         'button' => 'Use default',
12701
-      ),
12702
-      'relationship' => 'none',
12701
+        ),
12702
+        'relationship' => 'none',
12703 12703
     ),
12704 12704
     'views_or_next_3' => array(
12705
-      'id' => 'views_or_next_3',
12706
-      'table' => 'views_or',
12707
-      'field' => 'views_or_next',
12705
+        'id' => 'views_or_next_3',
12706
+        'table' => 'views_or',
12707
+        'field' => 'views_or_next',
12708 12708
     ),
12709 12709
     'outcome_1' => array(
12710
-      'operator' => '=',
12711
-      'value' => array(
12710
+        'operator' => '=',
12711
+        'value' => array(
12712 12712
         'value' => '1',
12713 12713
         'min' => '',
12714 12714
         'max' => '',
12715
-      ),
12716
-      'group' => '0',
12717
-      'exposed' => FALSE,
12718
-      'expose' => array(
12715
+        ),
12716
+        'group' => '0',
12717
+        'exposed' => FALSE,
12718
+        'expose' => array(
12719 12719
         'operator' => FALSE,
12720 12720
         'label' => '',
12721
-      ),
12722
-      'id' => 'outcome_1',
12723
-      'table' => 'result',
12724
-      'field' => 'outcome',
12725
-      'override' => array(
12721
+        ),
12722
+        'id' => 'outcome_1',
12723
+        'table' => 'result',
12724
+        'field' => 'outcome',
12725
+        'override' => array(
12726 12726
         'button' => 'Use default',
12727
-      ),
12728
-      'relationship' => 'none',
12727
+        ),
12728
+        'relationship' => 'none',
12729 12729
     ),
12730 12730
     'views_or_begin' => array(
12731
-      'id' => 'views_or_begin',
12732
-      'table' => 'views_or',
12733
-      'field' => 'views_or_begin',
12731
+        'id' => 'views_or_begin',
12732
+        'table' => 'views_or',
12733
+        'field' => 'views_or_begin',
12734 12734
     ),
12735 12735
     'validate_state' => array(
12736
-      'operator' => '=',
12737
-      'value' => array(
12736
+        'operator' => '=',
12737
+        'value' => array(
12738 12738
         'value' => '2',
12739 12739
         'min' => '',
12740 12740
         'max' => '',
12741
-      ),
12742
-      'group' => '0',
12743
-      'exposed' => FALSE,
12744
-      'expose' => array(
12741
+        ),
12742
+        'group' => '0',
12743
+        'exposed' => FALSE,
12744
+        'expose' => array(
12745 12745
         'operator' => FALSE,
12746 12746
         'label' => '',
12747
-      ),
12748
-      'id' => 'validate_state',
12749
-      'table' => 'result',
12750
-      'field' => 'validate_state',
12751
-      'override' => array(
12747
+        ),
12748
+        'id' => 'validate_state',
12749
+        'table' => 'result',
12750
+        'field' => 'validate_state',
12751
+        'override' => array(
12752 12752
         'button' => 'Use default',
12753
-      ),
12754
-      'relationship' => 'none',
12753
+        ),
12754
+        'relationship' => 'none',
12755 12755
     ),
12756 12756
     'views_or_next_4' => array(
12757
-      'id' => 'views_or_next_4',
12758
-      'table' => 'views_or',
12759
-      'field' => 'views_or_next',
12757
+        'id' => 'views_or_next_4',
12758
+        'table' => 'views_or',
12759
+        'field' => 'views_or_next',
12760 12760
     ),
12761 12761
     'validate_state_1' => array(
12762
-      'operator' => '=',
12763
-      'value' => array(
12762
+        'operator' => '=',
12763
+        'value' => array(
12764 12764
         'value' => '3',
12765 12765
         'min' => '',
12766 12766
         'max' => '',
12767
-      ),
12768
-      'group' => '0',
12769
-      'exposed' => FALSE,
12770
-      'expose' => array(
12767
+        ),
12768
+        'group' => '0',
12769
+        'exposed' => FALSE,
12770
+        'expose' => array(
12771 12771
         'operator' => FALSE,
12772 12772
         'label' => '',
12773
-      ),
12774
-      'id' => 'validate_state_1',
12775
-      'table' => 'result',
12776
-      'field' => 'validate_state',
12777
-      'override' => array(
12773
+        ),
12774
+        'id' => 'validate_state_1',
12775
+        'table' => 'result',
12776
+        'field' => 'validate_state',
12777
+        'override' => array(
12778 12778
         'button' => 'Use default',
12779
-      ),
12780
-      'relationship' => 'none',
12779
+        ),
12780
+        'relationship' => 'none',
12781 12781
     ),
12782 12782
     'views_or_next' => array(
12783
-      'id' => 'views_or_next',
12784
-      'table' => 'views_or',
12785
-      'field' => 'views_or_next',
12783
+        'id' => 'views_or_next',
12784
+        'table' => 'views_or',
12785
+        'field' => 'views_or_next',
12786 12786
     ),
12787 12787
     'validate_state_2' => array(
12788
-      'operator' => '=',
12789
-      'value' => array(
12788
+        'operator' => '=',
12789
+        'value' => array(
12790 12790
         'value' => '5',
12791 12791
         'min' => '',
12792 12792
         'max' => '',
12793
-      ),
12794
-      'group' => '0',
12795
-      'exposed' => FALSE,
12796
-      'expose' => array(
12793
+        ),
12794
+        'group' => '0',
12795
+        'exposed' => FALSE,
12796
+        'expose' => array(
12797 12797
         'operator' => FALSE,
12798 12798
         'label' => '',
12799
-      ),
12800
-      'id' => 'validate_state_2',
12801
-      'table' => 'result',
12802
-      'field' => 'validate_state',
12803
-      'override' => array(
12799
+        ),
12800
+        'id' => 'validate_state_2',
12801
+        'table' => 'result',
12802
+        'field' => 'validate_state',
12803
+        'override' => array(
12804 12804
         'button' => 'Use default',
12805
-      ),
12806
-      'relationship' => 'none',
12805
+        ),
12806
+        'relationship' => 'none',
12807 12807
     ),
12808 12808
     'views_or_end_3' => array(
12809
-      'id' => 'views_or_end_3',
12810
-      'table' => 'views_or',
12811
-      'field' => 'views_or_end',
12809
+        'id' => 'views_or_end_3',
12810
+        'table' => 'views_or',
12811
+        'field' => 'views_or_end',
12812 12812
     ),
12813 12813
     'views_or_end_2' => array(
12814
-      'id' => 'views_or_end_2',
12815
-      'table' => 'views_or',
12816
-      'field' => 'views_or_end',
12814
+        'id' => 'views_or_end_2',
12815
+        'table' => 'views_or',
12816
+        'field' => 'views_or_end',
12817 12817
     ),
12818
-  ));
12819
-  $handler->override_option('path', 'workunit/%/tasks/invalid');
12820
-  $handler->override_option('menu', array(
12818
+    ));
12819
+    $handler->override_option('path', 'workunit/%/tasks/invalid');
12820
+    $handler->override_option('menu', array(
12821 12821
     'type' => 'tab',
12822 12822
     'title' => 'Invalid',
12823 12823
     'description' => 'Show invalidated tasks associated with the workunit',
12824 12824
     'weight' => '4',
12825 12825
     'name' => 'navigation',
12826
-  ));
12827
-  $handler->override_option('tab_options', array(
12826
+    ));
12827
+    $handler->override_option('tab_options', array(
12828 12828
     'type' => 'none',
12829 12829
     'title' => '',
12830 12830
     'description' => '',
12831 12831
     'weight' => 0,
12832 12832
     'name' => 'navigation',
12833
-  ));
12834
-  $handler = $view->new_display('page', 'Pending', 'page_5');
12835
-  $handler->override_option('filters', array(
12833
+    ));
12834
+    $handler = $view->new_display('page', 'Pending', 'page_5');
12835
+    $handler->override_option('filters', array(
12836 12836
     'server_state' => array(
12837
-      'operator' => '=',
12838
-      'value' => array(
12837
+        'operator' => '=',
12838
+        'value' => array(
12839 12839
         'value' => '5',
12840 12840
         'min' => '',
12841 12841
         'max' => '',
12842
-      ),
12843
-      'group' => '0',
12844
-      'exposed' => FALSE,
12845
-      'expose' => array(
12842
+        ),
12843
+        'group' => '0',
12844
+        'exposed' => FALSE,
12845
+        'expose' => array(
12846 12846
         'operator' => FALSE,
12847 12847
         'label' => '',
12848
-      ),
12849
-      'id' => 'server_state',
12850
-      'table' => 'result',
12851
-      'field' => 'server_state',
12852
-      'override' => array(
12848
+        ),
12849
+        'id' => 'server_state',
12850
+        'table' => 'result',
12851
+        'field' => 'server_state',
12852
+        'override' => array(
12853 12853
         'button' => 'Use default',
12854
-      ),
12855
-      'relationship' => 'none',
12854
+        ),
12855
+        'relationship' => 'none',
12856 12856
     ),
12857 12857
     'outcome' => array(
12858
-      'operator' => '=',
12859
-      'value' => array(
12858
+        'operator' => '=',
12859
+        'value' => array(
12860 12860
         'value' => '1',
12861 12861
         'min' => '',
12862 12862
         'max' => '',
12863
-      ),
12864
-      'group' => '0',
12865
-      'exposed' => FALSE,
12866
-      'expose' => array(
12863
+        ),
12864
+        'group' => '0',
12865
+        'exposed' => FALSE,
12866
+        'expose' => array(
12867 12867
         'operator' => FALSE,
12868 12868
         'label' => '',
12869
-      ),
12870
-      'id' => 'outcome',
12871
-      'table' => 'result',
12872
-      'field' => 'outcome',
12873
-      'override' => array(
12869
+        ),
12870
+        'id' => 'outcome',
12871
+        'table' => 'result',
12872
+        'field' => 'outcome',
12873
+        'override' => array(
12874 12874
         'button' => 'Use default',
12875
-      ),
12876
-      'relationship' => 'none',
12875
+        ),
12876
+        'relationship' => 'none',
12877 12877
     ),
12878 12878
     'validate_state' => array(
12879
-      'operator' => '>=',
12880
-      'value' => array(
12879
+        'operator' => '>=',
12880
+        'value' => array(
12881 12881
         'value' => '0',
12882 12882
         'min' => '',
12883 12883
         'max' => '',
12884
-      ),
12885
-      'group' => '0',
12886
-      'exposed' => FALSE,
12887
-      'expose' => array(
12884
+        ),
12885
+        'group' => '0',
12886
+        'exposed' => FALSE,
12887
+        'expose' => array(
12888 12888
         'operator' => FALSE,
12889 12889
         'label' => '',
12890
-      ),
12891
-      'id' => 'validate_state',
12892
-      'table' => 'result',
12893
-      'field' => 'validate_state',
12894
-      'override' => array(
12890
+        ),
12891
+        'id' => 'validate_state',
12892
+        'table' => 'result',
12893
+        'field' => 'validate_state',
12894
+        'override' => array(
12895 12895
         'button' => 'Use default',
12896
-      ),
12897
-      'relationship' => 'none',
12896
+        ),
12897
+        'relationship' => 'none',
12898 12898
     ),
12899 12899
     'validate_state_1' => array(
12900
-      'operator' => 'not between',
12901
-      'value' => array(
12900
+        'operator' => 'not between',
12901
+        'value' => array(
12902 12902
         'value' => '',
12903 12903
         'min' => '0',
12904 12904
         'max' => '4',
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' => 'validate_state_1',
12913
-      'table' => 'result',
12914
-      'field' => 'validate_state',
12915
-      'override' => array(
12911
+        ),
12912
+        'id' => 'validate_state_1',
12913
+        'table' => 'result',
12914
+        'field' => 'validate_state',
12915
+        'override' => array(
12916 12916
         'button' => 'Use default',
12917
-      ),
12918
-      'relationship' => 'none',
12917
+        ),
12918
+        'relationship' => 'none',
12919 12919
     ),
12920 12920
     'validate_state_2' => array(
12921
-      'operator' => '<=',
12922
-      'value' => array(
12921
+        'operator' => '<=',
12922
+        'value' => array(
12923 12923
         'value' => '4',
12924 12924
         'min' => '',
12925 12925
         'max' => '',
12926
-      ),
12927
-      'group' => '0',
12928
-      'exposed' => FALSE,
12929
-      'expose' => array(
12926
+        ),
12927
+        'group' => '0',
12928
+        'exposed' => FALSE,
12929
+        'expose' => array(
12930 12930
         'operator' => FALSE,
12931 12931
         'label' => '',
12932
-      ),
12933
-      'id' => 'validate_state_2',
12934
-      'table' => 'result',
12935
-      'field' => 'validate_state',
12936
-      'override' => array(
12932
+        ),
12933
+        'id' => 'validate_state_2',
12934
+        'table' => 'result',
12935
+        'field' => 'validate_state',
12936
+        'override' => array(
12937 12937
         'button' => 'Use default',
12938
-      ),
12939
-      'relationship' => 'none',
12938
+        ),
12939
+        'relationship' => 'none',
12940 12940
     ),
12941
-  ));
12942
-  $handler->override_option('path', 'workunit/%/tasks/pending');
12943
-  $handler->override_option('menu', array(
12941
+    ));
12942
+    $handler->override_option('path', 'workunit/%/tasks/pending');
12943
+    $handler->override_option('menu', array(
12944 12944
     'type' => 'tab',
12945 12945
     'title' => 'Pending',
12946 12946
     'description' => 'Show tasks associated with the workunit with results pending',
12947 12947
     'weight' => '2',
12948 12948
     'name' => 'navigation',
12949
-  ));
12950
-  $handler->override_option('tab_options', array(
12949
+    ));
12950
+    $handler->override_option('tab_options', array(
12951 12951
     'type' => 'none',
12952 12952
     'title' => '',
12953 12953
     'description' => '',
12954 12954
     'weight' => 0,
12955 12955
     'name' => 'navigation',
12956
-  ));
12957
-  $handler = $view->new_display('page', 'Validated', 'page_6');
12958
-  $handler->override_option('filters', array(
12956
+    ));
12957
+    $handler = $view->new_display('page', 'Validated', 'page_6');
12958
+    $handler->override_option('filters', array(
12959 12959
     'server_state' => array(
12960
-      'operator' => '=',
12961
-      'value' => array(
12960
+        'operator' => '=',
12961
+        'value' => array(
12962 12962
         'value' => '5',
12963 12963
         'min' => '',
12964 12964
         'max' => '',
12965
-      ),
12966
-      'group' => '0',
12967
-      'exposed' => FALSE,
12968
-      'expose' => array(
12965
+        ),
12966
+        'group' => '0',
12967
+        'exposed' => FALSE,
12968
+        'expose' => array(
12969 12969
         'operator' => FALSE,
12970 12970
         'label' => '',
12971
-      ),
12972
-      'id' => 'server_state',
12973
-      'table' => 'result',
12974
-      'field' => 'server_state',
12975
-      'override' => array(
12971
+        ),
12972
+        'id' => 'server_state',
12973
+        'table' => 'result',
12974
+        'field' => 'server_state',
12975
+        'override' => array(
12976 12976
         'button' => 'Use default',
12977
-      ),
12978
-      'relationship' => 'none',
12977
+        ),
12978
+        'relationship' => 'none',
12979 12979
     ),
12980 12980
     'outcome' => array(
12981
-      'operator' => '=',
12982
-      'value' => array(
12981
+        'operator' => '=',
12982
+        'value' => array(
12983 12983
         'value' => '1',
12984 12984
         'min' => '',
12985 12985
         'max' => '',
12986
-      ),
12987
-      'group' => '0',
12988
-      'exposed' => FALSE,
12989
-      'expose' => array(
12986
+        ),
12987
+        'group' => '0',
12988
+        'exposed' => FALSE,
12989
+        'expose' => array(
12990 12990
         'operator' => FALSE,
12991 12991
         'label' => '',
12992
-      ),
12993
-      'id' => 'outcome',
12994
-      'table' => 'result',
12995
-      'field' => 'outcome',
12996
-      'override' => array(
12992
+        ),
12993
+        'id' => 'outcome',
12994
+        'table' => 'result',
12995
+        'field' => 'outcome',
12996
+        'override' => array(
12997 12997
         'button' => 'Use default',
12998
-      ),
12999
-      'relationship' => 'none',
12998
+        ),
12999
+        'relationship' => 'none',
13000 13000
     ),
13001 13001
     'validate_state' => array(
13002
-      'operator' => '=',
13003
-      'value' => array(
13002
+        'operator' => '=',
13003
+        'value' => array(
13004 13004
         'value' => '1',
13005 13005
         'min' => '',
13006 13006
         'max' => '',
13007
-      ),
13008
-      'group' => '0',
13009
-      'exposed' => FALSE,
13010
-      'expose' => array(
13007
+        ),
13008
+        'group' => '0',
13009
+        'exposed' => FALSE,
13010
+        'expose' => array(
13011 13011
         'operator' => FALSE,
13012 13012
         'label' => '',
13013
-      ),
13014
-      'id' => 'validate_state',
13015
-      'table' => 'result',
13016
-      'field' => 'validate_state',
13017
-      'override' => array(
13013
+        ),
13014
+        'id' => 'validate_state',
13015
+        'table' => 'result',
13016
+        'field' => 'validate_state',
13017
+        'override' => array(
13018 13018
         'button' => 'Use default',
13019
-      ),
13020
-      'relationship' => 'none',
13019
+        ),
13020
+        'relationship' => 'none',
13021 13021
     ),
13022
-  ));
13023
-  $handler->override_option('path', 'workunit/%/tasks/valid');
13024
-  $handler->override_option('menu', array(
13022
+    ));
13023
+    $handler->override_option('path', 'workunit/%/tasks/valid');
13024
+    $handler->override_option('menu', array(
13025 13025
     'type' => 'tab',
13026 13026
     'title' => 'Valid',
13027 13027
     'description' => 'Show validated tasks associated with the workunit',
13028 13028
     'weight' => '3',
13029 13029
     'name' => 'navigation',
13030
-  ));
13031
-  $handler->override_option('tab_options', array(
13030
+    ));
13031
+    $handler->override_option('tab_options', array(
13032 13032
     'type' => 'none',
13033 13033
     'title' => '',
13034 13034
     'description' => '',
13035 13035
     'weight' => 0,
13036 13036
     'name' => 'navigation',
13037
-  ));
13037
+    ));
13038 13038
 
13039
-  $views[$view->name] = $view;
13039
+    $views[$view->name] = $view;
13040 13040
 
13041
-  return $views;
13041
+    return $views;
13042 13042
 }
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boincteam/boincteam_forum.module 4 patches
Indentation   +121 added lines, -121 removed lines patch added patch discarded remove patch
@@ -25,29 +25,29 @@  discard block
 block discarded – undo
25 25
  * Implementation of hook_menu()
26 26
  */
27 27
 function boincteam_forum_menu() {
28
-  $items = array();
28
+    $items = array();
29 29
 
30
-  return $items;
30
+    return $items;
31 31
 }
32 32
 
33 33
 /**
34 34
 * Implementation of hook_form_alter()
35 35
 */
36 36
 function boincteam_forum_form_alter(&$form, $form_state, $form_id) {
37
-  switch ($form_id) {
38
-  // Team forum node edit form
39
-  case 'team_forum_node_form':
37
+    switch ($form_id) {
38
+    // Team forum node edit form
39
+    case 'team_forum_node_form':
40 40
     
41 41
     // Internal fields to indicate where these changes are taking place
42 42
     array_unshift($form, array(
43
-      'tfid' => array(
43
+        'tfid' => array(
44 44
         '#type' => 'hidden',
45 45
         '#value' => arg(3),
46
-      ),
46
+        ),
47 47
     ));
48 48
     break;
49 49
   
50
-  default:
50
+    default:
51 51
   }
52 52
 }
53 53
 
@@ -56,26 +56,26 @@  discard block
 block discarded – undo
56 56
  * Obsolete in Drupal 7...
57 57
  */
58 58
 function boincteam_forum_nodeapi(&$node, $op, $a3 = null, $a4 = null) {
59
-  // In Drupal 7, these operation cases will all exist as their own hooks,
60
-  // so let's approximate that here so that this function can simply be removed
61
-  // upon migration to 7
62
-  switch($op) {
63
-  case 'insert':
59
+    // In Drupal 7, these operation cases will all exist as their own hooks,
60
+    // so let's approximate that here so that this function can simply be removed
61
+    // upon migration to 7
62
+    switch($op) {
63
+    case 'insert':
64 64
     boincteam_forum_node_insert($node);
65 65
     break;
66
-  case 'load':
66
+    case 'load':
67 67
     boincteam_forum_node_load($node);
68 68
     break;
69
-  case 'update':
69
+    case 'update':
70 70
     boincteam_forum_node_update($node);
71 71
     break;
72
-  case 'validate':
72
+    case 'validate':
73 73
     boincteam_forum_node_validate($node);
74 74
     break;
75
-  case 'view':
75
+    case 'view':
76 76
     boincteam_forum_node_view($node);
77 77
     break;
78
-  default:
78
+    default:
79 79
   }
80 80
 }
81 81
 
@@ -84,21 +84,21 @@  discard block
 block discarded – undo
84 84
  * is inserted (forward compatible to Drupal 7)
85 85
  */
86 86
 function boincteam_forum_node_insert($node) {
87
-  switch($node->type) {
88
-  case 'team_forum':
87
+    switch($node->type) {
88
+    case 'team_forum':
89 89
     $account = user_load($node->uid);
90 90
     $team_id = boincteam_forum_lookup_nid($node->tfid);
91 91
     if ($account->team == $team_id) {
92
-      db_query("
92
+        db_query("
93 93
         INSERT INTO {boincteam_forum_node} SET
94 94
           nid = %d,
95 95
           tfid = %d",
96 96
         $node->nid, $node->tfid
97
-      );
97
+        );
98 98
     }
99 99
     unset($node->tfid);
100 100
     break;
101
-  default:
101
+    default:
102 102
   }
103 103
 }
104 104
 
@@ -107,15 +107,15 @@  discard block
 block discarded – undo
107 107
  * is loaded (forward compatible to Drupal 7)
108 108
  */
109 109
 function boincteam_forum_node_load($node) {
110
-  switch($node->type) {
111
-  case 'team_forum':
110
+    switch($node->type) {
111
+    case 'team_forum':
112 112
     $node->tfid = db_result(db_query("
113 113
       SELECT tfid FROM {boincteam_forum_node}
114 114
       WHERE nid = %d", $node->nid
115 115
     ));
116 116
     break;
117 117
     
118
-  default:
118
+    default:
119 119
     
120 120
   }
121 121
 }
@@ -125,12 +125,12 @@  discard block
 block discarded – undo
125 125
  * is updated (forward compatible to Drupal 7)
126 126
  */
127 127
 function boincteam_forum_node_update($node) {
128
-  switch($node->type) {
129
-  case 'team_forum':
128
+    switch($node->type) {
129
+    case 'team_forum':
130 130
     
131 131
     break;
132 132
     
133
-  default:
133
+    default:
134 134
     
135 135
   }
136 136
 }
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
  * is validated (forward compatible to Drupal 7)
141 141
  */
142 142
 function boincteam_forum_node_validate($node) {
143
-  switch($node->type) {
144
-  case 'team_forum':
143
+    switch($node->type) {
144
+    case 'team_forum':
145 145
     $account = user_load($node->uid);
146 146
     // Get tfid from node, but if empty/null, get it from the database
147 147
     if (!($node->tfid)) {
@@ -154,11 +154,11 @@  discard block
 block discarded – undo
154 154
     }
155 155
     $team_id = boincteam_forum_lookup_nid($tfid);
156 156
     if (!$account->team OR $account->team != $team_id) {
157
-      drupal_set_message(t('Failed to add team forum topic.'), 'error');
158
-      drupal_goto('community/forum');
157
+        drupal_set_message(t('Failed to add team forum topic.'), 'error');
158
+        drupal_goto('community/forum');
159 159
     }
160 160
     break;
161
-  default:
161
+    default:
162 162
   }
163 163
 }
164 164
 
@@ -167,19 +167,19 @@  discard block
 block discarded – undo
167 167
  * is viewed (forward compatible to Drupal 7)
168 168
  */
169 169
 function boincteam_forum_node_view($node) {
170
-  switch($node->type) {
171
-  case 'team_forum':
170
+    switch($node->type) {
171
+    case 'team_forum':
172 172
     $team_id = boincteam_forum_lookup_nid($node->tfid);
173 173
     $public_forum = boincteam_forum_is_public($node->tfid);
174 174
     $is_member = boincteam_is_member($team_id);
175 175
     $is_global_moderator = boincteam_forum_is_global_moderator();
176 176
     if (!$public_forum AND !$is_member AND !$is_global_moderator) {
177
-      drupal_not_found();
178
-      module_invoke_all('exit');
179
-      exit();
177
+        drupal_not_found();
178
+        module_invoke_all('exit');
179
+        exit();
180 180
     }
181 181
     break;
182
-  default:
182
+    default:
183 183
   }
184 184
 }
185 185
 
@@ -187,17 +187,17 @@  discard block
 block discarded – undo
187 187
 * Implementation of hook_views_api().
188 188
 */
189 189
 function boincteam_forum_views_api() {
190
-  return array(
190
+    return array(
191 191
     'api' => 2.0,
192 192
     'path' => drupal_get_path('module', 'boincteam_forum')
193
-  );
193
+    );
194 194
 }
195 195
 
196 196
 /**
197 197
  * Implementation of hook_perm()
198 198
  */
199 199
 function boincteam_forum_perm() {
200
-  return array('manage boincteam forum');
200
+    return array('manage boincteam forum');
201 201
 }
202 202
 
203 203
 
@@ -209,43 +209,43 @@  discard block
 block discarded – undo
209 209
  * Check if the user has global access to moderate team forums
210 210
  */
211 211
 function boincteam_forum_is_global_moderator() {
212
-  global $user;
213
-  return user_access('manage boincteam forum');
212
+    global $user;
213
+    return user_access('manage boincteam forum');
214 214
 }
215 215
 
216 216
 /*
217 217
  * Check if any forums for a team are public
218 218
  */
219 219
 function boincteam_forum_is_any_public($team_id) {
220
-  $forums = boincteam_forum_list($team_id);
221
-  foreach ($forums as $forum) {
220
+    $forums = boincteam_forum_list($team_id);
221
+    foreach ($forums as $forum) {
222 222
     if ($forum->public) {
223
-      return TRUE;
223
+        return TRUE;
224 224
     }
225
-  }
226
-  return FALSE;
225
+    }
226
+    return FALSE;
227 227
 }
228 228
 
229 229
 /*
230 230
  * Check if a team forum should be visible to everyone
231 231
  */
232 232
 function boincteam_forum_is_public($tfid) {
233
-  return db_result(db_query("
233
+    return db_result(db_query("
234 234
     SELECT public FROM {boincteam_forum} WHERE tfid=%d", $tfid
235
-  ));
235
+    ));
236 236
 }
237 237
 
238 238
 /*
239 239
  * Load the forums for a team, if any exist
240 240
  */
241 241
 function boincteam_forum_list($team_id = NULL) {
242
-  if (!$team_id) {
242
+    if (!$team_id) {
243 243
     global $user;
244 244
     $account = user_load($user->uid);
245 245
     $team_id = $account->team;
246
-  }
247
-  $team_forums = array();
248
-  if ($team_id) {
246
+    }
247
+    $team_forums = array();
248
+    if ($team_id) {
249 249
     // Load any team forum objects for the user's team
250 250
     $result = db_query("
251 251
       SELECT tfid, nid, title, description, created, updated, public,
@@ -255,26 +255,26 @@  discard block
 block discarded – undo
255 255
     $row = 0;
256 256
     while ($team_forum = db_fetch_object($result)) {
257 257
       
258
-      $team_forum->link = url("community/teams/{$team_id}/forum/{$team_forum->tfid}");
259
-      $team_forum->zebra = $row % 2 ? 'even' : 'odd';
260
-      $team_forum->new_topics = 0; // TODO: Track user views of team topics
261
-      $team_forum->new_text = '';
262
-      $team_forum->new_url = '';
263
-      $team_forum->num_topics = db_result(db_query("
258
+        $team_forum->link = url("community/teams/{$team_id}/forum/{$team_forum->tfid}");
259
+        $team_forum->zebra = $row % 2 ? 'even' : 'odd';
260
+        $team_forum->new_topics = 0; // TODO: Track user views of team topics
261
+        $team_forum->new_text = '';
262
+        $team_forum->new_url = '';
263
+        $team_forum->num_topics = db_result(db_query("
264 264
         SELECT COUNT(nid) FROM {boincteam_forum_node}
265 265
         WHERE tfid = %d",
266 266
         $team_forum->tfid
267
-      ));
268
-      $team_forum->num_posts = db_result(db_query("
267
+        ));
268
+        $team_forum->num_posts = db_result(db_query("
269 269
         SELECT COALESCE(SUM(ncs.comment_count),0) + COUNT(ncs.nid)
270 270
         FROM {boincteam_forum_node} bfn
271 271
         JOIN {node_comment_statistics} ncs ON ncs.nid = bfn.nid
272 272
         JOIN {node} n ON n.nid = ncs.nid
273 273
         WHERE bfn.tfid = %d AND n.status = 1",
274 274
         $team_forum->tfid
275
-      ));
276
-      $last_post = new stdClass();
277
-      $last_post->timestamp = db_result(db_query("
275
+        ));
276
+        $last_post = new stdClass();
277
+        $last_post->timestamp = db_result(db_query("
278 278
         SELECT ncs.last_comment_timestamp FROM {node} n
279 279
         INNER JOIN {boincteam_forum_node} bfn
280 280
         INNER JOIN {node_comment_statistics} ncs ON n.nid = bfn.nid AND n.nid = ncs.nid
@@ -282,36 +282,36 @@  discard block
 block discarded – undo
282 282
         ORDER BY ncs.last_comment_timestamp DESC
283 283
         LIMIT 1",
284 284
         $team_forum->tfid
285
-      ));
286
-      $team_forum->last_reply = theme('forum_submitted', ($last_post->timestamp) ? $last_post : NULL);
287
-      $team_forums[$team_forum->tfid] = $team_forum;
288
-      $row++;
285
+        ));
286
+        $team_forum->last_reply = theme('forum_submitted', ($last_post->timestamp) ? $last_post : NULL);
287
+        $team_forums[$team_forum->tfid] = $team_forum;
288
+        $row++;
289 289
     }
290
-  }
291
-  return $team_forums;
290
+    }
291
+    return $team_forums;
292 292
 }
293 293
 
294 294
 /*
295 295
  * Load a team forum by ID
296 296
  */
297 297
 function boincteam_forum_load($tfid) {
298
-  // Load any team forum objects for the user's team
299
-  $result = db_query("
298
+    // Load any team forum objects for the user's team
299
+    $result = db_query("
300 300
     SELECT tfid, nid, title, description, created, updated, public,
301 301
       min_time_between_posts, min_total_credit_to_post, min_avg_credit_to_post
302 302
     FROM {boincteam_forum} WHERE tfid=%d", $tfid
303
-  );
304
-  return db_fetch_object($result);
303
+    );
304
+    return db_fetch_object($result);
305 305
 }
306 306
 
307 307
 /*
308 308
  * Look up the team ID for a given team forum
309 309
  */
310 310
 function boincteam_forum_lookup_nid($tfid) {
311
-  return db_result(db_query("
311
+    return db_result(db_query("
312 312
     SELECT nid FROM {boincteam_forum}
313 313
     WHERE tfid=%d", $tfid
314
-  ));
314
+    ));
315 315
 }
316 316
 
317 317
 
@@ -323,80 +323,80 @@  discard block
 block discarded – undo
323 323
  * Create team forum form
324 324
  */
325 325
 function boincteam_forum_create_form_panel() {
326
-  $output = '';
327
-  $output .= '<h2 class="pane-title">' . bts('Create team message board', array(), NULL, 'boinc:team-forum')
326
+    $output = '';
327
+    $output .= '<h2 class="pane-title">' . bts('Create team message board', array(), NULL, 'boinc:team-forum')
328 328
     . '</h2>';
329
-  $output .= drupal_get_form('boincteam_forum_create_form');
329
+    $output .= drupal_get_form('boincteam_forum_create_form');
330 330
   
331
-  return $output;
331
+    return $output;
332 332
 }
333 333
 
334 334
 /**
335 335
  * Edit team forum form
336 336
  */
337 337
 function boincteam_forum_edit_form_panel($tfid) {
338
-  $team_forum = boincteam_forum_load($tfid);
339
-  $output = '';
340
-  $output .= '<h2 class="pane-title">' . bts('Edit message board', array(), NULL, 'boinc:team-forum') . ': ' . 
338
+    $team_forum = boincteam_forum_load($tfid);
339
+    $output = '';
340
+    $output .= '<h2 class="pane-title">' . bts('Edit message board', array(), NULL, 'boinc:team-forum') . ': ' . 
341 341
     $team_forum->title . '</h2>';
342
-  $output .= drupal_get_form('boincteam_forum_edit_form', $tfid);
342
+    $output .= drupal_get_form('boincteam_forum_edit_form', $tfid);
343 343
   
344
-  return $output;
344
+    return $output;
345 345
 }
346 346
 
347 347
 /**
348 348
  * Link to team forums
349 349
  */
350 350
 function boincteam_forum_link_panel($team_id) {
351
-  $show_public_only = (
351
+    $show_public_only = (
352 352
     !boincteam_is_member($team_id) AND
353 353
     !boincteam_forum_is_global_moderator()
354
-  );
355
-  $forums = boincteam_forum_list($team_id);
356
-  $output = '';
357
-  $output .= '<h2 class="pane-title">' . bts('Team forum', array(), NULL, 'boinc:team-forum') . '</h2>';
358
-  $output .= '<p>'
354
+    );
355
+    $forums = boincteam_forum_list($team_id);
356
+    $output = '';
357
+    $output .= '<h2 class="pane-title">' . bts('Team forum', array(), NULL, 'boinc:team-forum') . '</h2>';
358
+    $output .= '<p>'
359 359
     . bts('A discussion forum has been set up for team members.', array(), NULL, 'boinc:team-forum')
360 360
     . '</p>';
361
-  $output .= '<ul class="tab-list action-list">';
362
-  foreach ($forums as $forum) {
361
+    $output .= '<ul class="tab-list action-list">';
362
+    foreach ($forums as $forum) {
363 363
     if (!$show_public_only OR $forum->public) {
364
-      $output .= '  <li class="tab primary">' . 
364
+        $output .= '  <li class="tab primary">' . 
365 365
         l(
366
-          //$forum->title,
367
-          bts('Enter forum', array(), NULL, 'boinc:team-forum'),
368
-          "community/teams/{$team_id}/forum/{$forum->tfid}"
366
+            //$forum->title,
367
+            bts('Enter forum', array(), NULL, 'boinc:team-forum'),
368
+            "community/teams/{$team_id}/forum/{$forum->tfid}"
369 369
         ) . '</li>';
370
-      // Since we're only supporting one team forum for now, we've labeled the
371
-      // link in a generic way above and will now just break out of the loop
372
-      break;
370
+        // Since we're only supporting one team forum for now, we've labeled the
371
+        // link in a generic way above and will now just break out of the loop
372
+        break;
373 373
     }
374
-  }
375
-  $output .= '</ul>';
376
-  return $output;
374
+    }
375
+    $output .= '</ul>';
376
+    return $output;
377 377
 }
378 378
 
379 379
 /**
380 380
  * General info about team forums
381 381
  */                                         
382 382
 function boincteam_forum_topic_overview_panel($nid = NULL) {
383
-  $output = '';
384
-  $output .= '<h2 class="pane-title">' . bts('About message boards', array(), NULL, 'boinc:team-forum') . '</h2>';
385
-  $output .= '<div>';
386
-  if ($nid) {
383
+    $output = '';
384
+    $output .= '<h2 class="pane-title">' . bts('About message boards', array(), NULL, 'boinc:team-forum') . '</h2>';
385
+    $output .= '<div>';
386
+    if ($nid) {
387 387
     $team = node_load($nid);
388 388
     $output .= '<p>' . bts('You may create a message board for use by @team',
389
-      array('@team' => $team->title), NULL, 'boinc:team-forum') . ':</p>';
390
-  }
391
-  else {
389
+        array('@team' => $team->title), NULL, 'boinc:team-forum') . ':</p>';
390
+    }
391
+    else {
392 392
     $output .= '<p>' . bts('This is a team-only message board', array(), NULL, 'boinc:team-forum') . ':</p>';
393
-  }
394
-  $output .= '<ul>';
395
-  $output .= '  <li>' . bts('Only members may post', array(), NULL, 'boinc:team-forum') . '</li>';
396
-  $output .= '  <li>' . bts('Only members may read (optional)', array(), NULL, 'boinc:team-forum') . '</li>';
397
-  $output .= '  <li>' . bts('Founder & Team Admins have moderator privileges', array(), NULL, 'boinc:team-forum') .
393
+    }
394
+    $output .= '<ul>';
395
+    $output .= '  <li>' . bts('Only members may post', array(), NULL, 'boinc:team-forum') . '</li>';
396
+    $output .= '  <li>' . bts('Only members may read (optional)', array(), NULL, 'boinc:team-forum') . '</li>';
397
+    $output .= '  <li>' . bts('Founder & Team Admins have moderator privileges', array(), NULL, 'boinc:team-forum') .
398 398
     '</li>';
399
-  $output .= '</ul>';
400
-  $output .= '</div>';
401
-  return $output;
399
+    $output .= '</ul>';
400
+    $output .= '</div>';
401
+    return $output;
402 402
 }
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
   // In Drupal 7, these operation cases will all exist as their own hooks,
60 60
   // so let's approximate that here so that this function can simply be removed
61 61
   // upon migration to 7
62
-  switch($op) {
62
+  switch ($op) {
63 63
   case 'insert':
64 64
     boincteam_forum_node_insert($node);
65 65
     break;
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
  * is inserted (forward compatible to Drupal 7)
85 85
  */
86 86
 function boincteam_forum_node_insert($node) {
87
-  switch($node->type) {
87
+  switch ($node->type) {
88 88
   case 'team_forum':
89 89
     $account = user_load($node->uid);
90 90
     $team_id = boincteam_forum_lookup_nid($node->tfid);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
  * is loaded (forward compatible to Drupal 7)
108 108
  */
109 109
 function boincteam_forum_node_load($node) {
110
-  switch($node->type) {
110
+  switch ($node->type) {
111 111
   case 'team_forum':
112 112
     $node->tfid = db_result(db_query("
113 113
       SELECT tfid FROM {boincteam_forum_node}
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
  * is updated (forward compatible to Drupal 7)
126 126
  */
127 127
 function boincteam_forum_node_update($node) {
128
-  switch($node->type) {
128
+  switch ($node->type) {
129 129
   case 'team_forum':
130 130
     
131 131
     break;
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
  * is validated (forward compatible to Drupal 7)
141 141
  */
142 142
 function boincteam_forum_node_validate($node) {
143
-  switch($node->type) {
143
+  switch ($node->type) {
144 144
   case 'team_forum':
145 145
     $account = user_load($node->uid);
146 146
     // Get tfid from node, but if empty/null, get it from the database
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
  * is viewed (forward compatible to Drupal 7)
168 168
  */
169 169
 function boincteam_forum_node_view($node) {
170
-  switch($node->type) {
170
+  switch ($node->type) {
171 171
   case 'team_forum':
172 172
     $team_id = boincteam_forum_lookup_nid($node->tfid);
173 173
     $public_forum = boincteam_forum_is_public($node->tfid);
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     while ($team_forum = db_fetch_object($result)) {
257 257
       
258 258
       $team_forum->link = url("community/teams/{$team_id}/forum/{$team_forum->tfid}");
259
-      $team_forum->zebra = $row % 2 ? 'even' : 'odd';
259
+      $team_forum->zebra = $row%2 ? 'even' : 'odd';
260 260
       $team_forum->new_topics = 0; // TODO: Track user views of team topics
261 261
       $team_forum->new_text = '';
262 262
       $team_forum->new_url = '';
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
  */
325 325
 function boincteam_forum_create_form_panel() {
326 326
   $output = '';
327
-  $output .= '<h2 class="pane-title">' . bts('Create team message board', array(), NULL, 'boinc:team-forum')
327
+  $output .= '<h2 class="pane-title">'.bts('Create team message board', array(), NULL, 'boinc:team-forum')
328 328
     . '</h2>';
329 329
   $output .= drupal_get_form('boincteam_forum_create_form');
330 330
   
@@ -337,8 +337,8 @@  discard block
 block discarded – undo
337 337
 function boincteam_forum_edit_form_panel($tfid) {
338 338
   $team_forum = boincteam_forum_load($tfid);
339 339
   $output = '';
340
-  $output .= '<h2 class="pane-title">' . bts('Edit message board', array(), NULL, 'boinc:team-forum') . ': ' . 
341
-    $team_forum->title . '</h2>';
340
+  $output .= '<h2 class="pane-title">'.bts('Edit message board', array(), NULL, 'boinc:team-forum').': '. 
341
+    $team_forum->title.'</h2>';
342 342
   $output .= drupal_get_form('boincteam_forum_edit_form', $tfid);
343 343
   
344 344
   return $output;
@@ -354,19 +354,19 @@  discard block
 block discarded – undo
354 354
   );
355 355
   $forums = boincteam_forum_list($team_id);
356 356
   $output = '';
357
-  $output .= '<h2 class="pane-title">' . bts('Team forum', array(), NULL, 'boinc:team-forum') . '</h2>';
357
+  $output .= '<h2 class="pane-title">'.bts('Team forum', array(), NULL, 'boinc:team-forum').'</h2>';
358 358
   $output .= '<p>'
359 359
     . bts('A discussion forum has been set up for team members.', array(), NULL, 'boinc:team-forum')
360 360
     . '</p>';
361 361
   $output .= '<ul class="tab-list action-list">';
362 362
   foreach ($forums as $forum) {
363 363
     if (!$show_public_only OR $forum->public) {
364
-      $output .= '  <li class="tab primary">' . 
364
+      $output .= '  <li class="tab primary">'. 
365 365
         l(
366 366
           //$forum->title,
367 367
           bts('Enter forum', array(), NULL, 'boinc:team-forum'),
368 368
           "community/teams/{$team_id}/forum/{$forum->tfid}"
369
-        ) . '</li>';
369
+        ).'</li>';
370 370
       // Since we're only supporting one team forum for now, we've labeled the
371 371
       // link in a generic way above and will now just break out of the loop
372 372
       break;
@@ -381,20 +381,20 @@  discard block
 block discarded – undo
381 381
  */                                         
382 382
 function boincteam_forum_topic_overview_panel($nid = NULL) {
383 383
   $output = '';
384
-  $output .= '<h2 class="pane-title">' . bts('About message boards', array(), NULL, 'boinc:team-forum') . '</h2>';
384
+  $output .= '<h2 class="pane-title">'.bts('About message boards', array(), NULL, 'boinc:team-forum').'</h2>';
385 385
   $output .= '<div>';
386 386
   if ($nid) {
387 387
     $team = node_load($nid);
388
-    $output .= '<p>' . bts('You may create a message board for use by @team',
389
-      array('@team' => $team->title), NULL, 'boinc:team-forum') . ':</p>';
388
+    $output .= '<p>'.bts('You may create a message board for use by @team',
389
+      array('@team' => $team->title), NULL, 'boinc:team-forum').':</p>';
390 390
   }
391 391
   else {
392
-    $output .= '<p>' . bts('This is a team-only message board', array(), NULL, 'boinc:team-forum') . ':</p>';
392
+    $output .= '<p>'.bts('This is a team-only message board', array(), NULL, 'boinc:team-forum').':</p>';
393 393
   }
394 394
   $output .= '<ul>';
395
-  $output .= '  <li>' . bts('Only members may post', array(), NULL, 'boinc:team-forum') . '</li>';
396
-  $output .= '  <li>' . bts('Only members may read (optional)', array(), NULL, 'boinc:team-forum') . '</li>';
397
-  $output .= '  <li>' . bts('Founder & Team Admins have moderator privileges', array(), NULL, 'boinc:team-forum') .
395
+  $output .= '  <li>'.bts('Only members may post', array(), NULL, 'boinc:team-forum').'</li>';
396
+  $output .= '  <li>'.bts('Only members may read (optional)', array(), NULL, 'boinc:team-forum').'</li>';
397
+  $output .= '  <li>'.bts('Founder & Team Admins have moderator privileges', array(), NULL, 'boinc:team-forum').
398 398
     '</li>';
399 399
   $output .= '</ul>';
400 400
   $output .= '</div>';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -387,8 +387,7 @@
 block discarded – undo
387 387
     $team = node_load($nid);
388 388
     $output .= '<p>' . bts('You may create a message board for use by @team',
389 389
       array('@team' => $team->title), NULL, 'boinc:team-forum') . ':</p>';
390
-  }
391
-  else {
390
+  } else {
392 391
     $output .= '<p>' . bts('This is a team-only message board', array(), NULL, 'boinc:team-forum') . ':</p>';
393 392
   }
394 393
   $output .= '<ul>';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $tfid = $node->tfid;
154 154
     }
155 155
     $team_id = boincteam_forum_lookup_nid($tfid);
156
-    if (!$account->team OR $account->team != $team_id) {
156
+    if (!$account->team or $account->team != $team_id) {
157 157
       drupal_set_message(t('Failed to add team forum topic.'), 'error');
158 158
       drupal_goto('community/forum');
159 159
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     $public_forum = boincteam_forum_is_public($node->tfid);
174 174
     $is_member = boincteam_is_member($team_id);
175 175
     $is_global_moderator = boincteam_forum_is_global_moderator();
176
-    if (!$public_forum AND !$is_member AND !$is_global_moderator) {
176
+    if (!$public_forum and !$is_member and !$is_global_moderator) {
177 177
       drupal_not_found();
178 178
       module_invoke_all('exit');
179 179
       exit();
@@ -220,10 +220,10 @@  discard block
 block discarded – undo
220 220
   $forums = boincteam_forum_list($team_id);
221 221
   foreach ($forums as $forum) {
222 222
     if ($forum->public) {
223
-      return TRUE;
223
+      return true;
224 224
     }
225 225
   }
226
-  return FALSE;
226
+  return false;
227 227
 }
228 228
 
229 229
 /*
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 /*
239 239
  * Load the forums for a team, if any exist
240 240
  */
241
-function boincteam_forum_list($team_id = NULL) {
241
+function boincteam_forum_list($team_id = null) {
242 242
   if (!$team_id) {
243 243
     global $user;
244 244
     $account = user_load($user->uid);
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         LIMIT 1",
284 284
         $team_forum->tfid
285 285
       ));
286
-      $team_forum->last_reply = theme('forum_submitted', ($last_post->timestamp) ? $last_post : NULL);
286
+      $team_forum->last_reply = theme('forum_submitted', ($last_post->timestamp) ? $last_post : null);
287 287
       $team_forums[$team_forum->tfid] = $team_forum;
288 288
       $row++;
289 289
     }
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
  */
325 325
 function boincteam_forum_create_form_panel() {
326 326
   $output = '';
327
-  $output .= '<h2 class="pane-title">' . bts('Create team message board', array(), NULL, 'boinc:team-forum')
327
+  $output .= '<h2 class="pane-title">' . bts('Create team message board', array(), null, 'boinc:team-forum')
328 328
     . '</h2>';
329 329
   $output .= drupal_get_form('boincteam_forum_create_form');
330 330
   
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
 function boincteam_forum_edit_form_panel($tfid) {
338 338
   $team_forum = boincteam_forum_load($tfid);
339 339
   $output = '';
340
-  $output .= '<h2 class="pane-title">' . bts('Edit message board', array(), NULL, 'boinc:team-forum') . ': ' . 
340
+  $output .= '<h2 class="pane-title">' . bts('Edit message board', array(), null, 'boinc:team-forum') . ': ' . 
341 341
     $team_forum->title . '</h2>';
342 342
   $output .= drupal_get_form('boincteam_forum_edit_form', $tfid);
343 343
   
@@ -349,22 +349,22 @@  discard block
 block discarded – undo
349 349
  */
350 350
 function boincteam_forum_link_panel($team_id) {
351 351
   $show_public_only = (
352
-    !boincteam_is_member($team_id) AND
352
+    !boincteam_is_member($team_id) and
353 353
     !boincteam_forum_is_global_moderator()
354 354
   );
355 355
   $forums = boincteam_forum_list($team_id);
356 356
   $output = '';
357
-  $output .= '<h2 class="pane-title">' . bts('Team forum', array(), NULL, 'boinc:team-forum') . '</h2>';
357
+  $output .= '<h2 class="pane-title">' . bts('Team forum', array(), null, 'boinc:team-forum') . '</h2>';
358 358
   $output .= '<p>'
359
-    . bts('A discussion forum has been set up for team members.', array(), NULL, 'boinc:team-forum')
359
+    . bts('A discussion forum has been set up for team members.', array(), null, 'boinc:team-forum')
360 360
     . '</p>';
361 361
   $output .= '<ul class="tab-list action-list">';
362 362
   foreach ($forums as $forum) {
363
-    if (!$show_public_only OR $forum->public) {
363
+    if (!$show_public_only or $forum->public) {
364 364
       $output .= '  <li class="tab primary">' . 
365 365
         l(
366 366
           //$forum->title,
367
-          bts('Enter forum', array(), NULL, 'boinc:team-forum'),
367
+          bts('Enter forum', array(), null, 'boinc:team-forum'),
368 368
           "community/teams/{$team_id}/forum/{$forum->tfid}"
369 369
         ) . '</li>';
370 370
       // Since we're only supporting one team forum for now, we've labeled the
@@ -379,22 +379,22 @@  discard block
 block discarded – undo
379 379
 /**
380 380
  * General info about team forums
381 381
  */                                         
382
-function boincteam_forum_topic_overview_panel($nid = NULL) {
382
+function boincteam_forum_topic_overview_panel($nid = null) {
383 383
   $output = '';
384
-  $output .= '<h2 class="pane-title">' . bts('About message boards', array(), NULL, 'boinc:team-forum') . '</h2>';
384
+  $output .= '<h2 class="pane-title">' . bts('About message boards', array(), null, 'boinc:team-forum') . '</h2>';
385 385
   $output .= '<div>';
386 386
   if ($nid) {
387 387
     $team = node_load($nid);
388 388
     $output .= '<p>' . bts('You may create a message board for use by @team',
389
-      array('@team' => $team->title), NULL, 'boinc:team-forum') . ':</p>';
389
+      array('@team' => $team->title), null, 'boinc:team-forum') . ':</p>';
390 390
   }
391 391
   else {
392
-    $output .= '<p>' . bts('This is a team-only message board', array(), NULL, 'boinc:team-forum') . ':</p>';
392
+    $output .= '<p>' . bts('This is a team-only message board', array(), null, 'boinc:team-forum') . ':</p>';
393 393
   }
394 394
   $output .= '<ul>';
395
-  $output .= '  <li>' . bts('Only members may post', array(), NULL, 'boinc:team-forum') . '</li>';
396
-  $output .= '  <li>' . bts('Only members may read (optional)', array(), NULL, 'boinc:team-forum') . '</li>';
397
-  $output .= '  <li>' . bts('Founder & Team Admins have moderator privileges', array(), NULL, 'boinc:team-forum') .
395
+  $output .= '  <li>' . bts('Only members may post', array(), null, 'boinc:team-forum') . '</li>';
396
+  $output .= '  <li>' . bts('Only members may read (optional)', array(), null, 'boinc:team-forum') . '</li>';
397
+  $output .= '  <li>' . bts('Founder & Team Admins have moderator privileges', array(), null, 'boinc:team-forum') .
398 398
     '</li>';
399 399
   $output .= '</ul>';
400 400
   $output .= '</div>';
Please login to merge, or discard this patch.
drupal/sites/default/boinc/modules/boinctranslate/boinctranslate.module 4 patches
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@  discard block
 block discarded – undo
136 136
         $lidkey = array_search($chunk['hash'], $nodehashtable);
137 137
         if ($lidkey) {
138 138
           unset($nodehashtable[$lidkey]);
139
-        }
140
-        else {
139
+        } else {
141 140
 
142 141
           $result = db_query("
143 142
             INSERT INTO {locales_source}
@@ -150,8 +149,7 @@  discard block
 block discarded – undo
150 149
               'Added translation source strings for node @nid chunk @chunk.',
151 150
               array('@nid' => $node->nid, '@chunk' => $idx)
152 151
            );
153
-          }
154
-          else {
152
+          } else {
155 153
             drupal_set_message(
156 154
               t('ERROR: Unable to add translation source strings.'), 'error'
157 155
             );
@@ -248,12 +246,10 @@  discard block
 block discarded – undo
248 246
         $mess = 'DEBUG ' . l('BOINC translate', "filter/tips/$format") .' parsed on '.date('r').'<br />Execution time: '.$elapsed.' seconds.';
249 247
         drupal_set_message($mess, 'warning');
250 248
         return $ret;
251
-      }
252
-      else {
249
+      } else {
253 250
         return _boinctranslate_filter_process($text, $format, $mynid);
254 251
       }// if debug
255
-    }
256
-    else {
252
+    } else {
257 253
       return $text;
258 254
     }// if type
259 255
     break;
@@ -309,8 +305,7 @@  discard block
 block discarded – undo
309 305
   foreach ($parts as $key => $value) {
310 306
     if (preg_match('/(#SPLIT_TOKEN#)/', $value)) {
311 307
       $chunks[] = array ('delimiter' => $value,);
312
-    }
313
-    else {
308
+    } else {
314 309
       $cleaned = preg_replace('/\s|\n/', '', $value);
315 310
       if (!empty($cleaned)) {
316 311
         $chunks[] = array(
Please login to merge, or discard this patch.
Indentation   +101 added lines, -101 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
  * with defined URL paths
29 29
  */
30 30
 function boinctranslate_menu() {
31
-  $items['admin/boinc/translation'] = array(
31
+    $items['admin/boinc/translation'] = array(
32 32
     'title' => 'Environment: Translation',
33 33
     'description' => 'Configure URLs for translation files (i.e. integration
34 34
       with BOINC Translation Services).',
@@ -37,38 +37,38 @@  discard block
 block discarded – undo
37 37
     'access arguments' => array('administer site configuration'),
38 38
     'type' => MENU_NORMAL_ITEM,
39 39
     'file' => 'boinctranslate.admin.inc'
40
-  );
41
-  $items['admin/boinc/translation/export'] = array(
40
+    );
41
+    $items['admin/boinc/translation/export'] = array(
42 42
     'title' => 'Export translations',
43 43
     'page callback' => 'boinctranslate_export_translations',
44 44
     'access arguments' => array('administer site configuration'),
45 45
     'type' => MENU_CALLBACK,
46
-  );
47
-  $items['admin/boinc/translation/import'] = array(
46
+    );
47
+    $items['admin/boinc/translation/import'] = array(
48 48
     'title' => 'Import translations',
49 49
     'page callback' => 'boinctranslate_refresh_translations',
50 50
     'access arguments' => array('administer site configuration'),
51 51
     'type' => MENU_CALLBACK,
52
-  );
53
-  $items['admin/boinc/translation/initialize-languages'] = array(
52
+    );
53
+    $items['admin/boinc/translation/initialize-languages'] = array(
54 54
     'title' => 'Install official BOINC languages',
55 55
     'page callback' => 'boinctranslate_initialize_languages',
56 56
     'access arguments' => array('administer site configuration'),
57 57
     'type' => MENU_CALLBACK,
58
-  );
59
-  $items['admin/boinc/translation/update-official-boinc'] = array(
58
+    );
59
+    $items['admin/boinc/translation/update-official-boinc'] = array(
60 60
     'title' => 'Update official BOINC translations',
61 61
     'page callback' => 'boinctranslate_update_official_boinc_translations',
62 62
     'access arguments' => array('update official BOINC translations'),
63 63
     'type' => MENU_CALLBACK,
64
-  );
65
-  $items['admin/boinc/translation/download-pot'] = array(
64
+    );
65
+    $items['admin/boinc/translation/download-pot'] = array(
66 66
     'title' => 'Download translation template',
67 67
     'page callback' => 'boinctranslate_download_pot',
68 68
     'access arguments' => array('administer site configuration'),
69 69
     'type' => MENU_CALLBACK,
70
-  );
71
-  return $items;
70
+    );
71
+    return $items;
72 72
 }
73 73
 
74 74
 /**
@@ -76,18 +76,18 @@  discard block
 block discarded – undo
76 76
  * Obsolete in Drupal 7...
77 77
  */
78 78
 function boinctranslate_nodeapi(&$node, $op, $a3 = null, $a4 = null) {
79
-  // In Drupal 7, these operation cases will all exist as their own hooks,
80
-  // so let's approximate that here so that this function can simply be removed
81
-  // upon migration to 7
82
-  switch($op) {
83
-  case 'update':
79
+    // In Drupal 7, these operation cases will all exist as their own hooks,
80
+    // so let's approximate that here so that this function can simply be removed
81
+    // upon migration to 7
82
+    switch($op) {
83
+    case 'update':
84 84
     boinctranslate_node_update($node);
85 85
     break;
86
-  case 'view':
86
+    case 'view':
87 87
     global $language;
88 88
     boinctranslate_node_view($node, 'full', $language->language);
89 89
     break;
90
-  default:
90
+    default:
91 91
   }
92 92
 }
93 93
 
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
  * is updated (forward compatible to Drupal 7)
97 97
  */
98 98
 function boinctranslate_node_update($node) {
99
-  // Only process nodes of certain types as defined by the individual
100
-  // node's setting for field_boinctranslate_transifex.
101
-  if ( ($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value']=='1') ) {
99
+    // Only process nodes of certain types as defined by the individual
100
+    // node's setting for field_boinctranslate_transifex.
101
+    if ( ($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value']=='1') ) {
102 102
     // Add page content to translation table.
103 103
     $textgroup = 'project';
104 104
     $location = "node:{$node->nid}:body";
@@ -112,19 +112,19 @@  discard block
 block discarded – undo
112 112
     // Table of lid and hashes
113 113
     $nodehashtable = array();
114 114
     while ($row = db_fetch_array($dbresult)) {
115
-      $locsplit = explode(":", $row['location']);
116
-      // Look for hash in the fourth position.
117
-      if (isset($locsplit[3])) {
115
+        $locsplit = explode(":", $row['location']);
116
+        // Look for hash in the fourth position.
117
+        if (isset($locsplit[3])) {
118 118
         $nodehashtable[$row['lid']] = $locsplit[3];
119
-      }
119
+        }
120 120
     }// while
121 121
 
122 122
     // Break node body into chunks.
123 123
     $chunks = boinctranslate_splitfortranslation($node->body);
124 124
     foreach ($chunks as $idx => $chunk) {
125 125
 
126
-      // Only process this chunk if there is a hash associated with it.
127
-      if ($chunk['hash']) {
126
+        // Only process this chunk if there is a hash associated with it.
127
+        if ($chunk['hash']) {
128 128
         $chunkloc = $location . ":{$chunk['hash']}";
129 129
 
130 130
         // If the hash for this chunk is in the hash table, logically
@@ -133,45 +133,45 @@  discard block
 block discarded – undo
133 133
         // Otherwise, add the chunk to the database.
134 134
         $lidkey = array_search($chunk['hash'], $nodehashtable);
135 135
         if ($lidkey) {
136
-          unset($nodehashtable[$lidkey]);
136
+            unset($nodehashtable[$lidkey]);
137 137
         }
138 138
         else {
139 139
 
140
-          $result = db_query("
140
+            $result = db_query("
141 141
             INSERT INTO {locales_source}
142 142
             SET location = '%s', textgroup = '%s', source = '%s'",
143 143
             $chunkloc, $textgroup, $chunk['content']
144
-          );
145
-          if ($result) {
144
+            );
145
+            if ($result) {
146 146
             watchdog(
147
-              'boinctranslate',
148
-              'Added translation source strings for node @nid chunk @chunk.',
149
-              array('@nid' => $node->nid, '@chunk' => $idx)
150
-           );
151
-          }
152
-          else {
147
+                'boinctranslate',
148
+                'Added translation source strings for node @nid chunk @chunk.',
149
+                array('@nid' => $node->nid, '@chunk' => $idx)
150
+            );
151
+            }
152
+            else {
153 153
             drupal_set_message(
154
-              t('ERROR: Unable to add translation source strings.'), 'error'
154
+                t('ERROR: Unable to add translation source strings.'), 'error'
155 155
             );
156 156
             watchdog(
157
-              'boinctranslate',
158
-              'Unable to add translation source strings for node @nid chunk @chunk.',
159
-              array('@nid' => $node->nid, '@chunk' => $idx),
160
-              WATCHDOG_ERROR
157
+                'boinctranslate',
158
+                'Unable to add translation source strings for node @nid chunk @chunk.',
159
+                array('@nid' => $node->nid, '@chunk' => $idx),
160
+                WATCHDOG_ERROR
161 161
             );
162
-          }// if $result
162
+            }// if $result
163 163
         }// if lidkey
164 164
 
165
-      }// if chunk['hash']
165
+        }// if chunk['hash']
166 166
     }// foreach chunks
167 167
 
168 168
     // Any remaining hashes in the node hash table are deleted.
169 169
     foreach ($nodehashtable as $lid => $hash) {
170
-      db_query('DELETE FROM {locales_source} WHERE lid = %d', $lid);
171
-      db_query('DELETE FROM {locales_target} WHERE lid = %d', $lid);
172
-      cache_clear_all('locale:', 'cache', TRUE);
170
+        db_query('DELETE FROM {locales_source} WHERE lid = %d', $lid);
171
+        db_query('DELETE FROM {locales_target} WHERE lid = %d', $lid);
172
+        cache_clear_all('locale:', 'cache', TRUE);
173 173
     }
174
-  }// if type
174
+    }// if type
175 175
 }
176 176
 
177 177
 /**
@@ -179,10 +179,10 @@  discard block
 block discarded – undo
179 179
  * is viewed (forward compatible to Drupal 7)
180 180
  */
181 181
 function boinctranslate_node_view($node, $view_mode, $langcode) {
182
-  switch($node->type) {
183
-  case 'page':
182
+    switch($node->type) {
183
+    case 'page':
184 184
     break;
185
-  default:
185
+    default:
186 186
   }
187 187
 }
188 188
 
@@ -195,51 +195,51 @@  discard block
 block discarded – undo
195 195
  * boinctranslate_filter_tips
196 196
  */
197 197
 function boinctranslate_filter_tips($delta, $format, $long = FALSE) {
198
-  if ($long) {
198
+    if ($long) {
199 199
     return _boinctranslate_filter_tips_long();
200
-  } else {
200
+    } else {
201 201
     $output = t('You may use !token (opens in new window) as a delimiter to split the translation into different chunks. See the link for a more detailed guide.',
202
-      array(
202
+        array(
203 203
         '!token' =>  l('#SPLIT_TOKEN#', "filter/tips/$format",
204 204
         array(
205
-          'fragment' => 'filter-boinctranslate-' . $delta,
206
-          'attributes' =>
205
+            'fragment' => 'filter-boinctranslate-' . $delta,
206
+            'attributes' =>
207 207
             array(
208
-              'target'=>'_blank',
209
-              'rel'=>'noopener noreferrer',
208
+                'target'=>'_blank',
209
+                'rel'=>'noopener noreferrer',
210 210
             ),
211 211
         ))
212
-      ));
212
+        ));
213 213
     //$output = 'Help with BOINC Translate input filter.';
214 214
     return $output;
215
-  }
215
+    }
216 216
 }
217 217
 
218 218
 /**
219 219
  * boinctranslate_filter
220 220
  */
221 221
 function boinctranslate_filter($op, $delta = 0, $format = -1, $text = '', $cache_id = 0) {
222
-  switch ($op) {
223
-  case 'list':
222
+    switch ($op) {
223
+    case 'list':
224 224
     return array(0 => bts('BOINC translation filter to help split content into chunks for translations.', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'));
225 225
 
226
-  case 'description':
226
+    case 'description':
227 227
     return bts('Splits node content into chunks for translation.', array(), NULL, 'boinc:input-filter-help');
228 228
 
229
-  case 'process':
229
+    case 'process':
230 230
     /* Only process nodes of certain types. On an individual
231 231
      * node-by-node level, content editors may choose to select
232 232
      * "Export for translation", which will allow this specific node
233 233
      * to be translated. By default this is enabled.
234 234
      */
235 235
     if ($node = menu_get_object()) {
236
-      $mynid = $node->nid;
236
+        $mynid = $node->nid;
237 237
     } else {
238
-      return $text;
238
+        return $text;
239 239
     }
240 240
 
241 241
     if ( ($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value']=='1') ) {
242
-      if (variable_get("boinctranslate_filter_debug_$format", 0)) {
242
+        if (variable_get("boinctranslate_filter_debug_$format", 0)) {
243 243
         $timing_start = explode(' ', microtime());
244 244
         $ret = _boinctranslate_filter_process($text, $format, $mynid);
245 245
         $timing_stop = explode(' ', microtime());
@@ -248,22 +248,22 @@  discard block
 block discarded – undo
248 248
         $mess = 'DEBUG ' . l('BOINC translate', "filter/tips/$format") .' parsed on '.date('r').'<br />Execution time: '.$elapsed.' seconds.';
249 249
         drupal_set_message($mess, 'warning');
250 250
         return $ret;
251
-      }
252
-      else {
251
+        }
252
+        else {
253 253
         return _boinctranslate_filter_process($text, $format, $mynid);
254
-      }// if debug
254
+        }// if debug
255 255
     }
256 256
     else {
257
-      return $text;
257
+        return $text;
258 258
     }// if type
259 259
     break;
260 260
 
261
-  case 'settings':
261
+    case 'settings':
262 262
     return boinctranslate_filter_settings_form($format);
263 263
 
264
-  default:
264
+    default:
265 265
     return $text;
266
-  }
266
+    }
267 267
 }
268 268
 
269 269
 /**
@@ -271,17 +271,17 @@  discard block
 block discarded – undo
271 271
  * This workaround makes panel page titles and pane titles translatable
272 272
  */
273 273
 function boinctranslate_panels_pane_content_alter($content, $pane, $args, $context) {
274
-  if ($content->title) {
274
+    if ($content->title) {
275 275
     $content->title = t($content->title);
276
-  }
277
-  return $content;
276
+    }
277
+    return $content;
278 278
 }
279 279
 
280 280
 /**
281 281
  * Implementation of hook_perm()
282 282
  */
283 283
 function boinctranslate_perm() {
284
-  return array('update official BOINC translations');
284
+    return array('update official BOINC translations');
285 285
 }
286 286
 
287 287
 /*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *
@@ -304,23 +304,23 @@  discard block
 block discarded – undo
304 304
  *   The input string to find.
305 305
  */
306 306
 function boinctranslate_splitfortranslation($instring) {
307
-  $parts = preg_split('/(#SPLIT_TOKEN#)|<p>(#SPLIT_TOKEN#)<\/p>/', $instring);
308
-  $chunks = array();
309
-  foreach ($parts as $key => $value) {
307
+    $parts = preg_split('/(#SPLIT_TOKEN#)|<p>(#SPLIT_TOKEN#)<\/p>/', $instring);
308
+    $chunks = array();
309
+    foreach ($parts as $key => $value) {
310 310
     if (preg_match('/(#SPLIT_TOKEN#)/', $value)) {
311
-      $chunks[] = array ('delimiter' => $value,);
311
+        $chunks[] = array ('delimiter' => $value,);
312 312
     }
313 313
     else {
314
-      $cleaned = preg_replace('/\s|\n/', '', $value);
315
-      if (!empty($cleaned)) {
314
+        $cleaned = preg_replace('/\s|\n/', '', $value);
315
+        if (!empty($cleaned)) {
316 316
         $chunks[] = array(
317
-          'content' => $value,
318
-          'hash' => hash('sha1', $cleaned),
317
+            'content' => $value,
318
+            'hash' => hash('sha1', $cleaned),
319 319
         );
320
-      }// !empty cleaned
320
+        }// !empty cleaned
321 321
     }// preg_match
322
-  }// foreach part
323
-  return $chunks;
322
+    }// foreach part
323
+    return $chunks;
324 324
 }
325 325
 
326 326
 
@@ -338,19 +338,19 @@  discard block
 block discarded – undo
338 338
  *   location/context string.
339 339
  */
340 340
 function _boinctranslate_filter_process(&$text, $format = -1, $nid) {
341
-  $newbody = '';
342
-  // Break node body into chunks.
343
-  $chunks = boinctranslate_splitfortranslation($text);
344
-  foreach ($chunks as $chunk) {
341
+    $newbody = '';
342
+    // Break node body into chunks.
343
+    $chunks = boinctranslate_splitfortranslation($text);
344
+    foreach ($chunks as $chunk) {
345 345
     $location = "project:node:${nid}:body";
346 346
     // Only add this chunk to the content if it has a hash, i.e., it
347 347
     // is not a delimiter.
348 348
     if ($chunk['hash']) {
349
-      $location .= ":{$chunk['hash']}";
350
-      $newbody .= bts($chunk['content'], array(), $langcode, $location, FALSE);
349
+        $location .= ":{$chunk['hash']}";
350
+        $newbody .= bts($chunk['content'], array(), $langcode, $location, FALSE);
351 351
     }
352
-  }
353
-  return $newbody;
352
+    }
353
+    return $newbody;
354 354
 }
355 355
 
356 356
 
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
  * Implementation of hooks for l10n_update
359 359
  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  */
360 360
 function boinctranslate_l10n_update_projects_alter(&$projects) {
361
-  foreach ($projects as &$proj) {
361
+    foreach ($projects as &$proj) {
362 362
     $proj['info']['l10n path'] = 'https://ftp-origin.drupal.org/files/translations/%core/%project/%project-%release.%language.po';
363
-  }
363
+    }
364 364
 }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
   // In Drupal 7, these operation cases will all exist as their own hooks,
80 80
   // so let's approximate that here so that this function can simply be removed
81 81
   // upon migration to 7
82
-  switch($op) {
82
+  switch ($op) {
83 83
   case 'update':
84 84
     boinctranslate_node_update($node);
85 85
     break;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 function boinctranslate_node_update($node) {
99 99
   // Only process nodes of certain types as defined by the individual
100 100
   // node's setting for field_boinctranslate_transifex.
101
-  if ( ($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value']=='1') ) {
101
+  if (($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value'] == '1')) {
102 102
     // Add page content to translation table.
103 103
     $textgroup = 'project';
104 104
     $location = "node:{$node->nid}:body";
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
       // Only process this chunk if there is a hash associated with it.
127 127
       if ($chunk['hash']) {
128
-        $chunkloc = $location . ":{$chunk['hash']}";
128
+        $chunkloc = $location.":{$chunk['hash']}";
129 129
 
130 130
         // If the hash for this chunk is in the hash table, logically
131 131
         // the chunk is already in the database locales_source table. As
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
  * is viewed (forward compatible to Drupal 7)
180 180
  */
181 181
 function boinctranslate_node_view($node, $view_mode, $langcode) {
182
-  switch($node->type) {
182
+  switch ($node->type) {
183 183
   case 'page':
184 184
     break;
185 185
   default:
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
       array(
203 203
         '!token' =>  l('#SPLIT_TOKEN#', "filter/tips/$format",
204 204
         array(
205
-          'fragment' => 'filter-boinctranslate-' . $delta,
205
+          'fragment' => 'filter-boinctranslate-'.$delta,
206 206
           'attributes' =>
207 207
             array(
208 208
               'target'=>'_blank',
@@ -238,14 +238,14 @@  discard block
 block discarded – undo
238 238
       return $text;
239 239
     }
240 240
 
241
-    if ( ($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value']=='1') ) {
241
+    if (($node->field_boinctranslate_transifex) and ($node->field_boinctranslate_transifex[0]['value'] == '1')) {
242 242
       if (variable_get("boinctranslate_filter_debug_$format", 0)) {
243 243
         $timing_start = explode(' ', microtime());
244 244
         $ret = _boinctranslate_filter_process($text, $format, $mynid);
245 245
         $timing_stop = explode(' ', microtime());
246 246
         $elapsed = $timing_stop[1] - $timing_start[1];
247 247
         $elapsed += $timing_stop[0] - $timing_start[0];
248
-        $mess = 'DEBUG ' . l('BOINC translate', "filter/tips/$format") .' parsed on '.date('r').'<br />Execution time: '.$elapsed.' seconds.';
248
+        $mess = 'DEBUG '.l('BOINC translate', "filter/tips/$format").' parsed on '.date('r').'<br />Execution time: '.$elapsed.' seconds.';
249 249
         drupal_set_message($mess, 'warning');
250 250
         return $ret;
251 251
       }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
   $chunks = array();
309 309
   foreach ($parts as $key => $value) {
310 310
     if (preg_match('/(#SPLIT_TOKEN#)/', $value)) {
311
-      $chunks[] = array ('delimiter' => $value,);
311
+      $chunks[] = array('delimiter' => $value,);
312 312
     }
313 313
     else {
314 314
       $cleaned = preg_replace('/\s|\n/', '', $value);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     foreach ($nodehashtable as $lid => $hash) {
170 170
       db_query('DELETE FROM {locales_source} WHERE lid = %d', $lid);
171 171
       db_query('DELETE FROM {locales_target} WHERE lid = %d', $lid);
172
-      cache_clear_all('locale:', 'cache', TRUE);
172
+      cache_clear_all('locale:', 'cache', true);
173 173
     }
174 174
   }// if type
175 175
 }
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 /**
195 195
  * boinctranslate_filter_tips
196 196
  */
197
-function boinctranslate_filter_tips($delta, $format, $long = FALSE) {
197
+function boinctranslate_filter_tips($delta, $format, $long = false) {
198 198
   if ($long) {
199 199
     return _boinctranslate_filter_tips_long();
200 200
   } else {
@@ -221,10 +221,10 @@  discard block
 block discarded – undo
221 221
 function boinctranslate_filter($op, $delta = 0, $format = -1, $text = '', $cache_id = 0) {
222 222
   switch ($op) {
223 223
   case 'list':
224
-    return array(0 => bts('BOINC translation filter to help split content into chunks for translations.', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'));
224
+    return array(0 => bts('BOINC translation filter to help split content into chunks for translations.', array(), null, 'boinc:adminpage-boinctranslate-inputfilter'));
225 225
 
226 226
   case 'description':
227
-    return bts('Splits node content into chunks for translation.', array(), NULL, 'boinc:input-filter-help');
227
+    return bts('Splits node content into chunks for translation.', array(), null, 'boinc:input-filter-help');
228 228
 
229 229
   case 'process':
230 230
     /* Only process nodes of certain types. On an individual
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     // is not a delimiter.
348 348
     if ($chunk['hash']) {
349 349
       $location .= ":{$chunk['hash']}";
350
-      $newbody .= bts($chunk['content'], array(), $langcode, $location, FALSE);
350
+      $newbody .= bts($chunk['content'], array(), $langcode, $location, false);
351 351
     }
352 352
   }
353 353
   return $newbody;
Please login to merge, or discard this patch.
default/boinc/modules/boinctranslate/includes/boinctranslate.helpers.inc 5 patches
Switch Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -1398,72 +1398,72 @@
 block discarded – undo
1398 1398
 
1399 1399
   switch ($op) {
1400 1400
     // Return stored strings
1401
-    case 'mem-report':
1402
-      return $strings;
1403
-
1404
-      // Store string in memory (only supports single strings)
1405
-    case 'mem-store':
1406
-      $strings[$value['msgid']] = $value['msgstr'];
1407
-      return;
1408
-
1409
-      // Called at end of import to inform the user
1410
-    case 'db-report':
1411
-      return array(
1412
-        $headerdone,
1413
-        $report['additions'],
1414
-        $report['updates'],
1415
-        $report['deletes'],
1416
-        $report['skips'],
1417
-      );
1401
+  case 'mem-report':
1402
+    return $strings;
1403
+
1404
+    // Store string in memory (only supports single strings)
1405
+  case 'mem-store':
1406
+    $strings[$value['msgid']] = $value['msgstr'];
1407
+    return;
1408
+
1409
+    // Called at end of import to inform the user
1410
+  case 'db-report':
1411
+    return array(
1412
+      $headerdone,
1413
+      $report['additions'],
1414
+      $report['updates'],
1415
+      $report['deletes'],
1416
+      $report['skips'],
1417
+    );
1418 1418
 
1419
-      // Store the string we got in the database.
1420
-    case 'db-store':
1421
-      // We got header information.
1422
-      if ($value['msgid'] == '') {
1423
-        $languages = language_list();
1424
-        if (($mode != LOCALE_IMPORT_KEEP) || empty($languages[$lang]->plurals)) {
1425
-          // Since we only need to parse the header if we ought to update the
1426
-          // plural formula, only run this if we don't need to keep existing
1427
-          // data untouched or if we don't have an existing plural formula.
1428
-          $header = _locale_import_parse_header($value['msgstr']);
1429
-
1430
-          // Get and store the plural formula if available.
1431
-          if (isset($header["Plural-Forms"]) && $p = _locale_import_parse_plural_forms($header["Plural-Forms"], $file->filename)) {
1432
-            list($nplurals, $plural) = $p;
1433
-            db_query("UPDATE {languages} SET plurals = %d, formula = '%s' WHERE language = '%s'", $nplurals, $plural, $lang);
1434
-          }
1419
+    // Store the string we got in the database.
1420
+  case 'db-store':
1421
+    // We got header information.
1422
+    if ($value['msgid'] == '') {
1423
+      $languages = language_list();
1424
+      if (($mode != LOCALE_IMPORT_KEEP) || empty($languages[$lang]->plurals)) {
1425
+        // Since we only need to parse the header if we ought to update the
1426
+        // plural formula, only run this if we don't need to keep existing
1427
+        // data untouched or if we don't have an existing plural formula.
1428
+        $header = _locale_import_parse_header($value['msgstr']);
1429
+
1430
+        // Get and store the plural formula if available.
1431
+        if (isset($header["Plural-Forms"]) && $p = _locale_import_parse_plural_forms($header["Plural-Forms"], $file->filename)) {
1432
+          list($nplurals, $plural) = $p;
1433
+          db_query("UPDATE {languages} SET plurals = %d, formula = '%s' WHERE language = '%s'", $nplurals, $plural, $lang);
1435 1434
         }
1436
-        $headerdone = TRUE;
1437 1435
       }
1436
+      $headerdone = TRUE;
1437
+    }
1438 1438
 
1439
-      else {
1440
-        // Some real string to import.
1441
-        $comments = _locale_import_shorten_comments(empty($value['#']) ? array() : $value['#']);
1442
-
1443
-        if (strpos($value['msgid'], "\0")) {
1444
-          // This string has plural versions.
1445
-          $english = explode("\0", $value['msgid'], 2);
1446
-          $entries = array_keys($value['msgstr']);
1447
-          for ($i = 3; $i <= count($entries); $i++) {
1448
-            $english[] = $english[1];
1449
-          }
1450
-          $translation = array_map('_locale_import_append_plural', $value['msgstr'], $entries);
1451
-          $english = array_map('_locale_import_append_plural', $english, $entries);
1452
-          foreach ($translation as $key => $trans) {
1453
-            if ($key == 0) {
1454
-              $plid = 0;
1455
-            }
1456
-            $plid = _boinctranslate_locale_import_one_string_db($report, $lang, $english[$key], $trans, $group, $comments, $mode, $plid, $key);
1439
+    else {
1440
+      // Some real string to import.
1441
+      $comments = _locale_import_shorten_comments(empty($value['#']) ? array() : $value['#']);
1442
+
1443
+      if (strpos($value['msgid'], "\0")) {
1444
+        // This string has plural versions.
1445
+        $english = explode("\0", $value['msgid'], 2);
1446
+        $entries = array_keys($value['msgstr']);
1447
+        for ($i = 3; $i <= count($entries); $i++) {
1448
+          $english[] = $english[1];
1449
+        }
1450
+        $translation = array_map('_locale_import_append_plural', $value['msgstr'], $entries);
1451
+        $english = array_map('_locale_import_append_plural', $english, $entries);
1452
+        foreach ($translation as $key => $trans) {
1453
+          if ($key == 0) {
1454
+            $plid = 0;
1457 1455
           }
1456
+          $plid = _boinctranslate_locale_import_one_string_db($report, $lang, $english[$key], $trans, $group, $comments, $mode, $plid, $key);
1458 1457
         }
1458
+      }
1459 1459
 
1460
-        else {
1461
-          // A simple string to import.
1462
-          $english = $value['msgid'];
1463
-          $translation = $value['msgstr'];
1464
-          _boinctranslate_locale_import_one_string_db($report, $lang, $english, $translation, $group, $comments, $mode);
1465
-        }
1460
+      else {
1461
+        // A simple string to import.
1462
+        $english = $value['msgid'];
1463
+        $translation = $value['msgstr'];
1464
+        _boinctranslate_locale_import_one_string_db($report, $lang, $english, $translation, $group, $comments, $mode);
1466 1465
       }
1466
+    }
1467 1467
   } // end of db-store operation
1468 1468
 }
1469 1469
 
Please login to merge, or discard this patch.
Braces   +76 added lines, -125 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@  discard block
 block discarded – undo
36 36
           )
37 37
         ), 'warning'
38 38
       );
39
-    }
40
-    elseif ($response) {
39
+    } elseif ($response) {
41 40
       if (is_array($response)) {
42 41
 
43 42
         $installed_languages = language_list();
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
                 'Added predefined language: '.$available_languages[$rfc_code][0]
68 67
               );
69 68
               db_query("UPDATE {languages} SET enabled = 1 WHERE language = '%s'", $rfc_code);
70
-            }
71
-            else {
69
+            } else {
72 70
               // Retrieve language details from Transifex
73 71
               $path = "language/{$posix_code}";
74 72
               $response = boinctranslate_transifex_request($path);
@@ -81,8 +79,7 @@  discard block
 block discarded – undo
81 79
                     )
82 80
                   ), 'warning'
83 81
                 );
84
-              }
85
-              elseif ($response) {
82
+              } elseif ($response) {
86 83
                 if (!empty($response['name'])) {
87 84
                   // Add a custom language to Drupal and enable
88 85
                   locale_add_language(
@@ -97,8 +94,7 @@  discard block
 block discarded – undo
97 94
                   drupal_set_message(
98 95
                     'Added new language: '.$response['name']
99 96
                   );
100
-                }
101
-                else {
97
+                } else {
102 98
                   $variables = array(
103 99
                     '%code' => $posix_code,
104 100
                   );
@@ -113,8 +109,7 @@  discard block
 block discarded – undo
113 109
                     WATCHDOG_ERROR
114 110
                   );
115 111
                 }
116
-              }
117
-              else {
112
+              } else {
118 113
                $variables = array(
119 114
                   '%code' => $posix_code,
120 115
                 );
@@ -155,8 +150,7 @@  discard block
 block discarded – undo
155 150
           batch_set($batch);
156 151
           batch_process('admin/boinc/translation');
157 152
         }
158
-      }
159
-      else {
153
+      } else {
160 154
         $variables = array(
161 155
           '%project' => $project_name,
162 156
         );
@@ -171,8 +165,7 @@  discard block
 block discarded – undo
171 165
           WATCHDOG_ERROR
172 166
         );
173 167
       }
174
-    }
175
-    else {
168
+    } else {
176 169
      $variables = array(
177 170
         '%project' => $project_name,
178 171
       );
@@ -229,8 +222,7 @@  discard block
 block discarded – undo
229 222
           'content' => boinctranslate_get_po('en', 'project'),
230 223
         );
231 224
         $result = boinctranslate_transifex_request($path, $post);
232
-      }
233
-      else {
225
+      } else {
234 226
         // Update the source
235 227
         $path = "project/{$project_name}/resource/{$primary_resource}/content";
236 228
         $post = array(
@@ -244,8 +236,7 @@  discard block
 block discarded – undo
244 236
       $enabled_languages = locale_language_list();
245 237
       if ($source_exists) {
246 238
         drupal_set_message('Updated source translation strings at Transifex');
247
-      }
248
-      else {
239
+      } else {
249 240
         drupal_set_message('Established new translation resource at Transifex');
250 241
       }
251 242
       // Try to export translations for all enabled languages
@@ -266,25 +257,21 @@  discard block
 block discarded – undo
266 257
               "Unable to update {$language_name} translations: {$result}",
267 258
               'warning'
268 259
             );
269
-          }
270
-          else {
260
+          } else {
271 261
             drupal_set_message("Updated {$language_name} translations");
272 262
             //drupal_set_message('DEBUG: <pre>'.print_r($result,1).'</pre>');
273 263
           }
274
-        }
275
-        else {
264
+        } else {
276 265
           drupal_set_message("No translations to export for {$language_name}");
277 266
         }
278 267
       }
279
-    }
280
-    else {
268
+    } else {
281 269
       drupal_set_message(
282 270
         "Unable to update the translation source: {$result}",
283 271
         'warning'
284 272
       );
285 273
     }
286
-  }
287
-  else {
274
+  } else {
288 275
     drupal_set_message(
289 276
       'Failed to export translations: Transifex settings are not intiailized.',
290 277
       'error'
@@ -340,42 +327,35 @@  discard block
 block discarded – undo
340 327
                 "Unable to update {$language_name} official BOINC translations: {$result}",
341 328
                 'warning'
342 329
               );
343
-            }
344
-            elseif ($result == '401 UNAUTHORIZED') {
330
+            } elseif ($result == '401 UNAUTHORIZED') {
345 331
               drupal_set_message(
346 332
                 'Not authorized to update official BOINC translations',
347 333
                 'warning'
348 334
               );
349 335
               break;
350
-            }
351
-            elseif ($result == 'success') {
336
+            } elseif ($result == 'success') {
352 337
               drupal_set_message("Updated {$language_name} official BOINC translations");
353
-            }
354
-            else {
338
+            } else {
355 339
               drupal_set_message(
356 340
                 "Unexpected response for {$language_name}: {$result}",
357 341
                 'warning'
358 342
               );
359 343
             }
360
-          }
361
-          else {
344
+          } else {
362 345
             drupal_set_message("Updated {$language_name} official BOINC translations");
363 346
             //drupal_set_message('DEBUG: <pre>'.print_r($result,1).'</pre>');
364 347
           }
365
-        }
366
-        else {
348
+        } else {
367 349
           drupal_set_message("No official BOINC translations to export for {$language_name}");
368 350
         }
369 351
       }
370
-    }
371
-    else {
352
+    } else {
372 353
       drupal_set_message(
373 354
         "The {$drupal_resource} resource does not exist in the {$project_name} project at Transifex",
374 355
         'warning'
375 356
       );
376 357
     }
377
-  }
378
-  else {
358
+  } else {
379 359
     drupal_set_message(
380 360
       'Failed to export official BOINC translations: Transifex settings are not intiailized.',
381 361
       'error'
@@ -413,13 +393,11 @@  discard block
 block discarded – undo
413 393
     if ($json) {
414 394
       $headers['Content-Type'] = 'application/json';
415 395
       $data = json_encode($post);
416
-    }
417
-    else {
396
+    } else {
418 397
       $data = drupal_query_string_encode($post);
419 398
     }
420 399
     $method = ($use_put) ? 'PUT' : 'POST';
421
-  }
422
-  else {
400
+  } else {
423 401
     $method = 'GET';
424 402
   }
425 403
 
@@ -431,8 +409,7 @@  discard block
 block discarded – undo
431 409
     if ($json) {
432 410
       // Process as JSON
433 411
       return json_decode($response->data, TRUE);
434
-    }
435
-    else {
412
+    } else {
436 413
       return (string) $response->data;
437 414
     }
438 415
     break;
@@ -582,18 +559,15 @@  discard block
 block discarded – undo
582 559
             if ($plural) {
583 560
               $translation = _locale_export_remove_plural($strings[$plural]['translation']);
584 561
               $plural = isset($strings[$plural]['plural']) ? $strings[$plural]['plural'] : 0;
585
-            }
586
-            else {
562
+            } else {
587 563
               $translation = '';
588 564
             }
589 565
           }
590
-        }
591
-        else {
566
+        } else {
592 567
           $output .= 'msgstr[0] ""' . "\n";
593 568
           $output .= 'msgstr[1] ""' . "\n";
594 569
         }
595
-      }
596
-      else {
570
+      } else {
597 571
         $output .= 'msgstr ' . _locale_export_string($string['translation']);
598 572
       }
599 573
       $output .= "\n";
@@ -671,8 +645,7 @@  discard block
 block discarded – undo
671 645
               if ($tl0) {
672 646
                 bts($tl0);
673 647
               }
674
-            }
675
-            elseif (count($line)>1) {
648
+            } elseif (count($line)>1) {
676 649
               $tl0 = trim($line[0]);
677 650
               $tl1 = trim($line[1]);
678 651
               if ($tl0 and $tl1) {
@@ -761,8 +734,7 @@  discard block
 block discarded – undo
761 734
 
762 735
     if ($response == '404 NOT FOUND') {
763 736
       $message = "Project resource {$project}:{$resource} not found in {$language}.";
764
-    }
765
-    elseif ($response) {
737
+    } elseif ($response) {
766 738
       if (!empty($response['content'])) {
767 739
         $po_text = $response['content'];
768 740
 
@@ -783,23 +755,19 @@  discard block
 block discarded – undo
783 755
               . " {$project}:{$resource} failed.";
784 756
             $success = FALSE;
785 757
             break;
786
-          }
787
-          else {
758
+          } else {
788 759
             $success = TRUE;
789 760
           }
790 761
         }
791
-      }
792
-      else {
762
+      } else {
793 763
         $message = "Unable to read response for {$language} translation import"
794 764
           . " of {$project}:{$resource}.";
795 765
       }
796
-    }
797
-    else {
766
+    } else {
798 767
       $message = "Translation data not found in response for {$language}"
799 768
         . " translation import of {$project}:{$resource}.";
800 769
     }
801
-  }
802
-  else {
770
+  } else {
803 771
     // If project isn't specified, import as a local Drupal resource
804 772
     $project = 'drupal.local';
805 773
     $file = new stdClass();
@@ -809,8 +777,7 @@  discard block
 block discarded – undo
809 777
       $message = "The {$language} translation import of"
810 778
         . " local file {$resource} failed.";
811 779
       $success = FALSE;
812
-    }
813
-    else {
780
+    } else {
814 781
       $success = TRUE;
815 782
     }
816 783
   }
@@ -828,8 +795,7 @@  discard block
 block discarded – undo
828 795
         WATCHDOG_INFO
829 796
       );
830 797
     }
831
-  }
832
-  else {
798
+  } else {
833 799
     $context['results']['failure'][] = "{$langcode}:{$textgroup}";
834 800
     watchdog(
835 801
       'boinctranslate',
@@ -847,8 +813,7 @@  discard block
 block discarded – undo
847 813
   // Update the progress for the batch engine
848 814
   if ($context['sandbox']['progress'] >= $context['sandbox']['max']) {
849 815
     $context['finished'] = 1;
850
-  }
851
-  else {
816
+  } else {
852 817
     $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
853 818
   }
854 819
 }
@@ -867,8 +832,7 @@  discard block
 block discarded – undo
867 832
       array('@count' => $count),
868 833
       WATCHDOG_INFO
869 834
     ); 
870
-  }
871
-  else {
835
+  } else {
872 836
     // An error occurred.
873 837
     // $operations contains the operations that remained unprocessed.
874 838
     $error_operation = reset($operations);
@@ -963,17 +927,19 @@  discard block
 block discarded – undo
963 927
     $lineno++;
964 928
     $line = trim(strtr($line, array("\\\n" => "")));
965 929
 
966
-    if (!strncmp("#", $line, 1)) { // A comment
967
-      if ($context == "COMMENT") { // Already in comment context: add
930
+    if (!strncmp("#", $line, 1)) {
931
+// A comment
932
+      if ($context == "COMMENT") {
933
+// Already in comment context: add
968 934
         $current["#"][] = substr($line, 1);
969
-      }
970
-      elseif (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
935
+      } elseif (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) {
936
+// End current entry, start a new one
971 937
         _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
972 938
         $current = array();
973 939
         $current["#"][] = substr($line, 1);
974 940
         $context = "COMMENT";
975
-      }
976
-      else { // Parse error
941
+      } else {
942
+// Parse error
977 943
         watchdog(
978 944
           'boinctranslate',
979 945
           'The translation file %filename for %lang contains an error: "msgstr" was expected but not found on line %line.',
@@ -983,13 +949,13 @@  discard block
 block discarded – undo
983 949
         _locale_import_message('The translation file %filename contains an error: "msgstr" was expected but not found on line %line.', $file, $lineno);
984 950
         return FALSE;
985 951
       }
986
-    }
987
-    elseif (!strncmp("msgctxt", $line, 7)) {
988
-      if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
952
+    } elseif (!strncmp("msgctxt", $line, 7)) {
953
+      if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) {
954
+// End current entry, start a new one
989 955
         _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
990 956
         $current = array();
991
-      }
992
-      elseif (($context == "MSGID") || ($context == "MSGCTXT")) { // Already in this context? Parse error
957
+      } elseif (($context == "MSGID") || ($context == "MSGCTXT")) {
958
+// Already in this context? Parse error
993 959
         watchdog(
994 960
           'boinctranslate',
995 961
           'The translation file %filename for %lang contains an error: "msgctxt" is unexpected on line %line.',
@@ -1013,9 +979,9 @@  discard block
 block discarded – undo
1013 979
       }
1014 980
       $current["msgctxt"] = $quoted;
1015 981
       $context = "MSGCTXT";
1016
-    }
1017
-    elseif (!strncmp("msgid_plural", $line, 12)) {
1018
-      if ($context != "MSGID") { // Must be plural form for current entry
982
+    } elseif (!strncmp("msgid_plural", $line, 12)) {
983
+      if ($context != "MSGID") {
984
+// Must be plural form for current entry
1019 985
         watchdog(
1020 986
           'boinctranslate',
1021 987
           'The translation file %filename for %lang contains an error: "msgid_plural" was expected but not found on line %line.',
@@ -1039,13 +1005,13 @@  discard block
 block discarded – undo
1039 1005
       }
1040 1006
       $current["msgid"] = $current["msgid"] . "\0" . $quoted;
1041 1007
       $context = "MSGID_PLURAL";
1042
-    }
1043
-    elseif (!strncmp("msgid", $line, 5)) {
1044
-      if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
1008
+    } elseif (!strncmp("msgid", $line, 5)) {
1009
+      if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) {
1010
+// End current entry, start a new one
1045 1011
         _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
1046 1012
         $current = array();
1047
-      }
1048
-      elseif ($context == "MSGID") { // Already in this context? Parse error
1013
+      } elseif ($context == "MSGID") {
1014
+// Already in this context? Parse error
1049 1015
         watchdog(
1050 1016
           'boinctranslate',
1051 1017
           'The translation file %filename for %lang contains an error: "msgid" is unexpected on line %line.',
@@ -1069,9 +1035,9 @@  discard block
 block discarded – undo
1069 1035
       }
1070 1036
       $current["msgid"] = $quoted;
1071 1037
       $context = "MSGID";
1072
-    }
1073
-    elseif (!strncmp("msgstr[", $line, 7)) {
1074
-      if (($context != "MSGID") && ($context != "MSGID_PLURAL") && ($context != "MSGSTR_ARR")) { // Must come after msgid, msgid_plural, or msgstr[]
1038
+    } elseif (!strncmp("msgstr[", $line, 7)) {
1039
+      if (($context != "MSGID") && ($context != "MSGID_PLURAL") && ($context != "MSGSTR_ARR")) {
1040
+// Must come after msgid, msgid_plural, or msgstr[]
1075 1041
         watchdog(
1076 1042
           'boinctranslate',
1077 1043
           'The translation file %filename for %lang contains an error: "msgstr[]" is unexpected on line %line.',
@@ -1107,9 +1073,9 @@  discard block
 block discarded – undo
1107 1073
       }
1108 1074
       $current["msgstr"][$plural] = $quoted;
1109 1075
       $context = "MSGSTR_ARR";
1110
-    }
1111
-    elseif (!strncmp("msgstr", $line, 6)) {
1112
-      if ($context != "MSGID") { // Should come just after a msgid block
1076
+    } elseif (!strncmp("msgstr", $line, 6)) {
1077
+      if ($context != "MSGID") {
1078
+// Should come just after a msgid block
1113 1079
         watchdog(
1114 1080
           'boinctranslate',
1115 1081
           'The translation file %filename for %lang contains an error: "msgstr" is unexpected on line %line.',
@@ -1133,8 +1099,7 @@  discard block
 block discarded – undo
1133 1099
       }
1134 1100
       $current["msgstr"] = $quoted;
1135 1101
       $context = "MSGSTR";
1136
-    }
1137
-    elseif ($line != "") {
1102
+    } elseif ($line != "") {
1138 1103
       $quoted = _locale_import_parse_quoted($line);
1139 1104
       if ($quoted === FALSE) {
1140 1105
         watchdog(
@@ -1148,14 +1113,11 @@  discard block
 block discarded – undo
1148 1113
       }
1149 1114
       if (($context == "MSGID") || ($context == "MSGID_PLURAL")) {
1150 1115
         $current["msgid"] .= $quoted;
1151
-      }
1152
-      elseif ($context == "MSGSTR") {
1116
+      } elseif ($context == "MSGSTR") {
1153 1117
         $current["msgstr"] .= $quoted;
1154
-      }
1155
-      elseif ($context == "MSGSTR_ARR") {
1118
+      } elseif ($context == "MSGSTR_ARR") {
1156 1119
         $current["msgstr"][$plural] .= $quoted;
1157
-      }
1158
-      else {
1120
+      } else {
1159 1121
         watchdog(
1160 1122
           'boinctranslate',
1161 1123
           'The translation file %filename for %lang contains an error: there is an unexpected string on line %line.',
@@ -1171,8 +1133,7 @@  discard block
 block discarded – undo
1171 1133
   // End of PO file, flush last entry
1172 1134
   if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) {
1173 1135
     _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
1174
-  }
1175
-  elseif ($context != "COMMENT") {
1136
+  } elseif ($context != "COMMENT") {
1176 1137
     watchdog(
1177 1138
       'boinctranslate',
1178 1139
       'The translation file %filename for %lang ended unexpectedly at line %line.',
@@ -1239,9 +1200,7 @@  discard block
 block discarded – undo
1239 1200
           }
1240 1201
         }
1241 1202
         $headerdone = TRUE;
1242
-      }
1243
-
1244
-      else {
1203
+      } else {
1245 1204
         // Some real string to import.
1246 1205
         $comments = _locale_import_shorten_comments(empty($value['#']) ? array() : $value['#']);
1247 1206
 
@@ -1260,9 +1219,7 @@  discard block
 block discarded – undo
1260 1219
             }
1261 1220
             $plid = _boinctranslate_locale_import_one_string_db($report, $lang, $english[$key], $trans, $group, $comments, $mode, $plid, $key);
1262 1221
           }
1263
-        }
1264
-
1265
-        else {
1222
+        } else {
1266 1223
           // A simple string to import.
1267 1224
           $english = $value['msgid'];
1268 1225
           $translation = $value['msgstr'];
@@ -1293,8 +1250,7 @@  discard block
 block discarded – undo
1293 1250
   $uselocation = array("boinc", "project");
1294 1251
   if (in_array($textgroup, $uselocation)) {
1295 1252
     $resource = db_query("SELECT lid FROM {locales_source} WHERE location = '%s' AND source = '%s' AND textgroup = '%s'", $location, $source, $textgroup);
1296
-  }
1297
-  else {
1253
+  } else {
1298 1254
     $resource = db_query("SELECT lid FROM {locales_source} WHERE source = '%s' AND textgroup = '%s'", $source, $textgroup);
1299 1255
 
1300 1256
     // Parse the location string for the string ignoreoverwrite, which
@@ -1316,8 +1272,7 @@  discard block
 block discarded – undo
1316 1272
     if ($textgroup == "default" && !locale_string_is_safe($translation)) {
1317 1273
       $report['skips']++;
1318 1274
       $lid = 0;
1319
-    }
1320
-    elseif ($resource) {
1275
+    } elseif ($resource) {
1321 1276
       // We have this source string saved already. Loop over the db results from locales_source table.
1322 1277
       while ($row = db_fetch_array($resource)) {
1323 1278
 
@@ -1328,20 +1283,17 @@  discard block
 block discarded – undo
1328 1283
           // No translation in this language, insert translation into locales_target table.
1329 1284
           db_query("INSERT INTO {locales_target} (lid, language, translation, plid, plural) VALUES (%d, '%s', '%s', %d, %d)", $lid, $langcode, $translation, $plid, $plural);
1330 1285
           $report['additions']++;
1331
-        }
1332
-        else if ( ($mode == LOCALE_IMPORT_OVERWRITE) and (!$ignoreoverwrite) ) {
1286
+        } else if ( ($mode == LOCALE_IMPORT_OVERWRITE) and (!$ignoreoverwrite) ) {
1333 1287
           // Translation exists, only overwrite if instructed.
1334 1288
           db_query("UPDATE {locales_target} SET translation = '%s', plid = %d, plural = %d WHERE language = '%s' AND lid = %d", $translation, $plid, $plural, $langcode, $lid);
1335 1289
           $report['updates']++;
1336
-        }
1337
-        else {
1290
+        } else {
1338 1291
           $report['skips']++;
1339 1292
         }// end if !$exists
1340 1293
 
1341 1294
       }// while
1342 1295
     }
1343
-  }
1344
-  elseif ($mode == LOCALE_IMPORT_OVERWRITE AND $resource) {
1296
+  } elseif ($mode == LOCALE_IMPORT_OVERWRITE AND $resource) {
1345 1297
     // Loop over db results from locales_source table.
1346 1298
     while ($row = db_fetch_array($resource)) {
1347 1299
       $lid = $row['lid'];
@@ -1352,8 +1304,7 @@  discard block
 block discarded – undo
1352 1304
         $report['deletes']++;
1353 1305
       }// if $exists
1354 1306
     }// while
1355
-  }
1356
-  else {
1307
+  } else {
1357 1308
     $report['skips']++;
1358 1309
   }
1359 1310
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +91 added lines, -91 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $available_languages = _locale_get_predefined_list();
45 45
         $transifex_languages = array();
46 46
         $disabled_languages = array();
47
-        $process_batches = FALSE;
47
+        $process_batches = false;
48 48
 
49 49
         // Set up Transifex languages in Drupal
50 50
         foreach ($response as $language) {
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
             if (isset($available_languages[$rfc_code])) {
57 57
               locale_add_language(
58 58
                 $rfc_code,
59
-                NULL,
60
-                NULL,
61
-                NULL,
62
-                NULL,
63
-                NULL,
64
-                FALSE
59
+                null,
60
+                null,
61
+                null,
62
+                null,
63
+                null,
64
+                false
65 65
               );
66 66
               drupal_set_message(
67 67
                 'Added predefined language: '.$available_languages[$rfc_code][0]
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
                     $response['name'],
91 91
                     $response['name'],
92 92
                     $response['rtl'],
93
-                    NULL,
94
-                    NULL,
95
-                    TRUE
93
+                    null,
94
+                    null,
95
+                    true
96 96
                   );
97 97
                   drupal_set_message(
98 98
                     'Added new language: '.$response['name']
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             // Import any language files for the newly added language
134 134
             if ($batch = locale_batch_by_language($rfc_code, '_locale_batch_language_finished')) {
135 135
               $operations = array_merge($operations, $batch['operations']);
136
-              $process_batches = TRUE;
136
+              $process_batches = true;
137 137
             }
138 138
           }
139 139
         }
@@ -206,15 +206,15 @@  discard block
 block discarded – undo
206 206
   $resource_names = boinctranslate_parse_resources($resource_config);
207 207
   $primary_resource = reset($resource_names);
208 208
 
209
-  if ($project_name AND $primary_resource) {
209
+  if ($project_name and $primary_resource) {
210 210
     // Create or update the translation source, if needed
211
-    $source_exists = FALSE;
211
+    $source_exists = false;
212 212
     $path = "project/{$project_name}/resources";
213 213
     $resources = boinctranslate_transifex_request($path);
214
-    if ($resources AND is_array($resources)) {
214
+    if ($resources and is_array($resources)) {
215 215
       foreach ($resources as $resource) {
216 216
         if ($resource['slug'] == $primary_resource) {
217
-          $source_exists = TRUE;
217
+          $source_exists = true;
218 218
           break;
219 219
         }
220 220
       }
@@ -236,11 +236,11 @@  discard block
 block discarded – undo
236 236
         $post = array(
237 237
           'content' => boinctranslate_get_po('en', 'project')
238 238
         );
239
-        $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
239
+        $result = boinctranslate_transifex_request($path, $post, true, true);
240 240
       }
241 241
     }
242 242
 
243
-    if (is_array($result) OR substr($result, 0, 6) != 'ERROR:') {
243
+    if (is_array($result) or substr($result, 0, 6) != 'ERROR:') {
244 244
       $enabled_languages = locale_language_list();
245 245
       if ($source_exists) {
246 246
         drupal_set_message('Updated source translation strings at Transifex');
@@ -259,16 +259,16 @@  discard block
 block discarded – undo
259 259
           $post = array(
260 260
             'content' => $po_file,
261 261
           );
262
-          $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
262
+          $result = boinctranslate_transifex_request($path, $post, true, true);
263 263
           if (!is_array($result)
264
-          AND substr($result, 0, 6) == 'ERROR:') {
264
+          and substr($result, 0, 6) == 'ERROR:') {
265 265
             drupal_set_message(
266 266
               "Unable to update {$language_name} translations: {$result}",
267 267
               'warning'
268 268
             );
269 269
           }
270 270
           else {
271
-            drupal_set_message("Updated {$language_name} translations");
271
+            drupal_set_message("updated {$language_name} translations");
272 272
             //drupal_set_message('DEBUG: <pre>'.print_r($result,1).'</pre>');
273 273
           }
274 274
         }
@@ -305,15 +305,15 @@  discard block
 block discarded – undo
305 305
     'boinc_translate_transifex_boinc_drupal_resource', ''
306 306
   );
307 307
 
308
-  if ($project_name AND $drupal_resource) {
308
+  if ($project_name and $drupal_resource) {
309 309
     // Create or update the translation source, if needed
310
-    $source_exists = FALSE;
310
+    $source_exists = false;
311 311
     $path = "project/{$project_name}/resources";
312 312
     $resources = boinctranslate_transifex_request($path);
313
-    if ($resources AND is_array($resources)) {
313
+    if ($resources and is_array($resources)) {
314 314
       foreach ($resources as $resource) {
315 315
         if ($resource['slug'] == $drupal_resource) {
316
-          $source_exists = TRUE;
316
+          $source_exists = true;
317 317
           break;
318 318
         }
319 319
       }
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
           $post = array(
333 333
             'content' => $po_file,
334 334
           );
335
-          $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
335
+          $result = boinctranslate_transifex_request($path, $post, true, true);
336 336
 
337 337
           if (!is_array($result)) {
338 338
             if (substr($result, 0, 6) == 'ERROR:') {
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
               break;
350 350
             }
351 351
             elseif ($result == 'success') {
352
-              drupal_set_message("Updated {$language_name} official BOINC translations");
352
+              drupal_set_message("updated {$language_name} official BOINC translations");
353 353
             }
354 354
             else {
355 355
               drupal_set_message(
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
             }
360 360
           }
361 361
           else {
362
-            drupal_set_message("Updated {$language_name} official BOINC translations");
362
+            drupal_set_message("updated {$language_name} official BOINC translations");
363 363
             //drupal_set_message('DEBUG: <pre>'.print_r($result,1).'</pre>');
364 364
           }
365 365
         }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     }
371 371
     else {
372 372
       drupal_set_message(
373
-        "The {$drupal_resource} resource does not exist in the {$project_name} project at Transifex",
373
+        "the {$drupal_resource} resource does not exist in the {$project_name} project at Transifex",
374 374
         'warning'
375 375
       );
376 376
     }
@@ -388,14 +388,14 @@  discard block
 block discarded – undo
388 388
  *
389 389
  */
390 390
 function boinctranslate_download_pot($type = 'boinc') {
391
-  $po = boinctranslate_get_po(NULL, $type);
392
-  _locale_export_po(NULL, $po);
391
+  $po = boinctranslate_get_po(null, $type);
392
+  _locale_export_po(null, $po);
393 393
 }
394 394
 
395 395
 /**
396 396
  *
397 397
  */
398
-function boinctranslate_transifex_request($path, $post = NULL, $json = TRUE, $use_put = FALSE, $username = '', $password = '') {
398
+function boinctranslate_transifex_request($path, $post = null, $json = true, $use_put = false, $username = '', $password = '') {
399 399
   $debug_mode = variable_get('boinc_debug_mode', 0);
400 400
 
401 401
   // Transifex details
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
   $headers = array(
408 408
     'Authorization' => 'Basic ' . base64_encode($username . ":" . $password),
409 409
   );
410
-  $data = NULL;
410
+  $data = null;
411 411
 
412 412
   if ($post) {
413 413
     if ($json) {
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
   case 304:
431 431
     if ($json) {
432 432
       // Process as JSON
433
-      return json_decode($response->data, TRUE);
433
+      return json_decode($response->data, true);
434 434
     }
435 435
     else {
436 436
       return (string) $response->data;
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
     return "ERROR: User not allowed to perform this action";
449 449
   }
450 450
 
451
-  return NULL;
451
+  return null;
452 452
 }
453 453
 
454 454
 /**
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
   require_once(getcwd() . '/includes/locale.inc');
460 460
 
461 461
   $all_languages = language_list();
462
-  $language = $langcode ? $all_languages[$langcode] : NULL;
462
+  $language = $langcode ? $all_languages[$langcode] : null;
463 463
   $textgroups = array();
464 464
   $strings = array();
465 465
 
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
     // Set the string context
496 496
     $strings[$id]['context'] = trim($string['comment']);
497 497
   }
498
-  if ($langcode AND $langcode != 'en') {
498
+  if ($langcode and $langcode != 'en') {
499 499
     // If not the source language, remove untranslated strings from the ouput
500 500
     foreach ($strings as $i => $string) {
501 501
       if (!$string['translation']) {
@@ -504,23 +504,23 @@  discard block
 block discarded – undo
504 504
     }
505 505
   }
506 506
   if ($strings) {
507
-    return boinctranslate_export_po_generate($language, $strings, NULL, $type);
507
+    return boinctranslate_export_po_generate($language, $strings, null, $type);
508 508
   }
509 509
 
510
-  return NULL;
510
+  return null;
511 511
 }
512 512
 
513 513
 /**
514 514
  *
515 515
  */
516
-function boinctranslate_export_po_generate($language = NULL, $strings = array(), $header = NULL, $type = NULL) {
516
+function boinctranslate_export_po_generate($language = null, $strings = array(), $header = null, $type = null) {
517 517
 
518 518
   require_once(getcwd() . '/includes/locale.inc');
519 519
   global $user;
520 520
 
521 521
   // unset $language to indicate template creation
522 522
   if (isset($language) && $language->language == "en") {
523
-    $language = NULL;
523
+    $language = null;
524 524
   }
525 525
 
526 526
   if (!isset($header)) {
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
     'boinc_translate_transifex_boinc_drupal_resource', ''
627 627
   );
628 628
   $boinc_resources[] = $drupal_resource;
629
-  if ($boinc_name AND $boinc_resources) {
629
+  if ($boinc_name and $boinc_resources) {
630 630
     $translation_resources[$boinc_name] = array(
631 631
       'resources' => $boinc_resources,
632 632
       'textgroups' => array(
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
   $project_resources = boinctranslate_parse_resources(
644 644
     variable_get('boinc_translate_transifex_project_resources', array())
645 645
   );
646
-  if ($project_name AND $project_resources) {
646
+  if ($project_name and $project_resources) {
647 647
     $translation_resources[$project_name] = array(
648 648
       'resources' => $project_resources,
649 649
       'textgroups' => array(
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
               $tl0 = trim($line[0]);
677 677
               $tl1 = trim($line[1]);
678 678
               if ($tl0 and $tl1) {
679
-                bts($tl0, array(), NULL, $tl1);
679
+                bts($tl0, array(), null, $tl1);
680 680
               }
681 681
             }
682 682
           }// if ($line)
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
         $operations[] = array(
716 716
           'boinctranslate_refresh_translations_op',
717 717
           array(
718
-            NULL, $op[1][0], $langcode, $language, array('default'), $debug_mode
718
+            null, $op[1][0], $langcode, $language, array('default'), $debug_mode
719 719
           ),
720 720
         );
721 721
       }
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
 
755 755
   if ($project) {
756 756
     // Import the configured resources
757
-    $success = FALSE;
757
+    $success = false;
758 758
     $message = '';
759 759
     $path = "project/{$project}/resource/{$resource}/translation/{$langcode}";
760 760
     $response = boinctranslate_transifex_request($path);
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
 
769 769
         // Write the translation file to a temporary location
770 770
         $file = new stdClass();
771
-        $file->filepath = file_save_data($po_text, NULL);
771
+        $file->filepath = file_save_data($po_text, null);
772 772
         $file->filename = basename($file->filepath);
773 773
         if (!$file->filepath) {
774 774
           $message = 'Unable to create temporary file in '
@@ -779,13 +779,13 @@  discard block
 block discarded – undo
779 779
         foreach ($textgroups as $textgroup) {
780 780
           // Import the translations from the file to each related textgroup
781 781
           if (!$results = _boinctranslate_locale_import_po($file, $langcode, LOCALE_IMPORT_OVERWRITE, $textgroup)) {
782
-            $message = "The {$language} translation import of"
782
+            $message = "the {$language} translation import of"
783 783
               . " {$project}:{$resource} failed.";
784
-            $success = FALSE;
784
+            $success = false;
785 785
             break;
786 786
           }
787 787
           else {
788
-            $success = TRUE;
788
+            $success = true;
789 789
           }
790 790
         }
791 791
       }
@@ -806,19 +806,19 @@  discard block
 block discarded – undo
806 806
     $file->filepath = $resource;
807 807
     $file->filename = basename($file->filepath);
808 808
     if (!$results = _boinctranslate_locale_import_po($file, $langcode, LOCALE_IMPORT_OVERWRITE, $textgroup)) {
809
-      $message = "The {$language} translation import of"
809
+      $message = "the {$language} translation import of"
810 810
         . " local file {$resource} failed.";
811
-      $success = FALSE;
811
+      $success = false;
812 812
     }
813 813
     else {
814
-      $success = TRUE;
814
+      $success = true;
815 815
     }
816 816
   }
817 817
 
818 818
   if ($success) {
819 819
     // Store some result for post-processing in the finished callback.
820 820
     $context['results']['success'][] = "{$langcode}:{$textgroup}";
821
-    $message = "Imported {$language} translations in {$project}:{$resource} ({$results['new']} added, {$results['updated']} refreshed, {$results['deleted']} removed)";
821
+    $message = "imported {$language} translations in {$project}:{$resource} ({$results['new']} added, {$results['updated']} refreshed, {$results['deleted']} removed)";
822 822
 
823 823
     if ($debug_mode) {
824 824
       watchdog(
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
     // An error occurred.
873 873
     // $operations contains the operations that remained unprocessed.
874 874
     $error_operation = reset($operations);
875
-    $message = 'An error occurred while processing ' . $error_operation[0] . ' with arguments :' . print_r($error_operation[0], TRUE);
875
+    $message = 'An error occurred while processing ' . $error_operation[0] . ' with arguments :' . print_r($error_operation[0], true);
876 876
     watchdog(
877 877
       'boinctranslate',
878 878
       $message,
@@ -887,7 +887,7 @@  discard block
 block discarded – undo
887 887
 /**
888 888
  *
889 889
  */
890
-function _boinctranslate_locale_import_po($file, $langcode, $mode, $group = NULL) {
890
+function _boinctranslate_locale_import_po($file, $langcode, $mode, $group = null) {
891 891
   // Try to allocate enough time to parse and import the data.
892 892
   if (function_exists('set_time_limit')) {
893 893
     @set_time_limit(240);
@@ -898,14 +898,14 @@  discard block
 block discarded – undo
898 898
   // Check if we have the language already in the database.
899 899
   if (!db_fetch_object(db_query("SELECT language FROM {languages} WHERE language = '%s'", $langcode))) {
900 900
     drupal_set_message(t('The language selected for import is not supported.'), 'error');
901
-    return FALSE;
901
+    return false;
902 902
   }
903 903
 
904 904
   // Get strings from file (returns on failure after a partial import, or on success)
905 905
   $status = _boinctranslate_locale_import_read_po('db-store', $file, $mode, $langcode, $group);
906
-  if ($status === FALSE) {
906
+  if ($status === false) {
907 907
     // Error messages are set in _locale_import_read_po().
908
-    return FALSE;
908
+    return false;
909 909
   }
910 910
 
911 911
   // Get status information on import process.
@@ -917,7 +917,7 @@  discard block
 block discarded – undo
917 917
 
918 918
   // Clear cache and force refresh of JavaScript translations.
919 919
   _locale_invalidate_js($langcode);
920
-  cache_clear_all('locale:', 'cache', TRUE);
920
+  cache_clear_all('locale:', 'cache', true);
921 921
 
922 922
   // Rebuild the menu, strings may have changed.
923 923
   menu_rebuild();
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
 /**
934 934
  *
935 935
  */
936
-function _boinctranslate_locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default') {
936
+function _boinctranslate_locale_import_read_po($op, $file, $mode = null, $lang = null, $group = 'default') {
937 937
 
938 938
   require_once(getcwd() . '/includes/locale.inc');
939 939
 
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
946 946
       WATCHDOG_WARNING
947 947
     );
948 948
     _locale_import_message('The translation import failed, because the file %filename could not be read.', $file);
949
-    return FALSE;
949
+    return false;
950 950
   }
951 951
 
952 952
   $context = "COMMENT"; // Parser context: COMMENT, MSGID, MSGID_PLURAL, MSGSTR and MSGSTR_ARR
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
           WATCHDOG_WARNING
982 982
         );
983 983
         _locale_import_message('The translation file %filename contains an error: "msgstr" was expected but not found on line %line.', $file, $lineno);
984
-        return FALSE;
984
+        return false;
985 985
       }
986 986
     }
987 987
     elseif (!strncmp("msgctxt", $line, 7)) {
@@ -997,11 +997,11 @@  discard block
 block discarded – undo
997 997
           WATCHDOG_WARNING
998 998
         );
999 999
         _locale_import_message('The translation file %filename contains an error: "msgid" is unexpected on line %line.', $file, $lineno);
1000
-        return FALSE;
1000
+        return false;
1001 1001
       }
1002 1002
       $line = trim(substr($line, 7));
1003 1003
       $quoted = _locale_import_parse_quoted($line);
1004
-      if ($quoted === FALSE) {
1004
+      if ($quoted === false) {
1005 1005
         watchdog(
1006 1006
           'boinctranslate',
1007 1007
           'The translation file %filename for language %lang contains a syntax error on line %line.',
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
           WATCHDOG_WARNING
1010 1010
         );
1011 1011
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1012
-        return FALSE;
1012
+        return false;
1013 1013
       }
1014 1014
       $current["msgctxt"] = $quoted;
1015 1015
       $context = "MSGCTXT";
@@ -1023,11 +1023,11 @@  discard block
 block discarded – undo
1023 1023
           WATCHDOG_WARNING
1024 1024
         );
1025 1025
         _locale_import_message('The translation file %filename contains an error: "msgid_plural" was expected but not found on line %line.', $file, $lineno);
1026
-        return FALSE;
1026
+        return false;
1027 1027
       }
1028 1028
       $line = trim(substr($line, 12));
1029 1029
       $quoted = _locale_import_parse_quoted($line);
1030
-      if ($quoted === FALSE) {
1030
+      if ($quoted === false) {
1031 1031
         watchdog(
1032 1032
           'boinctranslate',
1033 1033
           'The translation file %filename for language %lang contains a syntax error on line %line.',
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
           WATCHDOG_WARNING
1036 1036
         );
1037 1037
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1038
-        return FALSE;
1038
+        return false;
1039 1039
       }
1040 1040
       $current["msgid"] = $current["msgid"] . "\0" . $quoted;
1041 1041
       $context = "MSGID_PLURAL";
@@ -1053,11 +1053,11 @@  discard block
 block discarded – undo
1053 1053
           WATCHDOG_WARNING
1054 1054
         );
1055 1055
         _locale_import_message('The translation file %filename contains an error: "msgid" is unexpected on line %line.', $file, $lineno);
1056
-        return FALSE;
1056
+        return false;
1057 1057
       }
1058 1058
       $line = trim(substr($line, 5));
1059 1059
       $quoted = _locale_import_parse_quoted($line);
1060
-      if ($quoted === FALSE) {
1060
+      if ($quoted === false) {
1061 1061
         watchdog(
1062 1062
           'boinctranslate',
1063 1063
           'The translation file %filename for language %lang contains a syntax error on line %line.',
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
           WATCHDOG_WARNING
1066 1066
         );
1067 1067
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1068
-        return FALSE;
1068
+        return false;
1069 1069
       }
1070 1070
       $current["msgid"] = $quoted;
1071 1071
       $context = "MSGID";
@@ -1079,9 +1079,9 @@  discard block
 block discarded – undo
1079 1079
           WATCHDOG_WARNING
1080 1080
         );
1081 1081
         _locale_import_message('The translation file %filename contains an error: "msgstr[]" is unexpected on line %line.', $file, $lineno);
1082
-        return FALSE;
1082
+        return false;
1083 1083
       }
1084
-      if (strpos($line, "]") === FALSE) {
1084
+      if (strpos($line, "]") === false) {
1085 1085
         watchdog(
1086 1086
           'boinctranslate',
1087 1087
           'The translation file %filename for language %lang contains a syntax error on line %line.',
@@ -1089,13 +1089,13 @@  discard block
 block discarded – undo
1089 1089
           WATCHDOG_WARNING
1090 1090
         );
1091 1091
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1092
-        return FALSE;
1092
+        return false;
1093 1093
       }
1094 1094
       $frombracket = strstr($line, "[");
1095 1095
       $plural = substr($frombracket, 1, strpos($frombracket, "]") - 1);
1096 1096
       $line = trim(strstr($line, " "));
1097 1097
       $quoted = _locale_import_parse_quoted($line);
1098
-      if ($quoted === FALSE) {
1098
+      if ($quoted === false) {
1099 1099
         watchdog(
1100 1100
           'boinctranslate',
1101 1101
           'The translation file %filename for language %lang contains a syntax error on line %line.',
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
           WATCHDOG_WARNING
1104 1104
         );
1105 1105
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1106
-        return FALSE;
1106
+        return false;
1107 1107
       }
1108 1108
       $current["msgstr"][$plural] = $quoted;
1109 1109
       $context = "MSGSTR_ARR";
@@ -1117,11 +1117,11 @@  discard block
 block discarded – undo
1117 1117
           WATCHDOG_WARNING
1118 1118
         );
1119 1119
         _locale_import_message('The translation file %filename contains an error: "msgstr" is unexpected on line %line.', $file, $lineno);
1120
-        return FALSE;
1120
+        return false;
1121 1121
       }
1122 1122
       $line = trim(substr($line, 6));
1123 1123
       $quoted = _locale_import_parse_quoted($line);
1124
-      if ($quoted === FALSE) {
1124
+      if ($quoted === false) {
1125 1125
         watchdog(
1126 1126
           'boinctranslate',
1127 1127
           'The translation file %filename for language %lang contains a syntax error on line %line.',
@@ -1129,14 +1129,14 @@  discard block
 block discarded – undo
1129 1129
           WATCHDOG_WARNING
1130 1130
         );
1131 1131
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1132
-        return FALSE;
1132
+        return false;
1133 1133
       }
1134 1134
       $current["msgstr"] = $quoted;
1135 1135
       $context = "MSGSTR";
1136 1136
     }
1137 1137
     elseif ($line != "") {
1138 1138
       $quoted = _locale_import_parse_quoted($line);
1139
-      if ($quoted === FALSE) {
1139
+      if ($quoted === false) {
1140 1140
         watchdog(
1141 1141
           'boinctranslate',
1142 1142
           'The translation file %filename for language %lang contains a syntax error on line %line.',
@@ -1144,7 +1144,7 @@  discard block
 block discarded – undo
1144 1144
           WATCHDOG_WARNING
1145 1145
         );
1146 1146
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1147
-        return FALSE;
1147
+        return false;
1148 1148
       }
1149 1149
       if (($context == "MSGID") || ($context == "MSGID_PLURAL")) {
1150 1150
         $current["msgid"] .= $quoted;
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
           WATCHDOG_WARNING
1164 1164
         );
1165 1165
         _locale_import_message('The translation file %filename contains an error: there is an unexpected string on line %line.', $file, $lineno);
1166
-        return FALSE;
1166
+        return false;
1167 1167
       }
1168 1168
     }
1169 1169
   }
@@ -1180,7 +1180,7 @@  discard block
 block discarded – undo
1180 1180
       WATCHDOG_WARNING
1181 1181
     );
1182 1182
     _locale_import_message('The translation file %filename ended unexpectedly at line %line.', $file, $lineno);
1183
-    return FALSE;
1183
+    return false;
1184 1184
   }
1185 1185
 
1186 1186
 }
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
 /**
1189 1189
  *
1190 1190
  */
1191
-function _boinctranslate_locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NULL, $file = NULL, $group = 'default') {
1191
+function _boinctranslate_locale_import_one_string($op, $value = null, $mode = null, $lang = null, $file = null, $group = 'default') {
1192 1192
 
1193 1193
   require_once(getcwd() . '/includes/locale.inc');
1194 1194
 
@@ -1198,7 +1198,7 @@  discard block
 block discarded – undo
1198 1198
     'deletes' => 0,
1199 1199
     'skips' => 0,
1200 1200
   );
1201
-  static $headerdone = FALSE;
1201
+  static $headerdone = false;
1202 1202
   static $strings = array();
1203 1203
 
1204 1204
   switch ($op) {
@@ -1238,7 +1238,7 @@  discard block
 block discarded – undo
1238 1238
             db_query("UPDATE {languages} SET plurals = %d, formula = '%s' WHERE language = '%s'", $nplurals, $plural, $lang);
1239 1239
           }
1240 1240
         }
1241
-        $headerdone = TRUE;
1241
+        $headerdone = true;
1242 1242
       }
1243 1243
 
1244 1244
       else {
@@ -1284,9 +1284,9 @@  discard block
 block discarded – undo
1284 1284
  * Textgroups 'boinc' and 'project' use the location string to
1285 1285
  * uniquely identify rows in the locales_source database.
1286 1286
  */
1287
-function _boinctranslate_locale_import_one_string_db(&$report, $langcode, $source, $translation, $textgroup, $location, $mode, $plid = NULL, $plural = NULL) {
1287
+function _boinctranslate_locale_import_one_string_db(&$report, $langcode, $source, $translation, $textgroup, $location, $mode, $plid = null, $plural = null) {
1288 1288
 
1289
-  $ignoreoverwrite = FALSE;
1289
+  $ignoreoverwrite = false;
1290 1290
   $lid = 0;
1291 1291
 
1292 1292
   // Use different DB query depending on the textgroup.
@@ -1304,7 +1304,7 @@  discard block
 block discarded – undo
1304 1304
     $parts = explode(':', $location);
1305 1305
     if (!empty($parts[2])) {
1306 1306
       if (preg_match('/(ignoreoverwrite)/', $parts[2])) {
1307
-        $ignoreoverwrite = TRUE;
1307
+        $ignoreoverwrite = true;
1308 1308
       }
1309 1309
     }
1310 1310
   }// if (in_array($textgroup, $uselocation))
@@ -1341,7 +1341,7 @@  discard block
 block discarded – undo
1341 1341
       }// while
1342 1342
     }
1343 1343
   }
1344
-  elseif ($mode == LOCALE_IMPORT_OVERWRITE AND $resource) {
1344
+  elseif ($mode == LOCALE_IMPORT_OVERWRITE and $resource) {
1345 1345
     // Loop over db results from locales_source table.
1346 1346
     while ($row = db_fetch_array($resource)) {
1347 1347
       $lid = $row['lid'];
@@ -1372,7 +1372,7 @@  discard block
 block discarded – undo
1372 1372
   );
1373 1373
   foreach ($resource_array as $resource) {
1374 1374
     $resource = trim($resource);
1375
-    if ($resource AND $resource[0] != '#') {
1375
+    if ($resource and $resource[0] != '#') {
1376 1376
       $resources[] = $resource;
1377 1377
     }
1378 1378
   }
Please login to merge, or discard this patch.
Indentation   +642 added lines, -642 removed lines patch added patch discarded remove patch
@@ -15,30 +15,30 @@  discard block
 block discarded – undo
15 15
  */
16 16
 function boinctranslate_initialize_languages() {
17 17
 
18
-  require_once(getcwd() . '/includes/locale.inc');
18
+    require_once(getcwd() . '/includes/locale.inc');
19 19
 
20
-  $api_base_url = 'https://www.transifex.com/api/2';
21
-  $project_name = variable_get(
20
+    $api_base_url = 'https://www.transifex.com/api/2';
21
+    $project_name = variable_get(
22 22
     'boinc_translate_transifex_project_name', ''
23
-  );
24
-  $operations = array();
23
+    );
24
+    $operations = array();
25 25
 
26
-  if ($project_name) {
26
+    if ($project_name) {
27 27
     // Get all languages configured for this project at Transifex
28 28
     $path = "project/{$project_name}/languages";
29 29
     $response = boinctranslate_transifex_request($path);
30 30
 
31 31
     if ($response == '404 NOT FOUND') {
32
-      drupal_set_message(
32
+        drupal_set_message(
33 33
         t('Unable to get languages for %project.',
34
-          array(
34
+            array(
35 35
             '%project' => $project_name,
36
-          )
36
+            )
37 37
         ), 'warning'
38
-      );
38
+        );
39 39
     }
40 40
     elseif ($response) {
41
-      if (is_array($response)) {
41
+        if (is_array($response)) {
42 42
 
43 43
         $installed_languages = language_list();
44 44
         $available_languages = _locale_get_predefined_list();
@@ -48,13 +48,13 @@  discard block
 block discarded – undo
48 48
 
49 49
         // Set up Transifex languages in Drupal
50 50
         foreach ($response as $language) {
51
-          $posix_code = $language['language_code'];
52
-          $rfc_code = strtolower(str_replace('_', '-', $posix_code));
53
-          $transifex_languages[$rfc_code] = $language;
54
-          if (!isset($installed_languages[$rfc_code])) {
51
+            $posix_code = $language['language_code'];
52
+            $rfc_code = strtolower(str_replace('_', '-', $posix_code));
53
+            $transifex_languages[$rfc_code] = $language;
54
+            if (!isset($installed_languages[$rfc_code])) {
55 55
             // See if this language can be installed from a predefined list
56 56
             if (isset($available_languages[$rfc_code])) {
57
-              locale_add_language(
57
+                locale_add_language(
58 58
                 $rfc_code,
59 59
                 NULL,
60 60
                 NULL,
@@ -62,30 +62,30 @@  discard block
 block discarded – undo
62 62
                 NULL,
63 63
                 NULL,
64 64
                 FALSE
65
-              );
66
-              drupal_set_message(
65
+                );
66
+                drupal_set_message(
67 67
                 'Added predefined language: '.$available_languages[$rfc_code][0]
68
-              );
69
-              db_query("UPDATE {languages} SET enabled = 1 WHERE language = '%s'", $rfc_code);
68
+                );
69
+                db_query("UPDATE {languages} SET enabled = 1 WHERE language = '%s'", $rfc_code);
70 70
             }
71 71
             else {
72
-              // Retrieve language details from Transifex
73
-              $path = "language/{$posix_code}";
74
-              $response = boinctranslate_transifex_request($path);
72
+                // Retrieve language details from Transifex
73
+                $path = "language/{$posix_code}";
74
+                $response = boinctranslate_transifex_request($path);
75 75
 
76
-              if ($response == '404 NOT FOUND') {
76
+                if ($response == '404 NOT FOUND') {
77 77
                 drupal_set_message(
78
-                  t('Unable to get details for language %code.',
78
+                    t('Unable to get details for language %code.',
79 79
                     array(
80
-                      '%code' => $posix_code,
80
+                        '%code' => $posix_code,
81 81
                     )
82
-                  ), 'warning'
82
+                    ), 'warning'
83 83
                 );
84
-              }
85
-              elseif ($response) {
84
+                }
85
+                elseif ($response) {
86 86
                 if (!empty($response['name'])) {
87
-                  // Add a custom language to Drupal and enable
88
-                  locale_add_language(
87
+                    // Add a custom language to Drupal and enable
88
+                    locale_add_language(
89 89
                     $rfc_code,
90 90
                     $response['name'],
91 91
                     $response['name'],
@@ -93,362 +93,362 @@  discard block
 block discarded – undo
93 93
                     NULL,
94 94
                     NULL,
95 95
                     TRUE
96
-                  );
97
-                  drupal_set_message(
96
+                    );
97
+                    drupal_set_message(
98 98
                     'Added new language: '.$response['name']
99
-                  );
99
+                    );
100 100
                 }
101 101
                 else {
102
-                  $variables = array(
102
+                    $variables = array(
103 103
                     '%code' => $posix_code,
104
-                  );
105
-                  drupal_set_message(
104
+                    );
105
+                    drupal_set_message(
106 106
                     t('Unable to get details for language %code.', $variables),
107 107
                     'error'
108
-                  );
109
-                  watchdog(
108
+                    );
109
+                    watchdog(
110 110
                     'boinctranslate',
111 111
                     'Unable to get details for language %code.',
112 112
                     $variables,
113 113
                     WATCHDOG_ERROR
114
-                  );
114
+                    );
115
+                }
115 116
                 }
116
-              }
117
-              else {
118
-               $variables = array(
119
-                  '%code' => $posix_code,
117
+                else {
118
+                $variables = array(
119
+                    '%code' => $posix_code,
120 120
                 );
121 121
                 drupal_set_message(
122
-                  t('Invalid response while getting details for language %code.', $variables),
123
-                  'error'
122
+                    t('Invalid response while getting details for language %code.', $variables),
123
+                    'error'
124 124
                 );
125 125
                 watchdog(
126
-                  'boinctranslate',
127
-                  'Invalid response while getting details for language %code.',
128
-                  $variables,
129
-                  WATCHDOG_ERROR
126
+                    'boinctranslate',
127
+                    'Invalid response while getting details for language %code.',
128
+                    $variables,
129
+                    WATCHDOG_ERROR
130 130
                 );
131
-              }
131
+                }
132 132
             }
133 133
             // Import any language files for the newly added language
134 134
             if ($batch = locale_batch_by_language($rfc_code, '_locale_batch_language_finished')) {
135
-              $operations = array_merge($operations, $batch['operations']);
136
-              $process_batches = TRUE;
135
+                $operations = array_merge($operations, $batch['operations']);
136
+                $process_batches = TRUE;
137
+            }
137 138
             }
138
-          }
139 139
         }
140 140
         drupal_set_message('Finished installing official BOINC languages.');
141 141
         // Disable languages that are not in Transifex
142 142
         foreach ($installed_languages as $langcode => $language) {
143
-          if (!isset($transifex_languages[$langcode])) {
143
+            if (!isset($transifex_languages[$langcode])) {
144 144
             $disabled_languages[$langcode] = $langcode;
145 145
             db_query("UPDATE {languages} SET enabled = 0 WHERE language = '%s'", $langcode);
146
-          }
146
+            }
147 147
         }
148 148
         if ($disabled_languages) {
149
-          drupal_set_message('The following languages were not found in Transifex and were disabled: ' . implode(' ', $disabled_languages));
149
+            drupal_set_message('The following languages were not found in Transifex and were disabled: ' . implode(' ', $disabled_languages));
150 150
         }
151 151
         if ($process_batches) {
152
-          $batch = array(
152
+            $batch = array(
153 153
             'operations' => $operations,
154
-          );
155
-          batch_set($batch);
156
-          batch_process('admin/boinc/translation');
154
+            );
155
+            batch_set($batch);
156
+            batch_process('admin/boinc/translation');
157
+        }
157 158
         }
158
-      }
159
-      else {
159
+        else {
160 160
         $variables = array(
161
-          '%project' => $project_name,
161
+            '%project' => $project_name,
162 162
         );
163 163
         drupal_set_message(
164
-          t('No languages found for %project. (Does the configured account have sufficient privileges at Transifex?)', $variables),
165
-          'error'
164
+            t('No languages found for %project. (Does the configured account have sufficient privileges at Transifex?)', $variables),
165
+            'error'
166 166
         );
167 167
         watchdog(
168
-          'boinctranslate',
169
-          'No languages found for %project. (Does the configured account have sufficient privileges at Transifex?)',
170
-          $variables,
171
-          WATCHDOG_ERROR
168
+            'boinctranslate',
169
+            'No languages found for %project. (Does the configured account have sufficient privileges at Transifex?)',
170
+            $variables,
171
+            WATCHDOG_ERROR
172 172
         );
173
-      }
173
+        }
174 174
     }
175 175
     else {
176
-     $variables = array(
176
+        $variables = array(
177 177
         '%project' => $project_name,
178
-      );
179
-      drupal_set_message(
178
+        );
179
+        drupal_set_message(
180 180
         t('Invalid response while getting languages for %project.', $variables),
181 181
         'error'
182
-      );
183
-      watchdog(
182
+        );
183
+        watchdog(
184 184
         'boinctranslate',
185 185
         'Invalid response while getting languages for %project.',
186 186
         $variables,
187 187
         WATCHDOG_ERROR
188
-      );
188
+        );
189 189
     }
190
-  }
191
-  drupal_goto('admin/boinc/translation');
190
+    }
191
+    drupal_goto('admin/boinc/translation');
192 192
 }
193 193
 
194 194
 /**
195 195
  *
196 196
  */
197 197
 function boinctranslate_export_translations() {
198
-  require_once(getcwd() . '/includes/locale.inc');
199
-  $project_name = variable_get(
198
+    require_once(getcwd() . '/includes/locale.inc');
199
+    $project_name = variable_get(
200 200
     'boinc_translate_transifex_project_name', ''
201
-  );
202
-  // Get resource names from local config
203
-  $resource_config = (variable_get(
201
+    );
202
+    // Get resource names from local config
203
+    $resource_config = (variable_get(
204 204
     'boinc_translate_transifex_project_resources', ''
205
-  ));
206
-  $resource_names = boinctranslate_parse_resources($resource_config);
207
-  $primary_resource = reset($resource_names);
205
+    ));
206
+    $resource_names = boinctranslate_parse_resources($resource_config);
207
+    $primary_resource = reset($resource_names);
208 208
 
209
-  if ($project_name AND $primary_resource) {
209
+    if ($project_name AND $primary_resource) {
210 210
     // Create or update the translation source, if needed
211 211
     $source_exists = FALSE;
212 212
     $path = "project/{$project_name}/resources";
213 213
     $resources = boinctranslate_transifex_request($path);
214 214
     if ($resources AND is_array($resources)) {
215
-      foreach ($resources as $resource) {
215
+        foreach ($resources as $resource) {
216 216
         if ($resource['slug'] == $primary_resource) {
217
-          $source_exists = TRUE;
218
-          break;
217
+            $source_exists = TRUE;
218
+            break;
219 219
         }
220
-      }
221
-      if (!$source_exists) {
220
+        }
221
+        if (!$source_exists) {
222 222
         // Create the source
223 223
         $path = "project/{$project_name}/resources";
224 224
         $post = array(
225
-          'slug' => $primary_resource,
226
-          'name' => 'Drupal-Project',
227
-          'i18n_type' => 'PO',
228
-          'category' => 'Drupal',
229
-          'content' => boinctranslate_get_po('en', 'project'),
225
+            'slug' => $primary_resource,
226
+            'name' => 'Drupal-Project',
227
+            'i18n_type' => 'PO',
228
+            'category' => 'Drupal',
229
+            'content' => boinctranslate_get_po('en', 'project'),
230 230
         );
231 231
         $result = boinctranslate_transifex_request($path, $post);
232
-      }
233
-      else {
232
+        }
233
+        else {
234 234
         // Update the source
235 235
         $path = "project/{$project_name}/resource/{$primary_resource}/content";
236 236
         $post = array(
237
-          'content' => boinctranslate_get_po('en', 'project')
237
+            'content' => boinctranslate_get_po('en', 'project')
238 238
         );
239 239
         $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
240
-      }
240
+        }
241 241
     }
242 242
 
243 243
     if (is_array($result) OR substr($result, 0, 6) != 'ERROR:') {
244
-      $enabled_languages = locale_language_list();
245
-      if ($source_exists) {
244
+        $enabled_languages = locale_language_list();
245
+        if ($source_exists) {
246 246
         drupal_set_message('Updated source translation strings at Transifex');
247
-      }
248
-      else {
247
+        }
248
+        else {
249 249
         drupal_set_message('Established new translation resource at Transifex');
250
-      }
251
-      // Try to export translations for all enabled languages
252
-      foreach ($enabled_languages as $langcode => $language_name) {
250
+        }
251
+        // Try to export translations for all enabled languages
252
+        foreach ($enabled_languages as $langcode => $language_name) {
253 253
         if ($langcode == 'en') {
254
-          continue;
254
+            continue;
255 255
         }
256 256
         $po_file = boinctranslate_get_po($langcode, 'project');
257 257
         if ($po_file) {
258
-          $path = "project/{$project_name}/resource/{$primary_resource}/translation/{$langcode}";
259
-          $post = array(
258
+            $path = "project/{$project_name}/resource/{$primary_resource}/translation/{$langcode}";
259
+            $post = array(
260 260
             'content' => $po_file,
261
-          );
262
-          $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
263
-          if (!is_array($result)
261
+            );
262
+            $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
263
+            if (!is_array($result)
264 264
           AND substr($result, 0, 6) == 'ERROR:') {
265 265
             drupal_set_message(
266
-              "Unable to update {$language_name} translations: {$result}",
267
-              'warning'
266
+                "Unable to update {$language_name} translations: {$result}",
267
+                'warning'
268 268
             );
269
-          }
270
-          else {
269
+            }
270
+            else {
271 271
             drupal_set_message("Updated {$language_name} translations");
272 272
             //drupal_set_message('DEBUG: <pre>'.print_r($result,1).'</pre>');
273
-          }
273
+            }
274 274
         }
275 275
         else {
276
-          drupal_set_message("No translations to export for {$language_name}");
276
+            drupal_set_message("No translations to export for {$language_name}");
277
+        }
277 278
         }
278
-      }
279 279
     }
280 280
     else {
281
-      drupal_set_message(
281
+        drupal_set_message(
282 282
         "Unable to update the translation source: {$result}",
283 283
         'warning'
284
-      );
284
+        );
285 285
     }
286
-  }
287
-  else {
286
+    }
287
+    else {
288 288
     drupal_set_message(
289
-      'Failed to export translations: Transifex settings are not intiailized.',
290
-      'error'
289
+        'Failed to export translations: Transifex settings are not intiailized.',
290
+        'error'
291 291
     );
292
-  }
293
-  drupal_goto('admin/boinc/translation');
292
+    }
293
+    drupal_goto('admin/boinc/translation');
294 294
 }
295 295
 
296 296
 /**
297 297
  *
298 298
  */
299 299
 function boinctranslate_update_official_boinc_translations() {
300
-  require_once(getcwd() . '/includes/locale.inc');
301
-  $project_name = variable_get(
300
+    require_once(getcwd() . '/includes/locale.inc');
301
+    $project_name = variable_get(
302 302
     'boinc_translate_transifex_standard_name', ''
303
-  );
304
-  $drupal_resource = variable_get(
303
+    );
304
+    $drupal_resource = variable_get(
305 305
     'boinc_translate_transifex_boinc_drupal_resource', ''
306
-  );
306
+    );
307 307
 
308
-  if ($project_name AND $drupal_resource) {
308
+    if ($project_name AND $drupal_resource) {
309 309
     // Create or update the translation source, if needed
310 310
     $source_exists = FALSE;
311 311
     $path = "project/{$project_name}/resources";
312 312
     $resources = boinctranslate_transifex_request($path);
313 313
     if ($resources AND is_array($resources)) {
314
-      foreach ($resources as $resource) {
314
+        foreach ($resources as $resource) {
315 315
         if ($resource['slug'] == $drupal_resource) {
316
-          $source_exists = TRUE;
317
-          break;
316
+            $source_exists = TRUE;
317
+            break;
318
+        }
318 319
         }
319
-      }
320 320
     }
321 321
 
322 322
     if ($source_exists) {
323
-      $enabled_languages = locale_language_list();
324
-      // Try to export translations for all enabled languages
325
-      foreach ($enabled_languages as $langcode => $language_name) {
323
+        $enabled_languages = locale_language_list();
324
+        // Try to export translations for all enabled languages
325
+        foreach ($enabled_languages as $langcode => $language_name) {
326 326
         if ($langcode == 'en') {
327
-          continue;
327
+            continue;
328 328
         }
329 329
         $po_file = boinctranslate_get_po($langcode, 'boinc');
330 330
         if ($po_file) {
331
-          $path = "project/{$project_name}/resource/{$drupal_resource}/translation/{$langcode}";
332
-          $post = array(
331
+            $path = "project/{$project_name}/resource/{$drupal_resource}/translation/{$langcode}";
332
+            $post = array(
333 333
             'content' => $po_file,
334
-          );
335
-          $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
334
+            );
335
+            $result = boinctranslate_transifex_request($path, $post, TRUE, TRUE);
336 336
 
337
-          if (!is_array($result)) {
337
+            if (!is_array($result)) {
338 338
             if (substr($result, 0, 6) == 'ERROR:') {
339
-              drupal_set_message(
339
+                drupal_set_message(
340 340
                 "Unable to update {$language_name} official BOINC translations: {$result}",
341 341
                 'warning'
342
-              );
342
+                );
343 343
             }
344 344
             elseif ($result == '401 UNAUTHORIZED') {
345
-              drupal_set_message(
345
+                drupal_set_message(
346 346
                 'Not authorized to update official BOINC translations',
347 347
                 'warning'
348
-              );
349
-              break;
348
+                );
349
+                break;
350 350
             }
351 351
             elseif ($result == 'success') {
352
-              drupal_set_message("Updated {$language_name} official BOINC translations");
352
+                drupal_set_message("Updated {$language_name} official BOINC translations");
353 353
             }
354 354
             else {
355
-              drupal_set_message(
355
+                drupal_set_message(
356 356
                 "Unexpected response for {$language_name}: {$result}",
357 357
                 'warning'
358
-              );
358
+                );
359 359
             }
360
-          }
361
-          else {
360
+            }
361
+            else {
362 362
             drupal_set_message("Updated {$language_name} official BOINC translations");
363 363
             //drupal_set_message('DEBUG: <pre>'.print_r($result,1).'</pre>');
364
-          }
364
+            }
365 365
         }
366 366
         else {
367
-          drupal_set_message("No official BOINC translations to export for {$language_name}");
367
+            drupal_set_message("No official BOINC translations to export for {$language_name}");
368
+        }
368 369
         }
369
-      }
370 370
     }
371 371
     else {
372
-      drupal_set_message(
372
+        drupal_set_message(
373 373
         "The {$drupal_resource} resource does not exist in the {$project_name} project at Transifex",
374 374
         'warning'
375
-      );
375
+        );
376 376
     }
377
-  }
378
-  else {
377
+    }
378
+    else {
379 379
     drupal_set_message(
380
-      'Failed to export official BOINC translations: Transifex settings are not intiailized.',
381
-      'error'
380
+        'Failed to export official BOINC translations: Transifex settings are not intiailized.',
381
+        'error'
382 382
     );
383
-  }
384
-  drupal_goto('admin/boinc/translation');
383
+    }
384
+    drupal_goto('admin/boinc/translation');
385 385
 }
386 386
 
387 387
 /**
388 388
  *
389 389
  */
390 390
 function boinctranslate_download_pot($type = 'boinc') {
391
-  $po = boinctranslate_get_po(NULL, $type);
392
-  _locale_export_po(NULL, $po);
391
+    $po = boinctranslate_get_po(NULL, $type);
392
+    _locale_export_po(NULL, $po);
393 393
 }
394 394
 
395 395
 /**
396 396
  *
397 397
  */
398 398
 function boinctranslate_transifex_request($path, $post = NULL, $json = TRUE, $use_put = FALSE, $username = '', $password = '') {
399
-  $debug_mode = variable_get('boinc_debug_mode', 0);
399
+    $debug_mode = variable_get('boinc_debug_mode', 0);
400 400
 
401
-  // Transifex details
402
-  $api_base_url = 'https://www.transifex.com/api/2';
403
-  if (!$username) $username = variable_get('boinc_translate_transifex_user', '');
404
-  if (!$password) $password = variable_get('boinc_translate_transifex_pass', '');
401
+    // Transifex details
402
+    $api_base_url = 'https://www.transifex.com/api/2';
403
+    if (!$username) $username = variable_get('boinc_translate_transifex_user', '');
404
+    if (!$password) $password = variable_get('boinc_translate_transifex_pass', '');
405 405
 
406
-  $url = "{$api_base_url}/{$path}";
407
-  $headers = array(
406
+    $url = "{$api_base_url}/{$path}";
407
+    $headers = array(
408 408
     'Authorization' => 'Basic ' . base64_encode($username . ":" . $password),
409
-  );
410
-  $data = NULL;
409
+    );
410
+    $data = NULL;
411 411
 
412
-  if ($post) {
412
+    if ($post) {
413 413
     if ($json) {
414
-      $headers['Content-Type'] = 'application/json';
415
-      $data = json_encode($post);
414
+        $headers['Content-Type'] = 'application/json';
415
+        $data = json_encode($post);
416 416
     }
417 417
     else {
418
-      $data = drupal_query_string_encode($post);
418
+        $data = drupal_query_string_encode($post);
419 419
     }
420 420
     $method = ($use_put) ? 'PUT' : 'POST';
421
-  }
422
-  else {
421
+    }
422
+    else {
423 423
     $method = 'GET';
424
-  }
424
+    }
425 425
 
426
-  $response = drupal_http_request($url, $headers, $method, $data, 1, 10);
426
+    $response = drupal_http_request($url, $headers, $method, $data, 1, 10);
427 427
 
428
-  switch ($response->code) {
429
-  case 200:
428
+    switch ($response->code) {
429
+    case 200:
430 430
   case 304:
431 431
     if ($json) {
432
-      // Process as JSON
433
-      return json_decode($response->data, TRUE);
432
+        // Process as JSON
433
+        return json_decode($response->data, TRUE);
434 434
     }
435 435
     else {
436
-      return (string) $response->data;
436
+        return (string) $response->data;
437 437
     }
438 438
     break;
439
-  case 404:
439
+    case 404:
440 440
     return '404 NOT FOUND';
441
-  case 401:
441
+    case 401:
442 442
     return '401 UNAUTHORIZED';
443
-  case 400:
443
+    case 400:
444 444
     if ($debug_mode) watchdog('boinctranslate', "The following response was received when trying to communicate with the Transifex system: \n{$response}", array(), WATCHDOG_WARNING);
445 445
     return "ERROR: {$response->data}";
446
-  case 405:
446
+    case 405:
447 447
     if ($debug_mode) watchdog('boinctranslate', "The following response was received when trying to communicate with the Transifex system: \n{$response}", array(), WATCHDOG_WARNING);
448 448
     return "ERROR: User not allowed to perform this action";
449
-  }
449
+    }
450 450
 
451
-  return NULL;
451
+    return NULL;
452 452
 }
453 453
 
454 454
 /**
@@ -456,58 +456,58 @@  discard block
 block discarded – undo
456 456
  */
457 457
 function boinctranslate_get_po($langcode, $type = 'standard') {
458 458
 
459
-  require_once(getcwd() . '/includes/locale.inc');
459
+    require_once(getcwd() . '/includes/locale.inc');
460 460
 
461
-  $all_languages = language_list();
462
-  $language = $langcode ? $all_languages[$langcode] : NULL;
463
-  $textgroups = array();
464
-  $strings = array();
461
+    $all_languages = language_list();
462
+    $language = $langcode ? $all_languages[$langcode] : NULL;
463
+    $textgroups = array();
464
+    $strings = array();
465 465
 
466
-  switch ($type) {
467
-  case 'standard':
466
+    switch ($type) {
467
+    case 'standard':
468 468
     $textgroups = array(
469
-      'default',
470
-      'taxonomy',
471
-      'views',
469
+        'default',
470
+        'taxonomy',
471
+        'views',
472 472
     );
473 473
     break;
474
-  case 'boinc':
474
+    case 'boinc':
475 475
     $textgroups = array(
476
-      'boinc',
476
+        'boinc',
477 477
     );
478 478
     break;
479
-  case 'project':
479
+    case 'project':
480 480
     $textgroups = array(
481
-      'blocks',
482
-      'menu',
483
-      'project',
481
+        'blocks',
482
+        'menu',
483
+        'project',
484 484
     );
485 485
     break;
486
-  default:
486
+    default:
487 487
   }
488 488
 
489
-  // Merge textgroup strings together for export as one file
490
-  foreach ($textgroups as $textgroup) {
489
+    // Merge textgroup strings together for export as one file
490
+    foreach ($textgroups as $textgroup) {
491 491
     $strings += _locale_export_get_strings($language, $textgroup);
492
-  }
493
-  ksort($strings);
494
-  foreach ($strings as $id => $string) {
492
+    }
493
+    ksort($strings);
494
+    foreach ($strings as $id => $string) {
495 495
     // Set the string context
496 496
     $strings[$id]['context'] = trim($string['comment']);
497
-  }
498
-  if ($langcode AND $langcode != 'en') {
497
+    }
498
+    if ($langcode AND $langcode != 'en') {
499 499
     // If not the source language, remove untranslated strings from the ouput
500 500
     foreach ($strings as $i => $string) {
501
-      if (!$string['translation']) {
501
+        if (!$string['translation']) {
502 502
         unset($strings[$i]);
503
-      }
503
+        }
504 504
     }
505
-  }
506
-  if ($strings) {
505
+    }
506
+    if ($strings) {
507 507
     return boinctranslate_export_po_generate($language, $strings, NULL, $type);
508
-  }
508
+    }
509 509
 
510
-  return NULL;
510
+    return NULL;
511 511
 }
512 512
 
513 513
 /**
@@ -515,21 +515,21 @@  discard block
 block discarded – undo
515 515
  */
516 516
 function boinctranslate_export_po_generate($language = NULL, $strings = array(), $header = NULL, $type = NULL) {
517 517
 
518
-  require_once(getcwd() . '/includes/locale.inc');
519
-  global $user;
518
+    require_once(getcwd() . '/includes/locale.inc');
519
+    global $user;
520 520
 
521
-  // unset $language to indicate template creation
522
-  if (isset($language) && $language->language == "en") {
521
+    // unset $language to indicate template creation
522
+    if (isset($language) && $language->language == "en") {
523 523
     $language = NULL;
524
-  }
524
+    }
525 525
 
526
-  if (!isset($header)) {
526
+    if (!isset($header)) {
527 527
     if (isset($type) && $type == "project") {
528
-      $header = "# ".variable_get('site_name', 'Drupal-BOINC')." drupal localization template\n";
529
-      $header .= "# Copyright (C) ".date("Y")." ".variable_get('site_name', 'Drupal-BOINC')."\n";
528
+        $header = "# ".variable_get('site_name', 'Drupal-BOINC')." drupal localization template\n";
529
+        $header .= "# Copyright (C) ".date("Y")." ".variable_get('site_name', 'Drupal-BOINC')."\n";
530 530
     } else {
531
-      $header = "# BOINC drupal localization template\n";
532
-      $header .= "# Copyright (C) ".date("Y")." University of California\n";
531
+        $header = "# BOINC drupal localization template\n";
532
+        $header .= "# Copyright (C) ".date("Y")." University of California\n";
533 533
     }
534 534
     $header .= '# Generated by ' . $user->name . ' <' . $user->mail . ">\n";
535 535
     $header .= "#\n";
@@ -538,201 +538,201 @@  discard block
 block discarded – undo
538 538
     $header .= "msgid \"\"\n";
539 539
     $header .= "msgstr \"\"\n";
540 540
     if (isset($type) && $type == "project") {
541
-      $header .= "\"Project-Id-Version: ".variable_get('site_name', 'Drupal-BOINC')." ".date("Y-m-d-H:iO")."\\n\"\n";
541
+        $header .= "\"Project-Id-Version: ".variable_get('site_name', 'Drupal-BOINC')." ".date("Y-m-d-H:iO")."\\n\"\n";
542 542
     } else {
543
-      $header .= "\"Project-Id-Version: BOINC unknown\\n\"\n"; // TODO: add SHA1 of source checkout here
543
+        $header .= "\"Project-Id-Version: BOINC unknown\\n\"\n"; // TODO: add SHA1 of source checkout here
544 544
     }
545 545
     $header .= "\"Report-Msgid-Bugs-To: BOINC translation team <[email protected]>\\n\"\n";
546 546
     $header .= "\"POT-Creation-Date: " . date("Y-m-d H:iO") . "\\n\"\n";
547 547
     if (isset($language)) {
548
-      $header .= "\"PO-Revision-Date: " . date("Y-m-d H:iO") . "\\n\"\n";
548
+        $header .= "\"PO-Revision-Date: " . date("Y-m-d H:iO") . "\\n\"\n";
549 549
     }
550 550
     $header .= "\"Last-Translator: Generated automatically from Drupal translate interface\\n\"\n";
551 551
     $header .= "\"MIME-Version: 1.0\\n\"\n";
552 552
     $header .= "\"Content-Type: text/plain; charset=utf-8\\n\"\n";
553 553
     $header .= "\"Content-Transfer-Encoding: 8bit\\n\"\n";
554 554
     if (isset($language)) {
555
-      $header .= "\"Language: ".$language->language."\\n\"";
556
-      if ($language->formula && $language->plurals) {
555
+        $header .= "\"Language: ".$language->language."\\n\"";
556
+        if ($language->formula && $language->plurals) {
557 557
         $header .= "\"Plural-Forms: nplurals=" . $language->plurals . "; plural=" . strtr($language->formula, array('$' => '')) . ";\\n\"\n";
558
-      }
558
+        }
559 559
     }
560 560
     $header .= "\"X-Poedit-SourceCharset: utf-8\\n\"\n";
561
-  }
561
+    }
562 562
 
563
-  $output = $header . "\n";
563
+    $output = $header . "\n";
564 564
 
565
-  foreach ($strings as $lid => $string) {
565
+    foreach ($strings as $lid => $string) {
566 566
     // Only process non-children, children are output below their parent.
567 567
     if (!isset($string['child'])) {
568
-      if ($string['comment']) {
568
+        if ($string['comment']) {
569 569
         $output .= '#: ' . $string['comment'] . "\n";
570
-      }
571
-      if ($string['context']) {
570
+        }
571
+        if ($string['context']) {
572 572
         $output .= 'msgctxt "' . $string['context'] . "\"\n";
573
-      }
574
-      $output .= 'msgid ' . _locale_export_string($string['source']);
575
-      if (!empty($string['plural'])) {
573
+        }
574
+        $output .= 'msgid ' . _locale_export_string($string['source']);
575
+        if (!empty($string['plural'])) {
576 576
         $plural = $string['plural'];
577 577
         $output .= 'msgid_plural ' . _locale_export_string($strings[$plural]['source']);
578 578
         if (isset($language)) {
579
-          $translation = $string['translation'];
580
-          for ($i = 0; $i < $language->plurals; $i++) {
579
+            $translation = $string['translation'];
580
+            for ($i = 0; $i < $language->plurals; $i++) {
581 581
             $output .= 'msgstr[' . $i . '] ' . _locale_export_string($translation);
582 582
             if ($plural) {
583
-              $translation = _locale_export_remove_plural($strings[$plural]['translation']);
584
-              $plural = isset($strings[$plural]['plural']) ? $strings[$plural]['plural'] : 0;
583
+                $translation = _locale_export_remove_plural($strings[$plural]['translation']);
584
+                $plural = isset($strings[$plural]['plural']) ? $strings[$plural]['plural'] : 0;
585 585
             }
586 586
             else {
587
-              $translation = '';
587
+                $translation = '';
588
+            }
588 589
             }
589
-          }
590 590
         }
591 591
         else {
592
-          $output .= 'msgstr[0] ""' . "\n";
593
-          $output .= 'msgstr[1] ""' . "\n";
592
+            $output .= 'msgstr[0] ""' . "\n";
593
+            $output .= 'msgstr[1] ""' . "\n";
594
+        }
594 595
         }
595
-      }
596
-      else {
596
+        else {
597 597
         $output .= 'msgstr ' . _locale_export_string($string['translation']);
598
-      }
599
-      $output .= "\n";
598
+        }
599
+        $output .= "\n";
600 600
     }
601
-  }
602
-  return $output;
601
+    }
602
+    return $output;
603 603
 }
604 604
 
605 605
 /**
606 606
  *
607 607
  */
608 608
 function boinctranslate_refresh_translations() {
609
-  require_once(getcwd() . '/includes/locale.inc');
610
-  $errors = array();
611
-  $languages = locale_language_list();
612
-  $translation_resources = array();
613
-  $operations = array();
614
-  $debug_mode = variable_get('boinc_debug_mode', 0);
615
-
616
-  $boinc_name = variable_get(
609
+    require_once(getcwd() . '/includes/locale.inc');
610
+    $errors = array();
611
+    $languages = locale_language_list();
612
+    $translation_resources = array();
613
+    $operations = array();
614
+    $debug_mode = variable_get('boinc_debug_mode', 0);
615
+
616
+    $boinc_name = variable_get(
617 617
     'boinc_translate_transifex_standard_name', ''
618
-  );
619
-  $boinc_resources = boinctranslate_parse_resources(
618
+    );
619
+    $boinc_resources = boinctranslate_parse_resources(
620 620
     variable_get('boinc_translate_transifex_standard_resources', array())
621
-  );
622
-  // Add the Official BOINC resource to the list of BOINC resources;
623
-  // The official resource overrides any additional resources provided, so it
624
-  // should be added to the end so as to be processed last
625
-  $drupal_resource = variable_get(
621
+    );
622
+    // Add the Official BOINC resource to the list of BOINC resources;
623
+    // The official resource overrides any additional resources provided, so it
624
+    // should be added to the end so as to be processed last
625
+    $drupal_resource = variable_get(
626 626
     'boinc_translate_transifex_boinc_drupal_resource', ''
627
-  );
628
-  $boinc_resources[] = $drupal_resource;
629
-  if ($boinc_name AND $boinc_resources) {
627
+    );
628
+    $boinc_resources[] = $drupal_resource;
629
+    if ($boinc_name AND $boinc_resources) {
630 630
     $translation_resources[$boinc_name] = array(
631
-      'resources' => $boinc_resources,
632
-      'textgroups' => array(
631
+        'resources' => $boinc_resources,
632
+        'textgroups' => array(
633 633
         'boinc',
634 634
         'default',
635 635
         'taxonomy',
636 636
         'views',
637
-      ),
637
+        ),
638 638
     );
639
-  }
640
-  $project_name = variable_get(
639
+    }
640
+    $project_name = variable_get(
641 641
     'boinc_translate_transifex_project_name', ''
642
-  );
643
-  $project_resources = boinctranslate_parse_resources(
642
+    );
643
+    $project_resources = boinctranslate_parse_resources(
644 644
     variable_get('boinc_translate_transifex_project_resources', array())
645
-  );
646
-  if ($project_name AND $project_resources) {
645
+    );
646
+    if ($project_name AND $project_resources) {
647 647
     $translation_resources[$project_name] = array(
648
-      'resources' => $project_resources,
649
-      'textgroups' => array(
648
+        'resources' => $project_resources,
649
+        'textgroups' => array(
650 650
         'blocks',
651 651
         'menu',
652 652
         'project',
653
-      ),
653
+        ),
654 654
     );
655 655
     // Be sure any strings from the override file are added to the boinc group
656 656
     $override_file = './' . drupal_get_path('module', 'boinctranslate') . '/includes/other-boinc-translation-strings.txt';
657 657
     $other_strings = file($override_file);
658 658
     if ($other_strings) {
659
-      foreach ($other_strings as $string) {
659
+        foreach ($other_strings as $string) {
660 660
         $string = trim($string);
661 661
         if ($string) {
662
-          // Ignore lines starting with '#' i.e., comments.
663
-          if ($string[0] === "#")
662
+            // Ignore lines starting with '#' i.e., comments.
663
+            if ($string[0] === "#")
664 664
             continue;
665 665
 
666
-          // Use '|' as delimiter to split string and context info.
667
-          $line = explode("|", $string);
668
-          if ($line) {
666
+            // Use '|' as delimiter to split string and context info.
667
+            $line = explode("|", $string);
668
+            if ($line) {
669 669
             if (count($line)==1) {
670
-              $tl0 = trim($line[0]);
671
-              if ($tl0) {
670
+                $tl0 = trim($line[0]);
671
+                if ($tl0) {
672 672
                 bts($tl0);
673
-              }
673
+                }
674 674
             }
675 675
             elseif (count($line)>1) {
676
-              $tl0 = trim($line[0]);
677
-              $tl1 = trim($line[1]);
678
-              if ($tl0 and $tl1) {
676
+                $tl0 = trim($line[0]);
677
+                $tl1 = trim($line[1]);
678
+                if ($tl0 and $tl1) {
679 679
                 bts($tl0, array(), NULL, $tl1);
680
-              }
680
+                }
681 681
             }
682
-          }// if ($line)
682
+            }// if ($line)
683 683
 
684 684
         }// if ($string)
685
-      }// foreach
685
+        }// foreach
686 686
     }// if ($other_strings)
687
-  }
687
+    }
688 688
 
689
-  foreach ($languages as $langcode => $language) {
689
+    foreach ($languages as $langcode => $language) {
690 690
     if ($langcode == 'en') {
691
-      continue;
691
+        continue;
692 692
     }
693 693
 
694 694
     $import_stats = array(
695
-      'new' => 0,
696
-      'updated' => 0,
697
-      'deleted' => 0,
698
-      'skipped' => 0,
695
+        'new' => 0,
696
+        'updated' => 0,
697
+        'deleted' => 0,
698
+        'skipped' => 0,
699 699
     );
700 700
 
701 701
     foreach ($translation_resources as $project => $translation) {
702
-      foreach ($translation['resources'] as $resource) {
702
+        foreach ($translation['resources'] as $resource) {
703 703
 
704 704
         // Add this language to the batch operations
705 705
         $operations[] = array(
706
-          'boinctranslate_refresh_translations_op',
707
-          array(
706
+            'boinctranslate_refresh_translations_op',
707
+            array(
708 708
             $project, $resource, $langcode, $language, $translation['textgroups'], $debug_mode
709
-          ),
709
+            ),
710 710
         );
711
-      }
711
+        }
712 712
     }
713 713
     if ($batch = locale_batch_by_language($langcode)) {
714
-      foreach ($batch['operations'] as $op) {
714
+        foreach ($batch['operations'] as $op) {
715 715
         $operations[] = array(
716
-          'boinctranslate_refresh_translations_op',
717
-          array(
716
+            'boinctranslate_refresh_translations_op',
717
+            array(
718 718
             NULL, $op[1][0], $langcode, $language, array('default'), $debug_mode
719
-          ),
719
+            ),
720 720
         );
721
-      }
721
+        }
722
+    }
722 723
     }
723
-  }
724 724
 
725
-  $batch = array(
725
+    $batch = array(
726 726
     'operations' => $operations,
727 727
     'finished' => 'boinctranslate_refresh_translations_finished',
728 728
     'title' => t('Importing translations'),
729 729
     'init_message' => t('Beginning translation import...'),
730 730
     'progress_message' => t('Applied @current out of @total translation updates.'),
731 731
     'error_message' => t('Translation import has encountered an error.'),
732
-  );
732
+    );
733 733
 
734
-  batch_set($batch);
735
-  batch_process();
734
+    batch_set($batch);
735
+    batch_process();
736 736
 }
737 737
 
738 738
 
@@ -741,18 +741,18 @@  discard block
 block discarded – undo
741 741
  */
742 742
 function boinctranslate_refresh_translations_op($project, $resource, $langcode, $language, $textgroups, $debug_mode, &$context) {
743 743
 
744
-  require_once(getcwd() . '/includes/locale.inc');
744
+    require_once(getcwd() . '/includes/locale.inc');
745 745
 
746
-  if ($debug_mode) {
746
+    if ($debug_mode) {
747 747
     watchdog(
748
-      'boinctranslate',
749
-      'Checking for @language updates in @project:@resource',
750
-      array('@language' => $language, '@project' => $project, '@resource' => $resource),
751
-      WATCHDOG_INFO
748
+        'boinctranslate',
749
+        'Checking for @language updates in @project:@resource',
750
+        array('@language' => $language, '@project' => $project, '@resource' => $resource),
751
+        WATCHDOG_INFO
752 752
     );
753
-  }
753
+    }
754 754
 
755
-  if ($project) {
755
+    if ($project) {
756 756
     // Import the configured resources
757 757
     $success = FALSE;
758 758
     $message = '';
@@ -760,10 +760,10 @@  discard block
 block discarded – undo
760 760
     $response = boinctranslate_transifex_request($path);
761 761
 
762 762
     if ($response == '404 NOT FOUND') {
763
-      $message = "Project resource {$project}:{$resource} not found in {$language}.";
763
+        $message = "Project resource {$project}:{$resource} not found in {$language}.";
764 764
     }
765 765
     elseif ($response) {
766
-      if (!empty($response['content'])) {
766
+        if (!empty($response['content'])) {
767 767
         $po_text = $response['content'];
768 768
 
769 769
         // Write the translation file to a temporary location
@@ -771,163 +771,163 @@  discard block
 block discarded – undo
771 771
         $file->filepath = file_save_data($po_text, NULL);
772 772
         $file->filename = basename($file->filepath);
773 773
         if (!$file->filepath) {
774
-          $message = 'Unable to create temporary file in '
774
+            $message = 'Unable to create temporary file in '
775 775
             . file_directory_temp() . " for {$language} translation "
776 776
             . "resource {$project}:{$resource}";
777 777
         }
778 778
 
779 779
         foreach ($textgroups as $textgroup) {
780
-          // Import the translations from the file to each related textgroup
781
-          if (!$results = _boinctranslate_locale_import_po($file, $langcode, LOCALE_IMPORT_OVERWRITE, $textgroup)) {
780
+            // Import the translations from the file to each related textgroup
781
+            if (!$results = _boinctranslate_locale_import_po($file, $langcode, LOCALE_IMPORT_OVERWRITE, $textgroup)) {
782 782
             $message = "The {$language} translation import of"
783
-              . " {$project}:{$resource} failed.";
783
+                . " {$project}:{$resource} failed.";
784 784
             $success = FALSE;
785 785
             break;
786
-          }
787
-          else {
786
+            }
787
+            else {
788 788
             $success = TRUE;
789
-          }
789
+            }
790
+        }
790 791
         }
791
-      }
792
-      else {
792
+        else {
793 793
         $message = "Unable to read response for {$language} translation import"
794
-          . " of {$project}:{$resource}.";
795
-      }
794
+            . " of {$project}:{$resource}.";
795
+        }
796 796
     }
797 797
     else {
798
-      $message = "Translation data not found in response for {$language}"
798
+        $message = "Translation data not found in response for {$language}"
799 799
         . " translation import of {$project}:{$resource}.";
800 800
     }
801
-  }
802
-  else {
801
+    }
802
+    else {
803 803
     // If project isn't specified, import as a local Drupal resource
804 804
     $project = 'drupal.local';
805 805
     $file = new stdClass();
806 806
     $file->filepath = $resource;
807 807
     $file->filename = basename($file->filepath);
808 808
     if (!$results = _boinctranslate_locale_import_po($file, $langcode, LOCALE_IMPORT_OVERWRITE, $textgroup)) {
809
-      $message = "The {$language} translation import of"
809
+        $message = "The {$language} translation import of"
810 810
         . " local file {$resource} failed.";
811
-      $success = FALSE;
811
+        $success = FALSE;
812 812
     }
813 813
     else {
814
-      $success = TRUE;
814
+        $success = TRUE;
815
+    }
815 816
     }
816
-  }
817 817
 
818
-  if ($success) {
818
+    if ($success) {
819 819
     // Store some result for post-processing in the finished callback.
820 820
     $context['results']['success'][] = "{$langcode}:{$textgroup}";
821 821
     $message = "Imported {$language} translations in {$project}:{$resource} ({$results['new']} added, {$results['updated']} refreshed, {$results['deleted']} removed)";
822 822
 
823 823
     if ($debug_mode) {
824
-      watchdog(
824
+        watchdog(
825 825
         'boinctranslate',
826 826
         $message,
827 827
         array(),
828 828
         WATCHDOG_INFO
829
-      );
829
+        );
830 830
     }
831
-  }
832
-  else {
831
+    }
832
+    else {
833 833
     $context['results']['failure'][] = "{$langcode}:{$textgroup}";
834 834
     watchdog(
835
-      'boinctranslate',
836
-      $message,
837
-      array(),
838
-      WATCHDOG_WARNING
835
+        'boinctranslate',
836
+        $message,
837
+        array(),
838
+        WATCHDOG_WARNING
839 839
     );
840
-  }
840
+    }
841 841
 
842
-  // Update our progress information.
843
-  $context['sandbox']['progress']++;
844
-  $context['sandbox']['language'] = $langcode;
845
-  $context['message'] = $message;
842
+    // Update our progress information.
843
+    $context['sandbox']['progress']++;
844
+    $context['sandbox']['language'] = $langcode;
845
+    $context['message'] = $message;
846 846
 
847
-  // Update the progress for the batch engine
848
-  if ($context['sandbox']['progress'] >= $context['sandbox']['max']) {
847
+    // Update the progress for the batch engine
848
+    if ($context['sandbox']['progress'] >= $context['sandbox']['max']) {
849 849
     $context['finished'] = 1;
850
-  }
851
-  else {
850
+    }
851
+    else {
852 852
     $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
853
-  }
853
+    }
854 854
 }
855 855
 
856 856
 /**
857 857
  * Batch 'finished' callback
858 858
  */
859 859
 function boinctranslate_refresh_translations_finished($success, $results, $operations) {
860
-  if ($success) {
860
+    if ($success) {
861 861
     // Let's count our successes
862 862
     $count = count($results['success']);
863 863
     $message = "Successfully completed {$count} import operations";
864 864
     watchdog(
865
-      'boinctranslate',
866
-      'Successfully completed @count import operations.',
867
-      array('@count' => $count),
868
-      WATCHDOG_INFO
865
+        'boinctranslate',
866
+        'Successfully completed @count import operations.',
867
+        array('@count' => $count),
868
+        WATCHDOG_INFO
869 869
     ); 
870
-  }
871
-  else {
870
+    }
871
+    else {
872 872
     // An error occurred.
873 873
     // $operations contains the operations that remained unprocessed.
874 874
     $error_operation = reset($operations);
875 875
     $message = 'An error occurred while processing ' . $error_operation[0] . ' with arguments :' . print_r($error_operation[0], TRUE);
876 876
     watchdog(
877
-      'boinctranslate',
878
-      $message,
879
-      array(),
880
-      WATCHDOG_WARNING
877
+        'boinctranslate',
878
+        $message,
879
+        array(),
880
+        WATCHDOG_WARNING
881 881
     );
882
-  }
883
-  drupal_set_message($message);
884
-  drupal_goto('admin/boinc/translation');
882
+    }
883
+    drupal_set_message($message);
884
+    drupal_goto('admin/boinc/translation');
885 885
 }
886 886
 
887 887
 /**
888 888
  *
889 889
  */
890 890
 function _boinctranslate_locale_import_po($file, $langcode, $mode, $group = NULL) {
891
-  // Try to allocate enough time to parse and import the data.
892
-  if (function_exists('set_time_limit')) {
891
+    // Try to allocate enough time to parse and import the data.
892
+    if (function_exists('set_time_limit')) {
893 893
     @set_time_limit(240);
894
-  }
894
+    }
895 895
 
896
-  require_once(getcwd() . '/includes/locale.inc');
896
+    require_once(getcwd() . '/includes/locale.inc');
897 897
 
898
-  // Check if we have the language already in the database.
899
-  if (!db_fetch_object(db_query("SELECT language FROM {languages} WHERE language = '%s'", $langcode))) {
898
+    // Check if we have the language already in the database.
899
+    if (!db_fetch_object(db_query("SELECT language FROM {languages} WHERE language = '%s'", $langcode))) {
900 900
     drupal_set_message(t('The language selected for import is not supported.'), 'error');
901 901
     return FALSE;
902
-  }
902
+    }
903 903
 
904
-  // Get strings from file (returns on failure after a partial import, or on success)
905
-  $status = _boinctranslate_locale_import_read_po('db-store', $file, $mode, $langcode, $group);
906
-  if ($status === FALSE) {
904
+    // Get strings from file (returns on failure after a partial import, or on success)
905
+    $status = _boinctranslate_locale_import_read_po('db-store', $file, $mode, $langcode, $group);
906
+    if ($status === FALSE) {
907 907
     // Error messages are set in _locale_import_read_po().
908 908
     return FALSE;
909
-  }
909
+    }
910 910
 
911
-  // Get status information on import process.
912
-  list($headerdone, $additions, $updates, $deletes, $skips) = _boinctranslate_locale_import_one_string('db-report');
911
+    // Get status information on import process.
912
+    list($headerdone, $additions, $updates, $deletes, $skips) = _boinctranslate_locale_import_one_string('db-report');
913 913
 
914
-  if (!$headerdone) {
914
+    if (!$headerdone) {
915 915
     drupal_set_message(t('The translation file %filename appears to have a missing or malformed header.', array('%filename' => $file->filename)), 'error');
916
-  }
916
+    }
917 917
 
918
-  // Clear cache and force refresh of JavaScript translations.
919
-  _locale_invalidate_js($langcode);
920
-  cache_clear_all('locale:', 'cache', TRUE);
918
+    // Clear cache and force refresh of JavaScript translations.
919
+    _locale_invalidate_js($langcode);
920
+    cache_clear_all('locale:', 'cache', TRUE);
921 921
 
922
-  // Rebuild the menu, strings may have changed.
923
-  menu_rebuild();
922
+    // Rebuild the menu, strings may have changed.
923
+    menu_rebuild();
924 924
 
925
-  return array(
925
+    return array(
926 926
     'new' => $additions,
927 927
     'updated' => $updates,
928 928
     'deleted' => $deletes,
929 929
     'skipped' => $skips,
930
-  );
930
+    );
931 931
 }
932 932
 
933 933
 /**
@@ -935,253 +935,253 @@  discard block
 block discarded – undo
935 935
  */
936 936
 function _boinctranslate_locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default') {
937 937
 
938
-  require_once(getcwd() . '/includes/locale.inc');
938
+    require_once(getcwd() . '/includes/locale.inc');
939 939
 
940
-  $fd = fopen($file->filepath, "rb"); // File will get closed by PHP on return
941
-  if (!$fd) {
940
+    $fd = fopen($file->filepath, "rb"); // File will get closed by PHP on return
941
+    if (!$fd) {
942 942
     watchdog(
943
-      'boinctranslate',
944
-      'The translation import for %lang failed, because %filename could not be read.',
945
-      array('%lang' => $lang, '%filename' => $file->filename),
946
-      WATCHDOG_WARNING
943
+        'boinctranslate',
944
+        'The translation import for %lang failed, because %filename could not be read.',
945
+        array('%lang' => $lang, '%filename' => $file->filename),
946
+        WATCHDOG_WARNING
947 947
     );
948 948
     _locale_import_message('The translation import failed, because the file %filename could not be read.', $file);
949 949
     return FALSE;
950
-  }
950
+    }
951 951
 
952
-  $context = "COMMENT"; // Parser context: COMMENT, MSGID, MSGID_PLURAL, MSGSTR and MSGSTR_ARR
953
-  $current = array(); // Current entry being read
954
-  $plural = 0; // Current plural form
955
-  $lineno = 0; // Current line
952
+    $context = "COMMENT"; // Parser context: COMMENT, MSGID, MSGID_PLURAL, MSGSTR and MSGSTR_ARR
953
+    $current = array(); // Current entry being read
954
+    $plural = 0; // Current plural form
955
+    $lineno = 0; // Current line
956 956
 
957
-  while (!feof($fd)) {
957
+    while (!feof($fd)) {
958 958
     $line = fgets($fd, 10 * 1024); // A line should not be this long
959 959
     if ($lineno == 0) {
960
-      // The first line might come with a UTF-8 BOM, which should be removed.
961
-      $line = str_replace("\xEF\xBB\xBF", '', $line);
960
+        // The first line might come with a UTF-8 BOM, which should be removed.
961
+        $line = str_replace("\xEF\xBB\xBF", '', $line);
962 962
     }
963 963
     $lineno++;
964 964
     $line = trim(strtr($line, array("\\\n" => "")));
965 965
 
966 966
     if (!strncmp("#", $line, 1)) { // A comment
967
-      if ($context == "COMMENT") { // Already in comment context: add
967
+        if ($context == "COMMENT") { // Already in comment context: add
968 968
         $current["#"][] = substr($line, 1);
969
-      }
970
-      elseif (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
969
+        }
970
+        elseif (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
971 971
         _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
972 972
         $current = array();
973 973
         $current["#"][] = substr($line, 1);
974 974
         $context = "COMMENT";
975
-      }
976
-      else { // Parse error
975
+        }
976
+        else { // Parse error
977 977
         watchdog(
978
-          'boinctranslate',
979
-          'The translation file %filename for %lang contains an error: "msgstr" was expected but not found on line %line.',
980
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
981
-          WATCHDOG_WARNING
978
+            'boinctranslate',
979
+            'The translation file %filename for %lang contains an error: "msgstr" was expected but not found on line %line.',
980
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
981
+            WATCHDOG_WARNING
982 982
         );
983 983
         _locale_import_message('The translation file %filename contains an error: "msgstr" was expected but not found on line %line.', $file, $lineno);
984 984
         return FALSE;
985
-      }
985
+        }
986 986
     }
987 987
     elseif (!strncmp("msgctxt", $line, 7)) {
988
-      if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
988
+        if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
989 989
         _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
990 990
         $current = array();
991
-      }
992
-      elseif (($context == "MSGID") || ($context == "MSGCTXT")) { // Already in this context? Parse error
991
+        }
992
+        elseif (($context == "MSGID") || ($context == "MSGCTXT")) { // Already in this context? Parse error
993 993
         watchdog(
994
-          'boinctranslate',
995
-          'The translation file %filename for %lang contains an error: "msgctxt" is unexpected on line %line.',
996
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
997
-          WATCHDOG_WARNING
994
+            'boinctranslate',
995
+            'The translation file %filename for %lang contains an error: "msgctxt" is unexpected on line %line.',
996
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
997
+            WATCHDOG_WARNING
998 998
         );
999 999
         _locale_import_message('The translation file %filename contains an error: "msgid" is unexpected on line %line.', $file, $lineno);
1000 1000
         return FALSE;
1001
-      }
1002
-      $line = trim(substr($line, 7));
1003
-      $quoted = _locale_import_parse_quoted($line);
1004
-      if ($quoted === FALSE) {
1001
+        }
1002
+        $line = trim(substr($line, 7));
1003
+        $quoted = _locale_import_parse_quoted($line);
1004
+        if ($quoted === FALSE) {
1005 1005
         watchdog(
1006
-          'boinctranslate',
1007
-          'The translation file %filename for language %lang contains a syntax error on line %line.',
1008
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1009
-          WATCHDOG_WARNING
1006
+            'boinctranslate',
1007
+            'The translation file %filename for language %lang contains a syntax error on line %line.',
1008
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1009
+            WATCHDOG_WARNING
1010 1010
         );
1011 1011
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1012 1012
         return FALSE;
1013
-      }
1014
-      $current["msgctxt"] = $quoted;
1015
-      $context = "MSGCTXT";
1013
+        }
1014
+        $current["msgctxt"] = $quoted;
1015
+        $context = "MSGCTXT";
1016 1016
     }
1017 1017
     elseif (!strncmp("msgid_plural", $line, 12)) {
1018
-      if ($context != "MSGID") { // Must be plural form for current entry
1018
+        if ($context != "MSGID") { // Must be plural form for current entry
1019 1019
         watchdog(
1020
-          'boinctranslate',
1021
-          'The translation file %filename for %lang contains an error: "msgid_plural" was expected but not found on line %line.',
1022
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1023
-          WATCHDOG_WARNING
1020
+            'boinctranslate',
1021
+            'The translation file %filename for %lang contains an error: "msgid_plural" was expected but not found on line %line.',
1022
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1023
+            WATCHDOG_WARNING
1024 1024
         );
1025 1025
         _locale_import_message('The translation file %filename contains an error: "msgid_plural" was expected but not found on line %line.', $file, $lineno);
1026 1026
         return FALSE;
1027
-      }
1028
-      $line = trim(substr($line, 12));
1029
-      $quoted = _locale_import_parse_quoted($line);
1030
-      if ($quoted === FALSE) {
1027
+        }
1028
+        $line = trim(substr($line, 12));
1029
+        $quoted = _locale_import_parse_quoted($line);
1030
+        if ($quoted === FALSE) {
1031 1031
         watchdog(
1032
-          'boinctranslate',
1033
-          'The translation file %filename for language %lang contains a syntax error on line %line.',
1034
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1035
-          WATCHDOG_WARNING
1032
+            'boinctranslate',
1033
+            'The translation file %filename for language %lang contains a syntax error on line %line.',
1034
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1035
+            WATCHDOG_WARNING
1036 1036
         );
1037 1037
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1038 1038
         return FALSE;
1039
-      }
1040
-      $current["msgid"] = $current["msgid"] . "\0" . $quoted;
1041
-      $context = "MSGID_PLURAL";
1039
+        }
1040
+        $current["msgid"] = $current["msgid"] . "\0" . $quoted;
1041
+        $context = "MSGID_PLURAL";
1042 1042
     }
1043 1043
     elseif (!strncmp("msgid", $line, 5)) {
1044
-      if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
1044
+        if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) { // End current entry, start a new one
1045 1045
         _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
1046 1046
         $current = array();
1047
-      }
1048
-      elseif ($context == "MSGID") { // Already in this context? Parse error
1047
+        }
1048
+        elseif ($context == "MSGID") { // Already in this context? Parse error
1049 1049
         watchdog(
1050
-          'boinctranslate',
1051
-          'The translation file %filename for %lang contains an error: "msgid" is unexpected on line %line.',
1052
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1053
-          WATCHDOG_WARNING
1050
+            'boinctranslate',
1051
+            'The translation file %filename for %lang contains an error: "msgid" is unexpected on line %line.',
1052
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1053
+            WATCHDOG_WARNING
1054 1054
         );
1055 1055
         _locale_import_message('The translation file %filename contains an error: "msgid" is unexpected on line %line.', $file, $lineno);
1056 1056
         return FALSE;
1057
-      }
1058
-      $line = trim(substr($line, 5));
1059
-      $quoted = _locale_import_parse_quoted($line);
1060
-      if ($quoted === FALSE) {
1057
+        }
1058
+        $line = trim(substr($line, 5));
1059
+        $quoted = _locale_import_parse_quoted($line);
1060
+        if ($quoted === FALSE) {
1061 1061
         watchdog(
1062
-          'boinctranslate',
1063
-          'The translation file %filename for language %lang contains a syntax error on line %line.',
1064
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1065
-          WATCHDOG_WARNING
1062
+            'boinctranslate',
1063
+            'The translation file %filename for language %lang contains a syntax error on line %line.',
1064
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1065
+            WATCHDOG_WARNING
1066 1066
         );
1067 1067
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1068 1068
         return FALSE;
1069
-      }
1070
-      $current["msgid"] = $quoted;
1071
-      $context = "MSGID";
1069
+        }
1070
+        $current["msgid"] = $quoted;
1071
+        $context = "MSGID";
1072 1072
     }
1073 1073
     elseif (!strncmp("msgstr[", $line, 7)) {
1074
-      if (($context != "MSGID") && ($context != "MSGID_PLURAL") && ($context != "MSGSTR_ARR")) { // Must come after msgid, msgid_plural, or msgstr[]
1074
+        if (($context != "MSGID") && ($context != "MSGID_PLURAL") && ($context != "MSGSTR_ARR")) { // Must come after msgid, msgid_plural, or msgstr[]
1075 1075
         watchdog(
1076
-          'boinctranslate',
1077
-          'The translation file %filename for %lang contains an error: "msgstr[]" is unexpected on line %line.',
1078
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1079
-          WATCHDOG_WARNING
1076
+            'boinctranslate',
1077
+            'The translation file %filename for %lang contains an error: "msgstr[]" is unexpected on line %line.',
1078
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1079
+            WATCHDOG_WARNING
1080 1080
         );
1081 1081
         _locale_import_message('The translation file %filename contains an error: "msgstr[]" is unexpected on line %line.', $file, $lineno);
1082 1082
         return FALSE;
1083
-      }
1084
-      if (strpos($line, "]") === FALSE) {
1083
+        }
1084
+        if (strpos($line, "]") === FALSE) {
1085 1085
         watchdog(
1086
-          'boinctranslate',
1087
-          'The translation file %filename for language %lang contains a syntax error on line %line.',
1088
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1089
-          WATCHDOG_WARNING
1086
+            'boinctranslate',
1087
+            'The translation file %filename for language %lang contains a syntax error on line %line.',
1088
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1089
+            WATCHDOG_WARNING
1090 1090
         );
1091 1091
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1092 1092
         return FALSE;
1093
-      }
1094
-      $frombracket = strstr($line, "[");
1095
-      $plural = substr($frombracket, 1, strpos($frombracket, "]") - 1);
1096
-      $line = trim(strstr($line, " "));
1097
-      $quoted = _locale_import_parse_quoted($line);
1098
-      if ($quoted === FALSE) {
1093
+        }
1094
+        $frombracket = strstr($line, "[");
1095
+        $plural = substr($frombracket, 1, strpos($frombracket, "]") - 1);
1096
+        $line = trim(strstr($line, " "));
1097
+        $quoted = _locale_import_parse_quoted($line);
1098
+        if ($quoted === FALSE) {
1099 1099
         watchdog(
1100
-          'boinctranslate',
1101
-          'The translation file %filename for language %lang contains a syntax error on line %line.',
1102
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1103
-          WATCHDOG_WARNING
1100
+            'boinctranslate',
1101
+            'The translation file %filename for language %lang contains a syntax error on line %line.',
1102
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1103
+            WATCHDOG_WARNING
1104 1104
         );
1105 1105
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1106 1106
         return FALSE;
1107
-      }
1108
-      $current["msgstr"][$plural] = $quoted;
1109
-      $context = "MSGSTR_ARR";
1107
+        }
1108
+        $current["msgstr"][$plural] = $quoted;
1109
+        $context = "MSGSTR_ARR";
1110 1110
     }
1111 1111
     elseif (!strncmp("msgstr", $line, 6)) {
1112
-      if ($context != "MSGID") { // Should come just after a msgid block
1112
+        if ($context != "MSGID") { // Should come just after a msgid block
1113 1113
         watchdog(
1114
-          'boinctranslate',
1115
-          'The translation file %filename for %lang contains an error: "msgstr" is unexpected on line %line.',
1116
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1117
-          WATCHDOG_WARNING
1114
+            'boinctranslate',
1115
+            'The translation file %filename for %lang contains an error: "msgstr" is unexpected on line %line.',
1116
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1117
+            WATCHDOG_WARNING
1118 1118
         );
1119 1119
         _locale_import_message('The translation file %filename contains an error: "msgstr" is unexpected on line %line.', $file, $lineno);
1120 1120
         return FALSE;
1121
-      }
1122
-      $line = trim(substr($line, 6));
1123
-      $quoted = _locale_import_parse_quoted($line);
1124
-      if ($quoted === FALSE) {
1121
+        }
1122
+        $line = trim(substr($line, 6));
1123
+        $quoted = _locale_import_parse_quoted($line);
1124
+        if ($quoted === FALSE) {
1125 1125
         watchdog(
1126
-          'boinctranslate',
1127
-          'The translation file %filename for language %lang contains a syntax error on line %line.',
1128
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1129
-          WATCHDOG_WARNING
1126
+            'boinctranslate',
1127
+            'The translation file %filename for language %lang contains a syntax error on line %line.',
1128
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1129
+            WATCHDOG_WARNING
1130 1130
         );
1131 1131
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1132 1132
         return FALSE;
1133
-      }
1134
-      $current["msgstr"] = $quoted;
1135
-      $context = "MSGSTR";
1133
+        }
1134
+        $current["msgstr"] = $quoted;
1135
+        $context = "MSGSTR";
1136 1136
     }
1137 1137
     elseif ($line != "") {
1138
-      $quoted = _locale_import_parse_quoted($line);
1139
-      if ($quoted === FALSE) {
1138
+        $quoted = _locale_import_parse_quoted($line);
1139
+        if ($quoted === FALSE) {
1140 1140
         watchdog(
1141
-          'boinctranslate',
1142
-          'The translation file %filename for language %lang contains a syntax error on line %line.',
1143
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1144
-          WATCHDOG_WARNING
1141
+            'boinctranslate',
1142
+            'The translation file %filename for language %lang contains a syntax error on line %line.',
1143
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1144
+            WATCHDOG_WARNING
1145 1145
         );
1146 1146
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1147 1147
         return FALSE;
1148
-      }
1149
-      if (($context == "MSGID") || ($context == "MSGID_PLURAL")) {
1148
+        }
1149
+        if (($context == "MSGID") || ($context == "MSGID_PLURAL")) {
1150 1150
         $current["msgid"] .= $quoted;
1151
-      }
1152
-      elseif ($context == "MSGSTR") {
1151
+        }
1152
+        elseif ($context == "MSGSTR") {
1153 1153
         $current["msgstr"] .= $quoted;
1154
-      }
1155
-      elseif ($context == "MSGSTR_ARR") {
1154
+        }
1155
+        elseif ($context == "MSGSTR_ARR") {
1156 1156
         $current["msgstr"][$plural] .= $quoted;
1157
-      }
1158
-      else {
1157
+        }
1158
+        else {
1159 1159
         watchdog(
1160
-          'boinctranslate',
1161
-          'The translation file %filename for %lang contains an error: there is an unexpected string on line %line.',
1162
-          array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1163
-          WATCHDOG_WARNING
1160
+            'boinctranslate',
1161
+            'The translation file %filename for %lang contains an error: there is an unexpected string on line %line.',
1162
+            array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1163
+            WATCHDOG_WARNING
1164 1164
         );
1165 1165
         _locale_import_message('The translation file %filename contains an error: there is an unexpected string on line %line.', $file, $lineno);
1166 1166
         return FALSE;
1167
-      }
1167
+        }
1168
+    }
1168 1169
     }
1169
-  }
1170 1170
 
1171
-  // End of PO file, flush last entry
1172
-  if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) {
1171
+    // End of PO file, flush last entry
1172
+    if (($context == "MSGSTR") || ($context == "MSGSTR_ARR")) {
1173 1173
     _boinctranslate_locale_import_one_string($op, $current, $mode, $lang, $file, $group);
1174
-  }
1175
-  elseif ($context != "COMMENT") {
1174
+    }
1175
+    elseif ($context != "COMMENT") {
1176 1176
     watchdog(
1177
-      'boinctranslate',
1178
-      'The translation file %filename for %lang ended unexpectedly at line %line.',
1179
-      array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1180
-      WATCHDOG_WARNING
1177
+        'boinctranslate',
1178
+        'The translation file %filename for %lang ended unexpectedly at line %line.',
1179
+        array('%filename' => $file->filename, '%lang' => $lang, '%line' => $lineno),
1180
+        WATCHDOG_WARNING
1181 1181
     );
1182 1182
     _locale_import_message('The translation file %filename ended unexpectedly at line %line.', $file, $lineno);
1183 1183
     return FALSE;
1184
-  }
1184
+    }
1185 1185
 
1186 1186
 }
1187 1187
 
@@ -1190,28 +1190,28 @@  discard block
 block discarded – undo
1190 1190
  */
1191 1191
 function _boinctranslate_locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NULL, $file = NULL, $group = 'default') {
1192 1192
 
1193
-  require_once(getcwd() . '/includes/locale.inc');
1193
+    require_once(getcwd() . '/includes/locale.inc');
1194 1194
 
1195
-  static $report = array(
1195
+    static $report = array(
1196 1196
     'additions' => 0,
1197 1197
     'updates' => 0,
1198 1198
     'deletes' => 0,
1199 1199
     'skips' => 0,
1200
-  );
1201
-  static $headerdone = FALSE;
1202
-  static $strings = array();
1200
+    );
1201
+    static $headerdone = FALSE;
1202
+    static $strings = array();
1203 1203
 
1204
-  switch ($op) {
1204
+    switch ($op) {
1205 1205
     // Return stored strings
1206 1206
     case 'mem-report':
1207 1207
       return $strings;
1208 1208
 
1209
-      // Store string in memory (only supports single strings)
1209
+        // Store string in memory (only supports single strings)
1210 1210
     case 'mem-store':
1211 1211
       $strings[$value['msgid']] = $value['msgstr'];
1212
-      return;
1212
+        return;
1213 1213
 
1214
-      // Called at end of import to inform the user
1214
+        // Called at end of import to inform the user
1215 1215
     case 'db-report':
1216 1216
       return array(
1217 1217
         $headerdone,
@@ -1219,57 +1219,57 @@  discard block
 block discarded – undo
1219 1219
         $report['updates'],
1220 1220
         $report['deletes'],
1221 1221
         $report['skips'],
1222
-      );
1222
+        );
1223 1223
 
1224
-      // Store the string we got in the database.
1224
+        // Store the string we got in the database.
1225 1225
     case 'db-store':
1226 1226
       // We got header information.
1227 1227
       if ($value['msgid'] == '') {
1228 1228
         $languages = language_list();
1229 1229
         if (($mode != LOCALE_IMPORT_KEEP) || empty($languages[$lang]->plurals)) {
1230
-          // Since we only need to parse the header if we ought to update the
1231
-          // plural formula, only run this if we don't need to keep existing
1232
-          // data untouched or if we don't have an existing plural formula.
1233
-          $header = _locale_import_parse_header($value['msgstr']);
1230
+            // Since we only need to parse the header if we ought to update the
1231
+            // plural formula, only run this if we don't need to keep existing
1232
+            // data untouched or if we don't have an existing plural formula.
1233
+            $header = _locale_import_parse_header($value['msgstr']);
1234 1234
 
1235
-          // Get and store the plural formula if available.
1236
-          if (isset($header["Plural-Forms"]) && $p = _locale_import_parse_plural_forms($header["Plural-Forms"], $file->filename)) {
1235
+            // Get and store the plural formula if available.
1236
+            if (isset($header["Plural-Forms"]) && $p = _locale_import_parse_plural_forms($header["Plural-Forms"], $file->filename)) {
1237 1237
             list($nplurals, $plural) = $p;
1238 1238
             db_query("UPDATE {languages} SET plurals = %d, formula = '%s' WHERE language = '%s'", $nplurals, $plural, $lang);
1239
-          }
1239
+            }
1240 1240
         }
1241 1241
         $headerdone = TRUE;
1242
-      }
1242
+        }
1243 1243
 
1244
-      else {
1244
+        else {
1245 1245
         // Some real string to import.
1246 1246
         $comments = _locale_import_shorten_comments(empty($value['#']) ? array() : $value['#']);
1247 1247
 
1248 1248
         if (strpos($value['msgid'], "\0")) {
1249
-          // This string has plural versions.
1250
-          $english = explode("\0", $value['msgid'], 2);
1251
-          $entries = array_keys($value['msgstr']);
1252
-          for ($i = 3; $i <= count($entries); $i++) {
1249
+            // This string has plural versions.
1250
+            $english = explode("\0", $value['msgid'], 2);
1251
+            $entries = array_keys($value['msgstr']);
1252
+            for ($i = 3; $i <= count($entries); $i++) {
1253 1253
             $english[] = $english[1];
1254
-          }
1255
-          $translation = array_map('_locale_import_append_plural', $value['msgstr'], $entries);
1256
-          $english = array_map('_locale_import_append_plural', $english, $entries);
1257
-          foreach ($translation as $key => $trans) {
1254
+            }
1255
+            $translation = array_map('_locale_import_append_plural', $value['msgstr'], $entries);
1256
+            $english = array_map('_locale_import_append_plural', $english, $entries);
1257
+            foreach ($translation as $key => $trans) {
1258 1258
             if ($key == 0) {
1259
-              $plid = 0;
1259
+                $plid = 0;
1260 1260
             }
1261 1261
             $plid = _boinctranslate_locale_import_one_string_db($report, $lang, $english[$key], $trans, $group, $comments, $mode, $plid, $key);
1262
-          }
1262
+            }
1263 1263
         }
1264 1264
 
1265 1265
         else {
1266
-          // A simple string to import.
1267
-          $english = $value['msgid'];
1268
-          $translation = $value['msgstr'];
1269
-          _boinctranslate_locale_import_one_string_db($report, $lang, $english, $translation, $group, $comments, $mode);
1266
+            // A simple string to import.
1267
+            $english = $value['msgid'];
1268
+            $translation = $value['msgstr'];
1269
+            _boinctranslate_locale_import_one_string_db($report, $lang, $english, $translation, $group, $comments, $mode);
1270 1270
         }
1271
-      }
1272
-  } // end of db-store operation
1271
+        }
1272
+    } // end of db-store operation
1273 1273
 }
1274 1274
 
1275 1275
 /**
@@ -1286,15 +1286,15 @@  discard block
 block discarded – undo
1286 1286
  */
1287 1287
 function _boinctranslate_locale_import_one_string_db(&$report, $langcode, $source, $translation, $textgroup, $location, $mode, $plid = NULL, $plural = NULL) {
1288 1288
 
1289
-  $ignoreoverwrite = FALSE;
1290
-  $lid = 0;
1289
+    $ignoreoverwrite = FALSE;
1290
+    $lid = 0;
1291 1291
 
1292
-  // Use different DB query depending on the textgroup.
1293
-  $uselocation = array("boinc", "project");
1294
-  if (in_array($textgroup, $uselocation)) {
1292
+    // Use different DB query depending on the textgroup.
1293
+    $uselocation = array("boinc", "project");
1294
+    if (in_array($textgroup, $uselocation)) {
1295 1295
     $resource = db_query("SELECT lid FROM {locales_source} WHERE location = '%s' AND source = '%s' AND textgroup = '%s'", $location, $source, $textgroup);
1296
-  }
1297
-  else {
1296
+    }
1297
+    else {
1298 1298
     $resource = db_query("SELECT lid FROM {locales_source} WHERE source = '%s' AND textgroup = '%s'", $source, $textgroup);
1299 1299
 
1300 1300
     // Parse the location string for the string ignoreoverwrite, which
@@ -1303,61 +1303,61 @@  discard block
 block discarded – undo
1303 1303
     // location string.
1304 1304
     $parts = explode(':', $location);
1305 1305
     if (!empty($parts[2])) {
1306
-      if (preg_match('/(ignoreoverwrite)/', $parts[2])) {
1306
+        if (preg_match('/(ignoreoverwrite)/', $parts[2])) {
1307 1307
         $ignoreoverwrite = TRUE;
1308
-      }
1308
+        }
1309 1309
     }
1310
-  }// if (in_array($textgroup, $uselocation))
1310
+    }// if (in_array($textgroup, $uselocation))
1311 1311
 
1312
-  if (!empty($translation)) {
1312
+    if (!empty($translation)) {
1313 1313
     // Skip this string unless it passes a check for dangerous code.
1314 1314
     // Text groups other than default still can contain HTML tags
1315 1315
     // (i.e. translatable blocks).
1316 1316
     if ($textgroup == "default" && !locale_string_is_safe($translation)) {
1317
-      $report['skips']++;
1318
-      $lid = 0;
1317
+        $report['skips']++;
1318
+        $lid = 0;
1319 1319
     }
1320 1320
     elseif ($resource) {
1321
-      // We have this source string saved already. Loop over the db results from locales_source table.
1322
-      while ($row = db_fetch_array($resource)) {
1321
+        // We have this source string saved already. Loop over the db results from locales_source table.
1322
+        while ($row = db_fetch_array($resource)) {
1323 1323
 
1324 1324
         $lid = $row['lid'];
1325 1325
         // Check of if one or more translations exist for this lid in locales_target table.
1326 1326
         $exists = (bool) db_result(db_query("SELECT lid FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $langcode));
1327 1327
         if (!$exists) {
1328
-          // No translation in this language, insert translation into locales_target table.
1329
-          db_query("INSERT INTO {locales_target} (lid, language, translation, plid, plural) VALUES (%d, '%s', '%s', %d, %d)", $lid, $langcode, $translation, $plid, $plural);
1330
-          $report['additions']++;
1328
+            // No translation in this language, insert translation into locales_target table.
1329
+            db_query("INSERT INTO {locales_target} (lid, language, translation, plid, plural) VALUES (%d, '%s', '%s', %d, %d)", $lid, $langcode, $translation, $plid, $plural);
1330
+            $report['additions']++;
1331 1331
         }
1332 1332
         else if ( ($mode == LOCALE_IMPORT_OVERWRITE) and (!$ignoreoverwrite) ) {
1333
-          // Translation exists, only overwrite if instructed.
1334
-          db_query("UPDATE {locales_target} SET translation = '%s', plid = %d, plural = %d WHERE language = '%s' AND lid = %d", $translation, $plid, $plural, $langcode, $lid);
1335
-          $report['updates']++;
1333
+            // Translation exists, only overwrite if instructed.
1334
+            db_query("UPDATE {locales_target} SET translation = '%s', plid = %d, plural = %d WHERE language = '%s' AND lid = %d", $translation, $plid, $plural, $langcode, $lid);
1335
+            $report['updates']++;
1336 1336
         }
1337 1337
         else {
1338
-          $report['skips']++;
1338
+            $report['skips']++;
1339 1339
         }// end if !$exists
1340 1340
 
1341
-      }// while
1341
+        }// while
1342 1342
     }
1343
-  }
1344
-  elseif ($mode == LOCALE_IMPORT_OVERWRITE AND $resource) {
1343
+    }
1344
+    elseif ($mode == LOCALE_IMPORT_OVERWRITE AND $resource) {
1345 1345
     // Loop over db results from locales_source table.
1346 1346
     while ($row = db_fetch_array($resource)) {
1347
-      $lid = $row['lid'];
1348
-      $exists = (bool) db_result(db_query("SELECT lid FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $langcode));
1349
-      if ($exists) {
1347
+        $lid = $row['lid'];
1348
+        $exists = (bool) db_result(db_query("SELECT lid FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $langcode));
1349
+        if ($exists) {
1350 1350
         // Empty translation, remove existing if instructed.
1351 1351
         db_query("DELETE FROM {locales_target} WHERE language = '%s' AND lid = %d AND plid = %d AND plural = %d", $langcode, $lid, $plid, $plural);
1352 1352
         $report['deletes']++;
1353
-      }// if $exists
1353
+        }// if $exists
1354 1354
     }// while
1355
-  }
1356
-  else {
1355
+    }
1356
+    else {
1357 1357
     $report['skips']++;
1358
-  }
1358
+    }
1359 1359
 
1360
-  return $lid;
1360
+    return $lid;
1361 1361
 }
1362 1362
 
1363 1363
 
@@ -1366,17 +1366,17 @@  discard block
 block discarded – undo
1366 1366
  * Parse valid resources out of configuration
1367 1367
  */
1368 1368
 function boinctranslate_parse_resources($resource_text) {
1369
-  $resources = array();
1370
-  $resource_array = explode(
1369
+    $resources = array();
1370
+    $resource_array = explode(
1371 1371
     "\n", $resource_text
1372
-  );
1373
-  foreach ($resource_array as $resource) {
1372
+    );
1373
+    foreach ($resource_array as $resource) {
1374 1374
     $resource = trim($resource);
1375 1375
     if ($resource AND $resource[0] != '#') {
1376
-      $resources[] = $resource;
1376
+        $resources[] = $resource;
1377 1377
     }
1378
-  }
1379
-  return $resources;
1378
+    }
1379
+    return $resources;
1380 1380
 }
1381 1381
 
1382 1382
 /*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *
@@ -1403,5 +1403,5 @@  discard block
 block discarded – undo
1403 1403
  * database.
1404 1404
  */
1405 1405
 function _boinctranslate_supertrim($instr) {
1406
-  return implode("\n", array_map('trim', preg_split('/\r\n|\r|\n/', $instr) ) );
1406
+    return implode("\n", array_map('trim', preg_split('/\r\n|\r|\n/', $instr) ) );
1407 1407
 }
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 function boinctranslate_initialize_languages() {
17 17
 
18
-  require_once(getcwd() . '/includes/locale.inc');
18
+  require_once(getcwd().'/includes/locale.inc');
19 19
 
20 20
   $api_base_url = 'https://www.transifex.com/api/2';
21 21
   $project_name = variable_get(
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
           }
147 147
         }
148 148
         if ($disabled_languages) {
149
-          drupal_set_message('The following languages were not found in Transifex and were disabled: ' . implode(' ', $disabled_languages));
149
+          drupal_set_message('The following languages were not found in Transifex and were disabled: '.implode(' ', $disabled_languages));
150 150
         }
151 151
         if ($process_batches) {
152 152
           $batch = array(
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
  *
196 196
  */
197 197
 function boinctranslate_export_translations() {
198
-  require_once(getcwd() . '/includes/locale.inc');
198
+  require_once(getcwd().'/includes/locale.inc');
199 199
   $project_name = variable_get(
200 200
     'boinc_translate_transifex_project_name', ''
201 201
   );
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
  *
298 298
  */
299 299
 function boinctranslate_update_official_boinc_translations() {
300
-  require_once(getcwd() . '/includes/locale.inc');
300
+  require_once(getcwd().'/includes/locale.inc');
301 301
   $project_name = variable_get(
302 302
     'boinc_translate_transifex_standard_name', ''
303 303
   );
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 
406 406
   $url = "{$api_base_url}/{$path}";
407 407
   $headers = array(
408
-    'Authorization' => 'Basic ' . base64_encode($username . ":" . $password),
408
+    'Authorization' => 'Basic '.base64_encode($username.":".$password),
409 409
   );
410 410
   $data = NULL;
411 411
 
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
       return json_decode($response->data, TRUE);
434 434
     }
435 435
     else {
436
-      return (string) $response->data;
436
+      return (string)$response->data;
437 437
     }
438 438
     break;
439 439
   case 404:
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
  */
457 457
 function boinctranslate_get_po($langcode, $type = 'standard') {
458 458
 
459
-  require_once(getcwd() . '/includes/locale.inc');
459
+  require_once(getcwd().'/includes/locale.inc');
460 460
 
461 461
   $all_languages = language_list();
462 462
   $language = $langcode ? $all_languages[$langcode] : NULL;
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
  */
516 516
 function boinctranslate_export_po_generate($language = NULL, $strings = array(), $header = NULL, $type = NULL) {
517 517
 
518
-  require_once(getcwd() . '/includes/locale.inc');
518
+  require_once(getcwd().'/includes/locale.inc');
519 519
   global $user;
520 520
 
521 521
   // unset $language to indicate template creation
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
       $header = "# BOINC drupal localization template\n";
532 532
       $header .= "# Copyright (C) ".date("Y")." University of California\n";
533 533
     }
534
-    $header .= '# Generated by ' . $user->name . ' <' . $user->mail . ">\n";
534
+    $header .= '# Generated by '.$user->name.' <'.$user->mail.">\n";
535 535
     $header .= "#\n";
536 536
     $header .= "# This file is distributed under the same license as BOINC.\n";
537 537
     $header .= "#\n";
@@ -543,9 +543,9 @@  discard block
 block discarded – undo
543 543
       $header .= "\"Project-Id-Version: BOINC unknown\\n\"\n"; // TODO: add SHA1 of source checkout here
544 544
     }
545 545
     $header .= "\"Report-Msgid-Bugs-To: BOINC translation team <[email protected]>\\n\"\n";
546
-    $header .= "\"POT-Creation-Date: " . date("Y-m-d H:iO") . "\\n\"\n";
546
+    $header .= "\"POT-Creation-Date: ".date("Y-m-d H:iO")."\\n\"\n";
547 547
     if (isset($language)) {
548
-      $header .= "\"PO-Revision-Date: " . date("Y-m-d H:iO") . "\\n\"\n";
548
+      $header .= "\"PO-Revision-Date: ".date("Y-m-d H:iO")."\\n\"\n";
549 549
     }
550 550
     $header .= "\"Last-Translator: Generated automatically from Drupal translate interface\\n\"\n";
551 551
     $header .= "\"MIME-Version: 1.0\\n\"\n";
@@ -554,31 +554,31 @@  discard block
 block discarded – undo
554 554
     if (isset($language)) {
555 555
       $header .= "\"Language: ".$language->language."\\n\"";
556 556
       if ($language->formula && $language->plurals) {
557
-        $header .= "\"Plural-Forms: nplurals=" . $language->plurals . "; plural=" . strtr($language->formula, array('$' => '')) . ";\\n\"\n";
557
+        $header .= "\"Plural-Forms: nplurals=".$language->plurals."; plural=".strtr($language->formula, array('$' => '')).";\\n\"\n";
558 558
       }
559 559
     }
560 560
     $header .= "\"X-Poedit-SourceCharset: utf-8\\n\"\n";
561 561
   }
562 562
 
563
-  $output = $header . "\n";
563
+  $output = $header."\n";
564 564
 
565 565
   foreach ($strings as $lid => $string) {
566 566
     // Only process non-children, children are output below their parent.
567 567
     if (!isset($string['child'])) {
568 568
       if ($string['comment']) {
569
-        $output .= '#: ' . $string['comment'] . "\n";
569
+        $output .= '#: '.$string['comment']."\n";
570 570
       }
571 571
       if ($string['context']) {
572
-        $output .= 'msgctxt "' . $string['context'] . "\"\n";
572
+        $output .= 'msgctxt "'.$string['context']."\"\n";
573 573
       }
574
-      $output .= 'msgid ' . _locale_export_string($string['source']);
574
+      $output .= 'msgid '._locale_export_string($string['source']);
575 575
       if (!empty($string['plural'])) {
576 576
         $plural = $string['plural'];
577
-        $output .= 'msgid_plural ' . _locale_export_string($strings[$plural]['source']);
577
+        $output .= 'msgid_plural '._locale_export_string($strings[$plural]['source']);
578 578
         if (isset($language)) {
579 579
           $translation = $string['translation'];
580 580
           for ($i = 0; $i < $language->plurals; $i++) {
581
-            $output .= 'msgstr[' . $i . '] ' . _locale_export_string($translation);
581
+            $output .= 'msgstr['.$i.'] '._locale_export_string($translation);
582 582
             if ($plural) {
583 583
               $translation = _locale_export_remove_plural($strings[$plural]['translation']);
584 584
               $plural = isset($strings[$plural]['plural']) ? $strings[$plural]['plural'] : 0;
@@ -589,12 +589,12 @@  discard block
 block discarded – undo
589 589
           }
590 590
         }
591 591
         else {
592
-          $output .= 'msgstr[0] ""' . "\n";
593
-          $output .= 'msgstr[1] ""' . "\n";
592
+          $output .= 'msgstr[0] ""'."\n";
593
+          $output .= 'msgstr[1] ""'."\n";
594 594
         }
595 595
       }
596 596
       else {
597
-        $output .= 'msgstr ' . _locale_export_string($string['translation']);
597
+        $output .= 'msgstr '._locale_export_string($string['translation']);
598 598
       }
599 599
       $output .= "\n";
600 600
     }
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
  *
607 607
  */
608 608
 function boinctranslate_refresh_translations() {
609
-  require_once(getcwd() . '/includes/locale.inc');
609
+  require_once(getcwd().'/includes/locale.inc');
610 610
   $errors = array();
611 611
   $languages = locale_language_list();
612 612
   $translation_resources = array();
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
       ),
654 654
     );
655 655
     // Be sure any strings from the override file are added to the boinc group
656
-    $override_file = './' . drupal_get_path('module', 'boinctranslate') . '/includes/other-boinc-translation-strings.txt';
656
+    $override_file = './'.drupal_get_path('module', 'boinctranslate').'/includes/other-boinc-translation-strings.txt';
657 657
     $other_strings = file($override_file);
658 658
     if ($other_strings) {
659 659
       foreach ($other_strings as $string) {
@@ -666,13 +666,13 @@  discard block
 block discarded – undo
666 666
           // Use '|' as delimiter to split string and context info.
667 667
           $line = explode("|", $string);
668 668
           if ($line) {
669
-            if (count($line)==1) {
669
+            if (count($line) == 1) {
670 670
               $tl0 = trim($line[0]);
671 671
               if ($tl0) {
672 672
                 bts($tl0);
673 673
               }
674 674
             }
675
-            elseif (count($line)>1) {
675
+            elseif (count($line) > 1) {
676 676
               $tl0 = trim($line[0]);
677 677
               $tl1 = trim($line[1]);
678 678
               if ($tl0 and $tl1) {
@@ -741,7 +741,7 @@  discard block
 block discarded – undo
741 741
  */
742 742
 function boinctranslate_refresh_translations_op($project, $resource, $langcode, $language, $textgroups, $debug_mode, &$context) {
743 743
 
744
-  require_once(getcwd() . '/includes/locale.inc');
744
+  require_once(getcwd().'/includes/locale.inc');
745 745
 
746 746
   if ($debug_mode) {
747 747
     watchdog(
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
         $file->filename = basename($file->filepath);
773 773
         if (!$file->filepath) {
774 774
           $message = 'Unable to create temporary file in '
775
-            . file_directory_temp() . " for {$language} translation "
775
+            . file_directory_temp()." for {$language} translation "
776 776
             . "resource {$project}:{$resource}";
777 777
         }
778 778
 
@@ -849,7 +849,7 @@  discard block
 block discarded – undo
849 849
     $context['finished'] = 1;
850 850
   }
851 851
   else {
852
-    $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
852
+    $context['finished'] = $context['sandbox']['progress']/$context['sandbox']['max'];
853 853
   }
854 854
 }
855 855
 
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
     // An error occurred.
873 873
     // $operations contains the operations that remained unprocessed.
874 874
     $error_operation = reset($operations);
875
-    $message = 'An error occurred while processing ' . $error_operation[0] . ' with arguments :' . print_r($error_operation[0], TRUE);
875
+    $message = 'An error occurred while processing '.$error_operation[0].' with arguments :'.print_r($error_operation[0], TRUE);
876 876
     watchdog(
877 877
       'boinctranslate',
878 878
       $message,
@@ -893,7 +893,7 @@  discard block
 block discarded – undo
893 893
     @set_time_limit(240);
894 894
   }
895 895
 
896
-  require_once(getcwd() . '/includes/locale.inc');
896
+  require_once(getcwd().'/includes/locale.inc');
897 897
 
898 898
   // Check if we have the language already in the database.
899 899
   if (!db_fetch_object(db_query("SELECT language FROM {languages} WHERE language = '%s'", $langcode))) {
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
  */
936 936
 function _boinctranslate_locale_import_read_po($op, $file, $mode = NULL, $lang = NULL, $group = 'default') {
937 937
 
938
-  require_once(getcwd() . '/includes/locale.inc');
938
+  require_once(getcwd().'/includes/locale.inc');
939 939
 
940 940
   $fd = fopen($file->filepath, "rb"); // File will get closed by PHP on return
941 941
   if (!$fd) {
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
   $lineno = 0; // Current line
956 956
 
957 957
   while (!feof($fd)) {
958
-    $line = fgets($fd, 10 * 1024); // A line should not be this long
958
+    $line = fgets($fd, 10*1024); // A line should not be this long
959 959
     if ($lineno == 0) {
960 960
       // The first line might come with a UTF-8 BOM, which should be removed.
961 961
       $line = str_replace("\xEF\xBB\xBF", '', $line);
@@ -1037,7 +1037,7 @@  discard block
 block discarded – undo
1037 1037
         _locale_import_message('The translation file %filename contains a syntax error on line %line.', $file, $lineno);
1038 1038
         return FALSE;
1039 1039
       }
1040
-      $current["msgid"] = $current["msgid"] . "\0" . $quoted;
1040
+      $current["msgid"] = $current["msgid"]."\0".$quoted;
1041 1041
       $context = "MSGID_PLURAL";
1042 1042
     }
1043 1043
     elseif (!strncmp("msgid", $line, 5)) {
@@ -1190,7 +1190,7 @@  discard block
 block discarded – undo
1190 1190
  */
1191 1191
 function _boinctranslate_locale_import_one_string($op, $value = NULL, $mode = NULL, $lang = NULL, $file = NULL, $group = 'default') {
1192 1192
 
1193
-  require_once(getcwd() . '/includes/locale.inc');
1193
+  require_once(getcwd().'/includes/locale.inc');
1194 1194
 
1195 1195
   static $report = array(
1196 1196
     'additions' => 0,
@@ -1323,13 +1323,13 @@  discard block
 block discarded – undo
1323 1323
 
1324 1324
         $lid = $row['lid'];
1325 1325
         // Check of if one or more translations exist for this lid in locales_target table.
1326
-        $exists = (bool) db_result(db_query("SELECT lid FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $langcode));
1326
+        $exists = (bool)db_result(db_query("SELECT lid FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $langcode));
1327 1327
         if (!$exists) {
1328 1328
           // No translation in this language, insert translation into locales_target table.
1329 1329
           db_query("INSERT INTO {locales_target} (lid, language, translation, plid, plural) VALUES (%d, '%s', '%s', %d, %d)", $lid, $langcode, $translation, $plid, $plural);
1330 1330
           $report['additions']++;
1331 1331
         }
1332
-        else if ( ($mode == LOCALE_IMPORT_OVERWRITE) and (!$ignoreoverwrite) ) {
1332
+        else if (($mode == LOCALE_IMPORT_OVERWRITE) and (!$ignoreoverwrite)) {
1333 1333
           // Translation exists, only overwrite if instructed.
1334 1334
           db_query("UPDATE {locales_target} SET translation = '%s', plid = %d, plural = %d WHERE language = '%s' AND lid = %d", $translation, $plid, $plural, $langcode, $lid);
1335 1335
           $report['updates']++;
@@ -1345,7 +1345,7 @@  discard block
 block discarded – undo
1345 1345
     // Loop over db results from locales_source table.
1346 1346
     while ($row = db_fetch_array($resource)) {
1347 1347
       $lid = $row['lid'];
1348
-      $exists = (bool) db_result(db_query("SELECT lid FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $langcode));
1348
+      $exists = (bool)db_result(db_query("SELECT lid FROM {locales_target} WHERE lid = %d AND language = '%s'", $lid, $langcode));
1349 1349
       if ($exists) {
1350 1350
         // Empty translation, remove existing if instructed.
1351 1351
         db_query("DELETE FROM {locales_target} WHERE language = '%s' AND lid = %d AND plid = %d AND plural = %d", $langcode, $lid, $plid, $plural);
@@ -1403,5 +1403,5 @@  discard block
 block discarded – undo
1403 1403
  * database.
1404 1404
  */
1405 1405
 function _boinctranslate_supertrim($instr) {
1406
-  return implode("\n", array_map('trim', preg_split('/\r\n|\r|\n/', $instr) ) );
1406
+  return implode("\n", array_map('trim', preg_split('/\r\n|\r|\n/', $instr)));
1407 1407
 }
Please login to merge, or discard this patch.