Passed
Push — dpa_docker_wrapper12 ( e18bd7 )
by David
08:59
created
html/user/top_teams.php 2 patches
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 }
33 33
 define('ITEM_LIMIT', 10000);
34 34
 
35
-function get_top_teams($offset, $sort_by, $type){
35
+function get_top_teams($offset, $sort_by, $type) {
36 36
     global $teams_per_page;
37 37
     $db = BoincDb::get(true);
38 38
     $type_clause = null;
39
-    if ($type){
39
+    if ($type) {
40 40
         $type_clause = "type=$type";
41 41
     }
42 42
     if ($sort_by == "total_credit") {
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     $cache_args = "sort_by=$sort_by&offset=$offset$type_url";
76 76
     $cacheddata = get_cached_data(TOP_PAGES_TTL,$cache_args);
77 77
     //If we have got the data in cache
78
-    if ($cacheddata){
78
+    if ($cacheddata) {
79 79
         $data = unserialize($cacheddata); // use the cached data
80 80
     } else {
81 81
         //if not do queries etc to generate new data
@@ -115,7 +115,8 @@  discard block
 block discarded – undo
115 115
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Previous %1", $teams_per_page)."</a> &middot; ";
116 116
 
117 117
     }
118
-    if ($n==$teams_per_page){ //If we aren't on the last page
118
+    if ($n==$teams_per_page) {
119
+//If we aren't on the last page
119 120
         $new_offset = $offset + $teams_per_page;
120 121
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Next %1", $teams_per_page)."</a>";
121 122
     }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 }
33 33
 define('ITEM_LIMIT', 10000);
34 34
 
35
-function get_top_teams($offset, $sort_by, $type){
35
+function get_top_teams($offset, $sort_by, $type) {
36 36
     global $teams_per_page;
37 37
     $db = BoincDb::get(true);
38 38
     $type_clause = null;
39
-    if ($type){
39
+    if ($type) {
40 40
         $type_clause = "type=$type";
41 41
     }
42 42
     if ($sort_by == "total_credit") {
@@ -60,26 +60,26 @@  discard block
 block discarded – undo
60 60
 if ($type < 0 || $type >= count($team_types)) {
61 61
     $type = 0;
62 62
 }
63
-$type_url="";
64
-$type_name="";
63
+$type_url = "";
64
+$type_name = "";
65 65
 if ($type) {
66 66
     $type_url = "&type=$type";
67 67
     $type_name = team_type_name($type);
68 68
 }
69 69
 
70 70
 $offset = get_int("offset", true);
71
-if (!$offset) $offset=0;
72
-if ($offset % $teams_per_page) $offset = 0;
71
+if (!$offset) $offset = 0;
72
+if ($offset%$teams_per_page) $offset = 0;
73 73
 
74 74
 if ($offset < ITEM_LIMIT) {
75 75
     $cache_args = "sort_by=$sort_by&offset=$offset$type_url";
76
-    $cacheddata = get_cached_data(TOP_PAGES_TTL,$cache_args);
76
+    $cacheddata = get_cached_data(TOP_PAGES_TTL, $cache_args);
77 77
     //If we have got the data in cache
78
-    if ($cacheddata){
78
+    if ($cacheddata) {
79 79
         $data = unserialize($cacheddata); // use the cached data
80 80
     } else {
81 81
         //if not do queries etc to generate new data
82
-        $data = get_top_teams($offset,$sort_by,$type);
82
+        $data = get_top_teams($offset, $sort_by, $type);
83 83
         
84 84
         // Calculate nusers before storing into the cache
85 85
         foreach ($data as $team) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Previous %1", $teams_per_page)."</a> &middot; ";
116 116
 
117 117
     }
118
-    if ($n==$teams_per_page){ //If we aren't on the last page
118
+    if ($n == $teams_per_page) { //If we aren't on the last page
119 119
         $new_offset = $offset + $teams_per_page;
120 120
         echo "<a href=top_teams.php?sort_by=$sort_by&amp;offset=$new_offset".$type_url.">".tra("Next %1", $teams_per_page)."</a>";
121 121
     }
Please login to merge, or discard this patch.
html/ops/upgrade_db.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
 
26 26
 $db_revision = 0;
27 27
 if (file_exists("../../db_revision")) {
28
-    $db_revision = (int) file_get_contents("../../db_revision");
28
+    $db_revision = (int)file_get_contents("../../db_revision");
29 29
 }
30 30
 echo "DB version: $db_revision\n";
31 31
 
32 32
 require_once("db_update.php");
33 33
 
34 34
 $updates = array();
35
-foreach($db_updates as $db_update) {
35
+foreach ($db_updates as $db_update) {
36 36
     if ($db_update[0] > $db_revision) {
37 37
         $func = $db_update[1];
38 38
         echo "need update $func\n";
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 db_init_cli();
62 62
 
63
-foreach($updates as $update) {
63
+foreach ($updates as $update) {
64 64
     list($rev, $func) = $update;
65 65
     echo "performing update $func\n";
66 66
     call_user_func($func);
Please login to merge, or discard this patch.
html/ops/delete_spammers.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 //
108 108
 function do_delete_user($user) {
109 109
     global $test;
110
-    $age = (time() - $user->create_time) / 86400;
110
+    $age = (time() - $user->create_time)/86400;
111 111
     echo "deleting user\n";
112 112
     echo "   ID: $user->id\n";
113 113
     echo "   email: $user->email_addr\n";
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 }
335 335
 
336 336
 function delete_user_id_range($id1, $id2) {
337
-    for ($i=$id1; $i <= $id2; $i++) {
337
+    for ($i = $id1; $i <= $id2; $i++) {
338 338
         $user = BoincUser::lookup_id($i);
339 339
         if ($user) {
340 340
             echo "deleting user $i\n";
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 // this is for cleaning up BOINC-wide teams
347 347
 //
348 348
 function delete_team_id_range($id1, $id2) {
349
-    for ($i=$id1; $i <= $id2; $i++) {
349
+    for ($i = $id1; $i <= $id2; $i++) {
350 350
         echo "deleting team $i\n";
351 351
         $team = BoincTeam::lookup_id($i);
352 352
         if ($team) {
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 
362 362
 // get settings first
363 363
 //
364
-for ($i=1; $i<$argc; $i++) {
364
+for ($i = 1; $i < $argc; $i++) {
365 365
     if ($argv[$i] == "--test") {
366 366
         $test = true;
367 367
     } else if ($argv[$i] == "--min_days") {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 
376 376
 // then do actions
377 377
 //
378
-for ($i=1; $i<$argc; $i++) {
378
+for ($i = 1; $i < $argc; $i++) {
379 379
     if ($argv[$i] == "--list") {
380 380
         delete_list($argv[++$i]);
381 381
     } else if ($argv[$i] == "--profiles") {
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -368,7 +368,8 @@
 block discarded – undo
368 368
         $min_days = $argv[++$i];
369 369
     } else if ($argv[$i] == "--max_days") {
370 370
         $max_days = $argv[++$i];
371
-    } else if ($argv[$i] == "--days") {     // deprecated
371
+    } else if ($argv[$i] == "--days") {
372
+// deprecated
372 373
         $max_days = $argv[++$i];
373 374
     }
374 375
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/friends/friends.views_default.inc 2 patches
Indentation   +549 added lines, -549 removed lines patch added patch discarded remove patch
@@ -4,133 +4,133 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_views_default_views().
5 5
  */
6 6
 function friends_views_default_views() {
7
-  $views = array();
7
+    $views = array();
8 8
 
9
-  // Exported view: boinc_friends
10
-  $view = new view;
11
-  $view->name = 'boinc_friends';
12
-  $view->description = 'Customized views for friend relationships';
13
-  $view->tag = 'boinc';
14
-  $view->base_table = 'users';
15
-  $view->core = 6;
16
-  $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
-  $handler = $view->new_display('default', 'Defaults', 'default');
19
-  $handler->override_option('relationships', array(
9
+    // Exported view: boinc_friends
10
+    $view = new view;
11
+    $view->name = 'boinc_friends';
12
+    $view->description = 'Customized views for friend relationships';
13
+    $view->tag = 'boinc';
14
+    $view->base_table = 'users';
15
+    $view->core = 6;
16
+    $view->api_version = '2';
17
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
+    $handler = $view->new_display('default', 'Defaults', 'default');
19
+    $handler->override_option('relationships', array(
20 20
     'flag_friend_content_rel' => array(
21
-      'label' => 'flag friend',
22
-      'required' => 1,
23
-      'flag' => 'friend',
24
-      'user_scope' => 'any',
25
-      'id' => 'flag_friend_content_rel',
26
-      'table' => 'users',
27
-      'field' => 'flag_friend_content_rel',
28
-      'override' => array(
21
+        'label' => 'flag friend',
22
+        'required' => 1,
23
+        'flag' => 'friend',
24
+        'user_scope' => 'any',
25
+        'id' => 'flag_friend_content_rel',
26
+        'table' => 'users',
27
+        'field' => 'flag_friend_content_rel',
28
+        'override' => array(
29 29
         'button' => 'Override',
30
-      ),
31
-      'relationship' => 'none',
30
+        ),
31
+        'relationship' => 'none',
32 32
     ),
33
-  ));
34
-  $handler->override_option('fields', array(
33
+    ));
34
+    $handler->override_option('fields', array(
35 35
     'name' => array(
36
-      'label' => 'Name',
37
-      'link_to_user' => 1,
38
-      'exclude' => 0,
39
-      'id' => 'name',
40
-      'table' => 'users',
41
-      'field' => 'name',
42
-      'override' => array(
36
+        'label' => 'Name',
37
+        'link_to_user' => 1,
38
+        'exclude' => 0,
39
+        'id' => 'name',
40
+        'table' => 'users',
41
+        'field' => 'name',
42
+        'override' => array(
43 43
         'button' => 'Override',
44
-      ),
45
-      'relationship' => 'none',
44
+        ),
45
+        'relationship' => 'none',
46 46
     ),
47 47
     'ops' => array(
48
-      'label' => 'Flag link',
49
-      'link_type' => '',
50
-      'exclude' => 0,
51
-      'id' => 'ops',
52
-      'table' => 'flag_content',
53
-      'field' => 'ops',
54
-      'relationship' => 'flag_friend_content_rel',
55
-      'override' => array(
48
+        'label' => 'Flag link',
49
+        'link_type' => '',
50
+        'exclude' => 0,
51
+        'id' => 'ops',
52
+        'table' => 'flag_content',
53
+        'field' => 'ops',
54
+        'relationship' => 'flag_friend_content_rel',
55
+        'override' => array(
56 56
         'button' => 'Override',
57
-      ),
57
+        ),
58 58
     ),
59 59
     'uid' => array(
60
-      'label' => 'Flag friend links',
61
-      'exclude' => 0,
62
-      'id' => 'uid',
63
-      'table' => 'flag_friend',
64
-      'field' => 'uid',
65
-      'relationship' => 'none',
66
-    ),
67
-  ));
68
-  $handler->override_option('arguments', array(
60
+        'label' => 'Flag friend links',
61
+        'exclude' => 0,
62
+        'id' => 'uid',
63
+        'table' => 'flag_friend',
64
+        'field' => 'uid',
65
+        'relationship' => 'none',
66
+    ),
67
+    ));
68
+    $handler->override_option('arguments', array(
69 69
     'friend_uid' => array(
70
-      'id' => 'friend_uid',
71
-      'table' => 'flag_friend',
72
-      'field' => 'friend_uid',
70
+        'id' => 'friend_uid',
71
+        'table' => 'flag_friend',
72
+        'field' => 'friend_uid',
73 73
     ),
74
-  ));
75
-  $handler->override_option('filters', array(
74
+    ));
75
+    $handler->override_option('filters', array(
76 76
     'status' => array(
77
-      'operator' => '=',
78
-      'value' => '1',
79
-      'group' => '0',
80
-      'exposed' => FALSE,
81
-      'expose' => array(
77
+        'operator' => '=',
78
+        'value' => '1',
79
+        'group' => '0',
80
+        'exposed' => FALSE,
81
+        'expose' => array(
82 82
         'operator' => FALSE,
83 83
         'label' => '',
84
-      ),
85
-      'id' => 'status',
86
-      'table' => 'users',
87
-      'field' => 'status',
88
-      'relationship' => 'none',
89
-    ),
90
-  ));
91
-  $handler->override_option('access', array(
84
+        ),
85
+        'id' => 'status',
86
+        'table' => 'users',
87
+        'field' => 'status',
88
+        'relationship' => 'none',
89
+    ),
90
+    ));
91
+    $handler->override_option('access', array(
92 92
     'type' => 'perm',
93 93
     'perm' => 'access content',
94
-  ));
95
-  $handler->override_option('cache', array(
94
+    ));
95
+    $handler->override_option('cache', array(
96 96
     'type' => 'none',
97
-  ));
98
-  $handler->override_option('empty', bts('No Friends have been added.', array(), NULL, 'boinc:friends-page'));
99
-  $handler->override_option('empty_format', '5');
100
-  $handler->override_option('use_pager', '1');
101
-  $handler->override_option('distinct', 1);
102
-  $handler->override_option('style_plugin', 'table');
103
-  $handler->override_option('style_options', array(
97
+    ));
98
+    $handler->override_option('empty', bts('No Friends have been added.', array(), NULL, 'boinc:friends-page'));
99
+    $handler->override_option('empty_format', '5');
100
+    $handler->override_option('use_pager', '1');
101
+    $handler->override_option('distinct', 1);
102
+    $handler->override_option('style_plugin', 'table');
103
+    $handler->override_option('style_options', array(
104 104
     'grouping' => '',
105 105
     'override' => 1,
106 106
     'sticky' => 0,
107 107
     'order' => 'asc',
108 108
     'summary' => '',
109 109
     'columns' => array(
110
-      'name' => 'name',
111
-      'ops' => 'ops',
112
-      'uid' => 'uid',
110
+        'name' => 'name',
111
+        'ops' => 'ops',
112
+        'uid' => 'uid',
113 113
     ),
114 114
     'info' => array(
115
-      'name' => array(
115
+        'name' => array(
116 116
         'sortable' => 0,
117 117
         'separator' => '',
118
-      ),
119
-      'ops' => array(
118
+        ),
119
+        'ops' => array(
120 120
         'separator' => '',
121
-      ),
122
-      'uid' => array(
121
+        ),
122
+        'uid' => array(
123 123
         'separator' => '',
124
-      ),
124
+        ),
125 125
     ),
126 126
     'default' => '-1',
127
-  ));
128
-  $handler = $view->new_display('page', 'Page (friends)', 'page_1');
129
-  $handler->override_option('relationships', array());
130
-  $handler->override_option('fields', array(
127
+    ));
128
+    $handler = $view->new_display('page', 'Page (friends)', 'page_1');
129
+    $handler->override_option('relationships', array());
130
+    $handler->override_option('fields', array(
131 131
     'picture' => array(
132
-      'label' => 'Friend',
133
-      'alter' => array(
132
+        'label' => 'Friend',
133
+        'alter' => array(
134 134
         'alter_text' => 0,
135 135
         'text' => '',
136 136
         'make_link' => 0,
@@ -149,35 +149,35 @@  discard block
 block discarded – undo
149 149
         'ellipsis' => 1,
150 150
         'html' => 0,
151 151
         'strip_tags' => 0,
152
-      ),
153
-      'empty' => '',
154
-      'hide_empty' => 0,
155
-      'empty_zero' => 0,
156
-      'hide_alter_empty' => 1,
157
-      'exclude' => 1,
158
-      'id' => 'picture',
159
-      'table' => 'users',
160
-      'field' => 'picture',
161
-      'override' => array(
152
+        ),
153
+        'empty' => '',
154
+        'hide_empty' => 0,
155
+        'empty_zero' => 0,
156
+        'hide_alter_empty' => 1,
157
+        'exclude' => 1,
158
+        'id' => 'picture',
159
+        'table' => 'users',
160
+        'field' => 'picture',
161
+        'override' => array(
162 162
         'button' => 'Use default',
163
-      ),
164
-      'relationship' => 'none',
163
+        ),
164
+        'relationship' => 'none',
165 165
     ),
166 166
     'name' => array(
167
-      'label' => 'Name',
168
-      'link_to_user' => 1,
169
-      'exclude' => 0,
170
-      'id' => 'name',
171
-      'table' => 'users',
172
-      'field' => 'name',
173
-      'override' => array(
167
+        'label' => 'Name',
168
+        'link_to_user' => 1,
169
+        'exclude' => 0,
170
+        'id' => 'name',
171
+        'table' => 'users',
172
+        'field' => 'name',
173
+        'override' => array(
174 174
         'button' => 'Use default',
175
-      ),
176
-      'relationship' => 'none',
175
+        ),
176
+        'relationship' => 'none',
177 177
     ),
178 178
     'uid' => array(
179
-      'label' => '',
180
-      'alter' => array(
179
+        'label' => '',
180
+        'alter' => array(
181 181
         'alter_text' => 0,
182 182
         'text' => '',
183 183
         'make_link' => 0,
@@ -196,87 +196,87 @@  discard block
 block discarded – undo
196 196
         'ellipsis' => 1,
197 197
         'html' => 0,
198 198
         'strip_tags' => 0,
199
-      ),
200
-      'empty' => '',
201
-      'hide_empty' => 1,
202
-      'empty_zero' => 0,
203
-      'hide_alter_empty' => 1,
204
-      'exclude' => 0,
205
-      'id' => 'uid',
206
-      'table' => 'flag_friend',
207
-      'field' => 'uid',
208
-      'override' => array(
199
+        ),
200
+        'empty' => '',
201
+        'hide_empty' => 1,
202
+        'empty_zero' => 0,
203
+        'hide_alter_empty' => 1,
204
+        'exclude' => 0,
205
+        'id' => 'uid',
206
+        'table' => 'flag_friend',
207
+        'field' => 'uid',
208
+        'override' => array(
209 209
         'button' => 'Use default',
210
-      ),
211
-      'relationship' => 'none',
210
+        ),
211
+        'relationship' => 'none',
212 212
     ),
213
-  ));
214
-  $handler->override_option('arguments', array(
213
+    ));
214
+    $handler->override_option('arguments', array(
215 215
     'friend_uid' => array(
216
-      'default_action' => 'default',
217
-      'style_plugin' => 'default_summary',
218
-      'style_options' => array(),
219
-      'wildcard' => 'all',
220
-      'wildcard_substitution' => 'All',
221
-      'title' => '',
222
-      'breadcrumb' => '',
223
-      'default_argument_type' => 'current_user',
224
-      'default_argument' => '',
225
-      'validate_type' => 'none',
226
-      'validate_fail' => 'not found',
227
-      'break_phrase' => 0,
228
-      'not' => 0,
229
-      'flag_friend_include_arg_user' => 0,
230
-      'id' => 'friend_uid',
231
-      'table' => 'flag_friend',
232
-      'field' => 'friend_uid',
233
-      'override' => array(
216
+        'default_action' => 'default',
217
+        'style_plugin' => 'default_summary',
218
+        'style_options' => array(),
219
+        'wildcard' => 'all',
220
+        'wildcard_substitution' => 'All',
221
+        'title' => '',
222
+        'breadcrumb' => '',
223
+        'default_argument_type' => 'current_user',
224
+        'default_argument' => '',
225
+        'validate_type' => 'none',
226
+        'validate_fail' => 'not found',
227
+        'break_phrase' => 0,
228
+        'not' => 0,
229
+        'flag_friend_include_arg_user' => 0,
230
+        'id' => 'friend_uid',
231
+        'table' => 'flag_friend',
232
+        'field' => 'friend_uid',
233
+        'override' => array(
234 234
         'button' => 'Use default',
235
-      ),
236
-      'relationship' => 'none',
237
-      'default_options_div_prefix' => '',
238
-      'default_argument_user' => 0,
239
-      'default_argument_fixed' => '',
240
-      'default_argument_php' => '',
241
-      'validate_argument_node_access' => 0,
242
-      'validate_argument_nid_type' => 'nid',
243
-      'validate_argument_vocabulary' => array(
235
+        ),
236
+        'relationship' => 'none',
237
+        'default_options_div_prefix' => '',
238
+        'default_argument_user' => 0,
239
+        'default_argument_fixed' => '',
240
+        'default_argument_php' => '',
241
+        'validate_argument_node_access' => 0,
242
+        'validate_argument_nid_type' => 'nid',
243
+        'validate_argument_vocabulary' => array(
244 244
         2 => 0,
245 245
         3 => 0,
246
-      ),
247
-      'validate_argument_type' => 'tid',
248
-      'validate_argument_node_flag_name' => '*relationship*',
249
-      'validate_argument_node_flag_test' => 'flaggable',
250
-      'validate_argument_node_flag_id_type' => 'id',
251
-      'validate_argument_user_flag_name' => '*relationship*',
252
-      'validate_argument_user_flag_test' => 'flaggable',
253
-      'validate_argument_user_flag_id_type' => 'id',
254
-      'validate_argument_php' => '',
255
-      'validate_user_argument_type' => 'uid',
256
-      'validate_user_roles' => array(
246
+        ),
247
+        'validate_argument_type' => 'tid',
248
+        'validate_argument_node_flag_name' => '*relationship*',
249
+        'validate_argument_node_flag_test' => 'flaggable',
250
+        'validate_argument_node_flag_id_type' => 'id',
251
+        'validate_argument_user_flag_name' => '*relationship*',
252
+        'validate_argument_user_flag_test' => 'flaggable',
253
+        'validate_argument_user_flag_id_type' => 'id',
254
+        'validate_argument_php' => '',
255
+        'validate_user_argument_type' => 'uid',
256
+        'validate_user_roles' => array(
257 257
         2 => 0,
258 258
         3 => 0,
259 259
         5 => 0,
260 260
         4 => 0,
261 261
         6 => 0,
262
-      ),
263
-      'me_redirect' => 0,
264
-      'me_validate_user_argument_type' => 'uid',
265
-      'me_validate_user_roles' => array(
262
+        ),
263
+        'me_redirect' => 0,
264
+        'me_validate_user_argument_type' => 'uid',
265
+        'me_validate_user_roles' => array(
266 266
         2 => 0,
267 267
         3 => 0,
268 268
         5 => 0,
269 269
         4 => 0,
270 270
         6 => 0,
271
-      ),
272
-      'default_taxonomy_tid_term_page' => 0,
273
-      'default_taxonomy_tid_node' => 0,
274
-      'default_taxonomy_tid_limit' => 0,
275
-      'default_taxonomy_tid_vids' => array(
271
+        ),
272
+        'default_taxonomy_tid_term_page' => 0,
273
+        'default_taxonomy_tid_node' => 0,
274
+        'default_taxonomy_tid_limit' => 0,
275
+        'default_taxonomy_tid_vids' => array(
276 276
         2 => 0,
277 277
         3 => 0,
278
-      ),
279
-      'validate_argument_node_type' => array(
278
+        ),
279
+        'validate_argument_node_type' => array(
280 280
         'page' => 0,
281 281
         'profile' => 0,
282 282
         'forum' => 0,
@@ -284,33 +284,33 @@  discard block
 block discarded – undo
284 284
         'news' => 0,
285 285
         'story' => 0,
286 286
         'team' => 0,
287
-      ),
288
-      'validate_argument_transform' => 0,
289
-      'validate_user_restrict_roles' => 0,
290
-      'me_validate_user_restrict_roles' => 0,
291
-    ),
292
-  ));
293
-  $handler->override_option('title', 'Friends');
294
-  $handler->override_option('path', 'account/%/friends/all');
295
-  $handler->override_option('menu', array(
287
+        ),
288
+        'validate_argument_transform' => 0,
289
+        'validate_user_restrict_roles' => 0,
290
+        'me_validate_user_restrict_roles' => 0,
291
+    ),
292
+    ));
293
+    $handler->override_option('title', 'Friends');
294
+    $handler->override_option('path', 'account/%/friends/all');
295
+    $handler->override_option('menu', array(
296 296
     'type' => 'default tab',
297 297
     'title' => bts('View All Friends', array(), NULL, 'boinc:friends-page'),
298 298
     'description' => '',
299 299
     'weight' => '-10',
300 300
     'name' => 'navigation',
301
-  ));
302
-  $handler->override_option('tab_options', array(
301
+    ));
302
+    $handler->override_option('tab_options', array(
303 303
     'type' => 'normal',
304 304
     'title' => 'Friends',
305 305
     'description' => '',
306 306
     'weight' => '0',
307 307
     'name' => 'navigation',
308
-  ));
309
-  $handler = $view->new_display('page', 'Page (pending)', 'page_2');
310
-  $handler->override_option('fields', array(
308
+    ));
309
+    $handler = $view->new_display('page', 'Page (pending)', 'page_2');
310
+    $handler->override_option('fields', array(
311 311
     'picture' => array(
312
-      'label' => 'User',
313
-      'alter' => array(
312
+        'label' => 'User',
313
+        'alter' => array(
314 314
         'alter_text' => 0,
315 315
         'text' => '',
316 316
         'make_link' => 0,
@@ -329,46 +329,46 @@  discard block
 block discarded – undo
329 329
         'ellipsis' => 1,
330 330
         'html' => 0,
331 331
         'strip_tags' => 0,
332
-      ),
333
-      'empty' => '',
334
-      'hide_empty' => 0,
335
-      'empty_zero' => 0,
336
-      'hide_alter_empty' => 1,
337
-      'exclude' => 1,
338
-      'id' => 'picture',
339
-      'table' => 'users',
340
-      'field' => 'picture',
341
-      'override' => array(
332
+        ),
333
+        'empty' => '',
334
+        'hide_empty' => 0,
335
+        'empty_zero' => 0,
336
+        'hide_alter_empty' => 1,
337
+        'exclude' => 1,
338
+        'id' => 'picture',
339
+        'table' => 'users',
340
+        'field' => 'picture',
341
+        'override' => array(
342 342
         'button' => 'Use default',
343
-      ),
344
-      'relationship' => 'none',
343
+        ),
344
+        'relationship' => 'none',
345 345
     ),
346 346
     'name' => array(
347
-      'label' => 'Name',
348
-      'link_to_user' => 1,
349
-      'exclude' => 0,
350
-      'id' => 'name',
351
-      'table' => 'users',
352
-      'field' => 'name',
353
-      'override' => array(
347
+        'label' => 'Name',
348
+        'link_to_user' => 1,
349
+        'exclude' => 0,
350
+        'id' => 'name',
351
+        'table' => 'users',
352
+        'field' => 'name',
353
+        'override' => array(
354 354
         'button' => 'Use default',
355
-      ),
356
-      'relationship' => 'none',
355
+        ),
356
+        'relationship' => 'none',
357 357
     ),
358 358
     'message' => array(
359
-      'label' => 'Message',
360
-      'exclude' => 0,
361
-      'id' => 'message',
362
-      'table' => 'flag_friend_message',
363
-      'field' => 'message',
364
-      'relationship' => 'flag_friend_content_rel',
365
-      'override' => array(
359
+        'label' => 'Message',
360
+        'exclude' => 0,
361
+        'id' => 'message',
362
+        'table' => 'flag_friend_message',
363
+        'field' => 'message',
364
+        'relationship' => 'flag_friend_content_rel',
365
+        'override' => array(
366 366
         'button' => 'Use default',
367
-      ),
367
+        ),
368 368
     ),
369 369
     'uid' => array(
370
-      'label' => 'Flag friend links',
371
-      'alter' => array(
370
+        'label' => 'Flag friend links',
371
+        'alter' => array(
372 372
         'alter_text' => 1,
373 373
         'text' => '<ul class="tab-list">
374 374
   <li class="alt tab">[uid]</li>',
@@ -388,23 +388,23 @@  discard block
 block discarded – undo
388 388
         'ellipsis' => 1,
389 389
         'html' => 0,
390 390
         'strip_tags' => 0,
391
-      ),
392
-      'empty' => '',
393
-      'hide_empty' => 0,
394
-      'empty_zero' => 0,
395
-      'hide_alter_empty' => 1,
396
-      'exclude' => 0,
397
-      'id' => 'uid',
398
-      'table' => 'flag_friend',
399
-      'field' => 'uid',
400
-      'override' => array(
391
+        ),
392
+        'empty' => '',
393
+        'hide_empty' => 0,
394
+        'empty_zero' => 0,
395
+        'hide_alter_empty' => 1,
396
+        'exclude' => 0,
397
+        'id' => 'uid',
398
+        'table' => 'flag_friend',
399
+        'field' => 'uid',
400
+        'override' => array(
401 401
         'button' => 'Use default',
402
-      ),
403
-      'relationship' => 'none',
402
+        ),
403
+        'relationship' => 'none',
404 404
     ),
405 405
     'ops' => array(
406
-      'label' => '',
407
-      'alter' => array(
406
+        'label' => '',
407
+        'alter' => array(
408 408
         'alter_text' => 1,
409 409
         'text' => '  <li class="first alt tab">[ops]</li>
410 410
 </ul>',
@@ -424,148 +424,148 @@  discard block
 block discarded – undo
424 424
         'ellipsis' => 1,
425 425
         'html' => 0,
426 426
         'strip_tags' => 0,
427
-      ),
428
-      'empty' => '',
429
-      'hide_empty' => 0,
430
-      'empty_zero' => 0,
431
-      'hide_alter_empty' => 1,
432
-      'link_type' => '',
433
-      'exclude' => 0,
434
-      'id' => 'ops',
435
-      'table' => 'flag_content',
436
-      'field' => 'ops',
437
-      'relationship' => 'flag_friend_content_rel',
438
-      'override' => array(
427
+        ),
428
+        'empty' => '',
429
+        'hide_empty' => 0,
430
+        'empty_zero' => 0,
431
+        'hide_alter_empty' => 1,
432
+        'link_type' => '',
433
+        'exclude' => 0,
434
+        'id' => 'ops',
435
+        'table' => 'flag_content',
436
+        'field' => 'ops',
437
+        'relationship' => 'flag_friend_content_rel',
438
+        'override' => array(
439 439
         'button' => 'Use default',
440
-      ),
440
+        ),
441 441
     ),
442
-  ));
443
-  $handler->override_option('arguments', array(
442
+    ));
443
+    $handler->override_option('arguments', array(
444 444
     'content_id' => array(
445
-      'default_action' => 'default',
446
-      'style_plugin' => 'default_summary',
447
-      'style_options' => array(),
448
-      'wildcard' => 'all',
449
-      'wildcard_substitution' => 'All',
450
-      'title' => '',
451
-      'default_argument_type' => 'user',
452
-      'default_argument' => '',
453
-      'validate_type' => 'php',
454
-      'validate_fail' => 'not found',
455
-      'break_phrase' => 0,
456
-      'not' => 0,
457
-      'id' => 'content_id',
458
-      'table' => 'flag_content',
459
-      'field' => 'content_id',
460
-      'relationship' => 'flag_friend_content_rel',
461
-      'override' => array(
445
+        'default_action' => 'default',
446
+        'style_plugin' => 'default_summary',
447
+        'style_options' => array(),
448
+        'wildcard' => 'all',
449
+        'wildcard_substitution' => 'All',
450
+        'title' => '',
451
+        'default_argument_type' => 'user',
452
+        'default_argument' => '',
453
+        'validate_type' => 'php',
454
+        'validate_fail' => 'not found',
455
+        'break_phrase' => 0,
456
+        'not' => 0,
457
+        'id' => 'content_id',
458
+        'table' => 'flag_content',
459
+        'field' => 'content_id',
460
+        'relationship' => 'flag_friend_content_rel',
461
+        'override' => array(
462 462
         'button' => 'Use default',
463
-      ),
464
-      'default_options_div_prefix' => '',
465
-      'default_argument_user' => 0,
466
-      'default_argument_fixed' => '',
467
-      'default_argument_php' => '',
468
-      'validate_argument_node_access' => 0,
469
-      'validate_argument_nid_type' => 'nid',
470
-      'validate_argument_vocabulary' => array(),
471
-      'validate_argument_type' => 'tid',
472
-      'validate_argument_node_flag_name' => '*relationship*',
473
-      'validate_argument_node_flag_test' => 'flaggable',
474
-      'validate_argument_node_flag_id_type' => 'id',
475
-      'validate_argument_user_flag_name' => '*relationship*',
476
-      'validate_argument_user_flag_test' => 'flaggable',
477
-      'validate_argument_user_flag_id_type' => 'id',
478
-      'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
463
+        ),
464
+        'default_options_div_prefix' => '',
465
+        'default_argument_user' => 0,
466
+        'default_argument_fixed' => '',
467
+        'default_argument_php' => '',
468
+        'validate_argument_node_access' => 0,
469
+        'validate_argument_nid_type' => 'nid',
470
+        'validate_argument_vocabulary' => array(),
471
+        'validate_argument_type' => 'tid',
472
+        'validate_argument_node_flag_name' => '*relationship*',
473
+        'validate_argument_node_flag_test' => 'flaggable',
474
+        'validate_argument_node_flag_id_type' => 'id',
475
+        'validate_argument_user_flag_name' => '*relationship*',
476
+        'validate_argument_user_flag_test' => 'flaggable',
477
+        'validate_argument_user_flag_id_type' => 'id',
478
+        'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
479 479
                                       return FALSE;
480 480
                                     }
481 481
                                     return TRUE;',
482 482
     ),
483
-  ));
484
-  $handler->override_option('title', 'Friend Requests');
485
-  $handler->override_option('header', 'These are users who would like to be your friend.');
486
-  $handler->override_option('header_format', '5');
487
-  $handler->override_option('header_empty', 0);
488
-  $handler->override_option('empty', 'No Friend Requests.');
489
-  $handler->override_option('style_options', array(
483
+    ));
484
+    $handler->override_option('title', 'Friend Requests');
485
+    $handler->override_option('header', 'These are users who would like to be your friend.');
486
+    $handler->override_option('header_format', '5');
487
+    $handler->override_option('header_empty', 0);
488
+    $handler->override_option('empty', 'No Friend Requests.');
489
+    $handler->override_option('style_options', array(
490 490
     'grouping' => '',
491 491
     'override' => 1,
492 492
     'sticky' => 0,
493 493
     'order' => 'asc',
494 494
     'summary' => '',
495 495
     'columns' => array(
496
-      'picture' => 'picture',
497
-      'name' => 'name',
498
-      'message' => 'message',
499
-      'ops' => 'ops',
500
-      'uid' => 'ops',
496
+        'picture' => 'picture',
497
+        'name' => 'name',
498
+        'message' => 'message',
499
+        'ops' => 'ops',
500
+        'uid' => 'ops',
501 501
     ),
502 502
     'info' => array(
503
-      'picture' => array(
503
+        'picture' => array(
504 504
         'sortable' => 0,
505 505
         'separator' => '',
506
-      ),
507
-      'name' => array(
506
+        ),
507
+        'name' => array(
508 508
         'sortable' => 0,
509 509
         'separator' => '',
510
-      ),
511
-      'message' => array(
510
+        ),
511
+        'message' => array(
512 512
         'separator' => '',
513
-      ),
514
-      'ops' => array(
513
+        ),
514
+        'ops' => array(
515 515
         'separator' => '',
516
-      ),
517
-      'uid' => array(
516
+        ),
517
+        'uid' => array(
518 518
         'separator' => '',
519
-      ),
519
+        ),
520 520
     ),
521 521
     'default' => '-1',
522
-  ));
523
-  $handler->override_option('path', 'account/%/friends/pending');
524
-  $handler->override_option('menu', array(
522
+    ));
523
+    $handler->override_option('path', 'account/%/friends/pending');
524
+    $handler->override_option('menu', array(
525 525
     'type' => 'tab',
526 526
     'title' => bts('Friend Requests', array(), NULL, 'boinc:friends-page'),
527 527
     'description' => '',
528 528
     'weight' => '0',
529 529
     'name' => 'navigation',
530
-  ));
531
-  $handler->override_option('tab_options', array(
530
+    ));
531
+    $handler->override_option('tab_options', array(
532 532
     'type' => 'none',
533 533
     'title' => '',
534 534
     'description' => '',
535 535
     'weight' => 0,
536 536
     'name' => 'navigation',
537
-  ));
538
-  $handler = $view->new_display('page', 'Page (flagged)', 'page_3');
539
-  $handler->override_option('relationships', array(
537
+    ));
538
+    $handler = $view->new_display('page', 'Page (flagged)', 'page_3');
539
+    $handler->override_option('relationships', array(
540 540
     'flag_content_rel' => array(
541
-      'label' => 'flag',
542
-      'required' => 1,
543
-      'flag' => 'friend',
544
-      'user_scope' => 'any',
545
-      'id' => 'flag_content_rel',
546
-      'table' => 'users',
547
-      'field' => 'flag_content_rel',
548
-      'override' => array(
541
+        'label' => 'flag',
542
+        'required' => 1,
543
+        'flag' => 'friend',
544
+        'user_scope' => 'any',
545
+        'id' => 'flag_content_rel',
546
+        'table' => 'users',
547
+        'field' => 'flag_content_rel',
548
+        'override' => array(
549 549
         'button' => 'Use default',
550
-      ),
551
-      'relationship' => 'none',
550
+        ),
551
+        'relationship' => 'none',
552 552
     ),
553 553
     'uid' => array(
554
-      'label' => 'Flag user',
555
-      'required' => 0,
556
-      'id' => 'uid',
557
-      'table' => 'flag_content',
558
-      'field' => 'uid',
559
-      'relationship' => 'flag_content_rel',
560
-      'override' => array(
554
+        'label' => 'Flag user',
555
+        'required' => 0,
556
+        'id' => 'uid',
557
+        'table' => 'flag_content',
558
+        'field' => 'uid',
559
+        'relationship' => 'flag_content_rel',
560
+        'override' => array(
561 561
         'button' => 'Use default',
562
-      ),
562
+        ),
563 563
     ),
564
-  ));
565
-  $handler->override_option('fields', array(
564
+    ));
565
+    $handler->override_option('fields', array(
566 566
     'picture' => array(
567
-      'label' => 'User',
568
-      'alter' => array(
567
+        'label' => 'User',
568
+        'alter' => array(
569 569
         'alter_text' => 0,
570 570
         'text' => '',
571 571
         'make_link' => 0,
@@ -584,46 +584,46 @@  discard block
 block discarded – undo
584 584
         'ellipsis' => 1,
585 585
         'html' => 0,
586 586
         'strip_tags' => 0,
587
-      ),
588
-      'empty' => '',
589
-      'hide_empty' => 0,
590
-      'empty_zero' => 0,
591
-      'hide_alter_empty' => 1,
592
-      'exclude' => 1,
593
-      'id' => 'picture',
594
-      'table' => 'users',
595
-      'field' => 'picture',
596
-      'override' => array(
587
+        ),
588
+        'empty' => '',
589
+        'hide_empty' => 0,
590
+        'empty_zero' => 0,
591
+        'hide_alter_empty' => 1,
592
+        'exclude' => 1,
593
+        'id' => 'picture',
594
+        'table' => 'users',
595
+        'field' => 'picture',
596
+        'override' => array(
597 597
         'button' => 'Use default',
598
-      ),
599
-      'relationship' => 'none',
598
+        ),
599
+        'relationship' => 'none',
600 600
     ),
601 601
     'name' => array(
602
-      'label' => 'Name',
603
-      'link_to_user' => 1,
604
-      'exclude' => 0,
605
-      'id' => 'name',
606
-      'table' => 'users',
607
-      'field' => 'name',
608
-      'override' => array(
602
+        'label' => 'Name',
603
+        'link_to_user' => 1,
604
+        'exclude' => 0,
605
+        'id' => 'name',
606
+        'table' => 'users',
607
+        'field' => 'name',
608
+        'override' => array(
609 609
         'button' => 'Use default',
610
-      ),
611
-      'relationship' => 'none',
610
+        ),
611
+        'relationship' => 'none',
612 612
     ),
613 613
     'message' => array(
614
-      'label' => 'Message',
615
-      'exclude' => 0,
616
-      'id' => 'message',
617
-      'table' => 'flag_friend_message',
618
-      'field' => 'message',
619
-      'relationship' => 'flag_content_rel',
620
-      'override' => array(
614
+        'label' => 'Message',
615
+        'exclude' => 0,
616
+        'id' => 'message',
617
+        'table' => 'flag_friend_message',
618
+        'field' => 'message',
619
+        'relationship' => 'flag_content_rel',
620
+        'override' => array(
621 621
         'button' => 'Use default',
622
-      ),
622
+        ),
623 623
     ),
624 624
     'ops' => array(
625
-      'label' => '',
626
-      'alter' => array(
625
+        'label' => '',
626
+        'alter' => array(
627 627
         'alter_text' => 0,
628 628
         'text' => '',
629 629
         'make_link' => 0,
@@ -642,113 +642,113 @@  discard block
 block discarded – undo
642 642
         'ellipsis' => 1,
643 643
         'html' => 0,
644 644
         'strip_tags' => 0,
645
-      ),
646
-      'empty' => '',
647
-      'hide_empty' => 0,
648
-      'empty_zero' => 0,
649
-      'hide_alter_empty' => 1,
650
-      'link_type' => '',
651
-      'exclude' => 0,
652
-      'id' => 'ops',
653
-      'table' => 'flag_content',
654
-      'field' => 'ops',
655
-      'relationship' => 'flag_content_rel',
656
-      'override' => array(
645
+        ),
646
+        'empty' => '',
647
+        'hide_empty' => 0,
648
+        'empty_zero' => 0,
649
+        'hide_alter_empty' => 1,
650
+        'link_type' => '',
651
+        'exclude' => 0,
652
+        'id' => 'ops',
653
+        'table' => 'flag_content',
654
+        'field' => 'ops',
655
+        'relationship' => 'flag_content_rel',
656
+        'override' => array(
657 657
         'button' => 'Use default',
658
-      ),
658
+        ),
659 659
     ),
660
-  ));
661
-  $handler->override_option('arguments', array(
660
+    ));
661
+    $handler->override_option('arguments', array(
662 662
     'uid' => array(
663
-      'default_action' => 'default',
664
-      'style_plugin' => 'default_summary',
665
-      'style_options' => array(),
666
-      'wildcard' => 'all',
667
-      'wildcard_substitution' => 'All',
668
-      'title' => '',
669
-      'breadcrumb' => '',
670
-      'default_argument_type' => 'user',
671
-      'default_argument' => '',
672
-      'validate_type' => 'php',
673
-      'validate_fail' => 'not found',
674
-      'break_phrase' => 0,
675
-      'not' => 0,
676
-      'id' => 'uid',
677
-      'table' => 'users',
678
-      'field' => 'uid',
679
-      'validate_user_argument_type' => 'uid',
680
-      'validate_user_roles' => array(
663
+        'default_action' => 'default',
664
+        'style_plugin' => 'default_summary',
665
+        'style_options' => array(),
666
+        'wildcard' => 'all',
667
+        'wildcard_substitution' => 'All',
668
+        'title' => '',
669
+        'breadcrumb' => '',
670
+        'default_argument_type' => 'user',
671
+        'default_argument' => '',
672
+        'validate_type' => 'php',
673
+        'validate_fail' => 'not found',
674
+        'break_phrase' => 0,
675
+        'not' => 0,
676
+        'id' => 'uid',
677
+        'table' => 'users',
678
+        'field' => 'uid',
679
+        'validate_user_argument_type' => 'uid',
680
+        'validate_user_roles' => array(
681 681
         2 => 0,
682
-      ),
683
-      'override' => array(
682
+        ),
683
+        'override' => array(
684 684
         'button' => 'Use default',
685
-      ),
686
-      'relationship' => 'uid',
687
-      'default_options_div_prefix' => '',
688
-      'default_argument_user' => 0,
689
-      'default_argument_fixed' => '',
690
-      'default_argument_php' => '',
691
-      'validate_argument_node_type' => array(
685
+        ),
686
+        'relationship' => 'uid',
687
+        'default_options_div_prefix' => '',
688
+        'default_argument_user' => 0,
689
+        'default_argument_fixed' => '',
690
+        'default_argument_php' => '',
691
+        'validate_argument_node_type' => array(
692 692
         'page' => 0,
693 693
         'story' => 0,
694
-      ),
695
-      'validate_argument_node_access' => 0,
696
-      'validate_argument_nid_type' => 'nid',
697
-      'validate_argument_vocabulary' => array(),
698
-      'validate_argument_type' => 'tid',
699
-      'validate_argument_transform' => 0,
700
-      'validate_user_restrict_roles' => 0,
701
-      'validate_argument_node_flag_name' => '*relationship*',
702
-      'validate_argument_node_flag_test' => 'flaggable',
703
-      'validate_argument_node_flag_id_type' => 'id',
704
-      'validate_argument_user_flag_name' => '*relationship*',
705
-      'validate_argument_user_flag_test' => 'flaggable',
706
-      'validate_argument_user_flag_id_type' => 'id',
707
-      'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
694
+        ),
695
+        'validate_argument_node_access' => 0,
696
+        'validate_argument_nid_type' => 'nid',
697
+        'validate_argument_vocabulary' => array(),
698
+        'validate_argument_type' => 'tid',
699
+        'validate_argument_transform' => 0,
700
+        'validate_user_restrict_roles' => 0,
701
+        'validate_argument_node_flag_name' => '*relationship*',
702
+        'validate_argument_node_flag_test' => 'flaggable',
703
+        'validate_argument_node_flag_id_type' => 'id',
704
+        'validate_argument_user_flag_name' => '*relationship*',
705
+        'validate_argument_user_flag_test' => 'flaggable',
706
+        'validate_argument_user_flag_id_type' => 'id',
707
+        'validate_argument_php' => 'if ($argument !== $GLOBALS[\'user\']->uid && !user_access(\'administer users\')) {
708 708
     return FALSE;
709 709
   }
710 710
   return TRUE;',
711 711
     ),
712
-  ));
713
-  $handler->override_option('title', 'Awaiting Friend Approvals');
714
-  $handler->override_option('header', 'These are users who you have requested to be friends with.');
715
-  $handler->override_option('header_format', '5');
716
-  $handler->override_option('header_empty', 1);
717
-  $handler->override_option('empty', 'No Friend Requests.');
718
-  $handler->override_option('path', 'account/%/friends/flagged');
719
-  $handler->override_option('menu', array(
712
+    ));
713
+    $handler->override_option('title', 'Awaiting Friend Approvals');
714
+    $handler->override_option('header', 'These are users who you have requested to be friends with.');
715
+    $handler->override_option('header_format', '5');
716
+    $handler->override_option('header_empty', 1);
717
+    $handler->override_option('empty', 'No Friend Requests.');
718
+    $handler->override_option('path', 'account/%/friends/flagged');
719
+    $handler->override_option('menu', array(
720 720
     'type' => 'tab',
721 721
     'title' => bts('Awaiting Friend Approvals', array(), NULL, 'boinc:friends-page'),
722 722
     'description' => '',
723 723
     'weight' => '0',
724 724
     'name' => 'navigation',
725
-  ));
726
-  $handler->override_option('tab_options', array(
725
+    ));
726
+    $handler->override_option('tab_options', array(
727 727
     'type' => 'none',
728 728
     'title' => '',
729 729
     'description' => '',
730 730
     'weight' => 0,
731 731
     'name' => 'navigation',
732
-  ));
733
-  $handler = $view->new_display('block', 'Current user\'s Friends block', 'block_1');
734
-  $handler->override_option('relationships', array(
732
+    ));
733
+    $handler = $view->new_display('block', 'Current user\'s Friends block', 'block_1');
734
+    $handler->override_option('relationships', array(
735 735
     'content_profile_rel' => array(
736
-      'label' => 'Content Profile',
737
-      'required' => 0,
738
-      'type' => 'profile',
739
-      'id' => 'content_profile_rel',
740
-      'table' => 'users',
741
-      'field' => 'content_profile_rel',
742
-      'override' => array(
736
+        'label' => 'Content Profile',
737
+        'required' => 0,
738
+        'type' => 'profile',
739
+        'id' => 'content_profile_rel',
740
+        'table' => 'users',
741
+        'field' => 'content_profile_rel',
742
+        'override' => array(
743 743
         'button' => 'Use default',
744
-      ),
745
-      'relationship' => 'none',
744
+        ),
745
+        'relationship' => 'none',
746 746
     ),
747
-  ));
748
-  $handler->override_option('fields', array(
747
+    ));
748
+    $handler->override_option('fields', array(
749 749
     'name' => array(
750
-      'label' => 'Name',
751
-      'alter' => array(
750
+        'label' => 'Name',
751
+        'alter' => array(
752 752
         'alter_text' => 0,
753 753
         'text' => '',
754 754
         'make_link' => 0,
@@ -767,26 +767,26 @@  discard block
 block discarded – undo
767 767
         'ellipsis' => 1,
768 768
         'html' => 0,
769 769
         'strip_tags' => 0,
770
-      ),
771
-      'empty' => '',
772
-      'hide_empty' => 0,
773
-      'empty_zero' => 0,
774
-      'hide_alter_empty' => 1,
775
-      'link_to_user' => 0,
776
-      'overwrite_anonymous' => 0,
777
-      'anonymous_text' => '',
778
-      'exclude' => 0,
779
-      'id' => 'name',
780
-      'table' => 'users',
781
-      'field' => 'name',
782
-      'override' => array(
770
+        ),
771
+        'empty' => '',
772
+        'hide_empty' => 0,
773
+        'empty_zero' => 0,
774
+        'hide_alter_empty' => 1,
775
+        'link_to_user' => 0,
776
+        'overwrite_anonymous' => 0,
777
+        'anonymous_text' => '',
778
+        'exclude' => 0,
779
+        'id' => 'name',
780
+        'table' => 'users',
781
+        'field' => 'name',
782
+        'override' => array(
783 783
         'button' => 'Use default',
784
-      ),
785
-      'relationship' => 'none',
784
+        ),
785
+        'relationship' => 'none',
786 786
     ),
787 787
     'field_image_fid' => array(
788
-      'label' => '',
789
-      'alter' => array(
788
+        'label' => '',
789
+        'alter' => array(
790 790
         'alter_text' => 0,
791 791
         'text' => '',
792 792
         'make_link' => 0,
@@ -805,32 +805,32 @@  discard block
 block discarded – undo
805 805
         'ellipsis' => 1,
806 806
         'html' => 0,
807 807
         'strip_tags' => 0,
808
-      ),
809
-      'empty' => '',
810
-      'hide_empty' => 0,
811
-      'empty_zero' => 0,
812
-      'hide_alter_empty' => 1,
813
-      'link_to_node' => 0,
814
-      'label_type' => 'none',
815
-      'format' => 'image_plain',
816
-      'multiple' => array(
808
+        ),
809
+        'empty' => '',
810
+        'hide_empty' => 0,
811
+        'empty_zero' => 0,
812
+        'hide_alter_empty' => 1,
813
+        'link_to_node' => 0,
814
+        'label_type' => 'none',
815
+        'format' => 'image_plain',
816
+        'multiple' => array(
817 817
         'group' => TRUE,
818 818
         'multiple_number' => '',
819 819
         'multiple_from' => '',
820 820
         'multiple_reversed' => FALSE,
821
-      ),
822
-      'exclude' => 0,
823
-      'id' => 'field_image_fid',
824
-      'table' => 'node_data_field_image',
825
-      'field' => 'field_image_fid',
826
-      'relationship' => 'content_profile_rel',
827
-      'override' => array(
821
+        ),
822
+        'exclude' => 0,
823
+        'id' => 'field_image_fid',
824
+        'table' => 'node_data_field_image',
825
+        'field' => 'field_image_fid',
826
+        'relationship' => 'content_profile_rel',
827
+        'override' => array(
828 828
         'button' => 'Use default',
829
-      ),
829
+        ),
830 830
     ),
831 831
     'uid' => array(
832
-      'label' => 'Uid',
833
-      'alter' => array(
832
+        'label' => 'Uid',
833
+        'alter' => array(
834 834
         'alter_text' => 0,
835 835
         'text' => '',
836 836
         'make_link' => 0,
@@ -849,70 +849,70 @@  discard block
 block discarded – undo
849 849
         'ellipsis' => 1,
850 850
         'html' => 0,
851 851
         'strip_tags' => 0,
852
-      ),
853
-      'empty' => '',
854
-      'hide_empty' => 0,
855
-      'empty_zero' => 0,
856
-      'hide_alter_empty' => 1,
857
-      'link_to_user' => 0,
858
-      'exclude' => 0,
859
-      'id' => 'uid',
860
-      'table' => 'users',
861
-      'field' => 'uid',
862
-      'override' => array(
852
+        ),
853
+        'empty' => '',
854
+        'hide_empty' => 0,
855
+        'empty_zero' => 0,
856
+        'hide_alter_empty' => 1,
857
+        'link_to_user' => 0,
858
+        'exclude' => 0,
859
+        'id' => 'uid',
860
+        'table' => 'users',
861
+        'field' => 'uid',
862
+        'override' => array(
863 863
         'button' => 'Use default',
864
-      ),
865
-      'relationship' => 'none',
864
+        ),
865
+        'relationship' => 'none',
866 866
     ),
867
-  ));
868
-  $handler->override_option('arguments', array(
867
+    ));
868
+    $handler->override_option('arguments', array(
869 869
     'friend_uid' => array(
870
-      'default_action' => 'default',
871
-      'style_plugin' => 'default_summary',
872
-      'style_options' => array(),
873
-      'wildcard' => 'all',
874
-      'wildcard_substitution' => 'All',
875
-      'title' => '',
876
-      'default_argument_type' => 'current_user',
877
-      'default_argument' => '',
878
-      'validate_type' => 'none',
879
-      'validate_fail' => 'not found',
880
-      'break_phrase' => 0,
881
-      'not' => 0,
882
-      'id' => 'friend_uid',
883
-      'table' => 'flag_friend',
884
-      'field' => 'friend_uid',
885
-      'override' => array(
870
+        'default_action' => 'default',
871
+        'style_plugin' => 'default_summary',
872
+        'style_options' => array(),
873
+        'wildcard' => 'all',
874
+        'wildcard_substitution' => 'All',
875
+        'title' => '',
876
+        'default_argument_type' => 'current_user',
877
+        'default_argument' => '',
878
+        'validate_type' => 'none',
879
+        'validate_fail' => 'not found',
880
+        'break_phrase' => 0,
881
+        'not' => 0,
882
+        'id' => 'friend_uid',
883
+        'table' => 'flag_friend',
884
+        'field' => 'friend_uid',
885
+        'override' => array(
886 886
         'button' => 'Use default',
887
-      ),
888
-      'relationship' => 'none',
889
-      'default_options_div_prefix' => '',
890
-      'default_argument_user' => 0,
891
-      'default_argument_fixed' => '',
892
-      'default_argument_php' => '',
893
-      'validate_argument_node_access' => 0,
894
-      'validate_argument_nid_type' => 'nid',
895
-      'validate_argument_node_flag_name' => '*relationship*',
896
-      'validate_argument_node_flag_test' => 'flaggable',
897
-      'validate_argument_node_flag_id_type' => 'id',
898
-      'validate_argument_user_flag_name' => '*relationship*',
899
-      'validate_argument_user_flag_test' => 'flaggable',
900
-      'validate_argument_user_flag_id_type' => 'id',
901
-      'validate_argument_php' => '',
902
-    ),
903
-  ));
904
-  $handler->override_option('header_format', '3');
905
-  $handler->override_option('header_empty', 0);
906
-  $handler->override_option('items_per_page', 6);
907
-  $handler->override_option('use_pager', '0');
908
-  $handler->override_option('use_more', 1);
909
-  $handler->override_option('use_more_always', 1);
910
-  $handler->override_option('style_plugin', 'default');
911
-  $handler->override_option('style_options', array());
912
-  $handler->override_option('block_description', '');
913
-  $handler->override_option('block_caching', -1);
887
+        ),
888
+        'relationship' => 'none',
889
+        'default_options_div_prefix' => '',
890
+        'default_argument_user' => 0,
891
+        'default_argument_fixed' => '',
892
+        'default_argument_php' => '',
893
+        'validate_argument_node_access' => 0,
894
+        'validate_argument_nid_type' => 'nid',
895
+        'validate_argument_node_flag_name' => '*relationship*',
896
+        'validate_argument_node_flag_test' => 'flaggable',
897
+        'validate_argument_node_flag_id_type' => 'id',
898
+        'validate_argument_user_flag_name' => '*relationship*',
899
+        'validate_argument_user_flag_test' => 'flaggable',
900
+        'validate_argument_user_flag_id_type' => 'id',
901
+        'validate_argument_php' => '',
902
+    ),
903
+    ));
904
+    $handler->override_option('header_format', '3');
905
+    $handler->override_option('header_empty', 0);
906
+    $handler->override_option('items_per_page', 6);
907
+    $handler->override_option('use_pager', '0');
908
+    $handler->override_option('use_more', 1);
909
+    $handler->override_option('use_more_always', 1);
910
+    $handler->override_option('style_plugin', 'default');
911
+    $handler->override_option('style_options', array());
912
+    $handler->override_option('block_description', '');
913
+    $handler->override_option('block_caching', -1);
914 914
 
915
-  $views[$view->name] = $view;
915
+    $views[$view->name] = $view;
916 916
 
917
-  return $views;
917
+    return $views;
918 918
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
   $view->base_table = 'users';
15 15
   $view->core = 6;
16 16
   $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
17
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
18 18
   $handler = $view->new_display('default', 'Defaults', 'default');
19 19
   $handler->override_option('relationships', array(
20 20
     'flag_friend_content_rel' => array(
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
       'operator' => '=',
78 78
       'value' => '1',
79 79
       'group' => '0',
80
-      'exposed' => FALSE,
80
+      'exposed' => false,
81 81
       'expose' => array(
82
-        'operator' => FALSE,
82
+        'operator' => false,
83 83
         'label' => '',
84 84
       ),
85 85
       'id' => 'status',
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
   $handler->override_option('cache', array(
96 96
     'type' => 'none',
97 97
   ));
98
-  $handler->override_option('empty', bts('No Friends have been added.', array(), NULL, 'boinc:friends-page'));
98
+  $handler->override_option('empty', bts('No Friends have been added.', array(), null, 'boinc:friends-page'));
99 99
   $handler->override_option('empty_format', '5');
100 100
   $handler->override_option('use_pager', '1');
101 101
   $handler->override_option('distinct', 1);
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
   $handler->override_option('path', 'account/%/friends/all');
295 295
   $handler->override_option('menu', array(
296 296
     'type' => 'default tab',
297
-    'title' => bts('View All Friends', array(), NULL, 'boinc:friends-page'),
297
+    'title' => bts('View All Friends', array(), null, 'boinc:friends-page'),
298 298
     'description' => '',
299 299
     'weight' => '-10',
300 300
     'name' => 'navigation',
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
   $handler->override_option('path', 'account/%/friends/pending');
524 524
   $handler->override_option('menu', array(
525 525
     'type' => 'tab',
526
-    'title' => bts('Friend Requests', array(), NULL, 'boinc:friends-page'),
526
+    'title' => bts('Friend Requests', array(), null, 'boinc:friends-page'),
527 527
     'description' => '',
528 528
     'weight' => '0',
529 529
     'name' => 'navigation',
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
   $handler->override_option('path', 'account/%/friends/flagged');
719 719
   $handler->override_option('menu', array(
720 720
     'type' => 'tab',
721
-    'title' => bts('Awaiting Friend Approvals', array(), NULL, 'boinc:friends-page'),
721
+    'title' => bts('Awaiting Friend Approvals', array(), null, 'boinc:friends-page'),
722 722
     'description' => '',
723 723
     'weight' => '0',
724 724
     'name' => 'navigation',
@@ -814,10 +814,10 @@  discard block
 block discarded – undo
814 814
       'label_type' => 'none',
815 815
       'format' => 'image_plain',
816 816
       'multiple' => array(
817
-        'group' => TRUE,
817
+        'group' => true,
818 818
         'multiple_number' => '',
819 819
         'multiple_from' => '',
820
-        'multiple_reversed' => FALSE,
820
+        'multiple_reversed' => false,
821 821
       ),
822 822
       'exclude' => 0,
823 823
       'id' => 'field_image_fid',
Please login to merge, or discard this patch.
user_account_project_list/user_account_project_list.panels_default.inc 2 patches
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 = 'user_project_list';
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();
@@ -34,18 +34,18 @@  discard block
 block discarded – undo
34 34
     $pane->panel = 'middle';
35 35
     $pane->type = 'custom';
36 36
     $pane->subtype = 'custom';
37
-    $pane->shown = TRUE;
37
+    $pane->shown = true;
38 38
     $pane->access = array();
39 39
     $pane->configuration = array(
40 40
       'admin_title' => 'Dashboard project table',
41
-      'title' => bts('Projects', array(), NULL, 'boinc:account-dashboard'),
41
+      'title' => bts('Projects', array(), null, 'boinc:account-dashboard'),
42 42
       'body' => '<?php echo boincuser_get_projects_table(); ?>',
43 43
       'format' => '3',
44
-      'substitute' => TRUE,
44
+      'substitute' => true,
45 45
     );
46 46
     $pane->cache = array();
47 47
     $pane->style = array(
48
-      'settings' => NULL,
48
+      'settings' => null,
49 49
     );
50 50
     $pane->css = array();
51 51
     $pane->extras = array();
Please login to merge, or discard this patch.
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_panels_mini().
5 5
  */
6 6
 function user_account_project_list_default_panels_mini() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
-  $mini->api_version = 1;
12
-  $mini->name = 'user_project_list';
13
-  $mini->category = 'BOINC';
14
-  $mini->admin_title = 'User project list';
15
-  $mini->admin_description = 'A list of all BOINC projects in which a user is participating';
16
-  $mini->requiredcontexts = array();
17
-  $mini->contexts = array();
18
-  $mini->relationships = array();
19
-  $display = new panels_display;
20
-  $display->layout = 'onecol';
21
-  $display->layout_settings = array();
22
-  $display->panel_settings = array(
9
+    $mini = new stdClass;
10
+    $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
+    $mini->api_version = 1;
12
+    $mini->name = 'user_project_list';
13
+    $mini->category = 'BOINC';
14
+    $mini->admin_title = 'User project list';
15
+    $mini->admin_description = 'A list of all BOINC projects in which a user is participating';
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 = 'user_project_list';
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 = 'user_project_list';
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' => 'Dashboard project table',
43
-      'title' => bts('Projects', array(), NULL, 'boinc:account-dashboard'),
44
-      'body' => '<?php echo boincuser_get_projects_table(); ?>',
45
-      'format' => '3',
46
-      'substitute' => TRUE,
42
+        'admin_title' => 'Dashboard project table',
43
+        'title' => bts('Projects', array(), NULL, 'boinc:account-dashboard'),
44
+        'body' => '<?php echo boincuser_get_projects_table(); ?>',
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['user_project_list'] = $mini;
57
+    $display->hide_title = PANELS_TITLE_FIXED;
58
+    $display->title_pane = 'new-1';
59
+    $mini->display = $display;
60
+    $export['user_project_list'] = $mini;
61 61
 
62
-  return $export;
62
+    return $export;
63 63
 }
Please login to merge, or discard this patch.
sites/all/features/user_preferences/user_preferences.views_default.inc 2 patches
Upper-Lower-Casing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
   $view->base_table = 'node';
15 15
   $view->core = 6;
16 16
   $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
17
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
18 18
   $handler = $view->new_display('default', 'Defaults', 'default');
19 19
   $handler->override_option('relationships', array(
20 20
     'flag_content_rel' => array(
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
       'hide_empty' => 0,
171 171
       'empty_zero' => 0,
172 172
       'hide_alter_empty' => 1,
173
-      'set_precision' => FALSE,
173
+      'set_precision' => false,
174 174
       'precision' => 0,
175 175
       'decimal' => '.',
176 176
       'separator' => ',',
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
   $handler->override_option('path', 'account/prefs/subscriptions');
449 449
   $handler->override_option('menu', array(
450 450
     'type' => 'tab',
451
-    'title' => bts('Subscriptions', array(), NULL, 'boinc:account-dashboard'),
451
+    'title' => bts('Subscriptions', array(), null, 'boinc:account-dashboard'),
452 452
     'description' => '',
453 453
     'weight' => '20',
454 454
     'name' => 'primary-links',
@@ -598,7 +598,7 @@  discard block
 block discarded – undo
598 598
       'hide_empty' => 0,
599 599
       'empty_zero' => 0,
600 600
       'hide_alter_empty' => 1,
601
-      'set_precision' => FALSE,
601
+      'set_precision' => false,
602 602
       'precision' => 0,
603 603
       'decimal' => '.',
604 604
       'separator' => ',',
@@ -778,7 +778,7 @@  discard block
 block discarded – undo
778 778
       'relationship' => 'none',
779 779
     ),
780 780
     'last_updated' => array(
781
-      'label' => bts('Updated', array(), NULL, 'boinc:account-dashboard'),
781
+      'label' => bts('Updated', array(), null, 'boinc:account-dashboard'),
782 782
       'alter' => array(
783 783
         'alter_text' => 0,
784 784
         'text' => '',
@@ -895,15 +895,15 @@  discard block
 block discarded – undo
895 895
     'weight' => 0,
896 896
   ));
897 897
   $handler->override_option('allow', array(
898
-    'use_pager' => FALSE,
899
-    'items_per_page' => FALSE,
900
-    'offset' => FALSE,
901
-    'link_to_view' => FALSE,
902
-    'more_link' => FALSE,
903
-    'path_override' => FALSE,
904
-    'title_override' => FALSE,
905
-    'exposed_form' => FALSE,
906
-    'fields_override' => FALSE,
898
+    'use_pager' => false,
899
+    'items_per_page' => false,
900
+    'offset' => false,
901
+    'link_to_view' => false,
902
+    'more_link' => false,
903
+    'path_override' => false,
904
+    'title_override' => false,
905
+    'exposed_form' => false,
906
+    'fields_override' => false,
907 907
   ));
908 908
   $handler->override_option('argument_input', array());
909 909
   $handler->override_option('link_to_view', 0);
Please login to merge, or discard this patch.
Indentation   +397 added lines, -397 removed lines patch added patch discarded remove patch
@@ -4,48 +4,48 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_views_default_views().
5 5
  */
6 6
 function user_preferences_views_default_views() {
7
-  $views = array();
7
+    $views = array();
8 8
 
9
-  // Exported view: subscriptions
10
-  $view = new view;
11
-  $view->name = 'subscriptions';
12
-  $view->description = '';
13
-  $view->tag = '';
14
-  $view->base_table = 'node';
15
-  $view->core = 6;
16
-  $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
-  $handler = $view->new_display('default', 'Defaults', 'default');
19
-  $handler->override_option('relationships', array(
9
+    // Exported view: subscriptions
10
+    $view = new view;
11
+    $view->name = 'subscriptions';
12
+    $view->description = '';
13
+    $view->tag = '';
14
+    $view->base_table = 'node';
15
+    $view->core = 6;
16
+    $view->api_version = '2';
17
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
+    $handler = $view->new_display('default', 'Defaults', 'default');
19
+    $handler->override_option('relationships', array(
20 20
     'flag_content_rel' => array(
21
-      'label' => 'Subscription flag',
22
-      'required' => 1,
23
-      'flag' => 'subscriptions',
24
-      'user_scope' => 'current',
25
-      'id' => 'flag_content_rel',
26
-      'table' => 'node',
27
-      'field' => 'flag_content_rel',
28
-      'relationship' => 'none',
21
+        'label' => 'Subscription flag',
22
+        'required' => 1,
23
+        'flag' => 'subscriptions',
24
+        'user_scope' => 'current',
25
+        'id' => 'flag_content_rel',
26
+        'table' => 'node',
27
+        'field' => 'flag_content_rel',
28
+        'relationship' => 'none',
29 29
     ),
30 30
     'flag_count_rel' => array(
31
-      'label' => 'counter',
32
-      'required' => 1,
33
-      'flag' => 'subscriptions',
34
-      'id' => 'flag_count_rel',
35
-      'table' => 'node',
36
-      'field' => 'flag_count_rel',
37
-      'relationship' => 'none',
31
+        'label' => 'counter',
32
+        'required' => 1,
33
+        'flag' => 'subscriptions',
34
+        'id' => 'flag_count_rel',
35
+        'table' => 'node',
36
+        'field' => 'flag_count_rel',
37
+        'relationship' => 'none',
38 38
     ),
39 39
     'vid' => array(
40
-      'id' => 'vid',
41
-      'table' => 'term_node',
42
-      'field' => 'vid',
40
+        'id' => 'vid',
41
+        'table' => 'term_node',
42
+        'field' => 'vid',
43 43
     ),
44
-  ));
45
-  $handler->override_option('fields', array(
44
+    ));
45
+    $handler->override_option('fields', array(
46 46
     'title' => array(
47
-      'label' => 'Page',
48
-      'alter' => array(
47
+        'label' => 'Page',
48
+        'alter' => array(
49 49
         'alter_text' => 0,
50 50
         'text' => '',
51 51
         'make_link' => 0,
@@ -64,21 +64,21 @@  discard block
 block discarded – undo
64 64
         'ellipsis' => 1,
65 65
         'html' => 0,
66 66
         'strip_tags' => 0,
67
-      ),
68
-      'empty' => '',
69
-      'hide_empty' => 0,
70
-      'empty_zero' => 0,
71
-      'hide_alter_empty' => 1,
72
-      'link_to_node' => 0,
73
-      'exclude' => 1,
74
-      'id' => 'title',
75
-      'table' => 'node',
76
-      'field' => 'title',
77
-      'relationship' => 'none',
67
+        ),
68
+        'empty' => '',
69
+        'hide_empty' => 0,
70
+        'empty_zero' => 0,
71
+        'hide_alter_empty' => 1,
72
+        'link_to_node' => 0,
73
+        'exclude' => 1,
74
+        'id' => 'title',
75
+        'table' => 'node',
76
+        'field' => 'title',
77
+        'relationship' => 'none',
78 78
     ),
79 79
     'type' => array(
80
-      'label' => 'Type',
81
-      'alter' => array(
80
+        'label' => 'Type',
81
+        'alter' => array(
82 82
         'alter_text' => 0,
83 83
         'text' => '',
84 84
         'make_link' => 0,
@@ -97,22 +97,22 @@  discard block
 block discarded – undo
97 97
         'ellipsis' => 1,
98 98
         'html' => 0,
99 99
         'strip_tags' => 0,
100
-      ),
101
-      'empty' => '',
102
-      'hide_empty' => 0,
103
-      'empty_zero' => 0,
104
-      'hide_alter_empty' => 1,
105
-      'link_to_node' => 0,
106
-      'machine_name' => 0,
107
-      'exclude' => 1,
108
-      'id' => 'type',
109
-      'table' => 'node',
110
-      'field' => 'type',
111
-      'relationship' => 'none',
100
+        ),
101
+        'empty' => '',
102
+        'hide_empty' => 0,
103
+        'empty_zero' => 0,
104
+        'hide_alter_empty' => 1,
105
+        'link_to_node' => 0,
106
+        'machine_name' => 0,
107
+        'exclude' => 1,
108
+        'id' => 'type',
109
+        'table' => 'node',
110
+        'field' => 'type',
111
+        'relationship' => 'none',
112 112
     ),
113 113
     'timestamp' => array(
114
-      'label' => 'Has new content',
115
-      'alter' => array(
114
+        'label' => 'Has new content',
115
+        'alter' => array(
116 116
         'alter_text' => 0,
117 117
         'text' => '',
118 118
         'make_link' => 0,
@@ -131,22 +131,22 @@  discard block
 block discarded – undo
131 131
         'ellipsis' => 1,
132 132
         'html' => 0,
133 133
         'strip_tags' => 0,
134
-      ),
135
-      'empty' => '',
136
-      'hide_empty' => 0,
137
-      'empty_zero' => 0,
138
-      'hide_alter_empty' => 1,
139
-      'link_to_node' => 0,
140
-      'comments' => 1,
141
-      'exclude' => 1,
142
-      'id' => 'timestamp',
143
-      'table' => 'history_user',
144
-      'field' => 'timestamp',
145
-      'relationship' => 'none',
134
+        ),
135
+        'empty' => '',
136
+        'hide_empty' => 0,
137
+        'empty_zero' => 0,
138
+        'hide_alter_empty' => 1,
139
+        'link_to_node' => 0,
140
+        'comments' => 1,
141
+        'exclude' => 1,
142
+        'id' => 'timestamp',
143
+        'table' => 'history_user',
144
+        'field' => 'timestamp',
145
+        'relationship' => 'none',
146 146
     ),
147 147
     'new_comments' => array(
148
-      'label' => 'New comments',
149
-      'alter' => array(
148
+        'label' => 'New comments',
149
+        'alter' => array(
150 150
         'alter_text' => 0,
151 151
         'text' => '',
152 152
         'make_link' => 0,
@@ -165,30 +165,30 @@  discard block
 block discarded – undo
165 165
         'ellipsis' => 1,
166 166
         'html' => 0,
167 167
         'strip_tags' => 0,
168
-      ),
169
-      'empty' => '',
170
-      'hide_empty' => 0,
171
-      'empty_zero' => 0,
172
-      'hide_alter_empty' => 1,
173
-      'set_precision' => FALSE,
174
-      'precision' => 0,
175
-      'decimal' => '.',
176
-      'separator' => ',',
177
-      'format_plural' => 0,
178
-      'format_plural_singular' => '1',
179
-      'format_plural_plural' => '@count',
180
-      'prefix' => '',
181
-      'suffix' => '',
182
-      'link_to_comment' => 1,
183
-      'exclude' => 1,
184
-      'id' => 'new_comments',
185
-      'table' => 'node',
186
-      'field' => 'new_comments',
187
-      'relationship' => 'none',
168
+        ),
169
+        'empty' => '',
170
+        'hide_empty' => 0,
171
+        'empty_zero' => 0,
172
+        'hide_alter_empty' => 1,
173
+        'set_precision' => FALSE,
174
+        'precision' => 0,
175
+        'decimal' => '.',
176
+        'separator' => ',',
177
+        'format_plural' => 0,
178
+        'format_plural_singular' => '1',
179
+        'format_plural_plural' => '@count',
180
+        'prefix' => '',
181
+        'suffix' => '',
182
+        'link_to_comment' => 1,
183
+        'exclude' => 1,
184
+        'id' => 'new_comments',
185
+        'table' => 'node',
186
+        'field' => 'new_comments',
187
+        'relationship' => 'none',
188 188
     ),
189 189
     'name' => array(
190
-      'label' => 'Term',
191
-      'alter' => array(
190
+        'label' => 'Term',
191
+        'alter' => array(
192 192
         'alter_text' => 0,
193 193
         'text' => '',
194 194
         'make_link' => 0,
@@ -207,21 +207,21 @@  discard block
 block discarded – undo
207 207
         'ellipsis' => 1,
208 208
         'html' => 0,
209 209
         'strip_tags' => 0,
210
-      ),
211
-      'empty' => '',
212
-      'hide_empty' => 0,
213
-      'empty_zero' => 0,
214
-      'hide_alter_empty' => 1,
215
-      'link_to_taxonomy' => 0,
216
-      'exclude' => 1,
217
-      'id' => 'name',
218
-      'table' => 'term_data',
219
-      'field' => 'name',
220
-      'relationship' => 'none',
210
+        ),
211
+        'empty' => '',
212
+        'hide_empty' => 0,
213
+        'empty_zero' => 0,
214
+        'hide_alter_empty' => 1,
215
+        'link_to_taxonomy' => 0,
216
+        'exclude' => 1,
217
+        'id' => 'name',
218
+        'table' => 'term_data',
219
+        'field' => 'name',
220
+        'relationship' => 'none',
221 221
     ),
222 222
     'name_1' => array(
223
-      'label' => 'Vocabulary name',
224
-      'alter' => array(
223
+        'label' => 'Vocabulary name',
224
+        'alter' => array(
225 225
         'alter_text' => 0,
226 226
         'text' => '',
227 227
         'make_link' => 0,
@@ -240,20 +240,20 @@  discard block
 block discarded – undo
240 240
         'ellipsis' => 1,
241 241
         'html' => 0,
242 242
         'strip_tags' => 0,
243
-      ),
244
-      'empty' => '',
245
-      'hide_empty' => 0,
246
-      'empty_zero' => 0,
247
-      'hide_alter_empty' => 1,
248
-      'exclude' => 1,
249
-      'id' => 'name_1',
250
-      'table' => 'vocabulary',
251
-      'field' => 'name',
252
-      'relationship' => 'none',
243
+        ),
244
+        'empty' => '',
245
+        'hide_empty' => 0,
246
+        'empty_zero' => 0,
247
+        'hide_alter_empty' => 1,
248
+        'exclude' => 1,
249
+        'id' => 'name_1',
250
+        'table' => 'vocabulary',
251
+        'field' => 'name',
252
+        'relationship' => 'none',
253 253
     ),
254 254
     'phpcode' => array(
255
-      'label' => 'Page',
256
-      'alter' => array(
255
+        'label' => 'Page',
256
+        'alter' => array(
257 257
         'alter_text' => 0,
258 258
         'text' => '',
259 259
         'make_link' => 0,
@@ -272,12 +272,12 @@  discard block
 block discarded – undo
272 272
         'ellipsis' => 1,
273 273
         'html' => 0,
274 274
         'strip_tags' => 0,
275
-      ),
276
-      'empty' => '',
277
-      'hide_empty' => 0,
278
-      'empty_zero' => 0,
279
-      'hide_alter_empty' => 1,
280
-      'value' => '<?php
275
+        ),
276
+        'empty' => '',
277
+        'hide_empty' => 0,
278
+        'empty_zero' => 0,
279
+        'hide_alter_empty' => 1,
280
+        'value' => '<?php
281 281
 $updated = ($data->node_comment_statistics_last_updated > $data->history_user_timestamp) ? TRUE : FALSE;
282 282
 $url = "node/{$data->nid}";
283 283
 if ($data->node_new_comments) {
@@ -288,15 +288,15 @@  discard block
 block discarded – undo
288 288
 print l($data->node_title, $url);
289 289
 print \'</span>\';
290 290
 ?>',
291
-      'exclude' => 0,
292
-      'id' => 'phpcode',
293
-      'table' => 'customfield',
294
-      'field' => 'phpcode',
295
-      'relationship' => 'none',
291
+        'exclude' => 0,
292
+        'id' => 'phpcode',
293
+        'table' => 'customfield',
294
+        'field' => 'phpcode',
295
+        'relationship' => 'none',
296 296
     ),
297 297
     'phpcode_1' => array(
298
-      'label' => '',
299
-      'alter' => array(
298
+        'label' => '',
299
+        'alter' => array(
300 300
         'alter_text' => 0,
301 301
         'text' => '',
302 302
         'make_link' => 0,
@@ -315,12 +315,12 @@  discard block
 block discarded – undo
315 315
         'ellipsis' => 1,
316 316
         'html' => 0,
317 317
         'strip_tags' => 0,
318
-      ),
319
-      'empty' => '',
320
-      'hide_empty' => 0,
321
-      'empty_zero' => 0,
322
-      'hide_alter_empty' => 1,
323
-      'value' => '<?php
318
+        ),
319
+        'empty' => '',
320
+        'hide_empty' => 0,
321
+        'empty_zero' => 0,
322
+        'hide_alter_empty' => 1,
323
+        'value' => '<?php
324 324
 if ($data->node_type == \'forum\') {
325 325
   print $data->vocabulary_name . \' &rsaquo; \' . $data->term_data_name;
326 326
 }
@@ -328,15 +328,15 @@  discard block
 block discarded – undo
328 328
   print bts(\'News\', array(), NULL, \'boinc:menu-link\');
329 329
 }
330 330
 ?>',
331
-      'exclude' => 0,
332
-      'id' => 'phpcode_1',
333
-      'table' => 'customfield',
334
-      'field' => 'phpcode',
335
-      'relationship' => 'none',
331
+        'exclude' => 0,
332
+        'id' => 'phpcode_1',
333
+        'table' => 'customfield',
334
+        'field' => 'phpcode',
335
+        'relationship' => 'none',
336 336
     ),
337 337
     'last_updated' => array(
338
-      'label' => 'Updated',
339
-      'alter' => array(
338
+        'label' => 'Updated',
339
+        'alter' => array(
340 340
         'alter_text' => 0,
341 341
         'text' => '',
342 342
         'make_link' => 0,
@@ -355,25 +355,25 @@  discard block
 block discarded – undo
355 355
         'ellipsis' => 1,
356 356
         'html' => 0,
357 357
         'strip_tags' => 0,
358
-      ),
359
-      'empty' => '',
360
-      'hide_empty' => 0,
361
-      'empty_zero' => 0,
362
-      'hide_alter_empty' => 1,
363
-      'date_format' => 'time ago',
364
-      'custom_date_format' => '',
365
-      'exclude' => 0,
366
-      'id' => 'last_updated',
367
-      'table' => 'node_comment_statistics',
368
-      'field' => 'last_updated',
369
-      'override' => array(
358
+        ),
359
+        'empty' => '',
360
+        'hide_empty' => 0,
361
+        'empty_zero' => 0,
362
+        'hide_alter_empty' => 1,
363
+        'date_format' => 'time ago',
364
+        'custom_date_format' => '',
365
+        'exclude' => 0,
366
+        'id' => 'last_updated',
367
+        'table' => 'node_comment_statistics',
368
+        'field' => 'last_updated',
369
+        'override' => array(
370 370
         'button' => 'Override',
371
-      ),
372
-      'relationship' => 'none',
371
+        ),
372
+        'relationship' => 'none',
373 373
     ),
374 374
     'ops' => array(
375
-      'label' => '',
376
-      'alter' => array(
375
+        'label' => '',
376
+        'alter' => array(
377 377
         'alter_text' => 0,
378 378
         'text' => '',
379 379
         'make_link' => 0,
@@ -392,79 +392,79 @@  discard block
 block discarded – undo
392 392
         'ellipsis' => 1,
393 393
         'html' => 0,
394 394
         'strip_tags' => 0,
395
-      ),
396
-      'empty' => '',
397
-      'hide_empty' => 0,
398
-      'empty_zero' => 0,
399
-      'hide_alter_empty' => 1,
400
-      'link_type' => '',
401
-      'exclude' => 0,
402
-      'id' => 'ops',
403
-      'table' => 'flag_content',
404
-      'field' => 'ops',
405
-      'relationship' => 'flag_content_rel',
395
+        ),
396
+        'empty' => '',
397
+        'hide_empty' => 0,
398
+        'empty_zero' => 0,
399
+        'hide_alter_empty' => 1,
400
+        'link_type' => '',
401
+        'exclude' => 0,
402
+        'id' => 'ops',
403
+        'table' => 'flag_content',
404
+        'field' => 'ops',
405
+        'relationship' => 'flag_content_rel',
406 406
     ),
407
-  ));
408
-  $handler->override_option('access', array(
407
+    ));
408
+    $handler->override_option('access', array(
409 409
     'type' => 'none',
410
-  ));
411
-  $handler->override_option('cache', array(
410
+    ));
411
+    $handler->override_option('cache', array(
412 412
     'type' => 'none',
413
-  ));
414
-  $handler->override_option('use_pager', '1');
415
-  $handler = $view->new_display('page', 'Page', 'page_1');
416
-  $handler->override_option('style_plugin', 'table');
417
-  $handler->override_option('style_options', array(
413
+    ));
414
+    $handler->override_option('use_pager', '1');
415
+    $handler = $view->new_display('page', 'Page', 'page_1');
416
+    $handler->override_option('style_plugin', 'table');
417
+    $handler->override_option('style_options', array(
418 418
     'grouping' => '',
419 419
     'override' => 1,
420 420
     'sticky' => 0,
421 421
     'order' => 'desc',
422 422
     'summary' => '',
423 423
     'columns' => array(
424
-      'ops' => 'ops',
425
-      'title' => 'title',
426
-      'type' => 'type',
427
-      'last_updated' => 'last_updated',
424
+        'ops' => 'ops',
425
+        'title' => 'title',
426
+        'type' => 'type',
427
+        'last_updated' => 'last_updated',
428 428
     ),
429 429
     'info' => array(
430
-      'ops' => array(
430
+        'ops' => array(
431 431
         'separator' => '',
432
-      ),
433
-      'title' => array(
432
+        ),
433
+        'title' => array(
434 434
         'sortable' => 0,
435 435
         'separator' => '',
436
-      ),
437
-      'type' => array(
436
+        ),
437
+        'type' => array(
438 438
         'sortable' => 0,
439 439
         'separator' => '',
440
-      ),
441
-      'last_updated' => array(
440
+        ),
441
+        'last_updated' => array(
442 442
         'sortable' => 0,
443 443
         'separator' => '',
444
-      ),
444
+        ),
445 445
     ),
446 446
     'default' => 'last_updated',
447
-  ));
448
-  $handler->override_option('path', 'account/prefs/subscriptions');
449
-  $handler->override_option('menu', array(
447
+    ));
448
+    $handler->override_option('path', 'account/prefs/subscriptions');
449
+    $handler->override_option('menu', array(
450 450
     'type' => 'tab',
451 451
     'title' => bts('Subscriptions', array(), NULL, 'boinc:account-dashboard'),
452 452
     'description' => '',
453 453
     'weight' => '20',
454 454
     'name' => 'primary-links',
455
-  ));
456
-  $handler->override_option('tab_options', array(
455
+    ));
456
+    $handler->override_option('tab_options', array(
457 457
     'type' => 'none',
458 458
     'title' => '',
459 459
     'description' => '',
460 460
     'weight' => 0,
461 461
     'name' => 'navigation',
462
-  ));
463
-  $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1');
464
-  $handler->override_option('fields', array(
462
+    ));
463
+    $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1');
464
+    $handler->override_option('fields', array(
465 465
     'title' => array(
466
-      'label' => 'Page',
467
-      'alter' => array(
466
+        'label' => 'Page',
467
+        'alter' => array(
468 468
         'alter_text' => 0,
469 469
         'text' => '',
470 470
         'make_link' => 0,
@@ -483,24 +483,24 @@  discard block
 block discarded – undo
483 483
         'ellipsis' => 1,
484 484
         'html' => 0,
485 485
         'strip_tags' => 0,
486
-      ),
487
-      'empty' => '',
488
-      'hide_empty' => 0,
489
-      'empty_zero' => 0,
490
-      'hide_alter_empty' => 1,
491
-      'link_to_node' => 1,
492
-      'exclude' => 1,
493
-      'id' => 'title',
494
-      'table' => 'node',
495
-      'field' => 'title',
496
-      'relationship' => 'none',
497
-      'override' => array(
486
+        ),
487
+        'empty' => '',
488
+        'hide_empty' => 0,
489
+        'empty_zero' => 0,
490
+        'hide_alter_empty' => 1,
491
+        'link_to_node' => 1,
492
+        'exclude' => 1,
493
+        'id' => 'title',
494
+        'table' => 'node',
495
+        'field' => 'title',
496
+        'relationship' => 'none',
497
+        'override' => array(
498 498
         'button' => 'Use default',
499
-      ),
499
+        ),
500 500
     ),
501 501
     'type' => array(
502
-      'label' => 'Type',
503
-      'alter' => array(
502
+        'label' => 'Type',
503
+        'alter' => array(
504 504
         'alter_text' => 0,
505 505
         'text' => '',
506 506
         'make_link' => 0,
@@ -519,25 +519,25 @@  discard block
 block discarded – undo
519 519
         'ellipsis' => 1,
520 520
         'html' => 0,
521 521
         'strip_tags' => 0,
522
-      ),
523
-      'empty' => '',
524
-      'hide_empty' => 0,
525
-      'empty_zero' => 0,
526
-      'hide_alter_empty' => 1,
527
-      'link_to_node' => 0,
528
-      'machine_name' => 0,
529
-      'exclude' => 1,
530
-      'id' => 'type',
531
-      'table' => 'node',
532
-      'field' => 'type',
533
-      'override' => array(
522
+        ),
523
+        'empty' => '',
524
+        'hide_empty' => 0,
525
+        'empty_zero' => 0,
526
+        'hide_alter_empty' => 1,
527
+        'link_to_node' => 0,
528
+        'machine_name' => 0,
529
+        'exclude' => 1,
530
+        'id' => 'type',
531
+        'table' => 'node',
532
+        'field' => 'type',
533
+        'override' => array(
534 534
         'button' => 'Use default',
535
-      ),
536
-      'relationship' => 'none',
535
+        ),
536
+        'relationship' => 'none',
537 537
     ),
538 538
     'timestamp' => array(
539
-      'label' => 'Has new content',
540
-      'alter' => array(
539
+        'label' => 'Has new content',
540
+        'alter' => array(
541 541
         'alter_text' => 0,
542 542
         'text' => '',
543 543
         'make_link' => 0,
@@ -556,25 +556,25 @@  discard block
 block discarded – undo
556 556
         'ellipsis' => 1,
557 557
         'html' => 0,
558 558
         'strip_tags' => 0,
559
-      ),
560
-      'empty' => '',
561
-      'hide_empty' => 0,
562
-      'empty_zero' => 0,
563
-      'hide_alter_empty' => 1,
564
-      'link_to_node' => 0,
565
-      'comments' => 1,
566
-      'exclude' => 1,
567
-      'id' => 'timestamp',
568
-      'table' => 'history_user',
569
-      'field' => 'timestamp',
570
-      'relationship' => 'none',
571
-      'override' => array(
559
+        ),
560
+        'empty' => '',
561
+        'hide_empty' => 0,
562
+        'empty_zero' => 0,
563
+        'hide_alter_empty' => 1,
564
+        'link_to_node' => 0,
565
+        'comments' => 1,
566
+        'exclude' => 1,
567
+        'id' => 'timestamp',
568
+        'table' => 'history_user',
569
+        'field' => 'timestamp',
570
+        'relationship' => 'none',
571
+        'override' => array(
572 572
         'button' => 'Use default',
573
-      ),
573
+        ),
574 574
     ),
575 575
     'new_comments' => array(
576
-      'label' => 'New comments',
577
-      'alter' => array(
576
+        'label' => 'New comments',
577
+        'alter' => array(
578 578
         'alter_text' => 0,
579 579
         'text' => '',
580 580
         'make_link' => 0,
@@ -593,33 +593,33 @@  discard block
 block discarded – undo
593 593
         'ellipsis' => 1,
594 594
         'html' => 0,
595 595
         'strip_tags' => 0,
596
-      ),
597
-      'empty' => '',
598
-      'hide_empty' => 0,
599
-      'empty_zero' => 0,
600
-      'hide_alter_empty' => 1,
601
-      'set_precision' => FALSE,
602
-      'precision' => 0,
603
-      'decimal' => '.',
604
-      'separator' => ',',
605
-      'format_plural' => 0,
606
-      'format_plural_singular' => '1',
607
-      'format_plural_plural' => '@count',
608
-      'prefix' => '',
609
-      'suffix' => '',
610
-      'link_to_comment' => 1,
611
-      'exclude' => 1,
612
-      'id' => 'new_comments',
613
-      'table' => 'node',
614
-      'field' => 'new_comments',
615
-      'relationship' => 'none',
616
-      'override' => array(
596
+        ),
597
+        'empty' => '',
598
+        'hide_empty' => 0,
599
+        'empty_zero' => 0,
600
+        'hide_alter_empty' => 1,
601
+        'set_precision' => FALSE,
602
+        'precision' => 0,
603
+        'decimal' => '.',
604
+        'separator' => ',',
605
+        'format_plural' => 0,
606
+        'format_plural_singular' => '1',
607
+        'format_plural_plural' => '@count',
608
+        'prefix' => '',
609
+        'suffix' => '',
610
+        'link_to_comment' => 1,
611
+        'exclude' => 1,
612
+        'id' => 'new_comments',
613
+        'table' => 'node',
614
+        'field' => 'new_comments',
615
+        'relationship' => 'none',
616
+        'override' => array(
617 617
         'button' => 'Use default',
618
-      ),
618
+        ),
619 619
     ),
620 620
     'name' => array(
621
-      'label' => 'Term',
622
-      'alter' => array(
621
+        'label' => 'Term',
622
+        'alter' => array(
623 623
         'alter_text' => 0,
624 624
         'text' => '',
625 625
         'make_link' => 0,
@@ -638,24 +638,24 @@  discard block
 block discarded – undo
638 638
         'ellipsis' => 1,
639 639
         'html' => 0,
640 640
         'strip_tags' => 0,
641
-      ),
642
-      'empty' => '',
643
-      'hide_empty' => 0,
644
-      'empty_zero' => 0,
645
-      'hide_alter_empty' => 1,
646
-      'link_to_taxonomy' => 0,
647
-      'exclude' => 1,
648
-      'id' => 'name',
649
-      'table' => 'term_data',
650
-      'field' => 'name',
651
-      'override' => array(
641
+        ),
642
+        'empty' => '',
643
+        'hide_empty' => 0,
644
+        'empty_zero' => 0,
645
+        'hide_alter_empty' => 1,
646
+        'link_to_taxonomy' => 0,
647
+        'exclude' => 1,
648
+        'id' => 'name',
649
+        'table' => 'term_data',
650
+        'field' => 'name',
651
+        'override' => array(
652 652
         'button' => 'Use default',
653
-      ),
654
-      'relationship' => 'none',
653
+        ),
654
+        'relationship' => 'none',
655 655
     ),
656 656
     'name_1' => array(
657
-      'label' => 'Vocabulary name',
658
-      'alter' => array(
657
+        'label' => 'Vocabulary name',
658
+        'alter' => array(
659 659
         'alter_text' => 0,
660 660
         'text' => '',
661 661
         'make_link' => 0,
@@ -674,23 +674,23 @@  discard block
 block discarded – undo
674 674
         'ellipsis' => 1,
675 675
         'html' => 0,
676 676
         'strip_tags' => 0,
677
-      ),
678
-      'empty' => '',
679
-      'hide_empty' => 0,
680
-      'empty_zero' => 0,
681
-      'hide_alter_empty' => 1,
682
-      'exclude' => 1,
683
-      'id' => 'name_1',
684
-      'table' => 'vocabulary',
685
-      'field' => 'name',
686
-      'override' => array(
677
+        ),
678
+        'empty' => '',
679
+        'hide_empty' => 0,
680
+        'empty_zero' => 0,
681
+        'hide_alter_empty' => 1,
682
+        'exclude' => 1,
683
+        'id' => 'name_1',
684
+        'table' => 'vocabulary',
685
+        'field' => 'name',
686
+        'override' => array(
687 687
         'button' => 'Use default',
688
-      ),
689
-      'relationship' => 'none',
688
+        ),
689
+        'relationship' => 'none',
690 690
     ),
691 691
     'phpcode' => array(
692
-      'label' => 'Page',
693
-      'alter' => array(
692
+        'label' => 'Page',
693
+        'alter' => array(
694 694
         'alter_text' => 0,
695 695
         'text' => '',
696 696
         'make_link' => 0,
@@ -709,12 +709,12 @@  discard block
 block discarded – undo
709 709
         'ellipsis' => 1,
710 710
         'html' => 0,
711 711
         'strip_tags' => 0,
712
-      ),
713
-      'empty' => '',
714
-      'hide_empty' => 0,
715
-      'empty_zero' => 0,
716
-      'hide_alter_empty' => 1,
717
-      'value' => '<?php
712
+        ),
713
+        'empty' => '',
714
+        'hide_empty' => 0,
715
+        'empty_zero' => 0,
716
+        'hide_alter_empty' => 1,
717
+        'value' => '<?php
718 718
 $updated = ($data->node_comment_statistics_last_updated > $data->history_user_timestamp) ? TRUE : FALSE;
719 719
 $url = "node/{$data->nid}";
720 720
 if ($data->node_new_comments) {
@@ -725,18 +725,18 @@  discard block
 block discarded – undo
725 725
 print l($data->node_title, $url);
726 726
 print \'</span>\';
727 727
 ?>',
728
-      'exclude' => 0,
729
-      'id' => 'phpcode',
730
-      'table' => 'customfield',
731
-      'field' => 'phpcode',
732
-      'override' => array(
728
+        'exclude' => 0,
729
+        'id' => 'phpcode',
730
+        'table' => 'customfield',
731
+        'field' => 'phpcode',
732
+        'override' => array(
733 733
         'button' => 'Use default',
734
-      ),
735
-      'relationship' => 'none',
734
+        ),
735
+        'relationship' => 'none',
736 736
     ),
737 737
     'phpcode_1' => array(
738
-      'label' => '',
739
-      'alter' => array(
738
+        'label' => '',
739
+        'alter' => array(
740 740
         'alter_text' => 0,
741 741
         'text' => '',
742 742
         'make_link' => 0,
@@ -755,12 +755,12 @@  discard block
 block discarded – undo
755 755
         'ellipsis' => 1,
756 756
         'html' => 0,
757 757
         'strip_tags' => 0,
758
-      ),
759
-      'empty' => '',
760
-      'hide_empty' => 0,
761
-      'empty_zero' => 0,
762
-      'hide_alter_empty' => 1,
763
-      'value' => '<?php
758
+        ),
759
+        'empty' => '',
760
+        'hide_empty' => 0,
761
+        'empty_zero' => 0,
762
+        'hide_alter_empty' => 1,
763
+        'value' => '<?php
764 764
 if ($data->node_type == \'forum\') {
765 765
   print $data->vocabulary_name . \' &rsaquo; \' . $data->term_data_name;
766 766
 }
@@ -768,18 +768,18 @@  discard block
 block discarded – undo
768 768
   print bts(\'News\', array(), NULL, \'boinc:menu-link\');
769 769
 }
770 770
 ?>',
771
-      'exclude' => 0,
772
-      'id' => 'phpcode_1',
773
-      'table' => 'customfield',
774
-      'field' => 'phpcode',
775
-      'override' => array(
771
+        'exclude' => 0,
772
+        'id' => 'phpcode_1',
773
+        'table' => 'customfield',
774
+        'field' => 'phpcode',
775
+        'override' => array(
776 776
         'button' => 'Use default',
777
-      ),
778
-      'relationship' => 'none',
777
+        ),
778
+        'relationship' => 'none',
779 779
     ),
780 780
     'last_updated' => array(
781
-      'label' => bts('Updated', array(), NULL, 'boinc:account-dashboard'),
782
-      'alter' => array(
781
+        'label' => bts('Updated', array(), NULL, 'boinc:account-dashboard'),
782
+        'alter' => array(
783 783
         'alter_text' => 0,
784 784
         'text' => '',
785 785
         'make_link' => 0,
@@ -798,25 +798,25 @@  discard block
 block discarded – undo
798 798
         'ellipsis' => 1,
799 799
         'html' => 0,
800 800
         'strip_tags' => 0,
801
-      ),
802
-      'empty' => '',
803
-      'hide_empty' => 0,
804
-      'empty_zero' => 0,
805
-      'hide_alter_empty' => 1,
806
-      'date_format' => 'time ago',
807
-      'custom_date_format' => '',
808
-      'exclude' => 0,
809
-      'id' => 'last_updated',
810
-      'table' => 'node_comment_statistics',
811
-      'field' => 'last_updated',
812
-      'override' => array(
801
+        ),
802
+        'empty' => '',
803
+        'hide_empty' => 0,
804
+        'empty_zero' => 0,
805
+        'hide_alter_empty' => 1,
806
+        'date_format' => 'time ago',
807
+        'custom_date_format' => '',
808
+        'exclude' => 0,
809
+        'id' => 'last_updated',
810
+        'table' => 'node_comment_statistics',
811
+        'field' => 'last_updated',
812
+        'override' => array(
813 813
         'button' => 'Use default',
814
-      ),
815
-      'relationship' => 'none',
814
+        ),
815
+        'relationship' => 'none',
816 816
     ),
817 817
     'ops' => array(
818
-      'label' => '',
819
-      'alter' => array(
818
+        'label' => '',
819
+        'alter' => array(
820 820
         'alter_text' => 0,
821 821
         'text' => '',
822 822
         'make_link' => 0,
@@ -835,66 +835,66 @@  discard block
 block discarded – undo
835 835
         'ellipsis' => 1,
836 836
         'html' => 0,
837 837
         'strip_tags' => 0,
838
-      ),
839
-      'empty' => '',
840
-      'hide_empty' => 0,
841
-      'empty_zero' => 0,
842
-      'hide_alter_empty' => 1,
843
-      'link_type' => '',
844
-      'exclude' => 1,
845
-      'id' => 'ops',
846
-      'table' => 'flag_content',
847
-      'field' => 'ops',
848
-      'relationship' => 'flag_content_rel',
849
-      'override' => array(
838
+        ),
839
+        'empty' => '',
840
+        'hide_empty' => 0,
841
+        'empty_zero' => 0,
842
+        'hide_alter_empty' => 1,
843
+        'link_type' => '',
844
+        'exclude' => 1,
845
+        'id' => 'ops',
846
+        'table' => 'flag_content',
847
+        'field' => 'ops',
848
+        'relationship' => 'flag_content_rel',
849
+        'override' => array(
850 850
         'button' => 'Use default',
851
-      ),
851
+        ),
852 852
     ),
853
-  ));
854
-  $handler->override_option('title', 'Subscriptions');
855
-  $handler->override_option('items_per_page', 5);
856
-  $handler->override_option('use_pager', '0');
857
-  $handler->override_option('use_more', 1);
858
-  $handler->override_option('use_more_always', 1);
859
-  $handler->override_option('style_plugin', 'table');
860
-  $handler->override_option('style_options', array(
853
+    ));
854
+    $handler->override_option('title', 'Subscriptions');
855
+    $handler->override_option('items_per_page', 5);
856
+    $handler->override_option('use_pager', '0');
857
+    $handler->override_option('use_more', 1);
858
+    $handler->override_option('use_more_always', 1);
859
+    $handler->override_option('style_plugin', 'table');
860
+    $handler->override_option('style_options', array(
861 861
     'grouping' => '',
862 862
     'override' => 1,
863 863
     'sticky' => 0,
864 864
     'order' => 'desc',
865 865
     'summary' => '',
866 866
     'columns' => array(
867
-      'title' => 'title',
868
-      'type' => 'type',
869
-      'ops' => 'ops',
870
-      'last_updated' => 'last_updated',
867
+        'title' => 'title',
868
+        'type' => 'type',
869
+        'ops' => 'ops',
870
+        'last_updated' => 'last_updated',
871 871
     ),
872 872
     'info' => array(
873
-      'title' => array(
873
+        'title' => array(
874 874
         'sortable' => 0,
875 875
         'separator' => '',
876
-      ),
877
-      'type' => array(
876
+        ),
877
+        'type' => array(
878 878
         'sortable' => 0,
879 879
         'separator' => '',
880
-      ),
881
-      'ops' => array(
880
+        ),
881
+        'ops' => array(
882 882
         'separator' => '',
883
-      ),
884
-      'last_updated' => array(
883
+        ),
884
+        'last_updated' => array(
885 885
         'sortable' => 0,
886 886
         'separator' => '',
887
-      ),
887
+        ),
888 888
     ),
889 889
     'default' => 'last_updated',
890
-  ));
891
-  $handler->override_option('pane_title', '');
892
-  $handler->override_option('pane_description', '');
893
-  $handler->override_option('pane_category', array(
890
+    ));
891
+    $handler->override_option('pane_title', '');
892
+    $handler->override_option('pane_description', '');
893
+    $handler->override_option('pane_category', array(
894 894
     'name' => 'View panes',
895 895
     'weight' => 0,
896
-  ));
897
-  $handler->override_option('allow', array(
896
+    ));
897
+    $handler->override_option('allow', array(
898 898
     'use_pager' => FALSE,
899 899
     'items_per_page' => FALSE,
900 900
     'offset' => FALSE,
@@ -904,12 +904,12 @@  discard block
 block discarded – undo
904 904
     'title_override' => FALSE,
905 905
     'exposed_form' => FALSE,
906 906
     'fields_override' => FALSE,
907
-  ));
908
-  $handler->override_option('argument_input', array());
909
-  $handler->override_option('link_to_view', 0);
910
-  $handler->override_option('inherit_panels_path', 0);
907
+    ));
908
+    $handler->override_option('argument_input', array());
909
+    $handler->override_option('link_to_view', 0);
910
+    $handler->override_option('inherit_panels_path', 0);
911 911
 
912
-  $views[$view->name] = $view;
912
+    $views[$view->name] = $view;
913 913
 
914
-  return $views;
914
+    return $views;
915 915
 }
Please login to merge, or discard this patch.
sites/all/features/private_messages/private_messages.panels_default.inc 2 patches
Upper-Lower-Casing   +6 added lines, -6 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 = 'user_mail_summary';
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();
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     $pane->panel = 'middle';
35 35
     $pane->type = 'custom';
36 36
     $pane->subtype = 'custom';
37
-    $pane->shown = TRUE;
37
+    $pane->shown = true;
38 38
     $pane->access = array();
39 39
     $pane->configuration = array(
40 40
       'admin_title' => 'Mail summary',
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
   <li class="last tab"><a href="<?php echo $l2?>"><?php print bts(\'Compose new\', array(), NULL, \'boinc:account-dashboard\'); ?></a></li>
51 51
 </ul>',
52 52
       'format' => '3',
53
-      'substitute' => TRUE,
53
+      'substitute' => true,
54 54
     );
55 55
     $pane->cache = array();
56 56
     $pane->style = array(
57
-      'settings' => NULL,
57
+      'settings' => null,
58 58
     );
59 59
     $pane->css = array();
60 60
     $pane->extras = array();
Please login to merge, or discard this patch.
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_panels_mini().
5 5
  */
6 6
 function private_messages_default_panels_mini() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
-  $mini->api_version = 1;
12
-  $mini->name = 'user_mail_summary';
13
-  $mini->category = 'BOINC';
14
-  $mini->admin_title = 'User mail summary';
15
-  $mini->admin_description = 'Mail widget for user dashboard';
16
-  $mini->requiredcontexts = array();
17
-  $mini->contexts = array();
18
-  $mini->relationships = array();
19
-  $display = new panels_display;
20
-  $display->layout = 'onecol';
21
-  $display->layout_settings = array();
22
-  $display->panel_settings = array(
9
+    $mini = new stdClass;
10
+    $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
+    $mini->api_version = 1;
12
+    $mini->name = 'user_mail_summary';
13
+    $mini->category = 'BOINC';
14
+    $mini->admin_title = 'User mail summary';
15
+    $mini->admin_description = 'Mail widget for user dashboard';
16
+    $mini->requiredcontexts = array();
17
+    $mini->contexts = array();
18
+    $mini->relationships = array();
19
+    $display = new panels_display;
20
+    $display->layout = 'onecol';
21
+    $display->layout_settings = array();
22
+    $display->panel_settings = array(
23 23
     'style_settings' => array(
24
-      'default' => NULL,
25
-      'middle' => NULL,
24
+        'default' => NULL,
25
+        'middle' => NULL,
26 26
     ),
27
-  );
28
-  $display->cache = array();
29
-  $display->title = 'Messages';
30
-  $display->storage_type = 'panels_mini';
31
-  $display->storage_id = 'user_mail_summary';
32
-  $display->content = array();
33
-  $display->panels = array();
27
+    );
28
+    $display->cache = array();
29
+    $display->title = 'Messages';
30
+    $display->storage_type = 'panels_mini';
31
+    $display->storage_id = 'user_mail_summary';
32
+    $display->content = array();
33
+    $display->panels = array();
34 34
     $pane = new stdClass;
35 35
     $pane->pid = 'new-1';
36 36
     $pane->panel = 'middle';
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
     $pane->shown = TRUE;
40 40
     $pane->access = array();
41 41
     $pane->configuration = array(
42
-      'admin_title' => 'Mail summary',
43
-      'title' => 'Messages',
44
-      'body' => '<?php
42
+        'admin_title' => 'Mail summary',
43
+        'title' => 'Messages',
44
+        'body' => '<?php
45 45
   $l1 = url(\'messages\');
46 46
   $l2 = url(\'messages/new\');
47 47
 ?>
@@ -51,22 +51,22 @@  discard block
 block discarded – undo
51 51
   </li>
52 52
   <li class="last tab"><a href="<?php echo $l2?>"><?php print bts(\'Compose new\', array(), NULL, \'boinc:account-dashboard\'); ?></a></li>
53 53
 </ul>',
54
-      'format' => '3',
55
-      'substitute' => TRUE,
54
+        'format' => '3',
55
+        'substitute' => TRUE,
56 56
     );
57 57
     $pane->cache = array();
58 58
     $pane->style = array(
59
-      'settings' => NULL,
59
+        'settings' => NULL,
60 60
     );
61 61
     $pane->css = array();
62 62
     $pane->extras = array();
63 63
     $pane->position = 0;
64 64
     $display->content['new-1'] = $pane;
65 65
     $display->panels['middle'][0] = 'new-1';
66
-  $display->hide_title = PANELS_TITLE_NONE;
67
-  $display->title_pane = 'new-1';
68
-  $mini->display = $display;
69
-  $export['user_mail_summary'] = $mini;
66
+    $display->hide_title = PANELS_TITLE_NONE;
67
+    $display->title_pane = 'new-1';
68
+    $mini->display = $display;
69
+    $export['user_mail_summary'] = $mini;
70 70
 
71
-  return $export;
71
+    return $export;
72 72
 }
Please login to merge, or discard this patch.
features/user_account_host_list/user_account_host_list.views_default.inc 2 patches
Upper-Lower-Casing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
   $view->base_table = 'host';
15 15
   $view->core = 0;
16 16
   $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
17
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
18 18
   $handler = $view->new_display('default', 'Defaults', 'default');
19 19
   $handler->override_option('relationships', array(
20 20
     'userid' => array(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
       'empty' => '',
48 48
       'hide_empty' => 0,
49 49
       'empty_zero' => 0,
50
-      'set_precision' => FALSE,
50
+      'set_precision' => false,
51 51
       'precision' => 0,
52 52
       'decimal' => '.',
53 53
       'separator' => '',
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
   $handler->override_option('path', 'account/computers/all');
831 831
   $handler->override_option('menu', array(
832 832
     'type' => 'tab',
833
-    'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'),
833
+    'title' => bts('All computers', array(), null, 'boinc:account-host-list'),
834 834
     'description' => 'Show all computers associated with the account',
835 835
     'weight' => '1',
836 836
     'name' => 'navigation',
@@ -853,9 +853,9 @@  discard block
 block discarded – undo
853 853
         'max' => '',
854 854
       ),
855 855
       'group' => '0',
856
-      'exposed' => FALSE,
856
+      'exposed' => false,
857 857
       'expose' => array(
858
-        'operator' => FALSE,
858
+        'operator' => false,
859 859
         'label' => '',
860 860
       ),
861 861
       'id' => 'rpc_time',
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
   $handler->override_option('path', 'account/computers/active');
871 871
   $handler->override_option('menu', array(
872 872
     'type' => 'default tab',
873
-    'title' => bts('Computers active in past 30 days', array(), NULL, 'boinc:account-host-list'),
873
+    'title' => bts('Computers active in past 30 days', array(), null, 'boinc:account-host-list'),
874 874
     'description' => '',
875 875
     'weight' => '0',
876 876
     'name' => 'navigation',
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
       'hide_empty' => 0,
911 911
       'empty_zero' => 0,
912 912
       'hide_alter_empty' => 1,
913
-      'set_precision' => FALSE,
913
+      'set_precision' => false,
914 914
       'precision' => 0,
915 915
       'decimal' => '.',
916 916
       'separator' => '',
@@ -1101,7 +1101,7 @@  discard block
 block discarded – undo
1101 1101
   ));
1102 1102
   $handler->override_option('title', 'Computers');
1103 1103
   $handler->override_option('items_per_page', 7);
1104
-  $handler->override_option('use_pager', FALSE);
1104
+  $handler->override_option('use_pager', false);
1105 1105
   $handler->override_option('use_more', 0);
1106 1106
   $handler->override_option('use_more_always', 1);
1107 1107
   $handler->override_option('style_options', array(
@@ -1147,15 +1147,15 @@  discard block
 block discarded – undo
1147 1147
     'weight' => 0,
1148 1148
   ));
1149 1149
   $handler->override_option('allow', array(
1150
-    'use_pager' => FALSE,
1151
-    'items_per_page' => FALSE,
1152
-    'offset' => FALSE,
1153
-    'link_to_view' => FALSE,
1154
-    'more_link' => FALSE,
1155
-    'path_override' => FALSE,
1156
-    'title_override' => FALSE,
1157
-    'exposed_form' => FALSE,
1158
-    'fields_override' => FALSE,
1150
+    'use_pager' => false,
1151
+    'items_per_page' => false,
1152
+    'offset' => false,
1153
+    'link_to_view' => false,
1154
+    'more_link' => false,
1155
+    'path_override' => false,
1156
+    'title_override' => false,
1157
+    'exposed_form' => false,
1158
+    'fields_override' => false,
1159 1159
   ));
1160 1160
   $handler->override_option('argument_input', array());
1161 1161
   $handler->override_option('link_to_view', 0);
@@ -1188,7 +1188,7 @@  discard block
 block discarded – undo
1188 1188
       'hide_empty' => 0,
1189 1189
       'empty_zero' => 0,
1190 1190
       'hide_alter_empty' => 1,
1191
-      'set_precision' => FALSE,
1191
+      'set_precision' => false,
1192 1192
       'precision' => 0,
1193 1193
       'decimal' => '.',
1194 1194
       'separator' => '',
@@ -1497,7 +1497,7 @@  discard block
 block discarded – undo
1497 1497
     ),
1498 1498
   ));
1499 1499
   $handler->override_option('items_per_page', 9);
1500
-  $handler->override_option('use_pager', FALSE);
1500
+  $handler->override_option('use_pager', false);
1501 1501
   $handler->override_option('use_more', 1);
1502 1502
   $handler->override_option('use_more_always', 1);
1503 1503
   $handler->override_option('style_options', array(
Please login to merge, or discard this patch.
Indentation   +766 added lines, -766 removed lines patch added patch discarded remove patch
@@ -4,29 +4,29 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_views_default_views().
5 5
  */
6 6
 function user_account_host_list_views_default_views() {
7
-  $views = array();
7
+    $views = array();
8 8
 
9
-  // Exported view: boinc_account_computers
10
-  $view = new view;
11
-  $view->name = 'boinc_account_computers';
12
-  $view->description = 'A list of computers associated with the current account';
13
-  $view->tag = '';
14
-  $view->base_table = 'host';
15
-  $view->core = 0;
16
-  $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
-  $handler = $view->new_display('default', 'Defaults', 'default');
19
-  $handler->override_option('relationships', array(
9
+    // Exported view: boinc_account_computers
10
+    $view = new view;
11
+    $view->name = 'boinc_account_computers';
12
+    $view->description = 'A list of computers associated with the current account';
13
+    $view->tag = '';
14
+    $view->base_table = 'host';
15
+    $view->core = 0;
16
+    $view->api_version = '2';
17
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
+    $handler = $view->new_display('default', 'Defaults', 'default');
19
+    $handler->override_option('relationships', array(
20 20
     'userid' => array(
21
-      'id' => 'userid',
22
-      'table' => 'host',
23
-      'field' => 'userid',
21
+        'id' => 'userid',
22
+        'table' => 'host',
23
+        'field' => 'userid',
24 24
     ),
25
-  ));
26
-  $handler->override_option('fields', array(
25
+    ));
26
+    $handler->override_option('fields', array(
27 27
     'id' => array(
28
-      'label' => 'Computer ID',
29
-      'alter' => array(
28
+        'label' => 'Computer ID',
29
+        'alter' => array(
30 30
         'alter_text' => 0,
31 31
         'text' => '',
32 32
         'make_link' => 0,
@@ -43,28 +43,28 @@  discard block
 block discarded – undo
43 43
         'ellipsis' => 1,
44 44
         'html' => 0,
45 45
         'strip_tags' => 0,
46
-      ),
47
-      'empty' => '',
48
-      'hide_empty' => 0,
49
-      'empty_zero' => 0,
50
-      'set_precision' => FALSE,
51
-      'precision' => 0,
52
-      'decimal' => '.',
53
-      'separator' => '',
54
-      'prefix' => 'ID: ',
55
-      'suffix' => '',
56
-      'exclude' => 0,
57
-      'id' => 'id',
58
-      'table' => 'host',
59
-      'field' => 'id',
60
-      'relationship' => 'none',
61
-      'override' => array(
46
+        ),
47
+        'empty' => '',
48
+        'hide_empty' => 0,
49
+        'empty_zero' => 0,
50
+        'set_precision' => FALSE,
51
+        'precision' => 0,
52
+        'decimal' => '.',
53
+        'separator' => '',
54
+        'prefix' => 'ID: ',
55
+        'suffix' => '',
56
+        'exclude' => 0,
57
+        'id' => 'id',
58
+        'table' => 'host',
59
+        'field' => 'id',
60
+        'relationship' => 'none',
61
+        'override' => array(
62 62
         'button' => 'Override',
63
-      ),
63
+        ),
64 64
     ),
65 65
     'phpcode_3' => array(
66
-      'label' => 'Computer links',
67
-      'alter' => array(
66
+        'label' => 'Computer links',
67
+        'alter' => array(
68 68
         'alter_text' => 0,
69 69
         'text' => '',
70 70
         'make_link' => 0,
@@ -83,26 +83,26 @@  discard block
 block discarded – undo
83 83
         'ellipsis' => 1,
84 84
         'html' => 0,
85 85
         'strip_tags' => 0,
86
-      ),
87
-      'empty' => '',
88
-      'hide_empty' => 0,
89
-      'empty_zero' => 0,
90
-      'hide_alter_empty' => 1,
91
-      'value' => '<?php
86
+        ),
87
+        'empty' => '',
88
+        'hide_empty' => 0,
89
+        'empty_zero' => 0,
90
+        'hide_alter_empty' => 1,
91
+        'value' => '<?php
92 92
   echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \'&nbsp;|&nbsp;\' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0");
93 93
 ?>',
94
-      'exclude' => 0,
95
-      'id' => 'phpcode_3',
96
-      'table' => 'customfield',
97
-      'field' => 'phpcode',
98
-      'override' => array(
94
+        'exclude' => 0,
95
+        'id' => 'phpcode_3',
96
+        'table' => 'customfield',
97
+        'field' => 'phpcode',
98
+        'override' => array(
99 99
         'button' => 'Override',
100
-      ),
101
-      'relationship' => 'none',
100
+        ),
101
+        'relationship' => 'none',
102 102
     ),
103 103
     'host_cpid' => array(
104
-      'label' => 'Cross project ID',
105
-      'alter' => array(
104
+        'label' => 'Cross project ID',
105
+        'alter' => array(
106 106
         'alter_text' => 0,
107 107
         'text' => '',
108 108
         'make_link' => 0,
@@ -119,19 +119,19 @@  discard block
 block discarded – undo
119 119
         'ellipsis' => 1,
120 120
         'html' => 0,
121 121
         'strip_tags' => 0,
122
-      ),
123
-      'empty' => '',
124
-      'hide_empty' => 0,
125
-      'empty_zero' => 0,
126
-      'exclude' => 1,
127
-      'id' => 'host_cpid',
128
-      'table' => 'host',
129
-      'field' => 'host_cpid',
130
-      'relationship' => 'none',
122
+        ),
123
+        'empty' => '',
124
+        'hide_empty' => 0,
125
+        'empty_zero' => 0,
126
+        'exclude' => 1,
127
+        'id' => 'host_cpid',
128
+        'table' => 'host',
129
+        'field' => 'host_cpid',
130
+        'relationship' => 'none',
131 131
     ),
132 132
     'phpcode_4' => array(
133
-      'label' => 'Cross-project statistics',
134
-      'alter' => array(
133
+        'label' => 'Cross-project statistics',
134
+        'alter' => array(
135 135
         'alter_text' => 0,
136 136
         'text' => '',
137 137
         'make_link' => 0,
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
         'ellipsis' => 1,
149 149
         'html' => 0,
150 150
         'strip_tags' => 0,
151
-      ),
152
-      'empty' => '',
153
-      'hide_empty' => 0,
154
-      'empty_zero' => 0,
155
-      'value' => '<?php
151
+        ),
152
+        'empty' => '',
153
+        'hide_empty' => 0,
154
+        'empty_zero' => 0,
155
+        'value' => '<?php
156 156
   require_boinc(\'stats_sites\');
157 157
   global $host_sites;
158 158
   $x = "";
@@ -165,18 +165,18 @@  discard block
 block discarded – undo
165 165
   }
166 166
   echo "Cross-project stats: {$x}";
167 167
 ?>',
168
-      'exclude' => 0,
169
-      'id' => 'phpcode_4',
170
-      'table' => 'customfield',
171
-      'field' => 'phpcode',
172
-      'override' => array(
168
+        'exclude' => 0,
169
+        'id' => 'phpcode_4',
170
+        'table' => 'customfield',
171
+        'field' => 'phpcode',
172
+        'override' => array(
173 173
         'button' => 'Override',
174
-      ),
175
-      'relationship' => 'none',
174
+        ),
175
+        'relationship' => 'none',
176 176
     ),
177 177
     'domain_name' => array(
178
-      'label' => 'Name',
179
-      'alter' => array(
178
+        'label' => 'Name',
179
+        'alter' => array(
180 180
         'alter_text' => 0,
181 181
         'text' => '',
182 182
         'make_link' => 0,
@@ -195,23 +195,23 @@  discard block
 block discarded – undo
195 195
         'ellipsis' => 1,
196 196
         'html' => 0,
197 197
         'strip_tags' => 0,
198
-      ),
199
-      'empty' => '',
200
-      'hide_empty' => 0,
201
-      'empty_zero' => 0,
202
-      'hide_alter_empty' => 1,
203
-      'exclude' => 0,
204
-      'id' => 'domain_name',
205
-      'table' => 'host',
206
-      'field' => 'domain_name',
207
-      'relationship' => 'none',
208
-      'override' => array(
198
+        ),
199
+        'empty' => '',
200
+        'hide_empty' => 0,
201
+        'empty_zero' => 0,
202
+        'hide_alter_empty' => 1,
203
+        'exclude' => 0,
204
+        'id' => 'domain_name',
205
+        'table' => 'host',
206
+        'field' => 'domain_name',
207
+        'relationship' => 'none',
208
+        'override' => array(
209 209
         'button' => 'Override',
210
-      ),
210
+        ),
211 211
     ),
212 212
     'venue' => array(
213
-      'label' => 'Location',
214
-      'alter' => array(
213
+        'label' => 'Location',
214
+        'alter' => array(
215 215
         'alter_text' => 0,
216 216
         'text' => '',
217 217
         'make_link' => 0,
@@ -230,20 +230,20 @@  discard block
 block discarded – undo
230 230
         'ellipsis' => 1,
231 231
         'html' => 0,
232 232
         'strip_tags' => 0,
233
-      ),
234
-      'empty' => '',
235
-      'hide_empty' => 0,
236
-      'empty_zero' => 0,
237
-      'hide_alter_empty' => 1,
238
-      'exclude' => 0,
239
-      'id' => 'venue',
240
-      'table' => 'host',
241
-      'field' => 'venue',
242
-      'relationship' => 'none',
233
+        ),
234
+        'empty' => '',
235
+        'hide_empty' => 0,
236
+        'empty_zero' => 0,
237
+        'hide_alter_empty' => 1,
238
+        'exclude' => 0,
239
+        'id' => 'venue',
240
+        'table' => 'host',
241
+        'field' => 'venue',
242
+        'relationship' => 'none',
243 243
     ),
244 244
     'expavg_credit' => array(
245
-      'label' => 'Avg. credit',
246
-      'alter' => array(
245
+        'label' => 'Avg. credit',
246
+        'alter' => array(
247 247
         'alter_text' => 0,
248 248
         'text' => '',
249 249
         'make_link' => 0,
@@ -260,25 +260,25 @@  discard block
 block discarded – undo
260 260
         'ellipsis' => 1,
261 261
         'html' => 0,
262 262
         'strip_tags' => 0,
263
-      ),
264
-      'empty' => '',
265
-      'hide_empty' => 0,
266
-      'empty_zero' => 0,
267
-      'set_precision' => 1,
268
-      'precision' => '2',
269
-      'decimal' => '.',
270
-      'separator' => ',',
271
-      'prefix' => '',
272
-      'suffix' => '',
273
-      'exclude' => 0,
274
-      'id' => 'expavg_credit',
275
-      'table' => 'host',
276
-      'field' => 'expavg_credit',
277
-      'relationship' => 'none',
263
+        ),
264
+        'empty' => '',
265
+        'hide_empty' => 0,
266
+        'empty_zero' => 0,
267
+        'set_precision' => 1,
268
+        'precision' => '2',
269
+        'decimal' => '.',
270
+        'separator' => ',',
271
+        'prefix' => '',
272
+        'suffix' => '',
273
+        'exclude' => 0,
274
+        'id' => 'expavg_credit',
275
+        'table' => 'host',
276
+        'field' => 'expavg_credit',
277
+        'relationship' => 'none',
278 278
     ),
279 279
     'total_credit' => array(
280
-      'label' => 'Total credit',
281
-      'alter' => array(
280
+        'label' => 'Total credit',
281
+        'alter' => array(
282 282
         'alter_text' => 0,
283 283
         'text' => '',
284 284
         'make_link' => 0,
@@ -295,25 +295,25 @@  discard block
 block discarded – undo
295 295
         'ellipsis' => 1,
296 296
         'html' => 0,
297 297
         'strip_tags' => 0,
298
-      ),
299
-      'empty' => '',
300
-      'hide_empty' => 0,
301
-      'empty_zero' => 0,
302
-      'set_precision' => 1,
303
-      'precision' => '0',
304
-      'decimal' => '.',
305
-      'separator' => ',',
306
-      'prefix' => '',
307
-      'suffix' => '',
308
-      'exclude' => 0,
309
-      'id' => 'total_credit',
310
-      'table' => 'host',
311
-      'field' => 'total_credit',
312
-      'relationship' => 'none',
298
+        ),
299
+        'empty' => '',
300
+        'hide_empty' => 0,
301
+        'empty_zero' => 0,
302
+        'set_precision' => 1,
303
+        'precision' => '0',
304
+        'decimal' => '.',
305
+        'separator' => ',',
306
+        'prefix' => '',
307
+        'suffix' => '',
308
+        'exclude' => 0,
309
+        'id' => 'total_credit',
310
+        'table' => 'host',
311
+        'field' => 'total_credit',
312
+        'relationship' => 'none',
313 313
     ),
314 314
     'serialnum' => array(
315
-      'label' => 'Serial Number',
316
-      'alter' => array(
315
+        'label' => 'Serial Number',
316
+        'alter' => array(
317 317
         'alter_text' => 0,
318 318
         'text' => '',
319 319
         'make_link' => 0,
@@ -332,20 +332,20 @@  discard block
 block discarded – undo
332 332
         'ellipsis' => 1,
333 333
         'html' => 0,
334 334
         'strip_tags' => 0,
335
-      ),
336
-      'empty' => '',
337
-      'hide_empty' => 0,
338
-      'empty_zero' => 0,
339
-      'hide_alter_empty' => 1,
340
-      'exclude' => 1,
341
-      'id' => 'serialnum',
342
-      'table' => 'host',
343
-      'field' => 'serialnum',
344
-      'relationship' => 'none',
335
+        ),
336
+        'empty' => '',
337
+        'hide_empty' => 0,
338
+        'empty_zero' => 0,
339
+        'hide_alter_empty' => 1,
340
+        'exclude' => 1,
341
+        'id' => 'serialnum',
342
+        'table' => 'host',
343
+        'field' => 'serialnum',
344
+        'relationship' => 'none',
345 345
     ),
346 346
     'phpcode' => array(
347
-      'label' => 'BOINC version',
348
-      'alter' => array(
347
+        'label' => 'BOINC version',
348
+        'alter' => array(
349 349
         'alter_text' => 0,
350 350
         'text' => '',
351 351
         'make_link' => 0,
@@ -362,23 +362,23 @@  discard block
 block discarded – undo
362 362
         'ellipsis' => 1,
363 363
         'html' => 0,
364 364
         'strip_tags' => 0,
365
-      ),
366
-      'empty' => '',
367
-      'hide_empty' => 0,
368
-      'empty_zero' => 0,
369
-      'value' => '<?php
365
+        ),
366
+        'empty' => '',
367
+        'hide_empty' => 0,
368
+        'empty_zero' => 0,
369
+        'value' => '<?php
370 370
   require_boinc(\'host\');
371 371
   echo boinc_version(parse_serialnum($data->host_serialnum));
372 372
 ?>',
373
-      'exclude' => 0,
374
-      'id' => 'phpcode',
375
-      'table' => 'customfield',
376
-      'field' => 'phpcode',
377
-      'relationship' => 'none',
373
+        'exclude' => 0,
374
+        'id' => 'phpcode',
375
+        'table' => 'customfield',
376
+        'field' => 'phpcode',
377
+        'relationship' => 'none',
378 378
     ),
379 379
     'p_vendor' => array(
380
-      'label' => 'CPU',
381
-      'alter' => array(
380
+        'label' => 'CPU',
381
+        'alter' => array(
382 382
         'alter_text' => 0,
383 383
         'text' => '',
384 384
         'make_link' => 0,
@@ -395,19 +395,19 @@  discard block
 block discarded – undo
395 395
         'ellipsis' => 1,
396 396
         'html' => 0,
397 397
         'strip_tags' => 0,
398
-      ),
399
-      'empty' => '',
400
-      'hide_empty' => 0,
401
-      'empty_zero' => 0,
402
-      'exclude' => 0,
403
-      'id' => 'p_vendor',
404
-      'table' => 'host',
405
-      'field' => 'p_vendor',
406
-      'relationship' => 'none',
398
+        ),
399
+        'empty' => '',
400
+        'hide_empty' => 0,
401
+        'empty_zero' => 0,
402
+        'exclude' => 0,
403
+        'id' => 'p_vendor',
404
+        'table' => 'host',
405
+        'field' => 'p_vendor',
406
+        'relationship' => 'none',
407 407
     ),
408 408
     'p_model' => array(
409
-      'label' => 'CPU model',
410
-      'alter' => array(
409
+        'label' => 'CPU model',
410
+        'alter' => array(
411 411
         'alter_text' => 0,
412 412
         'text' => '',
413 413
         'make_link' => 0,
@@ -424,19 +424,19 @@  discard block
 block discarded – undo
424 424
         'ellipsis' => 1,
425 425
         'html' => 0,
426 426
         'strip_tags' => 0,
427
-      ),
428
-      'empty' => '',
429
-      'hide_empty' => 0,
430
-      'empty_zero' => 0,
431
-      'exclude' => 0,
432
-      'id' => 'p_model',
433
-      'table' => 'host',
434
-      'field' => 'p_model',
435
-      'relationship' => 'none',
427
+        ),
428
+        'empty' => '',
429
+        'hide_empty' => 0,
430
+        'empty_zero' => 0,
431
+        'exclude' => 0,
432
+        'id' => 'p_model',
433
+        'table' => 'host',
434
+        'field' => 'p_model',
435
+        'relationship' => 'none',
436 436
     ),
437 437
     'p_ncpus' => array(
438
-      'label' => 'Number of CPUs',
439
-      'alter' => array(
438
+        'label' => 'Number of CPUs',
439
+        'alter' => array(
440 440
         'alter_text' => 1,
441 441
         'text' => '([p_ncpus] processors)',
442 442
         'make_link' => 0,
@@ -453,19 +453,19 @@  discard block
 block discarded – undo
453 453
         'ellipsis' => 1,
454 454
         'html' => 0,
455 455
         'strip_tags' => 0,
456
-      ),
457
-      'empty' => '',
458
-      'hide_empty' => 0,
459
-      'empty_zero' => 0,
460
-      'exclude' => 0,
461
-      'id' => 'p_ncpus',
462
-      'table' => 'host',
463
-      'field' => 'p_ncpus',
464
-      'relationship' => 'none',
456
+        ),
457
+        'empty' => '',
458
+        'hide_empty' => 0,
459
+        'empty_zero' => 0,
460
+        'exclude' => 0,
461
+        'id' => 'p_ncpus',
462
+        'table' => 'host',
463
+        'field' => 'p_ncpus',
464
+        'relationship' => 'none',
465 465
     ),
466 466
     'phpcode_1' => array(
467
-      'label' => 'GPU',
468
-      'alter' => array(
467
+        'label' => 'GPU',
468
+        'alter' => array(
469 469
         'alter_text' => 0,
470 470
         'text' => '',
471 471
         'make_link' => 0,
@@ -482,23 +482,23 @@  discard block
 block discarded – undo
482 482
         'ellipsis' => 1,
483 483
         'html' => 0,
484 484
         'strip_tags' => 0,
485
-      ),
486
-      'empty' => '',
487
-      'hide_empty' => 0,
488
-      'empty_zero' => 0,
489
-      'value' => '<?php
485
+        ),
486
+        'empty' => '',
487
+        'hide_empty' => 0,
488
+        'empty_zero' => 0,
489
+        'value' => '<?php
490 490
   require_boinc(\'host\');
491 491
   echo gpu_desc(parse_serialnum($data->host_serialnum));
492 492
 ?>',
493
-      'exclude' => 0,
494
-      'id' => 'phpcode_1',
495
-      'table' => 'customfield',
496
-      'field' => 'phpcode',
497
-      'relationship' => 'none',
493
+        'exclude' => 0,
494
+        'id' => 'phpcode_1',
495
+        'table' => 'customfield',
496
+        'field' => 'phpcode',
497
+        'relationship' => 'none',
498 498
     ),
499 499
     'os_name' => array(
500
-      'label' => 'Operating system',
501
-      'alter' => array(
500
+        'label' => 'Operating system',
501
+        'alter' => array(
502 502
         'alter_text' => 0,
503 503
         'text' => '',
504 504
         'make_link' => 0,
@@ -515,19 +515,19 @@  discard block
 block discarded – undo
515 515
         'ellipsis' => 1,
516 516
         'html' => 0,
517 517
         'strip_tags' => 0,
518
-      ),
519
-      'empty' => '',
520
-      'hide_empty' => 0,
521
-      'empty_zero' => 0,
522
-      'exclude' => 0,
523
-      'id' => 'os_name',
524
-      'table' => 'host',
525
-      'field' => 'os_name',
526
-      'relationship' => 'none',
518
+        ),
519
+        'empty' => '',
520
+        'hide_empty' => 0,
521
+        'empty_zero' => 0,
522
+        'exclude' => 0,
523
+        'id' => 'os_name',
524
+        'table' => 'host',
525
+        'field' => 'os_name',
526
+        'relationship' => 'none',
527 527
     ),
528 528
     'os_version' => array(
529
-      'label' => 'Operating system version',
530
-      'alter' => array(
529
+        'label' => 'Operating system version',
530
+        'alter' => array(
531 531
         'alter_text' => 0,
532 532
         'text' => '',
533 533
         'make_link' => 0,
@@ -544,19 +544,19 @@  discard block
 block discarded – undo
544 544
         'ellipsis' => 1,
545 545
         'html' => 0,
546 546
         'strip_tags' => 0,
547
-      ),
548
-      'empty' => '',
549
-      'hide_empty' => 0,
550
-      'empty_zero' => 0,
551
-      'exclude' => 0,
552
-      'id' => 'os_version',
553
-      'table' => 'host',
554
-      'field' => 'os_version',
555
-      'relationship' => 'none',
547
+        ),
548
+        'empty' => '',
549
+        'hide_empty' => 0,
550
+        'empty_zero' => 0,
551
+        'exclude' => 0,
552
+        'id' => 'os_version',
553
+        'table' => 'host',
554
+        'field' => 'os_version',
555
+        'relationship' => 'none',
556 556
     ),
557 557
     'rpc_time' => array(
558
-      'label' => 'Last contact',
559
-      'alter' => array(
558
+        'label' => 'Last contact',
559
+        'alter' => array(
560 560
         'alter_text' => 0,
561 561
         'text' => '',
562 562
         'make_link' => 0,
@@ -575,22 +575,22 @@  discard block
 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
-      'date_format' => 'custom',
584
-      'custom_date_format' => 'j M Y G:i:s T',
585
-      'exclude' => 1,
586
-      'id' => 'rpc_time',
587
-      'table' => 'host',
588
-      'field' => 'rpc_time',
589
-      'relationship' => 'none',
578
+        ),
579
+        'empty' => '',
580
+        'hide_empty' => 0,
581
+        'empty_zero' => 0,
582
+        'hide_alter_empty' => 1,
583
+        'date_format' => 'custom',
584
+        'custom_date_format' => 'j M Y G:i:s T',
585
+        'exclude' => 1,
586
+        'id' => 'rpc_time',
587
+        'table' => 'host',
588
+        'field' => 'rpc_time',
589
+        'relationship' => 'none',
590 590
     ),
591 591
     'phpcode_2' => array(
592
-      'label' => 'Last contact',
593
-      'alter' => array(
592
+        'label' => 'Last contact',
593
+        'alter' => array(
594 594
         'alter_text' => 0,
595 595
         'text' => '',
596 596
         'make_link' => 0,
@@ -609,44 +609,44 @@  discard block
 block discarded – undo
609 609
         'ellipsis' => 1,
610 610
         'html' => 0,
611 611
         'strip_tags' => 0,
612
-      ),
613
-      'empty' => '',
614
-      'hide_empty' => 0,
615
-      'empty_zero' => 0,
616
-      'hide_alter_empty' => 1,
617
-      'value' => '<?php
612
+        ),
613
+        'empty' => '',
614
+        'hide_empty' => 0,
615
+        'empty_zero' => 0,
616
+        'hide_alter_empty' => 1,
617
+        'value' => '<?php
618 618
   echo boincwork_host_last_contact($data->host_rpc_time, $data->id);
619 619
 ?>',
620
-      'exclude' => 0,
621
-      'id' => 'phpcode_2',
622
-      'table' => 'customfield',
623
-      'field' => 'phpcode',
624
-      'relationship' => 'none',
625
-      'override' => array(
620
+        'exclude' => 0,
621
+        'id' => 'phpcode_2',
622
+        'table' => 'customfield',
623
+        'field' => 'phpcode',
624
+        'relationship' => 'none',
625
+        'override' => array(
626 626
         'button' => 'Override',
627
-      ),
627
+        ),
628 628
     ),
629
-  ));
630
-  $handler->override_option('arguments', array(
629
+    ));
630
+    $handler->override_option('arguments', array(
631 631
     'userid' => array(
632
-      'default_action' => 'default',
633
-      'style_plugin' => 'default_summary',
634
-      'style_options' => array(),
635
-      'wildcard' => 'all',
636
-      'wildcard_substitution' => 'All',
637
-      'title' => '',
638
-      'breadcrumb' => '',
639
-      'default_argument_type' => 'current_user',
640
-      'default_argument' => '',
641
-      'validate_type' => 'php',
642
-      'validate_fail' => 'empty',
643
-      'break_phrase' => 0,
644
-      'not' => 0,
645
-      'id' => 'userid',
646
-      'table' => 'host',
647
-      'field' => 'userid',
648
-      'validate_user_argument_type' => 'uid',
649
-      'validate_user_roles' => array(
632
+        'default_action' => 'default',
633
+        'style_plugin' => 'default_summary',
634
+        'style_options' => array(),
635
+        'wildcard' => 'all',
636
+        'wildcard_substitution' => 'All',
637
+        'title' => '',
638
+        'breadcrumb' => '',
639
+        'default_argument_type' => 'current_user',
640
+        'default_argument' => '',
641
+        'validate_type' => 'php',
642
+        'validate_fail' => 'empty',
643
+        'break_phrase' => 0,
644
+        'not' => 0,
645
+        'id' => 'userid',
646
+        'table' => 'host',
647
+        'field' => 'userid',
648
+        'validate_user_argument_type' => 'uid',
649
+        'validate_user_roles' => array(
650 650
         2 => 0,
651 651
         3519698132 => 0,
652 652
         1110965548 => 0,
@@ -655,13 +655,13 @@  discard block
 block discarded – undo
655 655
         268174006 => 0,
656 656
         1271379760 => 0,
657 657
         933038561 => 0,
658
-      ),
659
-      'relationship' => 'none',
660
-      'default_options_div_prefix' => '',
661
-      'default_argument_fixed' => '',
662
-      'default_argument_user' => 0,
663
-      'default_argument_php' => '',
664
-      'validate_argument_node_type' => array(
658
+        ),
659
+        'relationship' => 'none',
660
+        'default_options_div_prefix' => '',
661
+        'default_argument_fixed' => '',
662
+        'default_argument_user' => 0,
663
+        'default_argument_php' => '',
664
+        'validate_argument_node_type' => array(
665 665
         'page' => 0,
666 666
         'news' => 0,
667 667
         'team' => 0,
@@ -670,21 +670,21 @@  discard block
 block discarded – undo
670 670
         'forum' => 0,
671 671
         'panel' => 0,
672 672
         'story' => 0,
673
-      ),
674
-      'validate_argument_node_access' => 0,
675
-      'validate_argument_nid_type' => 'nid',
676
-      'validate_argument_vocabulary' => array(
673
+        ),
674
+        'validate_argument_node_access' => 0,
675
+        'validate_argument_nid_type' => 'nid',
676
+        'validate_argument_vocabulary' => array(
677 677
         1 => 0,
678 678
         2 => 0,
679
-      ),
680
-      'validate_argument_type' => 'tid',
681
-      'validate_argument_transform' => 0,
682
-      'validate_user_restrict_roles' => 0,
683
-      'validate_argument_php' => 'return is_current_boinc_user($argument);
679
+        ),
680
+        'validate_argument_type' => 'tid',
681
+        'validate_argument_transform' => 0,
682
+        'validate_user_restrict_roles' => 0,
683
+        'validate_argument_php' => 'return is_current_boinc_user($argument);
684 684
 //return ($argument == $GLOBALS[\'user\']->uid) or ($argument == 60);',
685
-      'me_redirect' => 0,
686
-      'me_validate_user_argument_type' => 'uid',
687
-      'me_validate_user_roles' => array(
685
+        'me_redirect' => 0,
686
+        'me_validate_user_argument_type' => 'uid',
687
+        'me_validate_user_roles' => array(
688 688
         2 => 0,
689 689
         3519698132 => 0,
690 690
         1110965548 => 0,
@@ -693,200 +693,200 @@  discard block
 block discarded – undo
693 693
         268174006 => 0,
694 694
         1271379760 => 0,
695 695
         933038561 => 0,
696
-      ),
697
-      'default_taxonomy_tid_term_page' => 0,
698
-      'default_taxonomy_tid_node' => 0,
699
-      'default_taxonomy_tid_limit' => 0,
700
-      'default_taxonomy_tid_vids' => array(
696
+        ),
697
+        'default_taxonomy_tid_term_page' => 0,
698
+        'default_taxonomy_tid_node' => 0,
699
+        'default_taxonomy_tid_limit' => 0,
700
+        'default_taxonomy_tid_vids' => array(
701 701
         1 => 0,
702 702
         2 => 0,
703
-      ),
704
-      'validate_argument_node_flag_name' => '*relationship*',
705
-      'validate_argument_node_flag_test' => 'flaggable',
706
-      'validate_argument_node_flag_id_type' => 'id',
707
-      'validate_argument_user_flag_name' => '*relationship*',
708
-      'validate_argument_user_flag_test' => 'flaggable',
709
-      'validate_argument_user_flag_id_type' => 'id',
710
-      'me_validate_user_restrict_roles' => 0,
703
+        ),
704
+        'validate_argument_node_flag_name' => '*relationship*',
705
+        'validate_argument_node_flag_test' => 'flaggable',
706
+        'validate_argument_node_flag_id_type' => 'id',
707
+        'validate_argument_user_flag_name' => '*relationship*',
708
+        'validate_argument_user_flag_test' => 'flaggable',
709
+        'validate_argument_user_flag_id_type' => 'id',
710
+        'me_validate_user_restrict_roles' => 0,
711 711
     ),
712
-  ));
713
-  $handler->override_option('access', array(
712
+    ));
713
+    $handler->override_option('access', array(
714 714
     'type' => 'none',
715
-  ));
716
-  $handler->override_option('cache', array(
715
+    ));
716
+    $handler->override_option('cache', array(
717 717
     'type' => 'none',
718
-  ));
719
-  $handler->override_option('empty', '<?php
718
+    ));
719
+    $handler->override_option('empty', '<?php
720 720
   if (!user_is_logged_in()) {
721 721
     drupal_goto(\'user/login\', drupal_get_destination());
722 722
   }
723 723
 ?>');
724
-  $handler->override_option('empty_format', '3');
725
-  $handler->override_option('items_per_page', 20);
726
-  $handler->override_option('use_pager', '1');
727
-  $handler->override_option('style_plugin', 'table');
728
-  $handler->override_option('style_options', array(
724
+    $handler->override_option('empty_format', '3');
725
+    $handler->override_option('items_per_page', 20);
726
+    $handler->override_option('use_pager', '1');
727
+    $handler->override_option('style_plugin', 'table');
728
+    $handler->override_option('style_options', array(
729 729
     'grouping' => '',
730 730
     'override' => 1,
731 731
     'sticky' => 1,
732 732
     'order' => 'desc',
733 733
     'summary' => '',
734 734
     'columns' => array(
735
-      'id' => 'id',
736
-      'phpcode_3' => 'id',
737
-      'host_cpid' => 'host_cpid',
738
-      'phpcode_4' => 'id',
739
-      'rownumber' => 'rownumber',
740
-      'domain_name' => 'domain_name',
741
-      'venue' => 'venue',
742
-      'expavg_credit' => 'expavg_credit',
743
-      'total_credit' => 'total_credit',
744
-      'serialnum' => 'serialnum',
745
-      'phpcode' => 'phpcode',
746
-      'p_vendor' => 'p_vendor',
747
-      'p_model' => 'p_vendor',
748
-      'p_ncpus' => 'p_vendor',
749
-      'phpcode_1' => 'phpcode_1',
750
-      'os_name' => 'os_name',
751
-      'os_version' => 'os_name',
752
-      'rpc_time' => 'rpc_time',
753
-      'phpcode_2' => 'phpcode_2',
735
+        'id' => 'id',
736
+        'phpcode_3' => 'id',
737
+        'host_cpid' => 'host_cpid',
738
+        'phpcode_4' => 'id',
739
+        'rownumber' => 'rownumber',
740
+        'domain_name' => 'domain_name',
741
+        'venue' => 'venue',
742
+        'expavg_credit' => 'expavg_credit',
743
+        'total_credit' => 'total_credit',
744
+        'serialnum' => 'serialnum',
745
+        'phpcode' => 'phpcode',
746
+        'p_vendor' => 'p_vendor',
747
+        'p_model' => 'p_vendor',
748
+        'p_ncpus' => 'p_vendor',
749
+        'phpcode_1' => 'phpcode_1',
750
+        'os_name' => 'os_name',
751
+        'os_version' => 'os_name',
752
+        'rpc_time' => 'rpc_time',
753
+        'phpcode_2' => 'phpcode_2',
754 754
     ),
755 755
     'info' => array(
756
-      'id' => array(
756
+        'id' => array(
757 757
         'sortable' => 1,
758 758
         'separator' => '<br/>',
759
-      ),
760
-      'phpcode_3' => array(
759
+        ),
760
+        'phpcode_3' => array(
761 761
         'separator' => '',
762
-      ),
763
-      'host_cpid' => array(
762
+        ),
763
+        'host_cpid' => array(
764 764
         'sortable' => 0,
765 765
         'separator' => '',
766
-      ),
767
-      'phpcode_4' => array(
766
+        ),
767
+        'phpcode_4' => array(
768 768
         'separator' => '',
769
-      ),
770
-      'rownumber' => array(
769
+        ),
770
+        'rownumber' => array(
771 771
         'separator' => '',
772
-      ),
773
-      'domain_name' => array(
772
+        ),
773
+        'domain_name' => array(
774 774
         'sortable' => 1,
775 775
         'separator' => '',
776
-      ),
777
-      'venue' => array(
776
+        ),
777
+        'venue' => array(
778 778
         'sortable' => 1,
779 779
         'separator' => '',
780
-      ),
781
-      'expavg_credit' => array(
780
+        ),
781
+        'expavg_credit' => array(
782 782
         'sortable' => 1,
783 783
         'separator' => '',
784
-      ),
785
-      'total_credit' => array(
784
+        ),
785
+        'total_credit' => array(
786 786
         'sortable' => 1,
787 787
         'separator' => '',
788
-      ),
789
-      'serialnum' => array(
788
+        ),
789
+        'serialnum' => array(
790 790
         'sortable' => 0,
791 791
         'separator' => '',
792
-      ),
793
-      'phpcode' => array(
792
+        ),
793
+        'phpcode' => array(
794 794
         'separator' => '',
795
-      ),
796
-      'p_vendor' => array(
795
+        ),
796
+        'p_vendor' => array(
797 797
         'sortable' => 1,
798 798
         'separator' => '<br/>',
799
-      ),
800
-      'p_model' => array(
799
+        ),
800
+        'p_model' => array(
801 801
         'sortable' => 0,
802 802
         'separator' => '',
803
-      ),
804
-      'p_ncpus' => array(
803
+        ),
804
+        'p_ncpus' => array(
805 805
         'sortable' => 0,
806 806
         'separator' => '',
807
-      ),
808
-      'phpcode_1' => array(
807
+        ),
808
+        'phpcode_1' => array(
809 809
         'separator' => '',
810
-      ),
811
-      'os_name' => array(
810
+        ),
811
+        'os_name' => array(
812 812
         'sortable' => 1,
813 813
         'separator' => '<br/>',
814
-      ),
815
-      'os_version' => array(
814
+        ),
815
+        'os_version' => array(
816 816
         'sortable' => 0,
817 817
         'separator' => '',
818
-      ),
819
-      'rpc_time' => array(
818
+        ),
819
+        'rpc_time' => array(
820 820
         'sortable' => 1,
821 821
         'separator' => '',
822
-      ),
823
-      'phpcode_2' => array(
822
+        ),
823
+        'phpcode_2' => array(
824 824
         'separator' => '',
825
-      ),
825
+        ),
826 826
     ),
827 827
     'default' => 'rpc_time',
828
-  ));
829
-  $handler = $view->new_display('page', 'All computers', 'page_1');
830
-  $handler->override_option('path', 'account/computers/all');
831
-  $handler->override_option('menu', array(
828
+    ));
829
+    $handler = $view->new_display('page', 'All computers', 'page_1');
830
+    $handler->override_option('path', 'account/computers/all');
831
+    $handler->override_option('menu', array(
832 832
     'type' => 'tab',
833 833
     'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'),
834 834
     'description' => 'Show all computers associated with the account',
835 835
     'weight' => '1',
836 836
     'name' => 'navigation',
837
-  ));
838
-  $handler->override_option('tab_options', array(
837
+    ));
838
+    $handler->override_option('tab_options', array(
839 839
     'type' => 'none',
840 840
     'title' => '',
841 841
     'description' => '',
842 842
     'weight' => 0,
843 843
     'name' => 'navigation',
844
-  ));
845
-  $handler = $view->new_display('page', 'Active computers', 'page_2');
846
-  $handler->override_option('filters', array(
844
+    ));
845
+    $handler = $view->new_display('page', 'Active computers', 'page_2');
846
+    $handler->override_option('filters', array(
847 847
     'rpc_time' => array(
848
-      'operator' => '>',
849
-      'value' => array(
848
+        'operator' => '>',
849
+        'value' => array(
850 850
         'type' => 'offset',
851 851
         'value' => '-30 days',
852 852
         'min' => '',
853 853
         'max' => '',
854
-      ),
855
-      'group' => '0',
856
-      'exposed' => FALSE,
857
-      'expose' => array(
854
+        ),
855
+        'group' => '0',
856
+        'exposed' => FALSE,
857
+        'expose' => array(
858 858
         'operator' => FALSE,
859 859
         'label' => '',
860
-      ),
861
-      'id' => 'rpc_time',
862
-      'table' => 'host',
863
-      'field' => 'rpc_time',
864
-      'override' => array(
860
+        ),
861
+        'id' => 'rpc_time',
862
+        'table' => 'host',
863
+        'field' => 'rpc_time',
864
+        'override' => array(
865 865
         'button' => 'Use default',
866
-      ),
867
-      'relationship' => 'none',
866
+        ),
867
+        'relationship' => 'none',
868 868
     ),
869
-  ));
870
-  $handler->override_option('path', 'account/computers/active');
871
-  $handler->override_option('menu', array(
869
+    ));
870
+    $handler->override_option('path', 'account/computers/active');
871
+    $handler->override_option('menu', array(
872 872
     'type' => 'default tab',
873 873
     'title' => bts('Computers active in past 30 days', array(), NULL, 'boinc:account-host-list'),
874 874
     'description' => '',
875 875
     'weight' => '0',
876 876
     'name' => 'navigation',
877
-  ));
878
-  $handler->override_option('tab_options', array(
877
+    ));
878
+    $handler->override_option('tab_options', array(
879 879
     'type' => 'normal',
880 880
     'title' => 'Computers',
881 881
     'description' => '',
882 882
     'weight' => '0',
883 883
     'name' => 'navigation',
884
-  ));
885
-  $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1');
886
-  $handler->override_option('fields', array(
884
+    ));
885
+    $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1');
886
+    $handler->override_option('fields', array(
887 887
     'id' => array(
888
-      'label' => 'Computer ID',
889
-      'alter' => array(
888
+        'label' => 'Computer ID',
889
+        'alter' => array(
890 890
         'alter_text' => 0,
891 891
         'text' => '',
892 892
         'make_link' => 0,
@@ -905,32 +905,32 @@  discard block
 block discarded – undo
905 905
         'ellipsis' => 1,
906 906
         'html' => 0,
907 907
         'strip_tags' => 0,
908
-      ),
909
-      'empty' => '',
910
-      'hide_empty' => 0,
911
-      'empty_zero' => 0,
912
-      'hide_alter_empty' => 1,
913
-      'set_precision' => FALSE,
914
-      'precision' => 0,
915
-      'decimal' => '.',
916
-      'separator' => '',
917
-      'format_plural' => 0,
918
-      'format_plural_singular' => '1',
919
-      'format_plural_plural' => '@count',
920
-      'prefix' => '',
921
-      'suffix' => '',
922
-      'exclude' => 0,
923
-      'id' => 'id',
924
-      'table' => 'host',
925
-      'field' => 'id',
926
-      'relationship' => 'none',
927
-      'override' => array(
908
+        ),
909
+        'empty' => '',
910
+        'hide_empty' => 0,
911
+        'empty_zero' => 0,
912
+        'hide_alter_empty' => 1,
913
+        'set_precision' => FALSE,
914
+        'precision' => 0,
915
+        'decimal' => '.',
916
+        'separator' => '',
917
+        'format_plural' => 0,
918
+        'format_plural_singular' => '1',
919
+        'format_plural_plural' => '@count',
920
+        'prefix' => '',
921
+        'suffix' => '',
922
+        'exclude' => 0,
923
+        'id' => 'id',
924
+        'table' => 'host',
925
+        'field' => 'id',
926
+        'relationship' => 'none',
927
+        'override' => array(
928 928
         'button' => 'Use default',
929
-      ),
929
+        ),
930 930
     ),
931 931
     'domain_name' => array(
932
-      'label' => 'Name',
933
-      'alter' => array(
932
+        'label' => 'Name',
933
+        'alter' => array(
934 934
         'alter_text' => 0,
935 935
         'text' => '',
936 936
         'make_link' => 0,
@@ -949,23 +949,23 @@  discard block
 block discarded – undo
949 949
         'ellipsis' => 1,
950 950
         'html' => 0,
951 951
         'strip_tags' => 0,
952
-      ),
953
-      'empty' => '',
954
-      'hide_empty' => 0,
955
-      'empty_zero' => 0,
956
-      'hide_alter_empty' => 1,
957
-      'exclude' => 0,
958
-      'id' => 'domain_name',
959
-      'table' => 'host',
960
-      'field' => 'domain_name',
961
-      'override' => array(
952
+        ),
953
+        'empty' => '',
954
+        'hide_empty' => 0,
955
+        'empty_zero' => 0,
956
+        'hide_alter_empty' => 1,
957
+        'exclude' => 0,
958
+        'id' => 'domain_name',
959
+        'table' => 'host',
960
+        'field' => 'domain_name',
961
+        'override' => array(
962 962
         'button' => 'Use default',
963
-      ),
964
-      'relationship' => 'none',
963
+        ),
964
+        'relationship' => 'none',
965 965
     ),
966 966
     'expavg_credit' => array(
967
-      'label' => 'Avg credit',
968
-      'alter' => array(
967
+        'label' => 'Avg credit',
968
+        'alter' => array(
969 969
         'alter_text' => 0,
970 970
         'text' => '',
971 971
         'make_link' => 0,
@@ -984,32 +984,32 @@  discard block
 block discarded – undo
984 984
         'ellipsis' => 1,
985 985
         'html' => 0,
986 986
         'strip_tags' => 0,
987
-      ),
988
-      'empty' => '',
989
-      'hide_empty' => 0,
990
-      'empty_zero' => 0,
991
-      'hide_alter_empty' => 0,
992
-      'set_precision' => 1,
993
-      'precision' => '2',
994
-      'decimal' => '.',
995
-      'separator' => ',',
996
-      'format_plural' => 0,
997
-      'format_plural_singular' => '1',
998
-      'format_plural_plural' => '@count',
999
-      'prefix' => '',
1000
-      'suffix' => '',
1001
-      'exclude' => 0,
1002
-      'id' => 'expavg_credit',
1003
-      'table' => 'host',
1004
-      'field' => 'expavg_credit',
1005
-      'relationship' => 'none',
1006
-      'override' => array(
987
+        ),
988
+        'empty' => '',
989
+        'hide_empty' => 0,
990
+        'empty_zero' => 0,
991
+        'hide_alter_empty' => 0,
992
+        'set_precision' => 1,
993
+        'precision' => '2',
994
+        'decimal' => '.',
995
+        'separator' => ',',
996
+        'format_plural' => 0,
997
+        'format_plural_singular' => '1',
998
+        'format_plural_plural' => '@count',
999
+        'prefix' => '',
1000
+        'suffix' => '',
1001
+        'exclude' => 0,
1002
+        'id' => 'expavg_credit',
1003
+        'table' => 'host',
1004
+        'field' => 'expavg_credit',
1005
+        'relationship' => 'none',
1006
+        'override' => array(
1007 1007
         'button' => 'Use default',
1008
-      ),
1008
+        ),
1009 1009
     ),
1010 1010
     'total_credit' => array(
1011
-      'label' => 'Total credit',
1012
-      'alter' => array(
1011
+        'label' => 'Total credit',
1012
+        'alter' => array(
1013 1013
         'alter_text' => 0,
1014 1014
         'text' => '',
1015 1015
         'make_link' => 0,
@@ -1028,32 +1028,32 @@  discard block
 block discarded – undo
1028 1028
         'ellipsis' => 1,
1029 1029
         'html' => 0,
1030 1030
         'strip_tags' => 0,
1031
-      ),
1032
-      'empty' => '',
1033
-      'hide_empty' => 0,
1034
-      'empty_zero' => 0,
1035
-      'hide_alter_empty' => 0,
1036
-      'set_precision' => 1,
1037
-      'precision' => '0',
1038
-      'decimal' => '.',
1039
-      'separator' => ',',
1040
-      'format_plural' => 0,
1041
-      'format_plural_singular' => '1',
1042
-      'format_plural_plural' => '@count',
1043
-      'prefix' => '',
1044
-      'suffix' => '',
1045
-      'exclude' => 0,
1046
-      'id' => 'total_credit',
1047
-      'table' => 'host',
1048
-      'field' => 'total_credit',
1049
-      'relationship' => 'none',
1050
-      'override' => array(
1031
+        ),
1032
+        'empty' => '',
1033
+        'hide_empty' => 0,
1034
+        'empty_zero' => 0,
1035
+        'hide_alter_empty' => 0,
1036
+        'set_precision' => 1,
1037
+        'precision' => '0',
1038
+        'decimal' => '.',
1039
+        'separator' => ',',
1040
+        'format_plural' => 0,
1041
+        'format_plural_singular' => '1',
1042
+        'format_plural_plural' => '@count',
1043
+        'prefix' => '',
1044
+        'suffix' => '',
1045
+        'exclude' => 0,
1046
+        'id' => 'total_credit',
1047
+        'table' => 'host',
1048
+        'field' => 'total_credit',
1049
+        'relationship' => 'none',
1050
+        'override' => array(
1051 1051
         'button' => 'Use default',
1052
-      ),
1052
+        ),
1053 1053
     ),
1054 1054
     'rpc_time' => array(
1055
-      'label' => 'Last contact',
1056
-      'alter' => array(
1055
+        'label' => 'Last contact',
1056
+        'alter' => array(
1057 1057
         'alter_text' => 0,
1058 1058
         'text' => '',
1059 1059
         'make_link' => 0,
@@ -1070,83 +1070,83 @@  discard block
 block discarded – undo
1070 1070
         'ellipsis' => 1,
1071 1071
         'html' => 0,
1072 1072
         'strip_tags' => 0,
1073
-      ),
1074
-      'empty' => '',
1075
-      'hide_empty' => 0,
1076
-      'empty_zero' => 0,
1077
-      'date_format' => 'custom',
1078
-      'custom_date_format' => 'U',
1079
-      'exclude' => 0,
1080
-      'id' => 'rpc_time',
1081
-      'table' => 'host',
1082
-      'field' => 'rpc_time',
1083
-      'override' => array(
1073
+        ),
1074
+        'empty' => '',
1075
+        'hide_empty' => 0,
1076
+        'empty_zero' => 0,
1077
+        'date_format' => 'custom',
1078
+        'custom_date_format' => 'U',
1079
+        'exclude' => 0,
1080
+        'id' => 'rpc_time',
1081
+        'table' => 'host',
1082
+        'field' => 'rpc_time',
1083
+        'override' => array(
1084 1084
         'button' => 'Use default',
1085
-      ),
1086
-      'relationship' => 'none',
1085
+        ),
1086
+        'relationship' => 'none',
1087 1087
     ),
1088
-  ));
1089
-  $handler->override_option('sorts', array(
1088
+    ));
1089
+    $handler->override_option('sorts', array(
1090 1090
     'rpc_time' => array(
1091
-      'order' => 'DESC',
1092
-      'granularity' => 'second',
1093
-      'id' => 'rpc_time',
1094
-      'table' => 'host',
1095
-      'field' => 'rpc_time',
1096
-      'override' => array(
1091
+        'order' => 'DESC',
1092
+        'granularity' => 'second',
1093
+        'id' => 'rpc_time',
1094
+        'table' => 'host',
1095
+        'field' => 'rpc_time',
1096
+        'override' => array(
1097 1097
         'button' => 'Use default',
1098
-      ),
1099
-      'relationship' => 'none',
1098
+        ),
1099
+        'relationship' => 'none',
1100 1100
     ),
1101
-  ));
1102
-  $handler->override_option('title', 'Computers');
1103
-  $handler->override_option('items_per_page', 7);
1104
-  $handler->override_option('use_pager', FALSE);
1105
-  $handler->override_option('use_more', 0);
1106
-  $handler->override_option('use_more_always', 1);
1107
-  $handler->override_option('style_options', array(
1101
+    ));
1102
+    $handler->override_option('title', 'Computers');
1103
+    $handler->override_option('items_per_page', 7);
1104
+    $handler->override_option('use_pager', FALSE);
1105
+    $handler->override_option('use_more', 0);
1106
+    $handler->override_option('use_more_always', 1);
1107
+    $handler->override_option('style_options', array(
1108 1108
     'grouping' => '',
1109 1109
     'override' => 1,
1110 1110
     'sticky' => 0,
1111 1111
     'order' => 'desc',
1112 1112
     'columns' => array(
1113
-      'id' => 'id',
1114
-      'domain_name' => 'domain_name',
1115
-      'expavg_credit' => 'expavg_credit',
1116
-      'total_credit' => 'total_credit',
1117
-      'rpc_time' => 'rpc_time',
1113
+        'id' => 'id',
1114
+        'domain_name' => 'domain_name',
1115
+        'expavg_credit' => 'expavg_credit',
1116
+        'total_credit' => 'total_credit',
1117
+        'rpc_time' => 'rpc_time',
1118 1118
     ),
1119 1119
     'info' => array(
1120
-      'id' => array(
1120
+        'id' => array(
1121 1121
         'sortable' => 0,
1122 1122
         'separator' => '',
1123
-      ),
1124
-      'domain_name' => array(
1123
+        ),
1124
+        'domain_name' => array(
1125 1125
         'sortable' => 0,
1126 1126
         'separator' => '',
1127
-      ),
1128
-      'expavg_credit' => array(
1127
+        ),
1128
+        'expavg_credit' => array(
1129 1129
         'sortable' => 0,
1130 1130
         'separator' => '',
1131
-      ),
1132
-      'total_credit' => array(
1131
+        ),
1132
+        'total_credit' => array(
1133 1133
         'sortable' => 0,
1134 1134
         'separator' => '',
1135
-      ),
1136
-      'rpc_time' => array(
1135
+        ),
1136
+        'rpc_time' => array(
1137 1137
         'sortable' => 0,
1138 1138
         'separator' => '',
1139
-      ),
1139
+        ),
1140 1140
     ),
1141 1141
     'default' => 'rpc_time',
1142
-  ));
1143
-  $handler->override_option('pane_title', '');
1144
-  $handler->override_option('pane_description', '');
1145
-  $handler->override_option('pane_category', array(
1142
+    ));
1143
+    $handler->override_option('pane_title', '');
1144
+    $handler->override_option('pane_description', '');
1145
+    $handler->override_option('pane_category', array(
1146 1146
     'name' => 'View panes',
1147 1147
     'weight' => 0,
1148
-  ));
1149
-  $handler->override_option('allow', array(
1148
+    ));
1149
+    $handler->override_option('allow', array(
1150 1150
     'use_pager' => FALSE,
1151 1151
     'items_per_page' => FALSE,
1152 1152
     'offset' => FALSE,
@@ -1156,15 +1156,15 @@  discard block
 block discarded – undo
1156 1156
     'title_override' => FALSE,
1157 1157
     'exposed_form' => FALSE,
1158 1158
     'fields_override' => FALSE,
1159
-  ));
1160
-  $handler->override_option('argument_input', array());
1161
-  $handler->override_option('link_to_view', 0);
1162
-  $handler->override_option('inherit_panels_path', 0);
1163
-  $handler = $view->new_display('block', 'Block', 'block_1');
1164
-  $handler->override_option('fields', array(
1159
+    ));
1160
+    $handler->override_option('argument_input', array());
1161
+    $handler->override_option('link_to_view', 0);
1162
+    $handler->override_option('inherit_panels_path', 0);
1163
+    $handler = $view->new_display('block', 'Block', 'block_1');
1164
+    $handler->override_option('fields', array(
1165 1165
     'id' => array(
1166
-      'label' => 'Computer ID',
1167
-      'alter' => array(
1166
+        'label' => 'Computer ID',
1167
+        'alter' => array(
1168 1168
         'alter_text' => 0,
1169 1169
         'text' => '',
1170 1170
         'make_link' => 0,
@@ -1183,32 +1183,32 @@  discard block
 block discarded – undo
1183 1183
         'ellipsis' => 1,
1184 1184
         'html' => 0,
1185 1185
         'strip_tags' => 0,
1186
-      ),
1187
-      'empty' => '',
1188
-      'hide_empty' => 0,
1189
-      'empty_zero' => 0,
1190
-      'hide_alter_empty' => 1,
1191
-      'set_precision' => FALSE,
1192
-      'precision' => 0,
1193
-      'decimal' => '.',
1194
-      'separator' => '',
1195
-      'format_plural' => 0,
1196
-      'format_plural_singular' => '1',
1197
-      'format_plural_plural' => '@count',
1198
-      'prefix' => '',
1199
-      'suffix' => '',
1200
-      'exclude' => 1,
1201
-      'id' => 'id',
1202
-      'table' => 'host',
1203
-      'field' => 'id',
1204
-      'relationship' => 'none',
1205
-      'override' => array(
1186
+        ),
1187
+        'empty' => '',
1188
+        'hide_empty' => 0,
1189
+        'empty_zero' => 0,
1190
+        'hide_alter_empty' => 1,
1191
+        'set_precision' => FALSE,
1192
+        'precision' => 0,
1193
+        'decimal' => '.',
1194
+        'separator' => '',
1195
+        'format_plural' => 0,
1196
+        'format_plural_singular' => '1',
1197
+        'format_plural_plural' => '@count',
1198
+        'prefix' => '',
1199
+        'suffix' => '',
1200
+        'exclude' => 1,
1201
+        'id' => 'id',
1202
+        'table' => 'host',
1203
+        'field' => 'id',
1204
+        'relationship' => 'none',
1205
+        'override' => array(
1206 1206
         'button' => 'Use default',
1207
-      ),
1207
+        ),
1208 1208
     ),
1209 1209
     'domain_name' => array(
1210
-      'label' => 'Name',
1211
-      'alter' => array(
1210
+        'label' => 'Name',
1211
+        'alter' => array(
1212 1212
         'alter_text' => 0,
1213 1213
         'text' => '',
1214 1214
         'make_link' => 0,
@@ -1227,23 +1227,23 @@  discard block
 block discarded – undo
1227 1227
         'ellipsis' => 1,
1228 1228
         'html' => 0,
1229 1229
         'strip_tags' => 0,
1230
-      ),
1231
-      'empty' => '',
1232
-      'hide_empty' => 0,
1233
-      'empty_zero' => 0,
1234
-      'hide_alter_empty' => 1,
1235
-      'exclude' => 0,
1236
-      'id' => 'domain_name',
1237
-      'table' => 'host',
1238
-      'field' => 'domain_name',
1239
-      'override' => array(
1230
+        ),
1231
+        'empty' => '',
1232
+        'hide_empty' => 0,
1233
+        'empty_zero' => 0,
1234
+        'hide_alter_empty' => 1,
1235
+        'exclude' => 0,
1236
+        'id' => 'domain_name',
1237
+        'table' => 'host',
1238
+        'field' => 'domain_name',
1239
+        'override' => array(
1240 1240
         'button' => 'Use default',
1241
-      ),
1242
-      'relationship' => 'none',
1241
+        ),
1242
+        'relationship' => 'none',
1243 1243
     ),
1244 1244
     'expavg_credit' => array(
1245
-      'label' => 'Avg credit',
1246
-      'alter' => array(
1245
+        'label' => 'Avg credit',
1246
+        'alter' => array(
1247 1247
         'alter_text' => 0,
1248 1248
         'text' => '',
1249 1249
         'make_link' => 0,
@@ -1262,32 +1262,32 @@  discard block
 block discarded – undo
1262 1262
         'ellipsis' => 1,
1263 1263
         'html' => 0,
1264 1264
         'strip_tags' => 0,
1265
-      ),
1266
-      'empty' => '',
1267
-      'hide_empty' => 0,
1268
-      'empty_zero' => 0,
1269
-      'hide_alter_empty' => 1,
1270
-      'set_precision' => 1,
1271
-      'precision' => '2',
1272
-      'decimal' => '.',
1273
-      'separator' => ',',
1274
-      'format_plural' => 0,
1275
-      'format_plural_singular' => '1',
1276
-      'format_plural_plural' => '@count',
1277
-      'prefix' => '',
1278
-      'suffix' => '',
1279
-      'exclude' => 0,
1280
-      'id' => 'expavg_credit',
1281
-      'table' => 'host',
1282
-      'field' => 'expavg_credit',
1283
-      'relationship' => 'none',
1284
-      'override' => array(
1265
+        ),
1266
+        'empty' => '',
1267
+        'hide_empty' => 0,
1268
+        'empty_zero' => 0,
1269
+        'hide_alter_empty' => 1,
1270
+        'set_precision' => 1,
1271
+        'precision' => '2',
1272
+        'decimal' => '.',
1273
+        'separator' => ',',
1274
+        'format_plural' => 0,
1275
+        'format_plural_singular' => '1',
1276
+        'format_plural_plural' => '@count',
1277
+        'prefix' => '',
1278
+        'suffix' => '',
1279
+        'exclude' => 0,
1280
+        'id' => 'expavg_credit',
1281
+        'table' => 'host',
1282
+        'field' => 'expavg_credit',
1283
+        'relationship' => 'none',
1284
+        'override' => array(
1285 1285
         'button' => 'Use default',
1286
-      ),
1286
+        ),
1287 1287
     ),
1288 1288
     'total_credit' => array(
1289
-      'label' => 'Total credit',
1290
-      'alter' => array(
1289
+        'label' => 'Total credit',
1290
+        'alter' => array(
1291 1291
         'alter_text' => 0,
1292 1292
         'text' => '',
1293 1293
         'make_link' => 0,
@@ -1304,25 +1304,25 @@  discard block
 block discarded – undo
1304 1304
         'ellipsis' => 1,
1305 1305
         'html' => 0,
1306 1306
         'strip_tags' => 0,
1307
-      ),
1308
-      'empty' => '',
1309
-      'hide_empty' => 0,
1310
-      'empty_zero' => 0,
1311
-      'set_precision' => 1,
1312
-      'precision' => '0',
1313
-      'decimal' => '.',
1314
-      'separator' => ',',
1315
-      'prefix' => '',
1316
-      'suffix' => '',
1317
-      'exclude' => 0,
1318
-      'id' => 'total_credit',
1319
-      'table' => 'host',
1320
-      'field' => 'total_credit',
1321
-      'relationship' => 'none',
1307
+        ),
1308
+        'empty' => '',
1309
+        'hide_empty' => 0,
1310
+        'empty_zero' => 0,
1311
+        'set_precision' => 1,
1312
+        'precision' => '0',
1313
+        'decimal' => '.',
1314
+        'separator' => ',',
1315
+        'prefix' => '',
1316
+        'suffix' => '',
1317
+        'exclude' => 0,
1318
+        'id' => 'total_credit',
1319
+        'table' => 'host',
1320
+        'field' => 'total_credit',
1321
+        'relationship' => 'none',
1322 1322
     ),
1323 1323
     'rpc_time' => array(
1324
-      'label' => 'Last contact',
1325
-      'alter' => array(
1324
+        'label' => 'Last contact',
1325
+        'alter' => array(
1326 1326
         'alter_text' => 0,
1327 1327
         'text' => '',
1328 1328
         'make_link' => 0,
@@ -1341,65 +1341,65 @@  discard block
 block discarded – undo
1341 1341
         'ellipsis' => 1,
1342 1342
         'html' => 0,
1343 1343
         'strip_tags' => 0,
1344
-      ),
1345
-      'empty' => '',
1346
-      'hide_empty' => 0,
1347
-      'empty_zero' => 0,
1348
-      'hide_alter_empty' => 1,
1349
-      'date_format' => 'custom',
1350
-      'custom_date_format' => 'U',
1351
-      'exclude' => 1,
1352
-      'id' => 'rpc_time',
1353
-      'table' => 'host',
1354
-      'field' => 'rpc_time',
1355
-      'relationship' => 'none',
1356
-      'override' => array(
1344
+        ),
1345
+        'empty' => '',
1346
+        'hide_empty' => 0,
1347
+        'empty_zero' => 0,
1348
+        'hide_alter_empty' => 1,
1349
+        'date_format' => 'custom',
1350
+        'custom_date_format' => 'U',
1351
+        'exclude' => 1,
1352
+        'id' => 'rpc_time',
1353
+        'table' => 'host',
1354
+        'field' => 'rpc_time',
1355
+        'relationship' => 'none',
1356
+        'override' => array(
1357 1357
         'button' => 'Use default',
1358
-      ),
1358
+        ),
1359 1359
     ),
1360
-  ));
1361
-  $handler->override_option('sorts', array(
1360
+    ));
1361
+    $handler->override_option('sorts', array(
1362 1362
     'rpc_time' => array(
1363
-      'order' => 'DESC',
1364
-      'granularity' => 'second',
1365
-      'id' => 'rpc_time',
1366
-      'table' => 'host',
1367
-      'field' => 'rpc_time',
1368
-      'override' => array(
1363
+        'order' => 'DESC',
1364
+        'granularity' => 'second',
1365
+        'id' => 'rpc_time',
1366
+        'table' => 'host',
1367
+        'field' => 'rpc_time',
1368
+        'override' => array(
1369 1369
         'button' => 'Use default',
1370
-      ),
1371
-      'relationship' => 'none',
1370
+        ),
1371
+        'relationship' => 'none',
1372 1372
     ),
1373
-  ));
1374
-  $handler->override_option('arguments', array(
1373
+    ));
1374
+    $handler->override_option('arguments', array(
1375 1375
     'userid' => array(
1376
-      'default_action' => 'default',
1377
-      'style_plugin' => 'default_summary',
1378
-      'style_options' => array(),
1379
-      'wildcard' => 'all',
1380
-      'wildcard_substitution' => 'All',
1381
-      'title' => '',
1382
-      'breadcrumb' => '',
1383
-      'default_argument_type' => 'current_user',
1384
-      'default_argument' => '',
1385
-      'validate_type' => 'numeric',
1386
-      'validate_fail' => 'not found',
1387
-      'break_phrase' => 0,
1388
-      'not' => 0,
1389
-      'id' => 'userid',
1390
-      'table' => 'host',
1391
-      'field' => 'userid',
1392
-      'validate_user_argument_type' => 'uid',
1393
-      'validate_user_roles' => array(
1376
+        'default_action' => 'default',
1377
+        'style_plugin' => 'default_summary',
1378
+        'style_options' => array(),
1379
+        'wildcard' => 'all',
1380
+        'wildcard_substitution' => 'All',
1381
+        'title' => '',
1382
+        'breadcrumb' => '',
1383
+        'default_argument_type' => 'current_user',
1384
+        'default_argument' => '',
1385
+        'validate_type' => 'numeric',
1386
+        'validate_fail' => 'not found',
1387
+        'break_phrase' => 0,
1388
+        'not' => 0,
1389
+        'id' => 'userid',
1390
+        'table' => 'host',
1391
+        'field' => 'userid',
1392
+        'validate_user_argument_type' => 'uid',
1393
+        'validate_user_roles' => array(
1394 1394
         2 => 0,
1395 1395
         3 => 0,
1396
-      ),
1397
-      'relationship' => 'none',
1398
-      'default_options_div_prefix' => '',
1399
-      'default_argument_fixed' => '',
1400
-      'default_argument_user' => 0,
1401
-      'default_argument_php' => '',
1402
-      'validate_argument_node_type' => array(
1396
+        ),
1397
+        'relationship' => 'none',
1398
+        'default_options_div_prefix' => '',
1399
+        'default_argument_fixed' => '',
1400
+        'default_argument_user' => 0,
1401
+        'default_argument_php' => '',
1402
+        'validate_argument_node_type' => array(
1403 1403
         'forum' => 0,
1404 1404
         'job_post' => 0,
1405 1405
         'news' => 0,
@@ -1407,63 +1407,63 @@  discard block
 block discarded – undo
1407 1407
         'profile' => 0,
1408 1408
         'story' => 0,
1409 1409
         'team' => 0,
1410
-      ),
1411
-      'validate_argument_node_access' => 0,
1412
-      'validate_argument_nid_type' => 'nid',
1413
-      'validate_argument_vocabulary' => array(
1410
+        ),
1411
+        'validate_argument_node_access' => 0,
1412
+        'validate_argument_nid_type' => 'nid',
1413
+        'validate_argument_vocabulary' => array(
1414 1414
         1 => 0,
1415
-      ),
1416
-      'validate_argument_type' => 'tid',
1417
-      'validate_argument_transform' => 0,
1418
-      'validate_user_restrict_roles' => 0,
1419
-      'validate_argument_php' => '',
1415
+        ),
1416
+        'validate_argument_type' => 'tid',
1417
+        'validate_argument_transform' => 0,
1418
+        'validate_user_restrict_roles' => 0,
1419
+        'validate_argument_php' => '',
1420 1420
     ),
1421 1421
     'venue' => array(
1422
-      'default_action' => 'default',
1423
-      'style_plugin' => 'default_summary',
1424
-      'style_options' => array(),
1425
-      'wildcard' => 'all',
1426
-      'wildcard_substitution' => 'All',
1427
-      'title' => '',
1428
-      'breadcrumb' => '',
1429
-      'default_argument_type' => 'php',
1430
-      'default_argument' => '',
1431
-      'validate_type' => 'none',
1432
-      'validate_fail' => 'ignore',
1433
-      'id' => 'venue',
1434
-      'table' => 'host',
1435
-      'field' => 'venue',
1436
-      'validate_user_argument_type' => 'uid',
1437
-      'validate_user_roles' => array(
1422
+        'default_action' => 'default',
1423
+        'style_plugin' => 'default_summary',
1424
+        'style_options' => array(),
1425
+        'wildcard' => 'all',
1426
+        'wildcard_substitution' => 'All',
1427
+        'title' => '',
1428
+        'breadcrumb' => '',
1429
+        'default_argument_type' => 'php',
1430
+        'default_argument' => '',
1431
+        'validate_type' => 'none',
1432
+        'validate_fail' => 'ignore',
1433
+        'id' => 'venue',
1434
+        'table' => 'host',
1435
+        'field' => 'venue',
1436
+        'validate_user_argument_type' => 'uid',
1437
+        'validate_user_roles' => array(
1438 1438
         2 => 0,
1439 1439
         3 => 0,
1440
-      ),
1441
-      'me_redirect' => 0,
1442
-      'me_validate_user_argument_type' => 'uid',
1443
-      'me_validate_user_roles' => array(
1440
+        ),
1441
+        'me_redirect' => 0,
1442
+        'me_validate_user_argument_type' => 'uid',
1443
+        'me_validate_user_roles' => array(
1444 1444
         2 => 0,
1445 1445
         3 => 0,
1446
-      ),
1447
-      'override' => array(
1446
+        ),
1447
+        'override' => array(
1448 1448
         'button' => 'Use default',
1449
-      ),
1450
-      'relationship' => 'none',
1451
-      'default_options_div_prefix' => '',
1452
-      'default_taxonomy_tid_term_page' => 0,
1453
-      'default_taxonomy_tid_node' => 0,
1454
-      'default_taxonomy_tid_limit' => 0,
1455
-      'default_taxonomy_tid_vids' => array(
1449
+        ),
1450
+        'relationship' => 'none',
1451
+        'default_options_div_prefix' => '',
1452
+        'default_taxonomy_tid_term_page' => 0,
1453
+        'default_taxonomy_tid_node' => 0,
1454
+        'default_taxonomy_tid_limit' => 0,
1455
+        'default_taxonomy_tid_vids' => array(
1456 1456
         1 => 0,
1457 1457
         3 => 0,
1458
-      ),
1459
-      'default_argument_user' => 0,
1460
-      'default_argument_fixed' => '',
1461
-      'default_argument_php' => 'if (arg(0) == \'account\' AND arg(1) == \'prefs\') {
1458
+        ),
1459
+        'default_argument_user' => 0,
1460
+        'default_argument_fixed' => '',
1461
+        'default_argument_php' => 'if (arg(0) == \'account\' AND arg(1) == \'prefs\') {
1462 1462
   $venue = arg(4);
1463 1463
   if ($venue == \'default\') $venue = null;
1464 1464
 }
1465 1465
 return $venue;',
1466
-      'validate_argument_node_type' => array(
1466
+        'validate_argument_node_type' => array(
1467 1467
         'forum' => 0,
1468 1468
         'panel' => 0,
1469 1469
         'job_post' => 0,
@@ -1472,75 +1472,75 @@  discard block
 block discarded – undo
1472 1472
         'profile' => 0,
1473 1473
         'story' => 0,
1474 1474
         'team' => 0,
1475
-      ),
1476
-      'validate_argument_node_access' => 0,
1477
-      'validate_argument_nid_type' => 'nid',
1478
-      'validate_argument_vocabulary' => array(
1475
+        ),
1476
+        'validate_argument_node_access' => 0,
1477
+        'validate_argument_nid_type' => 'nid',
1478
+        'validate_argument_vocabulary' => array(
1479 1479
         1 => 0,
1480 1480
         3 => 0,
1481
-      ),
1482
-      'validate_argument_type' => 'tid',
1483
-      'validate_argument_transform' => 0,
1484
-      'validate_user_restrict_roles' => 0,
1485
-      'validate_argument_node_flag_name' => '*relationship*',
1486
-      'validate_argument_node_flag_test' => 'flaggable',
1487
-      'validate_argument_node_flag_id_type' => 'id',
1488
-      'validate_argument_user_flag_name' => '*relationship*',
1489
-      'validate_argument_user_flag_test' => 'flaggable',
1490
-      'validate_argument_user_flag_id_type' => 'id',
1491
-      'validate_argument_is_member' => 'OG_VIEWS_DO_NOT_VALIDATE_MEMBERSHIP',
1492
-      'validate_argument_group_node_type' => array(
1481
+        ),
1482
+        'validate_argument_type' => 'tid',
1483
+        'validate_argument_transform' => 0,
1484
+        'validate_user_restrict_roles' => 0,
1485
+        'validate_argument_node_flag_name' => '*relationship*',
1486
+        'validate_argument_node_flag_test' => 'flaggable',
1487
+        'validate_argument_node_flag_id_type' => 'id',
1488
+        'validate_argument_user_flag_name' => '*relationship*',
1489
+        'validate_argument_user_flag_test' => 'flaggable',
1490
+        'validate_argument_user_flag_id_type' => 'id',
1491
+        'validate_argument_is_member' => 'OG_VIEWS_DO_NOT_VALIDATE_MEMBERSHIP',
1492
+        'validate_argument_group_node_type' => array(
1493 1493
         'team' => 0,
1494
-      ),
1495
-      'validate_argument_php' => '',
1496
-      'me_validate_user_restrict_roles' => 0,
1494
+        ),
1495
+        'validate_argument_php' => '',
1496
+        'me_validate_user_restrict_roles' => 0,
1497 1497
     ),
1498
-  ));
1499
-  $handler->override_option('items_per_page', 9);
1500
-  $handler->override_option('use_pager', FALSE);
1501
-  $handler->override_option('use_more', 1);
1502
-  $handler->override_option('use_more_always', 1);
1503
-  $handler->override_option('style_options', array(
1498
+    ));
1499
+    $handler->override_option('items_per_page', 9);
1500
+    $handler->override_option('use_pager', FALSE);
1501
+    $handler->override_option('use_more', 1);
1502
+    $handler->override_option('use_more_always', 1);
1503
+    $handler->override_option('style_options', array(
1504 1504
     'grouping' => '',
1505 1505
     'override' => 1,
1506 1506
     'sticky' => 0,
1507 1507
     'order' => 'desc',
1508 1508
     'summary' => '',
1509 1509
     'columns' => array(
1510
-      'id' => 'id',
1511
-      'domain_name' => 'domain_name',
1512
-      'expavg_credit' => 'expavg_credit',
1513
-      'total_credit' => 'total_credit',
1514
-      'rpc_time' => 'rpc_time',
1510
+        'id' => 'id',
1511
+        'domain_name' => 'domain_name',
1512
+        'expavg_credit' => 'expavg_credit',
1513
+        'total_credit' => 'total_credit',
1514
+        'rpc_time' => 'rpc_time',
1515 1515
     ),
1516 1516
     'info' => array(
1517
-      'id' => array(
1517
+        'id' => array(
1518 1518
         'sortable' => 0,
1519 1519
         'separator' => '',
1520
-      ),
1521
-      'domain_name' => array(
1520
+        ),
1521
+        'domain_name' => array(
1522 1522
         'sortable' => 0,
1523 1523
         'separator' => '',
1524
-      ),
1525
-      'expavg_credit' => array(
1524
+        ),
1525
+        'expavg_credit' => array(
1526 1526
         'sortable' => 0,
1527 1527
         'separator' => '',
1528
-      ),
1529
-      'total_credit' => array(
1528
+        ),
1529
+        'total_credit' => array(
1530 1530
         'sortable' => 0,
1531 1531
         'separator' => '',
1532
-      ),
1533
-      'rpc_time' => array(
1532
+        ),
1533
+        'rpc_time' => array(
1534 1534
         'sortable' => 0,
1535 1535
         'separator' => '',
1536
-      ),
1536
+        ),
1537 1537
     ),
1538 1538
     'default' => 'rpc_time',
1539
-  ));
1540
-  $handler->override_option('block_description', '');
1541
-  $handler->override_option('block_caching', -1);
1539
+    ));
1540
+    $handler->override_option('block_description', '');
1541
+    $handler->override_option('block_caching', -1);
1542 1542
 
1543
-  $views[$view->name] = $view;
1543
+    $views[$view->name] = $view;
1544 1544
 
1545
-  return $views;
1545
+    return $views;
1546 1546
 }
Please login to merge, or discard this patch.
global_search_solr/global_search_solr.apachesolr_search_defaults.inc 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,18 +4,18 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_apachesolr_search_default_searchers().
5 5
  */
6 6
 function global_search_solr_apachesolr_search_default_searchers() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $searcher = new stdClass;
10
-  $searcher->disabled = FALSE; /* Edit this to true to make a default searcher disabled initially */
11
-  $searcher->api_version = 3;
12
-  $searcher->page_id = 'core_search';
13
-  $searcher->label = 'Core Search';
14
-  $searcher->description = 'Core Search';
15
-  $searcher->search_path = 'search/site';
16
-  $searcher->page_title = bts('Search site', array(), NULL, 'boinc:search-page');
17
-  $searcher->env_id = 'solr';
18
-  $searcher->settings = array(
9
+    $searcher = new stdClass;
10
+    $searcher->disabled = FALSE; /* Edit this to true to make a default searcher disabled initially */
11
+    $searcher->api_version = 3;
12
+    $searcher->page_id = 'core_search';
13
+    $searcher->label = 'Core Search';
14
+    $searcher->description = 'Core Search';
15
+    $searcher->search_path = 'search/site';
16
+    $searcher->page_title = bts('Search site', array(), NULL, 'boinc:search-page');
17
+    $searcher->env_id = 'solr';
18
+    $searcher->settings = array(
19 19
     'fq' => array(),
20 20
     'apachesolr_search_custom_enable' => 0,
21 21
     'apachesolr_search_search_type' => 'custom',
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
     'apachesolr_search_browse' => 'none',
25 25
     'apachesolr_search_spellcheck' => 1,
26 26
     'apachesolr_search_allow_user_input' => 0,
27
-  );
28
-  $export['core_search'] = $searcher;
27
+    );
28
+    $export['core_search'] = $searcher;
29 29
 
30
-  return $export;
30
+    return $export;
31 31
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
   $export = array();
8 8
 
9 9
   $searcher = new stdClass;
10
-  $searcher->disabled = FALSE; /* Edit this to true to make a default searcher disabled initially */
10
+  $searcher->disabled = false; /* Edit this to true to make a default searcher disabled initially */
11 11
   $searcher->api_version = 3;
12 12
   $searcher->page_id = 'core_search';
13 13
   $searcher->label = 'Core Search';
14 14
   $searcher->description = 'Core Search';
15 15
   $searcher->search_path = 'search/site';
16
-  $searcher->page_title = bts('Search site', array(), NULL, 'boinc:search-page');
16
+  $searcher->page_title = bts('Search site', array(), null, 'boinc:search-page');
17 17
   $searcher->env_id = 'solr';
18 18
   $searcher->settings = array(
19 19
     'fq' => array(),
20 20
     'apachesolr_search_custom_enable' => 0,
21 21
     'apachesolr_search_search_type' => 'custom',
22
-    'apachesolr_search_search_box' => TRUE,
22
+    'apachesolr_search_search_box' => true,
23 23
     'apachesolr_search_per_page' => '10',
24 24
     'apachesolr_search_browse' => 'none',
25 25
     'apachesolr_search_spellcheck' => 1,
Please login to merge, or discard this patch.