@@ -4,114 +4,114 @@ discard block |
||
| 4 | 4 | * Implementation of hook_views_default_views(). |
| 5 | 5 | */ |
| 6 | 6 | function news_views_default_views() { |
| 7 | - $views = array(); |
|
| 7 | + $views = array(); |
|
| 8 | 8 | |
| 9 | - // Exported view: news |
|
| 10 | - $view = new view; |
|
| 11 | - $view->name = 'news'; |
|
| 12 | - $view->description = ''; |
|
| 13 | - $view->tag = ''; |
|
| 14 | - $view->base_table = 'node'; |
|
| 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: news |
|
| 10 | + $view = new view; |
|
| 11 | + $view->name = 'news'; |
|
| 12 | + $view->description = ''; |
|
| 13 | + $view->tag = ''; |
|
| 14 | + $view->base_table = 'node'; |
|
| 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 | 'content_profile_rel' => array( |
| 21 | - 'id' => 'content_profile_rel', |
|
| 22 | - 'table' => 'users', |
|
| 23 | - 'field' => 'content_profile_rel', |
|
| 21 | + 'id' => 'content_profile_rel', |
|
| 22 | + 'table' => 'users', |
|
| 23 | + 'field' => 'content_profile_rel', |
|
| 24 | 24 | ), |
| 25 | - )); |
|
| 26 | - $handler->override_option('fields', array( |
|
| 25 | + )); |
|
| 26 | + $handler->override_option('fields', array( |
|
| 27 | 27 | 'comment_count' => array( |
| 28 | - 'id' => 'comment_count', |
|
| 29 | - 'table' => 'node_comment_statistics', |
|
| 30 | - 'field' => 'comment_count', |
|
| 28 | + 'id' => 'comment_count', |
|
| 29 | + 'table' => 'node_comment_statistics', |
|
| 30 | + 'field' => 'comment_count', |
|
| 31 | 31 | ), |
| 32 | 32 | 'view_node' => array( |
| 33 | - 'id' => 'view_node', |
|
| 34 | - 'table' => 'node', |
|
| 35 | - 'field' => 'view_node', |
|
| 33 | + 'id' => 'view_node', |
|
| 34 | + 'table' => 'node', |
|
| 35 | + 'field' => 'view_node', |
|
| 36 | 36 | ), |
| 37 | 37 | 'created' => array( |
| 38 | - 'id' => 'created', |
|
| 39 | - 'table' => 'node', |
|
| 40 | - 'field' => 'created', |
|
| 38 | + 'id' => 'created', |
|
| 39 | + 'table' => 'node', |
|
| 40 | + 'field' => 'created', |
|
| 41 | 41 | ), |
| 42 | 42 | 'teaser' => array( |
| 43 | - 'id' => 'teaser', |
|
| 44 | - 'table' => 'node_revisions', |
|
| 45 | - 'field' => 'teaser', |
|
| 43 | + 'id' => 'teaser', |
|
| 44 | + 'table' => 'node_revisions', |
|
| 45 | + 'field' => 'teaser', |
|
| 46 | 46 | ), |
| 47 | 47 | 'title' => array( |
| 48 | - 'id' => 'title', |
|
| 49 | - 'table' => 'node', |
|
| 50 | - 'field' => 'title', |
|
| 48 | + 'id' => 'title', |
|
| 49 | + 'table' => 'node', |
|
| 50 | + 'field' => 'title', |
|
| 51 | 51 | ), |
| 52 | - )); |
|
| 53 | - $handler->override_option('sorts', array( |
|
| 52 | + )); |
|
| 53 | + $handler->override_option('sorts', array( |
|
| 54 | 54 | 'created_1' => array( |
| 55 | - 'order' => 'DESC', |
|
| 56 | - 'granularity' => 'second', |
|
| 57 | - 'id' => 'created_1', |
|
| 58 | - 'table' => 'node', |
|
| 59 | - 'field' => 'created', |
|
| 60 | - 'override' => array( |
|
| 55 | + 'order' => 'DESC', |
|
| 56 | + 'granularity' => 'second', |
|
| 57 | + 'id' => 'created_1', |
|
| 58 | + 'table' => 'node', |
|
| 59 | + 'field' => 'created', |
|
| 60 | + 'override' => array( |
|
| 61 | 61 | 'button' => 'Override', |
| 62 | - ), |
|
| 63 | - 'relationship' => 'none', |
|
| 62 | + ), |
|
| 63 | + 'relationship' => 'none', |
|
| 64 | 64 | ), |
| 65 | - )); |
|
| 66 | - $handler->override_option('filters', array( |
|
| 65 | + )); |
|
| 66 | + $handler->override_option('filters', array( |
|
| 67 | 67 | 'type' => array( |
| 68 | - 'operator' => 'in', |
|
| 69 | - 'value' => array( |
|
| 68 | + 'operator' => 'in', |
|
| 69 | + 'value' => array( |
|
| 70 | 70 | 'news' => 'news', |
| 71 | - ), |
|
| 72 | - 'group' => '0', |
|
| 73 | - 'exposed' => FALSE, |
|
| 74 | - 'expose' => array( |
|
| 71 | + ), |
|
| 72 | + 'group' => '0', |
|
| 73 | + 'exposed' => FALSE, |
|
| 74 | + 'expose' => array( |
|
| 75 | 75 | 'operator' => FALSE, |
| 76 | 76 | 'label' => '', |
| 77 | - ), |
|
| 78 | - 'id' => 'type', |
|
| 79 | - 'table' => 'node', |
|
| 80 | - 'field' => 'type', |
|
| 81 | - 'relationship' => 'none', |
|
| 77 | + ), |
|
| 78 | + 'id' => 'type', |
|
| 79 | + 'table' => 'node', |
|
| 80 | + 'field' => 'type', |
|
| 81 | + 'relationship' => 'none', |
|
| 82 | 82 | ), |
| 83 | 83 | 'status' => array( |
| 84 | - 'operator' => '=', |
|
| 85 | - 'value' => '1', |
|
| 86 | - 'group' => '0', |
|
| 87 | - 'exposed' => FALSE, |
|
| 88 | - 'expose' => array( |
|
| 84 | + 'operator' => '=', |
|
| 85 | + 'value' => '1', |
|
| 86 | + 'group' => '0', |
|
| 87 | + 'exposed' => FALSE, |
|
| 88 | + 'expose' => array( |
|
| 89 | 89 | 'operator' => FALSE, |
| 90 | 90 | 'label' => '', |
| 91 | - ), |
|
| 92 | - 'id' => 'status', |
|
| 93 | - 'table' => 'node', |
|
| 94 | - 'field' => 'status', |
|
| 95 | - 'relationship' => 'none', |
|
| 96 | - ), |
|
| 97 | - )); |
|
| 98 | - $handler->override_option('access', array( |
|
| 91 | + ), |
|
| 92 | + 'id' => 'status', |
|
| 93 | + 'table' => 'node', |
|
| 94 | + 'field' => 'status', |
|
| 95 | + 'relationship' => 'none', |
|
| 96 | + ), |
|
| 97 | + )); |
|
| 98 | + $handler->override_option('access', array( |
|
| 99 | 99 | 'type' => 'none', |
| 100 | - )); |
|
| 101 | - $handler->override_option('cache', array( |
|
| 100 | + )); |
|
| 101 | + $handler->override_option('cache', array( |
|
| 102 | 102 | 'type' => 'none', |
| 103 | - )); |
|
| 104 | - $handler->override_option('empty', 'No news is good news...'); |
|
| 105 | - $handler->override_option('empty_format', '5'); |
|
| 106 | - $handler->override_option('items_per_page', 3); |
|
| 107 | - $handler->override_option('use_pager', '1'); |
|
| 108 | - $handler->override_option('row_plugin', 'node'); |
|
| 109 | - $handler = $view->new_display('page', 'Page', 'page_1'); |
|
| 110 | - $handler->override_option('relationships', array()); |
|
| 111 | - $handler->override_option('fields', array( |
|
| 103 | + )); |
|
| 104 | + $handler->override_option('empty', 'No news is good news...'); |
|
| 105 | + $handler->override_option('empty_format', '5'); |
|
| 106 | + $handler->override_option('items_per_page', 3); |
|
| 107 | + $handler->override_option('use_pager', '1'); |
|
| 108 | + $handler->override_option('row_plugin', 'node'); |
|
| 109 | + $handler = $view->new_display('page', 'Page', 'page_1'); |
|
| 110 | + $handler->override_option('relationships', array()); |
|
| 111 | + $handler->override_option('fields', array( |
|
| 112 | 112 | 'title' => array( |
| 113 | - 'label' => '', |
|
| 114 | - 'alter' => array( |
|
| 113 | + 'label' => '', |
|
| 114 | + 'alter' => array( |
|
| 115 | 115 | 'alter_text' => 1, |
| 116 | 116 | 'text' => '<h2>[title]</h2>', |
| 117 | 117 | 'make_link' => 0, |
@@ -128,23 +128,23 @@ discard block |
||
| 128 | 128 | 'ellipsis' => 1, |
| 129 | 129 | 'html' => 0, |
| 130 | 130 | 'strip_tags' => 0, |
| 131 | - ), |
|
| 132 | - 'empty' => '', |
|
| 133 | - 'hide_empty' => 0, |
|
| 134 | - 'empty_zero' => 0, |
|
| 135 | - 'link_to_node' => 0, |
|
| 136 | - 'exclude' => 0, |
|
| 137 | - 'id' => 'title', |
|
| 138 | - 'table' => 'node', |
|
| 139 | - 'field' => 'title', |
|
| 140 | - 'override' => array( |
|
| 131 | + ), |
|
| 132 | + 'empty' => '', |
|
| 133 | + 'hide_empty' => 0, |
|
| 134 | + 'empty_zero' => 0, |
|
| 135 | + 'link_to_node' => 0, |
|
| 136 | + 'exclude' => 0, |
|
| 137 | + 'id' => 'title', |
|
| 138 | + 'table' => 'node', |
|
| 139 | + 'field' => 'title', |
|
| 140 | + 'override' => array( |
|
| 141 | 141 | 'button' => 'Use default', |
| 142 | - ), |
|
| 143 | - 'relationship' => 'none', |
|
| 142 | + ), |
|
| 143 | + 'relationship' => 'none', |
|
| 144 | 144 | ), |
| 145 | 145 | 'created' => array( |
| 146 | - 'label' => '', |
|
| 147 | - 'alter' => array( |
|
| 146 | + 'label' => '', |
|
| 147 | + 'alter' => array( |
|
| 148 | 148 | 'alter_text' => 0, |
| 149 | 149 | 'text' => '', |
| 150 | 150 | 'make_link' => 0, |
@@ -161,24 +161,24 @@ discard block |
||
| 161 | 161 | 'ellipsis' => 1, |
| 162 | 162 | 'html' => 0, |
| 163 | 163 | 'strip_tags' => 0, |
| 164 | - ), |
|
| 165 | - 'empty' => '', |
|
| 166 | - 'hide_empty' => 0, |
|
| 167 | - 'empty_zero' => 0, |
|
| 168 | - 'date_format' => 'custom', |
|
| 169 | - 'custom_date_format' => 'F d, Y', |
|
| 170 | - 'exclude' => 0, |
|
| 171 | - 'id' => 'created', |
|
| 172 | - 'table' => 'node', |
|
| 173 | - 'field' => 'created', |
|
| 174 | - 'override' => array( |
|
| 164 | + ), |
|
| 165 | + 'empty' => '', |
|
| 166 | + 'hide_empty' => 0, |
|
| 167 | + 'empty_zero' => 0, |
|
| 168 | + 'date_format' => 'custom', |
|
| 169 | + 'custom_date_format' => 'F d, Y', |
|
| 170 | + 'exclude' => 0, |
|
| 171 | + 'id' => 'created', |
|
| 172 | + 'table' => 'node', |
|
| 173 | + 'field' => 'created', |
|
| 174 | + 'override' => array( |
|
| 175 | 175 | 'button' => 'Use default', |
| 176 | - ), |
|
| 177 | - 'relationship' => 'none', |
|
| 176 | + ), |
|
| 177 | + 'relationship' => 'none', |
|
| 178 | 178 | ), |
| 179 | 179 | 'name' => array( |
| 180 | - 'label' => '', |
|
| 181 | - 'alter' => array( |
|
| 180 | + 'label' => '', |
|
| 181 | + 'alter' => array( |
|
| 182 | 182 | 'alter_text' => 1, |
| 183 | 183 | 'text' => ' / Posted by [name]', |
| 184 | 184 | 'make_link' => 0, |
@@ -197,26 +197,26 @@ discard block |
||
| 197 | 197 | 'ellipsis' => 1, |
| 198 | 198 | 'html' => 0, |
| 199 | 199 | 'strip_tags' => 0, |
| 200 | - ), |
|
| 201 | - 'empty' => '', |
|
| 202 | - 'hide_empty' => 0, |
|
| 203 | - 'empty_zero' => 0, |
|
| 204 | - 'hide_alter_empty' => 1, |
|
| 205 | - 'link_to_user' => 0, |
|
| 206 | - 'overwrite_anonymous' => 0, |
|
| 207 | - 'anonymous_text' => '', |
|
| 208 | - 'exclude' => 1, |
|
| 209 | - 'id' => 'name', |
|
| 210 | - 'table' => 'users', |
|
| 211 | - 'field' => 'name', |
|
| 212 | - 'override' => array( |
|
| 200 | + ), |
|
| 201 | + 'empty' => '', |
|
| 202 | + 'hide_empty' => 0, |
|
| 203 | + 'empty_zero' => 0, |
|
| 204 | + 'hide_alter_empty' => 1, |
|
| 205 | + 'link_to_user' => 0, |
|
| 206 | + 'overwrite_anonymous' => 0, |
|
| 207 | + 'anonymous_text' => '', |
|
| 208 | + 'exclude' => 1, |
|
| 209 | + 'id' => 'name', |
|
| 210 | + 'table' => 'users', |
|
| 211 | + 'field' => 'name', |
|
| 212 | + 'override' => array( |
|
| 213 | 213 | 'button' => 'Use default', |
| 214 | - ), |
|
| 215 | - 'relationship' => 'none', |
|
| 214 | + ), |
|
| 215 | + 'relationship' => 'none', |
|
| 216 | 216 | ), |
| 217 | 217 | 'teaser' => array( |
| 218 | - 'label' => '', |
|
| 219 | - 'alter' => array( |
|
| 218 | + 'label' => '', |
|
| 219 | + 'alter' => array( |
|
| 220 | 220 | 'alter_text' => 0, |
| 221 | 221 | 'text' => '', |
| 222 | 222 | 'make_link' => 0, |
@@ -235,23 +235,23 @@ discard block |
||
| 235 | 235 | 'ellipsis' => 1, |
| 236 | 236 | 'html' => 0, |
| 237 | 237 | 'strip_tags' => 0, |
| 238 | - ), |
|
| 239 | - 'empty' => '', |
|
| 240 | - 'hide_empty' => 0, |
|
| 241 | - 'empty_zero' => 0, |
|
| 242 | - 'hide_alter_empty' => 1, |
|
| 243 | - 'exclude' => 0, |
|
| 244 | - 'id' => 'teaser', |
|
| 245 | - 'table' => 'node_revisions', |
|
| 246 | - 'field' => 'teaser', |
|
| 247 | - 'override' => array( |
|
| 238 | + ), |
|
| 239 | + 'empty' => '', |
|
| 240 | + 'hide_empty' => 0, |
|
| 241 | + 'empty_zero' => 0, |
|
| 242 | + 'hide_alter_empty' => 1, |
|
| 243 | + 'exclude' => 0, |
|
| 244 | + 'id' => 'teaser', |
|
| 245 | + 'table' => 'node_revisions', |
|
| 246 | + 'field' => 'teaser', |
|
| 247 | + 'override' => array( |
|
| 248 | 248 | 'button' => 'Use default', |
| 249 | - ), |
|
| 250 | - 'relationship' => 'none', |
|
| 249 | + ), |
|
| 250 | + 'relationship' => 'none', |
|
| 251 | 251 | ), |
| 252 | 252 | 'view_node' => array( |
| 253 | - 'label' => '', |
|
| 254 | - 'alter' => array( |
|
| 253 | + 'label' => '', |
|
| 254 | + 'alter' => array( |
|
| 255 | 255 | 'alter_text' => 0, |
| 256 | 256 | 'text' => '', |
| 257 | 257 | 'make_link' => 0, |
@@ -270,24 +270,24 @@ discard block |
||
| 270 | 270 | 'ellipsis' => 1, |
| 271 | 271 | 'html' => 0, |
| 272 | 272 | 'strip_tags' => 0, |
| 273 | - ), |
|
| 274 | - 'empty' => '', |
|
| 275 | - 'hide_empty' => 0, |
|
| 276 | - 'empty_zero' => 0, |
|
| 277 | - 'hide_alter_empty' => 1, |
|
| 278 | - 'text' => 'more', |
|
| 279 | - 'exclude' => 0, |
|
| 280 | - 'id' => 'view_node', |
|
| 281 | - 'table' => 'node', |
|
| 282 | - 'field' => 'view_node', |
|
| 283 | - 'override' => array( |
|
| 273 | + ), |
|
| 274 | + 'empty' => '', |
|
| 275 | + 'hide_empty' => 0, |
|
| 276 | + 'empty_zero' => 0, |
|
| 277 | + 'hide_alter_empty' => 1, |
|
| 278 | + 'text' => 'more', |
|
| 279 | + 'exclude' => 0, |
|
| 280 | + 'id' => 'view_node', |
|
| 281 | + 'table' => 'node', |
|
| 282 | + 'field' => 'view_node', |
|
| 283 | + 'override' => array( |
|
| 284 | 284 | 'button' => 'Use default', |
| 285 | - ), |
|
| 286 | - 'relationship' => 'none', |
|
| 285 | + ), |
|
| 286 | + 'relationship' => 'none', |
|
| 287 | 287 | ), |
| 288 | 288 | 'comment_count' => array( |
| 289 | - 'label' => '', |
|
| 290 | - 'alter' => array( |
|
| 289 | + 'label' => '', |
|
| 290 | + 'alter' => array( |
|
| 291 | 291 | 'alter_text' => 0, |
| 292 | 292 | 'text' => '', |
| 293 | 293 | 'make_link' => 0, |
@@ -306,32 +306,32 @@ discard block |
||
| 306 | 306 | 'ellipsis' => 1, |
| 307 | 307 | 'html' => 0, |
| 308 | 308 | 'strip_tags' => 0, |
| 309 | - ), |
|
| 310 | - 'empty' => '0', |
|
| 311 | - 'hide_empty' => 1, |
|
| 312 | - 'empty_zero' => 0, |
|
| 313 | - 'hide_alter_empty' => 0, |
|
| 314 | - 'set_precision' => FALSE, |
|
| 315 | - 'precision' => 0, |
|
| 316 | - 'decimal' => '.', |
|
| 317 | - 'separator' => '', |
|
| 318 | - 'format_plural' => 0, |
|
| 319 | - 'format_plural_singular' => '1', |
|
| 320 | - 'format_plural_plural' => '@count', |
|
| 321 | - 'prefix' => '', |
|
| 322 | - 'suffix' => '', |
|
| 323 | - 'exclude' => 0, |
|
| 324 | - 'id' => 'comment_count', |
|
| 325 | - 'table' => 'node_comment_statistics', |
|
| 326 | - 'field' => 'comment_count', |
|
| 327 | - 'override' => array( |
|
| 309 | + ), |
|
| 310 | + 'empty' => '0', |
|
| 311 | + 'hide_empty' => 1, |
|
| 312 | + 'empty_zero' => 0, |
|
| 313 | + 'hide_alter_empty' => 0, |
|
| 314 | + 'set_precision' => FALSE, |
|
| 315 | + 'precision' => 0, |
|
| 316 | + 'decimal' => '.', |
|
| 317 | + 'separator' => '', |
|
| 318 | + 'format_plural' => 0, |
|
| 319 | + 'format_plural_singular' => '1', |
|
| 320 | + 'format_plural_plural' => '@count', |
|
| 321 | + 'prefix' => '', |
|
| 322 | + 'suffix' => '', |
|
| 323 | + 'exclude' => 0, |
|
| 324 | + 'id' => 'comment_count', |
|
| 325 | + 'table' => 'node_comment_statistics', |
|
| 326 | + 'field' => 'comment_count', |
|
| 327 | + 'override' => array( |
|
| 328 | 328 | 'button' => 'Use default', |
| 329 | - ), |
|
| 330 | - 'relationship' => 'none', |
|
| 329 | + ), |
|
| 330 | + 'relationship' => 'none', |
|
| 331 | 331 | ), |
| 332 | 332 | 'nothing' => array( |
| 333 | - 'label' => '', |
|
| 334 | - 'alter' => array( |
|
| 333 | + 'label' => '', |
|
| 334 | + 'alter' => array( |
|
| 335 | 335 | 'text' => '<div class="clearfix"></div>', |
| 336 | 336 | 'make_link' => 0, |
| 337 | 337 | 'path' => '', |
@@ -347,210 +347,210 @@ discard block |
||
| 347 | 347 | 'ellipsis' => 1, |
| 348 | 348 | 'html' => 0, |
| 349 | 349 | 'strip_tags' => 0, |
| 350 | - ), |
|
| 351 | - 'empty' => '', |
|
| 352 | - 'hide_empty' => 0, |
|
| 353 | - 'empty_zero' => 0, |
|
| 354 | - 'exclude' => 0, |
|
| 355 | - 'id' => 'nothing', |
|
| 356 | - 'table' => 'views', |
|
| 357 | - 'field' => 'nothing', |
|
| 358 | - 'override' => array( |
|
| 350 | + ), |
|
| 351 | + 'empty' => '', |
|
| 352 | + 'hide_empty' => 0, |
|
| 353 | + 'empty_zero' => 0, |
|
| 354 | + 'exclude' => 0, |
|
| 355 | + 'id' => 'nothing', |
|
| 356 | + 'table' => 'views', |
|
| 357 | + 'field' => 'nothing', |
|
| 358 | + 'override' => array( |
|
| 359 | 359 | 'button' => 'Use default', |
| 360 | - ), |
|
| 361 | - 'relationship' => 'none', |
|
| 362 | - ), |
|
| 363 | - )); |
|
| 364 | - $handler->override_option('title', 'News'); |
|
| 365 | - $handler->override_option('row_plugin', 'fields'); |
|
| 366 | - $handler->override_option('path', 'news'); |
|
| 367 | - $handler->override_option('menu', array( |
|
| 360 | + ), |
|
| 361 | + 'relationship' => 'none', |
|
| 362 | + ), |
|
| 363 | + )); |
|
| 364 | + $handler->override_option('title', 'News'); |
|
| 365 | + $handler->override_option('row_plugin', 'fields'); |
|
| 366 | + $handler->override_option('path', 'news'); |
|
| 367 | + $handler->override_option('menu', array( |
|
| 368 | 368 | 'type' => 'normal', |
| 369 | 369 | 'title' => 'News', |
| 370 | 370 | 'description' => '', |
| 371 | 371 | 'weight' => '0', |
| 372 | 372 | 'name' => 'navigation', |
| 373 | - )); |
|
| 374 | - $handler->override_option('tab_options', array( |
|
| 373 | + )); |
|
| 374 | + $handler->override_option('tab_options', array( |
|
| 375 | 375 | 'type' => 'none', |
| 376 | 376 | 'title' => '', |
| 377 | 377 | 'description' => '', |
| 378 | 378 | 'weight' => 0, |
| 379 | 379 | 'name' => 'navigation', |
| 380 | - )); |
|
| 381 | - $handler = $view->new_display('feed', 'Feed', 'feed_1'); |
|
| 382 | - $handler->override_option('arguments', array( |
|
| 380 | + )); |
|
| 381 | + $handler = $view->new_display('feed', 'Feed', 'feed_1'); |
|
| 382 | + $handler->override_option('arguments', array( |
|
| 383 | 383 | 'null' => array( |
| 384 | - 'default_action' => 'default', |
|
| 385 | - 'style_plugin' => 'default_summary', |
|
| 386 | - 'style_options' => array(), |
|
| 387 | - 'wildcard' => 'all', |
|
| 388 | - 'wildcard_substitution' => 'All', |
|
| 389 | - 'title' => '%1 | News', |
|
| 390 | - 'breadcrumb' => '', |
|
| 391 | - 'default_argument_type' => 'php', |
|
| 392 | - 'default_argument' => '', |
|
| 393 | - 'validate_type' => 'none', |
|
| 394 | - 'validate_fail' => 'not found', |
|
| 395 | - 'must_not_be' => 0, |
|
| 396 | - 'id' => 'null', |
|
| 397 | - 'table' => 'views', |
|
| 398 | - 'field' => 'null', |
|
| 399 | - 'validate_user_argument_type' => 'uid', |
|
| 400 | - 'validate_user_roles' => array( |
|
| 384 | + 'default_action' => 'default', |
|
| 385 | + 'style_plugin' => 'default_summary', |
|
| 386 | + 'style_options' => array(), |
|
| 387 | + 'wildcard' => 'all', |
|
| 388 | + 'wildcard_substitution' => 'All', |
|
| 389 | + 'title' => '%1 | News', |
|
| 390 | + 'breadcrumb' => '', |
|
| 391 | + 'default_argument_type' => 'php', |
|
| 392 | + 'default_argument' => '', |
|
| 393 | + 'validate_type' => 'none', |
|
| 394 | + 'validate_fail' => 'not found', |
|
| 395 | + 'must_not_be' => 0, |
|
| 396 | + 'id' => 'null', |
|
| 397 | + 'table' => 'views', |
|
| 398 | + 'field' => 'null', |
|
| 399 | + 'validate_user_argument_type' => 'uid', |
|
| 400 | + 'validate_user_roles' => array( |
|
| 401 | 401 | 2 => 0, |
| 402 | 402 | 4 => 0, |
| 403 | 403 | 7 => 0, |
| 404 | 404 | 5 => 0, |
| 405 | 405 | 3 => 0, |
| 406 | 406 | 6 => 0, |
| 407 | - ), |
|
| 408 | - 'me_redirect' => 0, |
|
| 409 | - 'me_validate_user_argument_type' => 'uid', |
|
| 410 | - 'me_validate_user_roles' => array( |
|
| 407 | + ), |
|
| 408 | + 'me_redirect' => 0, |
|
| 409 | + 'me_validate_user_argument_type' => 'uid', |
|
| 410 | + 'me_validate_user_roles' => array( |
|
| 411 | 411 | 2 => 0, |
| 412 | 412 | 4 => 0, |
| 413 | 413 | 7 => 0, |
| 414 | 414 | 5 => 0, |
| 415 | 415 | 3 => 0, |
| 416 | 416 | 6 => 0, |
| 417 | - ), |
|
| 418 | - 'override' => array( |
|
| 417 | + ), |
|
| 418 | + 'override' => array( |
|
| 419 | 419 | 'button' => 'Use default', |
| 420 | - ), |
|
| 421 | - 'relationship' => 'none', |
|
| 422 | - 'default_options_div_prefix' => '', |
|
| 423 | - 'default_taxonomy_tid_term_page' => 0, |
|
| 424 | - 'default_taxonomy_tid_node' => 0, |
|
| 425 | - 'default_taxonomy_tid_limit' => 0, |
|
| 426 | - 'default_taxonomy_tid_vids' => array( |
|
| 420 | + ), |
|
| 421 | + 'relationship' => 'none', |
|
| 422 | + 'default_options_div_prefix' => '', |
|
| 423 | + 'default_taxonomy_tid_term_page' => 0, |
|
| 424 | + 'default_taxonomy_tid_node' => 0, |
|
| 425 | + 'default_taxonomy_tid_limit' => 0, |
|
| 426 | + 'default_taxonomy_tid_vids' => array( |
|
| 427 | 427 | 1 => 0, |
| 428 | 428 | 2 => 0, |
| 429 | - ), |
|
| 430 | - 'default_argument_user' => 0, |
|
| 431 | - 'default_argument_fixed' => '', |
|
| 432 | - 'default_argument_php' => '// Use this to set a custom feed title that works both in the feed and |
|
| 429 | + ), |
|
| 430 | + 'default_argument_user' => 0, |
|
| 431 | + 'default_argument_fixed' => '', |
|
| 432 | + 'default_argument_php' => '// Use this to set a custom feed title that works both in the feed and |
|
| 433 | 433 | // in the auto discovery link in the page header |
| 434 | 434 | return variable_get(\'site_name\', \'Drupal-BOINC\'); |
| 435 | 435 | ', |
| 436 | - 'validate_argument_node_type' => array( |
|
| 436 | + 'validate_argument_node_type' => array( |
|
| 437 | 437 | 'page' => 0, |
| 438 | 438 | 'news' => 0, |
| 439 | 439 | 'profile' => 0, |
| 440 | 440 | 'forum' => 0, |
| 441 | 441 | 'panel' => 0, |
| 442 | 442 | 'story' => 0, |
| 443 | - ), |
|
| 444 | - 'validate_argument_node_access' => 0, |
|
| 445 | - 'validate_argument_nid_type' => 'nid', |
|
| 446 | - 'validate_argument_vocabulary' => array( |
|
| 443 | + ), |
|
| 444 | + 'validate_argument_node_access' => 0, |
|
| 445 | + 'validate_argument_nid_type' => 'nid', |
|
| 446 | + 'validate_argument_vocabulary' => array( |
|
| 447 | 447 | 1 => 0, |
| 448 | 448 | 2 => 0, |
| 449 | - ), |
|
| 450 | - 'validate_argument_type' => 'tid', |
|
| 451 | - 'validate_argument_transform' => 0, |
|
| 452 | - 'validate_user_restrict_roles' => 0, |
|
| 453 | - 'validate_argument_node_flag_name' => '*relationship*', |
|
| 454 | - 'validate_argument_node_flag_test' => 'flaggable', |
|
| 455 | - 'validate_argument_node_flag_id_type' => 'id', |
|
| 456 | - 'validate_argument_user_flag_name' => '*relationship*', |
|
| 457 | - 'validate_argument_user_flag_test' => 'flaggable', |
|
| 458 | - 'validate_argument_user_flag_id_type' => 'id', |
|
| 459 | - 'validate_argument_php' => '', |
|
| 460 | - 'me_validate_user_restrict_roles' => 0, |
|
| 461 | - ), |
|
| 462 | - )); |
|
| 463 | - $handler->override_option('filters', array( |
|
| 449 | + ), |
|
| 450 | + 'validate_argument_type' => 'tid', |
|
| 451 | + 'validate_argument_transform' => 0, |
|
| 452 | + 'validate_user_restrict_roles' => 0, |
|
| 453 | + 'validate_argument_node_flag_name' => '*relationship*', |
|
| 454 | + 'validate_argument_node_flag_test' => 'flaggable', |
|
| 455 | + 'validate_argument_node_flag_id_type' => 'id', |
|
| 456 | + 'validate_argument_user_flag_name' => '*relationship*', |
|
| 457 | + 'validate_argument_user_flag_test' => 'flaggable', |
|
| 458 | + 'validate_argument_user_flag_id_type' => 'id', |
|
| 459 | + 'validate_argument_php' => '', |
|
| 460 | + 'me_validate_user_restrict_roles' => 0, |
|
| 461 | + ), |
|
| 462 | + )); |
|
| 463 | + $handler->override_option('filters', array( |
|
| 464 | 464 | 'type' => array( |
| 465 | - 'operator' => 'in', |
|
| 466 | - 'value' => array( |
|
| 465 | + 'operator' => 'in', |
|
| 466 | + 'value' => array( |
|
| 467 | 467 | 'news' => 'news', |
| 468 | - ), |
|
| 469 | - 'group' => '0', |
|
| 470 | - 'exposed' => FALSE, |
|
| 471 | - 'expose' => array( |
|
| 468 | + ), |
|
| 469 | + 'group' => '0', |
|
| 470 | + 'exposed' => FALSE, |
|
| 471 | + 'expose' => array( |
|
| 472 | 472 | 'operator' => FALSE, |
| 473 | 473 | 'label' => '', |
| 474 | - ), |
|
| 475 | - 'id' => 'type', |
|
| 476 | - 'table' => 'node', |
|
| 477 | - 'field' => 'type', |
|
| 478 | - 'relationship' => 'none', |
|
| 474 | + ), |
|
| 475 | + 'id' => 'type', |
|
| 476 | + 'table' => 'node', |
|
| 477 | + 'field' => 'type', |
|
| 478 | + 'relationship' => 'none', |
|
| 479 | 479 | ), |
| 480 | 480 | 'status' => array( |
| 481 | - 'operator' => '=', |
|
| 482 | - 'value' => '1', |
|
| 483 | - 'group' => '0', |
|
| 484 | - 'exposed' => FALSE, |
|
| 485 | - 'expose' => array( |
|
| 481 | + 'operator' => '=', |
|
| 482 | + 'value' => '1', |
|
| 483 | + 'group' => '0', |
|
| 484 | + 'exposed' => FALSE, |
|
| 485 | + 'expose' => array( |
|
| 486 | 486 | 'operator' => FALSE, |
| 487 | 487 | 'label' => '', |
| 488 | - ), |
|
| 489 | - 'id' => 'status', |
|
| 490 | - 'table' => 'node', |
|
| 491 | - 'field' => 'status', |
|
| 492 | - 'relationship' => 'none', |
|
| 488 | + ), |
|
| 489 | + 'id' => 'status', |
|
| 490 | + 'table' => 'node', |
|
| 491 | + 'field' => 'status', |
|
| 492 | + 'relationship' => 'none', |
|
| 493 | 493 | ), |
| 494 | 494 | 'changed' => array( |
| 495 | - 'operator' => '>=', |
|
| 496 | - 'value' => array( |
|
| 495 | + 'operator' => '>=', |
|
| 496 | + 'value' => array( |
|
| 497 | 497 | 'type' => 'offset', |
| 498 | 498 | 'value' => '-90 days', |
| 499 | 499 | 'min' => '', |
| 500 | 500 | 'max' => '', |
| 501 | - ), |
|
| 502 | - 'group' => '0', |
|
| 503 | - 'exposed' => FALSE, |
|
| 504 | - 'expose' => array( |
|
| 501 | + ), |
|
| 502 | + 'group' => '0', |
|
| 503 | + 'exposed' => FALSE, |
|
| 504 | + 'expose' => array( |
|
| 505 | 505 | 'operator' => FALSE, |
| 506 | 506 | 'label' => '', |
| 507 | - ), |
|
| 508 | - 'id' => 'changed', |
|
| 509 | - 'table' => 'node', |
|
| 510 | - 'field' => 'changed', |
|
| 511 | - 'override' => array( |
|
| 507 | + ), |
|
| 508 | + 'id' => 'changed', |
|
| 509 | + 'table' => 'node', |
|
| 510 | + 'field' => 'changed', |
|
| 511 | + 'override' => array( |
|
| 512 | 512 | 'button' => 'Use default', |
| 513 | - ), |
|
| 514 | - 'relationship' => 'none', |
|
| 513 | + ), |
|
| 514 | + 'relationship' => 'none', |
|
| 515 | 515 | ), |
| 516 | - )); |
|
| 517 | - $handler->override_option('style_plugin', 'rss'); |
|
| 518 | - $handler->override_option('style_options', array( |
|
| 516 | + )); |
|
| 517 | + $handler->override_option('style_plugin', 'rss'); |
|
| 518 | + $handler->override_option('style_options', array( |
|
| 519 | 519 | 'mission_description' => FALSE, |
| 520 | 520 | 'description' => '', |
| 521 | - )); |
|
| 522 | - $handler->override_option('row_plugin', 'node_rss'); |
|
| 523 | - $handler->override_option('row_options', array( |
|
| 521 | + )); |
|
| 522 | + $handler->override_option('row_plugin', 'node_rss'); |
|
| 523 | + $handler->override_option('row_options', array( |
|
| 524 | 524 | 'relationship' => 'none', |
| 525 | 525 | 'item_length' => 'default', |
| 526 | - )); |
|
| 527 | - $handler->override_option('path', 'rss_main.php'); |
|
| 528 | - $handler->override_option('menu', array( |
|
| 526 | + )); |
|
| 527 | + $handler->override_option('path', 'rss_main.php'); |
|
| 528 | + $handler->override_option('menu', array( |
|
| 529 | 529 | 'type' => 'none', |
| 530 | 530 | 'title' => '', |
| 531 | 531 | 'description' => '', |
| 532 | 532 | 'weight' => 0, |
| 533 | 533 | 'name' => 'primary-links', |
| 534 | - )); |
|
| 535 | - $handler->override_option('tab_options', array( |
|
| 534 | + )); |
|
| 535 | + $handler->override_option('tab_options', array( |
|
| 536 | 536 | 'type' => 'none', |
| 537 | 537 | 'title' => '', |
| 538 | 538 | 'description' => '', |
| 539 | 539 | 'weight' => 0, |
| 540 | 540 | 'name' => 'navigation', |
| 541 | - )); |
|
| 542 | - $handler->override_option('displays', array( |
|
| 541 | + )); |
|
| 542 | + $handler->override_option('displays', array( |
|
| 543 | 543 | 'page_1' => 'page_1', |
| 544 | 544 | 'page_2' => 'page_2', |
| 545 | 545 | 'default' => 0, |
| 546 | - )); |
|
| 547 | - $handler->override_option('sitename_title', FALSE); |
|
| 548 | - $handler = $view->new_display('page', 'Short blurbs', 'page_2'); |
|
| 549 | - $handler->override_option('relationships', array()); |
|
| 550 | - $handler->override_option('fields', array( |
|
| 546 | + )); |
|
| 547 | + $handler->override_option('sitename_title', FALSE); |
|
| 548 | + $handler = $view->new_display('page', 'Short blurbs', 'page_2'); |
|
| 549 | + $handler->override_option('relationships', array()); |
|
| 550 | + $handler->override_option('fields', array( |
|
| 551 | 551 | 'nid' => array( |
| 552 | - 'label' => 'Nid', |
|
| 553 | - 'alter' => array( |
|
| 552 | + 'label' => 'Nid', |
|
| 553 | + 'alter' => array( |
|
| 554 | 554 | 'alter_text' => 0, |
| 555 | 555 | 'text' => '', |
| 556 | 556 | 'make_link' => 0, |
@@ -569,24 +569,24 @@ discard block |
||
| 569 | 569 | 'ellipsis' => 1, |
| 570 | 570 | 'html' => 0, |
| 571 | 571 | 'strip_tags' => 0, |
| 572 | - ), |
|
| 573 | - 'empty' => '', |
|
| 574 | - 'hide_empty' => 0, |
|
| 575 | - 'empty_zero' => 0, |
|
| 576 | - 'hide_alter_empty' => 1, |
|
| 577 | - 'link_to_node' => 0, |
|
| 578 | - 'exclude' => 1, |
|
| 579 | - 'id' => 'nid', |
|
| 580 | - 'table' => 'node', |
|
| 581 | - 'field' => 'nid', |
|
| 582 | - 'override' => array( |
|
| 572 | + ), |
|
| 573 | + 'empty' => '', |
|
| 574 | + 'hide_empty' => 0, |
|
| 575 | + 'empty_zero' => 0, |
|
| 576 | + 'hide_alter_empty' => 1, |
|
| 577 | + 'link_to_node' => 0, |
|
| 578 | + 'exclude' => 1, |
|
| 579 | + 'id' => 'nid', |
|
| 580 | + 'table' => 'node', |
|
| 581 | + 'field' => 'nid', |
|
| 582 | + 'override' => array( |
|
| 583 | 583 | 'button' => 'Use default', |
| 584 | - ), |
|
| 585 | - 'relationship' => 'none', |
|
| 584 | + ), |
|
| 585 | + 'relationship' => 'none', |
|
| 586 | 586 | ), |
| 587 | 587 | 'comment' => array( |
| 588 | - 'label' => 'Comment status', |
|
| 589 | - 'alter' => array( |
|
| 588 | + 'label' => 'Comment status', |
|
| 589 | + 'alter' => array( |
|
| 590 | 590 | 'alter_text' => 0, |
| 591 | 591 | 'text' => '', |
| 592 | 592 | 'make_link' => 0, |
@@ -605,23 +605,23 @@ discard block |
||
| 605 | 605 | 'ellipsis' => 1, |
| 606 | 606 | 'html' => 0, |
| 607 | 607 | 'strip_tags' => 0, |
| 608 | - ), |
|
| 609 | - 'empty' => '', |
|
| 610 | - 'hide_empty' => 0, |
|
| 611 | - 'empty_zero' => 0, |
|
| 612 | - 'hide_alter_empty' => 1, |
|
| 613 | - 'exclude' => 1, |
|
| 614 | - 'id' => 'comment', |
|
| 615 | - 'table' => 'node', |
|
| 616 | - 'field' => 'comment', |
|
| 617 | - 'override' => array( |
|
| 608 | + ), |
|
| 609 | + 'empty' => '', |
|
| 610 | + 'hide_empty' => 0, |
|
| 611 | + 'empty_zero' => 0, |
|
| 612 | + 'hide_alter_empty' => 1, |
|
| 613 | + 'exclude' => 1, |
|
| 614 | + 'id' => 'comment', |
|
| 615 | + 'table' => 'node', |
|
| 616 | + 'field' => 'comment', |
|
| 617 | + 'override' => array( |
|
| 618 | 618 | 'button' => 'Use default', |
| 619 | - ), |
|
| 620 | - 'relationship' => 'none', |
|
| 619 | + ), |
|
| 620 | + 'relationship' => 'none', |
|
| 621 | 621 | ), |
| 622 | 622 | 'title' => array( |
| 623 | - 'label' => '', |
|
| 624 | - 'alter' => array( |
|
| 623 | + 'label' => '', |
|
| 624 | + 'alter' => array( |
|
| 625 | 625 | 'alter_text' => 1, |
| 626 | 626 | 'text' => '<h2>[title]</h2>', |
| 627 | 627 | 'make_link' => 0, |
@@ -638,23 +638,23 @@ discard block |
||
| 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 | - 'link_to_node' => 0, |
|
| 646 | - 'exclude' => 0, |
|
| 647 | - 'id' => 'title', |
|
| 648 | - 'table' => 'node', |
|
| 649 | - 'field' => 'title', |
|
| 650 | - 'override' => array( |
|
| 641 | + ), |
|
| 642 | + 'empty' => '', |
|
| 643 | + 'hide_empty' => 0, |
|
| 644 | + 'empty_zero' => 0, |
|
| 645 | + 'link_to_node' => 0, |
|
| 646 | + 'exclude' => 0, |
|
| 647 | + 'id' => 'title', |
|
| 648 | + 'table' => 'node', |
|
| 649 | + 'field' => 'title', |
|
| 650 | + 'override' => array( |
|
| 651 | 651 | 'button' => 'Use default', |
| 652 | - ), |
|
| 653 | - 'relationship' => 'none', |
|
| 652 | + ), |
|
| 653 | + 'relationship' => 'none', |
|
| 654 | 654 | ), |
| 655 | 655 | 'created' => array( |
| 656 | - 'label' => '', |
|
| 657 | - 'alter' => array( |
|
| 656 | + 'label' => '', |
|
| 657 | + 'alter' => array( |
|
| 658 | 658 | 'alter_text' => 0, |
| 659 | 659 | 'text' => '', |
| 660 | 660 | 'make_link' => 0, |
@@ -671,24 +671,24 @@ discard block |
||
| 671 | 671 | 'ellipsis' => 1, |
| 672 | 672 | 'html' => 0, |
| 673 | 673 | 'strip_tags' => 0, |
| 674 | - ), |
|
| 675 | - 'empty' => '', |
|
| 676 | - 'hide_empty' => 0, |
|
| 677 | - 'empty_zero' => 0, |
|
| 678 | - 'date_format' => 'custom', |
|
| 679 | - 'custom_date_format' => 'F d, Y', |
|
| 680 | - 'exclude' => 0, |
|
| 681 | - 'id' => 'created', |
|
| 682 | - 'table' => 'node', |
|
| 683 | - 'field' => 'created', |
|
| 684 | - 'override' => array( |
|
| 674 | + ), |
|
| 675 | + 'empty' => '', |
|
| 676 | + 'hide_empty' => 0, |
|
| 677 | + 'empty_zero' => 0, |
|
| 678 | + 'date_format' => 'custom', |
|
| 679 | + 'custom_date_format' => 'F d, Y', |
|
| 680 | + 'exclude' => 0, |
|
| 681 | + 'id' => 'created', |
|
| 682 | + 'table' => 'node', |
|
| 683 | + 'field' => 'created', |
|
| 684 | + 'override' => array( |
|
| 685 | 685 | 'button' => 'Use default', |
| 686 | - ), |
|
| 687 | - 'relationship' => 'none', |
|
| 686 | + ), |
|
| 687 | + 'relationship' => 'none', |
|
| 688 | 688 | ), |
| 689 | 689 | 'teaser' => array( |
| 690 | - 'label' => '', |
|
| 691 | - 'alter' => array( |
|
| 690 | + 'label' => '', |
|
| 691 | + 'alter' => array( |
|
| 692 | 692 | 'alter_text' => 0, |
| 693 | 693 | 'text' => '', |
| 694 | 694 | 'make_link' => 0, |
@@ -707,23 +707,23 @@ discard block |
||
| 707 | 707 | 'ellipsis' => 1, |
| 708 | 708 | 'html' => 0, |
| 709 | 709 | 'strip_tags' => 0, |
| 710 | - ), |
|
| 711 | - 'empty' => '', |
|
| 712 | - 'hide_empty' => 0, |
|
| 713 | - 'empty_zero' => 0, |
|
| 714 | - 'hide_alter_empty' => 1, |
|
| 715 | - 'exclude' => 0, |
|
| 716 | - 'id' => 'teaser', |
|
| 717 | - 'table' => 'node_revisions', |
|
| 718 | - 'field' => 'teaser', |
|
| 719 | - 'override' => array( |
|
| 710 | + ), |
|
| 711 | + 'empty' => '', |
|
| 712 | + 'hide_empty' => 0, |
|
| 713 | + 'empty_zero' => 0, |
|
| 714 | + 'hide_alter_empty' => 1, |
|
| 715 | + 'exclude' => 0, |
|
| 716 | + 'id' => 'teaser', |
|
| 717 | + 'table' => 'node_revisions', |
|
| 718 | + 'field' => 'teaser', |
|
| 719 | + 'override' => array( |
|
| 720 | 720 | 'button' => 'Use default', |
| 721 | - ), |
|
| 722 | - 'relationship' => 'none', |
|
| 721 | + ), |
|
| 722 | + 'relationship' => 'none', |
|
| 723 | 723 | ), |
| 724 | 724 | 'view_node_1' => array( |
| 725 | - 'label' => '', |
|
| 726 | - 'alter' => array( |
|
| 725 | + 'label' => '', |
|
| 726 | + 'alter' => array( |
|
| 727 | 727 | 'alter_text' => 0, |
| 728 | 728 | 'text' => '', |
| 729 | 729 | 'make_link' => 0, |
@@ -742,24 +742,24 @@ discard block |
||
| 742 | 742 | 'ellipsis' => 1, |
| 743 | 743 | 'html' => 0, |
| 744 | 744 | 'strip_tags' => 0, |
| 745 | - ), |
|
| 746 | - 'empty' => '', |
|
| 747 | - 'hide_empty' => 0, |
|
| 748 | - 'empty_zero' => 0, |
|
| 749 | - 'hide_alter_empty' => 1, |
|
| 750 | - 'text' => 'more', |
|
| 751 | - 'exclude' => 0, |
|
| 752 | - 'id' => 'view_node_1', |
|
| 753 | - 'table' => 'node', |
|
| 754 | - 'field' => 'view_node', |
|
| 755 | - 'override' => array( |
|
| 745 | + ), |
|
| 746 | + 'empty' => '', |
|
| 747 | + 'hide_empty' => 0, |
|
| 748 | + 'empty_zero' => 0, |
|
| 749 | + 'hide_alter_empty' => 1, |
|
| 750 | + 'text' => 'more', |
|
| 751 | + 'exclude' => 0, |
|
| 752 | + 'id' => 'view_node_1', |
|
| 753 | + 'table' => 'node', |
|
| 754 | + 'field' => 'view_node', |
|
| 755 | + 'override' => array( |
|
| 756 | 756 | 'button' => 'Use default', |
| 757 | - ), |
|
| 758 | - 'relationship' => 'none', |
|
| 757 | + ), |
|
| 758 | + 'relationship' => 'none', |
|
| 759 | 759 | ), |
| 760 | 760 | 'phpcode' => array( |
| 761 | - 'label' => '', |
|
| 762 | - 'alter' => array( |
|
| 761 | + 'label' => '', |
|
| 762 | + 'alter' => array( |
|
| 763 | 763 | 'alter_text' => 0, |
| 764 | 764 | 'text' => '', |
| 765 | 765 | 'make_link' => 0, |
@@ -778,30 +778,30 @@ discard block |
||
| 778 | 778 | 'ellipsis' => 1, |
| 779 | 779 | 'html' => 0, |
| 780 | 780 | 'strip_tags' => 0, |
| 781 | - ), |
|
| 782 | - 'empty' => '', |
|
| 783 | - 'hide_empty' => 0, |
|
| 784 | - 'empty_zero' => 0, |
|
| 785 | - 'hide_alter_empty' => 1, |
|
| 786 | - 'value' => '<?php |
|
| 781 | + ), |
|
| 782 | + 'empty' => '', |
|
| 783 | + 'hide_empty' => 0, |
|
| 784 | + 'empty_zero' => 0, |
|
| 785 | + 'hide_alter_empty' => 1, |
|
| 786 | + 'value' => '<?php |
|
| 787 | 787 | if ($data->node_comment == COMMENT_NODE_READ_WRITE) { |
| 788 | 788 | $cid = boincuser_get_first_unread_comment_id($data->nid); |
| 789 | 789 | $link = ($cid) ? "goto/comment/{$cid}" : "node/{$data->nid}"; |
| 790 | 790 | return l(bts(\'discuss\', array(), NULL, \'boinc:front-page-discuss-news\'), $link); |
| 791 | 791 | } |
| 792 | 792 | ?>', |
| 793 | - 'exclude' => 0, |
|
| 794 | - 'id' => 'phpcode', |
|
| 795 | - 'table' => 'customfield', |
|
| 796 | - 'field' => 'phpcode', |
|
| 797 | - 'override' => array( |
|
| 793 | + 'exclude' => 0, |
|
| 794 | + 'id' => 'phpcode', |
|
| 795 | + 'table' => 'customfield', |
|
| 796 | + 'field' => 'phpcode', |
|
| 797 | + 'override' => array( |
|
| 798 | 798 | 'button' => 'Use default', |
| 799 | - ), |
|
| 800 | - 'relationship' => 'none', |
|
| 799 | + ), |
|
| 800 | + 'relationship' => 'none', |
|
| 801 | 801 | ), |
| 802 | 802 | 'comment_count' => array( |
| 803 | - 'label' => '', |
|
| 804 | - 'alter' => array( |
|
| 803 | + 'label' => '', |
|
| 804 | + 'alter' => array( |
|
| 805 | 805 | 'alter_text' => 0, |
| 806 | 806 | 'text' => '', |
| 807 | 807 | 'make_link' => 0, |
@@ -820,32 +820,32 @@ discard block |
||
| 820 | 820 | 'ellipsis' => 1, |
| 821 | 821 | 'html' => 0, |
| 822 | 822 | 'strip_tags' => 0, |
| 823 | - ), |
|
| 824 | - 'empty' => '0', |
|
| 825 | - 'hide_empty' => 1, |
|
| 826 | - 'empty_zero' => 0, |
|
| 827 | - 'hide_alter_empty' => 0, |
|
| 828 | - 'set_precision' => FALSE, |
|
| 829 | - 'precision' => 0, |
|
| 830 | - 'decimal' => '.', |
|
| 831 | - 'separator' => '', |
|
| 832 | - 'format_plural' => 0, |
|
| 833 | - 'format_plural_singular' => '1', |
|
| 834 | - 'format_plural_plural' => '@count', |
|
| 835 | - 'prefix' => '', |
|
| 836 | - 'suffix' => '', |
|
| 837 | - 'exclude' => 0, |
|
| 838 | - 'id' => 'comment_count', |
|
| 839 | - 'table' => 'node_comment_statistics', |
|
| 840 | - 'field' => 'comment_count', |
|
| 841 | - 'override' => array( |
|
| 823 | + ), |
|
| 824 | + 'empty' => '0', |
|
| 825 | + 'hide_empty' => 1, |
|
| 826 | + 'empty_zero' => 0, |
|
| 827 | + 'hide_alter_empty' => 0, |
|
| 828 | + 'set_precision' => FALSE, |
|
| 829 | + 'precision' => 0, |
|
| 830 | + 'decimal' => '.', |
|
| 831 | + 'separator' => '', |
|
| 832 | + 'format_plural' => 0, |
|
| 833 | + 'format_plural_singular' => '1', |
|
| 834 | + 'format_plural_plural' => '@count', |
|
| 835 | + 'prefix' => '', |
|
| 836 | + 'suffix' => '', |
|
| 837 | + 'exclude' => 0, |
|
| 838 | + 'id' => 'comment_count', |
|
| 839 | + 'table' => 'node_comment_statistics', |
|
| 840 | + 'field' => 'comment_count', |
|
| 841 | + 'override' => array( |
|
| 842 | 842 | 'button' => 'Use default', |
| 843 | - ), |
|
| 844 | - 'relationship' => 'none', |
|
| 843 | + ), |
|
| 844 | + 'relationship' => 'none', |
|
| 845 | 845 | ), |
| 846 | 846 | 'nothing' => array( |
| 847 | - 'label' => '', |
|
| 848 | - 'alter' => array( |
|
| 847 | + 'label' => '', |
|
| 848 | + 'alter' => array( |
|
| 849 | 849 | 'text' => '<div class="clearfix"></div>', |
| 850 | 850 | 'make_link' => 0, |
| 851 | 851 | 'path' => '', |
@@ -861,88 +861,88 @@ discard block |
||
| 861 | 861 | 'ellipsis' => 1, |
| 862 | 862 | 'html' => 0, |
| 863 | 863 | 'strip_tags' => 0, |
| 864 | - ), |
|
| 865 | - 'empty' => '', |
|
| 866 | - 'hide_empty' => 0, |
|
| 867 | - 'empty_zero' => 0, |
|
| 868 | - 'exclude' => 0, |
|
| 869 | - 'id' => 'nothing', |
|
| 870 | - 'table' => 'views', |
|
| 871 | - 'field' => 'nothing', |
|
| 872 | - 'override' => array( |
|
| 864 | + ), |
|
| 865 | + 'empty' => '', |
|
| 866 | + 'hide_empty' => 0, |
|
| 867 | + 'empty_zero' => 0, |
|
| 868 | + 'exclude' => 0, |
|
| 869 | + 'id' => 'nothing', |
|
| 870 | + 'table' => 'views', |
|
| 871 | + 'field' => 'nothing', |
|
| 872 | + 'override' => array( |
|
| 873 | 873 | 'button' => 'Use default', |
| 874 | - ), |
|
| 875 | - 'relationship' => 'none', |
|
| 874 | + ), |
|
| 875 | + 'relationship' => 'none', |
|
| 876 | 876 | ), |
| 877 | - )); |
|
| 878 | - $handler->override_option('filters', array( |
|
| 877 | + )); |
|
| 878 | + $handler->override_option('filters', array( |
|
| 879 | 879 | 'type' => array( |
| 880 | - 'operator' => 'in', |
|
| 881 | - 'value' => array( |
|
| 880 | + 'operator' => 'in', |
|
| 881 | + 'value' => array( |
|
| 882 | 882 | 'news' => 'news', |
| 883 | - ), |
|
| 884 | - 'group' => '0', |
|
| 885 | - 'exposed' => FALSE, |
|
| 886 | - 'expose' => array( |
|
| 883 | + ), |
|
| 884 | + 'group' => '0', |
|
| 885 | + 'exposed' => FALSE, |
|
| 886 | + 'expose' => array( |
|
| 887 | 887 | 'operator' => FALSE, |
| 888 | 888 | 'label' => '', |
| 889 | - ), |
|
| 890 | - 'id' => 'type', |
|
| 891 | - 'table' => 'node', |
|
| 892 | - 'field' => 'type', |
|
| 893 | - 'relationship' => 'none', |
|
| 889 | + ), |
|
| 890 | + 'id' => 'type', |
|
| 891 | + 'table' => 'node', |
|
| 892 | + 'field' => 'type', |
|
| 893 | + 'relationship' => 'none', |
|
| 894 | 894 | ), |
| 895 | 895 | 'status' => array( |
| 896 | - 'operator' => '=', |
|
| 897 | - 'value' => '1', |
|
| 898 | - 'group' => '0', |
|
| 899 | - 'exposed' => FALSE, |
|
| 900 | - 'expose' => array( |
|
| 896 | + 'operator' => '=', |
|
| 897 | + 'value' => '1', |
|
| 898 | + 'group' => '0', |
|
| 899 | + 'exposed' => FALSE, |
|
| 900 | + 'expose' => array( |
|
| 901 | 901 | 'operator' => FALSE, |
| 902 | 902 | 'label' => '', |
| 903 | - ), |
|
| 904 | - 'id' => 'status', |
|
| 905 | - 'table' => 'node', |
|
| 906 | - 'field' => 'status', |
|
| 907 | - 'relationship' => 'none', |
|
| 903 | + ), |
|
| 904 | + 'id' => 'status', |
|
| 905 | + 'table' => 'node', |
|
| 906 | + 'field' => 'status', |
|
| 907 | + 'relationship' => 'none', |
|
| 908 | 908 | ), |
| 909 | 909 | 'promote' => array( |
| 910 | - 'operator' => '=', |
|
| 911 | - 'value' => '1', |
|
| 912 | - 'group' => '0', |
|
| 913 | - 'exposed' => FALSE, |
|
| 914 | - 'expose' => array( |
|
| 910 | + 'operator' => '=', |
|
| 911 | + 'value' => '1', |
|
| 912 | + 'group' => '0', |
|
| 913 | + 'exposed' => FALSE, |
|
| 914 | + 'expose' => array( |
|
| 915 | 915 | 'operator' => FALSE, |
| 916 | 916 | 'label' => '', |
| 917 | - ), |
|
| 918 | - 'id' => 'promote', |
|
| 919 | - 'table' => 'node', |
|
| 920 | - 'field' => 'promote', |
|
| 921 | - 'override' => array( |
|
| 917 | + ), |
|
| 918 | + 'id' => 'promote', |
|
| 919 | + 'table' => 'node', |
|
| 920 | + 'field' => 'promote', |
|
| 921 | + 'override' => array( |
|
| 922 | 922 | 'button' => 'Use default', |
| 923 | - ), |
|
| 924 | - 'relationship' => 'none', |
|
| 925 | - ), |
|
| 926 | - )); |
|
| 927 | - $handler->override_option('title', 'News'); |
|
| 928 | - $handler->override_option('row_plugin', 'fields'); |
|
| 929 | - $handler->override_option('path', 'news'); |
|
| 930 | - $handler->override_option('menu', array( |
|
| 923 | + ), |
|
| 924 | + 'relationship' => 'none', |
|
| 925 | + ), |
|
| 926 | + )); |
|
| 927 | + $handler->override_option('title', 'News'); |
|
| 928 | + $handler->override_option('row_plugin', 'fields'); |
|
| 929 | + $handler->override_option('path', 'news'); |
|
| 930 | + $handler->override_option('menu', array( |
|
| 931 | 931 | 'type' => 'default tab', |
| 932 | 932 | 'title' => 'News', |
| 933 | 933 | 'description' => '', |
| 934 | 934 | 'weight' => '0', |
| 935 | 935 | 'name' => 'navigation', |
| 936 | - )); |
|
| 937 | - $handler->override_option('tab_options', array( |
|
| 936 | + )); |
|
| 937 | + $handler->override_option('tab_options', array( |
|
| 938 | 938 | 'type' => 'none', |
| 939 | 939 | 'title' => '', |
| 940 | 940 | 'description' => '', |
| 941 | 941 | 'weight' => 0, |
| 942 | 942 | 'name' => 'navigation', |
| 943 | - )); |
|
| 943 | + )); |
|
| 944 | 944 | |
| 945 | - $views[$view->name] = $view; |
|
| 945 | + $views[$view->name] = $view; |
|
| 946 | 946 | |
| 947 | - return $views; |
|
| 947 | + return $views; |
|
| 948 | 948 | } |
@@ -4,33 +4,33 @@ discard block |
||
| 4 | 4 | * Implementation of hook_default_panels_mini(). |
| 5 | 5 | */ |
| 6 | 6 | function stats_charts_default_panels_mini() { |
| 7 | - $export = array(); |
|
| 7 | + $export = array(); |
|
| 8 | 8 | |
| 9 | - $mini = new stdClass; |
|
| 10 | - $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */ |
|
| 11 | - $mini->api_version = 1; |
|
| 12 | - $mini->name = 'project_stats_overview'; |
|
| 13 | - $mini->category = 'BOINC'; |
|
| 14 | - $mini->admin_title = 'Project stats overview'; |
|
| 15 | - $mini->admin_description = 'General statistical information for the project'; |
|
| 16 | - $mini->requiredcontexts = array(); |
|
| 17 | - $mini->contexts = array(); |
|
| 18 | - $mini->relationships = array(); |
|
| 19 | - $display = new panels_display; |
|
| 20 | - $display->layout = 'onecol'; |
|
| 21 | - $display->layout_settings = array(); |
|
| 22 | - $display->panel_settings = array( |
|
| 9 | + $mini = new stdClass; |
|
| 10 | + $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */ |
|
| 11 | + $mini->api_version = 1; |
|
| 12 | + $mini->name = 'project_stats_overview'; |
|
| 13 | + $mini->category = 'BOINC'; |
|
| 14 | + $mini->admin_title = 'Project stats overview'; |
|
| 15 | + $mini->admin_description = 'General statistical information for the project'; |
|
| 16 | + $mini->requiredcontexts = array(); |
|
| 17 | + $mini->contexts = array(); |
|
| 18 | + $mini->relationships = array(); |
|
| 19 | + $display = new panels_display; |
|
| 20 | + $display->layout = 'onecol'; |
|
| 21 | + $display->layout_settings = array(); |
|
| 22 | + $display->panel_settings = array( |
|
| 23 | 23 | 'style_settings' => array( |
| 24 | - 'default' => NULL, |
|
| 25 | - 'middle' => NULL, |
|
| 24 | + 'default' => NULL, |
|
| 25 | + 'middle' => NULL, |
|
| 26 | 26 | ), |
| 27 | - ); |
|
| 28 | - $display->cache = array(); |
|
| 29 | - $display->title = ''; |
|
| 30 | - $display->storage_type = 'panels_mini'; |
|
| 31 | - $display->storage_id = 'project_stats_overview'; |
|
| 32 | - $display->content = array(); |
|
| 33 | - $display->panels = array(); |
|
| 27 | + ); |
|
| 28 | + $display->cache = array(); |
|
| 29 | + $display->title = ''; |
|
| 30 | + $display->storage_type = 'panels_mini'; |
|
| 31 | + $display->storage_id = 'project_stats_overview'; |
|
| 32 | + $display->content = array(); |
|
| 33 | + $display->panels = array(); |
|
| 34 | 34 | $pane = new stdClass; |
| 35 | 35 | $pane->pid = 'new-1'; |
| 36 | 36 | $pane->panel = 'middle'; |
@@ -39,25 +39,25 @@ discard block |
||
| 39 | 39 | $pane->shown = TRUE; |
| 40 | 40 | $pane->access = array(); |
| 41 | 41 | $pane->configuration = array( |
| 42 | - 'admin_title' => 'Project stats overview', |
|
| 43 | - 'title' => bts('@this_project Progress', array('@this_project' => variable_get('site_name', 'Drupal-BOINC')), NULL, 'boinc:frontpage'), |
|
| 44 | - 'body' => '<?php echo boincstats_get_project_stats_overview(); ?>', |
|
| 45 | - 'format' => '3', |
|
| 46 | - 'substitute' => TRUE, |
|
| 42 | + 'admin_title' => 'Project stats overview', |
|
| 43 | + 'title' => bts('@this_project Progress', array('@this_project' => variable_get('site_name', 'Drupal-BOINC')), NULL, 'boinc:frontpage'), |
|
| 44 | + 'body' => '<?php echo boincstats_get_project_stats_overview(); ?>', |
|
| 45 | + 'format' => '3', |
|
| 46 | + 'substitute' => TRUE, |
|
| 47 | 47 | ); |
| 48 | 48 | $pane->cache = array(); |
| 49 | 49 | $pane->style = array( |
| 50 | - 'settings' => NULL, |
|
| 50 | + 'settings' => NULL, |
|
| 51 | 51 | ); |
| 52 | 52 | $pane->css = array(); |
| 53 | 53 | $pane->extras = array(); |
| 54 | 54 | $pane->position = 0; |
| 55 | 55 | $display->content['new-1'] = $pane; |
| 56 | 56 | $display->panels['middle'][0] = 'new-1'; |
| 57 | - $display->hide_title = PANELS_TITLE_FIXED; |
|
| 58 | - $display->title_pane = 'new-1'; |
|
| 59 | - $mini->display = $display; |
|
| 60 | - $export['project_stats_overview'] = $mini; |
|
| 57 | + $display->hide_title = PANELS_TITLE_FIXED; |
|
| 58 | + $display->title_pane = 'new-1'; |
|
| 59 | + $mini->display = $display; |
|
| 60 | + $export['project_stats_overview'] = $mini; |
|
| 61 | 61 | |
| 62 | - return $export; |
|
| 62 | + return $export; |
|
| 63 | 63 | } |
@@ -219,8 +219,8 @@ |
||
| 219 | 219 | echo "<p>".tra("Sorry, couldn't find anything matching your search query. You can try to broaden your search by using less words (or less specific words).")."</p> |
| 220 | 220 | <p>" |
| 221 | 221 | .tra("You can also %1 try the same search on Google. %2", |
| 222 | - "<a href=\"https://www.google.com/search?domains=".url_base()."&sitesearch=".url_base()."forum_thread.php&q=".htmlentities($search_keywords)."\">", |
|
| 223 | - "</a>") |
|
| 222 | + "<a href=\"https://www.google.com/search?domains=".url_base()."&sitesearch=".url_base()."forum_thread.php&q=".htmlentities($search_keywords)."\">", |
|
| 223 | + "</a>") |
|
| 224 | 224 | ."</p>"; |
| 225 | 225 | } |
| 226 | 226 | echo "<p><a href=\"forum_search.php\">".tra("Perform another search")."</a></p>"; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | ".tra("Your preferences have been updated, and |
| 34 | 34 | will take effect when your computer communicates with %1 |
| 35 | 35 | or you issue the %2 Update %3 command from the BOINC Manager.", |
| 36 | - PROJECT, "<strong>", "</strong>")." |
|
| 36 | + PROJECT, "<strong>", "</strong>")." |
|
| 37 | 37 | </p> |
| 38 | 38 | "; |
| 39 | 39 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | ".tra("Your preferences have been reset to the defaults, and |
| 43 | 43 | will take effect when your computer communicates with %1 |
| 44 | 44 | or you issue the %2 Update %3 command from the BOINC Manager.", |
| 45 | - PROJECT, "<strong>", "</strong>")." |
|
| 45 | + PROJECT, "<strong>", "</strong>")." |
|
| 46 | 46 | </p> |
| 47 | 47 | "; |
| 48 | 48 | } |
@@ -4,29 +4,29 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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}") . \' | \' . 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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($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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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($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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -4,86 +4,86 @@ |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function teams_strongarm() { |
| 7 | - $export = array(); |
|
| 7 | + $export = array(); |
|
| 8 | 8 | |
| 9 | - $strongarm = new stdClass; |
|
| 10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | - $strongarm->api_version = 1; |
|
| 12 | - $strongarm->name = 'comment_anonymous_team'; |
|
| 13 | - $strongarm->value = 0; |
|
| 14 | - $export['comment_anonymous_team'] = $strongarm; |
|
| 9 | + $strongarm = new stdClass; |
|
| 10 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | + $strongarm->api_version = 1; |
|
| 12 | + $strongarm->name = 'comment_anonymous_team'; |
|
| 13 | + $strongarm->value = 0; |
|
| 14 | + $export['comment_anonymous_team'] = $strongarm; |
|
| 15 | 15 | |
| 16 | - $strongarm = new stdClass; |
|
| 17 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | - $strongarm->api_version = 1; |
|
| 19 | - $strongarm->name = 'comment_controls_team'; |
|
| 20 | - $strongarm->value = '3'; |
|
| 21 | - $export['comment_controls_team'] = $strongarm; |
|
| 16 | + $strongarm = new stdClass; |
|
| 17 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | + $strongarm->api_version = 1; |
|
| 19 | + $strongarm->name = 'comment_controls_team'; |
|
| 20 | + $strongarm->value = '3'; |
|
| 21 | + $export['comment_controls_team'] = $strongarm; |
|
| 22 | 22 | |
| 23 | - $strongarm = new stdClass; |
|
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | - $strongarm->api_version = 1; |
|
| 26 | - $strongarm->name = 'comment_default_mode_team'; |
|
| 27 | - $strongarm->value = '4'; |
|
| 28 | - $export['comment_default_mode_team'] = $strongarm; |
|
| 23 | + $strongarm = new stdClass; |
|
| 24 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | + $strongarm->api_version = 1; |
|
| 26 | + $strongarm->name = 'comment_default_mode_team'; |
|
| 27 | + $strongarm->value = '4'; |
|
| 28 | + $export['comment_default_mode_team'] = $strongarm; |
|
| 29 | 29 | |
| 30 | - $strongarm = new stdClass; |
|
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | - $strongarm->api_version = 1; |
|
| 33 | - $strongarm->name = 'comment_default_order_team'; |
|
| 34 | - $strongarm->value = '1'; |
|
| 35 | - $export['comment_default_order_team'] = $strongarm; |
|
| 30 | + $strongarm = new stdClass; |
|
| 31 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | + $strongarm->api_version = 1; |
|
| 33 | + $strongarm->name = 'comment_default_order_team'; |
|
| 34 | + $strongarm->value = '1'; |
|
| 35 | + $export['comment_default_order_team'] = $strongarm; |
|
| 36 | 36 | |
| 37 | - $strongarm = new stdClass; |
|
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | - $strongarm->api_version = 1; |
|
| 40 | - $strongarm->name = 'comment_default_per_page_team'; |
|
| 41 | - $strongarm->value = '50'; |
|
| 42 | - $export['comment_default_per_page_team'] = $strongarm; |
|
| 37 | + $strongarm = new stdClass; |
|
| 38 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | + $strongarm->api_version = 1; |
|
| 40 | + $strongarm->name = 'comment_default_per_page_team'; |
|
| 41 | + $strongarm->value = '50'; |
|
| 42 | + $export['comment_default_per_page_team'] = $strongarm; |
|
| 43 | 43 | |
| 44 | - $strongarm = new stdClass; |
|
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | - $strongarm->api_version = 1; |
|
| 47 | - $strongarm->name = 'comment_form_location_team'; |
|
| 48 | - $strongarm->value = '0'; |
|
| 49 | - $export['comment_form_location_team'] = $strongarm; |
|
| 44 | + $strongarm = new stdClass; |
|
| 45 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | + $strongarm->api_version = 1; |
|
| 47 | + $strongarm->name = 'comment_form_location_team'; |
|
| 48 | + $strongarm->value = '0'; |
|
| 49 | + $export['comment_form_location_team'] = $strongarm; |
|
| 50 | 50 | |
| 51 | - $strongarm = new stdClass; |
|
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | - $strongarm->api_version = 1; |
|
| 54 | - $strongarm->name = 'comment_preview_team'; |
|
| 55 | - $strongarm->value = '1'; |
|
| 56 | - $export['comment_preview_team'] = $strongarm; |
|
| 51 | + $strongarm = new stdClass; |
|
| 52 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | + $strongarm->api_version = 1; |
|
| 54 | + $strongarm->name = 'comment_preview_team'; |
|
| 55 | + $strongarm->value = '1'; |
|
| 56 | + $export['comment_preview_team'] = $strongarm; |
|
| 57 | 57 | |
| 58 | - $strongarm = new stdClass; |
|
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | - $strongarm->api_version = 1; |
|
| 61 | - $strongarm->name = 'comment_subject_field_team'; |
|
| 62 | - $strongarm->value = '1'; |
|
| 63 | - $export['comment_subject_field_team'] = $strongarm; |
|
| 58 | + $strongarm = new stdClass; |
|
| 59 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | + $strongarm->api_version = 1; |
|
| 61 | + $strongarm->name = 'comment_subject_field_team'; |
|
| 62 | + $strongarm->value = '1'; |
|
| 63 | + $export['comment_subject_field_team'] = $strongarm; |
|
| 64 | 64 | |
| 65 | - $strongarm = new stdClass; |
|
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | - $strongarm->api_version = 1; |
|
| 68 | - $strongarm->name = 'comment_team'; |
|
| 69 | - $strongarm->value = '0'; |
|
| 70 | - $export['comment_team'] = $strongarm; |
|
| 65 | + $strongarm = new stdClass; |
|
| 66 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | + $strongarm->api_version = 1; |
|
| 68 | + $strongarm->name = 'comment_team'; |
|
| 69 | + $strongarm->value = '0'; |
|
| 70 | + $export['comment_team'] = $strongarm; |
|
| 71 | 71 | |
| 72 | - $strongarm = new stdClass; |
|
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | - $strongarm->api_version = 1; |
|
| 75 | - $strongarm->name = 'node_options_team'; |
|
| 76 | - $strongarm->value = array( |
|
| 72 | + $strongarm = new stdClass; |
|
| 73 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | + $strongarm->api_version = 1; |
|
| 75 | + $strongarm->name = 'node_options_team'; |
|
| 76 | + $strongarm->value = array( |
|
| 77 | 77 | 0 => 'status', |
| 78 | - ); |
|
| 79 | - $export['node_options_team'] = $strongarm; |
|
| 78 | + ); |
|
| 79 | + $export['node_options_team'] = $strongarm; |
|
| 80 | 80 | |
| 81 | - $strongarm = new stdClass; |
|
| 82 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 83 | - $strongarm->api_version = 1; |
|
| 84 | - $strongarm->name = 'upload_team'; |
|
| 85 | - $strongarm->value = '0'; |
|
| 86 | - $export['upload_team'] = $strongarm; |
|
| 81 | + $strongarm = new stdClass; |
|
| 82 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 83 | + $strongarm->api_version = 1; |
|
| 84 | + $strongarm->name = 'upload_team'; |
|
| 85 | + $strongarm->value = '0'; |
|
| 86 | + $export['upload_team'] = $strongarm; |
|
| 87 | 87 | |
| 88 | - return $export; |
|
| 88 | + return $export; |
|
| 89 | 89 | } |
@@ -4,93 +4,93 @@ |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function team_forums_strongarm() { |
| 7 | - $export = array(); |
|
| 7 | + $export = array(); |
|
| 8 | 8 | |
| 9 | - $strongarm = new stdClass; |
|
| 10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | - $strongarm->api_version = 1; |
|
| 12 | - $strongarm->name = 'comment_anonymous_team_forum'; |
|
| 13 | - $strongarm->value = 0; |
|
| 14 | - $export['comment_anonymous_team_forum'] = $strongarm; |
|
| 9 | + $strongarm = new stdClass; |
|
| 10 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | + $strongarm->api_version = 1; |
|
| 12 | + $strongarm->name = 'comment_anonymous_team_forum'; |
|
| 13 | + $strongarm->value = 0; |
|
| 14 | + $export['comment_anonymous_team_forum'] = $strongarm; |
|
| 15 | 15 | |
| 16 | - $strongarm = new stdClass; |
|
| 17 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | - $strongarm->api_version = 1; |
|
| 19 | - $strongarm->name = 'comment_controls_team_forum'; |
|
| 20 | - $strongarm->value = '1'; |
|
| 21 | - $export['comment_controls_team_forum'] = $strongarm; |
|
| 16 | + $strongarm = new stdClass; |
|
| 17 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | + $strongarm->api_version = 1; |
|
| 19 | + $strongarm->name = 'comment_controls_team_forum'; |
|
| 20 | + $strongarm->value = '1'; |
|
| 21 | + $export['comment_controls_team_forum'] = $strongarm; |
|
| 22 | 22 | |
| 23 | - $strongarm = new stdClass; |
|
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | - $strongarm->api_version = 1; |
|
| 26 | - $strongarm->name = 'comment_default_mode_team_forum'; |
|
| 27 | - $strongarm->value = '2'; |
|
| 28 | - $export['comment_default_mode_team_forum'] = $strongarm; |
|
| 23 | + $strongarm = new stdClass; |
|
| 24 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | + $strongarm->api_version = 1; |
|
| 26 | + $strongarm->name = 'comment_default_mode_team_forum'; |
|
| 27 | + $strongarm->value = '2'; |
|
| 28 | + $export['comment_default_mode_team_forum'] = $strongarm; |
|
| 29 | 29 | |
| 30 | - $strongarm = new stdClass; |
|
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | - $strongarm->api_version = 1; |
|
| 33 | - $strongarm->name = 'comment_default_order_team_forum'; |
|
| 34 | - $strongarm->value = '2'; |
|
| 35 | - $export['comment_default_order_team_forum'] = $strongarm; |
|
| 30 | + $strongarm = new stdClass; |
|
| 31 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | + $strongarm->api_version = 1; |
|
| 33 | + $strongarm->name = 'comment_default_order_team_forum'; |
|
| 34 | + $strongarm->value = '2'; |
|
| 35 | + $export['comment_default_order_team_forum'] = $strongarm; |
|
| 36 | 36 | |
| 37 | - $strongarm = new stdClass; |
|
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | - $strongarm->api_version = 1; |
|
| 40 | - $strongarm->name = 'comment_default_per_page_team_forum'; |
|
| 41 | - $strongarm->value = '50'; |
|
| 42 | - $export['comment_default_per_page_team_forum'] = $strongarm; |
|
| 37 | + $strongarm = new stdClass; |
|
| 38 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | + $strongarm->api_version = 1; |
|
| 40 | + $strongarm->name = 'comment_default_per_page_team_forum'; |
|
| 41 | + $strongarm->value = '50'; |
|
| 42 | + $export['comment_default_per_page_team_forum'] = $strongarm; |
|
| 43 | 43 | |
| 44 | - $strongarm = new stdClass; |
|
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | - $strongarm->api_version = 1; |
|
| 47 | - $strongarm->name = 'comment_form_location_team_forum'; |
|
| 48 | - $strongarm->value = '0'; |
|
| 49 | - $export['comment_form_location_team_forum'] = $strongarm; |
|
| 44 | + $strongarm = new stdClass; |
|
| 45 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | + $strongarm->api_version = 1; |
|
| 47 | + $strongarm->name = 'comment_form_location_team_forum'; |
|
| 48 | + $strongarm->value = '0'; |
|
| 49 | + $export['comment_form_location_team_forum'] = $strongarm; |
|
| 50 | 50 | |
| 51 | - $strongarm = new stdClass; |
|
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | - $strongarm->api_version = 1; |
|
| 54 | - $strongarm->name = 'comment_preview_team_forum'; |
|
| 55 | - $strongarm->value = '0'; |
|
| 56 | - $export['comment_preview_team_forum'] = $strongarm; |
|
| 51 | + $strongarm = new stdClass; |
|
| 52 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | + $strongarm->api_version = 1; |
|
| 54 | + $strongarm->name = 'comment_preview_team_forum'; |
|
| 55 | + $strongarm->value = '0'; |
|
| 56 | + $export['comment_preview_team_forum'] = $strongarm; |
|
| 57 | 57 | |
| 58 | - $strongarm = new stdClass; |
|
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | - $strongarm->api_version = 1; |
|
| 61 | - $strongarm->name = 'comment_subject_field_team_forum'; |
|
| 62 | - $strongarm->value = '1'; |
|
| 63 | - $export['comment_subject_field_team_forum'] = $strongarm; |
|
| 58 | + $strongarm = new stdClass; |
|
| 59 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | + $strongarm->api_version = 1; |
|
| 61 | + $strongarm->name = 'comment_subject_field_team_forum'; |
|
| 62 | + $strongarm->value = '1'; |
|
| 63 | + $export['comment_subject_field_team_forum'] = $strongarm; |
|
| 64 | 64 | |
| 65 | - $strongarm = new stdClass; |
|
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | - $strongarm->api_version = 1; |
|
| 68 | - $strongarm->name = 'comment_team_forum'; |
|
| 69 | - $strongarm->value = '2'; |
|
| 70 | - $export['comment_team_forum'] = $strongarm; |
|
| 65 | + $strongarm = new stdClass; |
|
| 66 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | + $strongarm->api_version = 1; |
|
| 68 | + $strongarm->name = 'comment_team_forum'; |
|
| 69 | + $strongarm->value = '2'; |
|
| 70 | + $export['comment_team_forum'] = $strongarm; |
|
| 71 | 71 | |
| 72 | - $strongarm = new stdClass; |
|
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | - $strongarm->api_version = 1; |
|
| 75 | - $strongarm->name = 'language_content_type_team_forum'; |
|
| 76 | - $strongarm->value = '0'; |
|
| 77 | - $export['language_content_type_team_forum'] = $strongarm; |
|
| 72 | + $strongarm = new stdClass; |
|
| 73 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | + $strongarm->api_version = 1; |
|
| 75 | + $strongarm->name = 'language_content_type_team_forum'; |
|
| 76 | + $strongarm->value = '0'; |
|
| 77 | + $export['language_content_type_team_forum'] = $strongarm; |
|
| 78 | 78 | |
| 79 | - $strongarm = new stdClass; |
|
| 80 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 81 | - $strongarm->api_version = 1; |
|
| 82 | - $strongarm->name = 'node_options_team_forum'; |
|
| 83 | - $strongarm->value = array( |
|
| 79 | + $strongarm = new stdClass; |
|
| 80 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 81 | + $strongarm->api_version = 1; |
|
| 82 | + $strongarm->name = 'node_options_team_forum'; |
|
| 83 | + $strongarm->value = array( |
|
| 84 | 84 | 0 => 'status', |
| 85 | - ); |
|
| 86 | - $export['node_options_team_forum'] = $strongarm; |
|
| 85 | + ); |
|
| 86 | + $export['node_options_team_forum'] = $strongarm; |
|
| 87 | 87 | |
| 88 | - $strongarm = new stdClass; |
|
| 89 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | - $strongarm->api_version = 1; |
|
| 91 | - $strongarm->name = 'upload_team_forum'; |
|
| 92 | - $strongarm->value = '0'; |
|
| 93 | - $export['upload_team_forum'] = $strongarm; |
|
| 88 | + $strongarm = new stdClass; |
|
| 89 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | + $strongarm->api_version = 1; |
|
| 91 | + $strongarm->name = 'upload_team_forum'; |
|
| 92 | + $strongarm->value = '0'; |
|
| 93 | + $export['upload_team_forum'] = $strongarm; |
|
| 94 | 94 | |
| 95 | - return $export; |
|
| 95 | + return $export; |
|
| 96 | 96 | } |
@@ -4,76 +4,76 @@ discard block |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function user_profiles_strongarm() { |
| 7 | - $export = array(); |
|
| 8 | - |
|
| 9 | - $strongarm = new stdClass; |
|
| 10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | - $strongarm->api_version = 1; |
|
| 12 | - $strongarm->name = 'comment_anonymous_profile'; |
|
| 13 | - $strongarm->value = 0; |
|
| 14 | - $export['comment_anonymous_profile'] = $strongarm; |
|
| 15 | - |
|
| 16 | - $strongarm = new stdClass; |
|
| 17 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | - $strongarm->api_version = 1; |
|
| 19 | - $strongarm->name = 'comment_controls_profile'; |
|
| 20 | - $strongarm->value = '3'; |
|
| 21 | - $export['comment_controls_profile'] = $strongarm; |
|
| 22 | - |
|
| 23 | - $strongarm = new stdClass; |
|
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | - $strongarm->api_version = 1; |
|
| 26 | - $strongarm->name = 'comment_default_mode_profile'; |
|
| 27 | - $strongarm->value = '4'; |
|
| 28 | - $export['comment_default_mode_profile'] = $strongarm; |
|
| 29 | - |
|
| 30 | - $strongarm = new stdClass; |
|
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | - $strongarm->api_version = 1; |
|
| 33 | - $strongarm->name = 'comment_default_order_profile'; |
|
| 34 | - $strongarm->value = '1'; |
|
| 35 | - $export['comment_default_order_profile'] = $strongarm; |
|
| 36 | - |
|
| 37 | - $strongarm = new stdClass; |
|
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | - $strongarm->api_version = 1; |
|
| 40 | - $strongarm->name = 'comment_default_per_page_profile'; |
|
| 41 | - $strongarm->value = '50'; |
|
| 42 | - $export['comment_default_per_page_profile'] = $strongarm; |
|
| 43 | - |
|
| 44 | - $strongarm = new stdClass; |
|
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | - $strongarm->api_version = 1; |
|
| 47 | - $strongarm->name = 'comment_form_location_profile'; |
|
| 48 | - $strongarm->value = '0'; |
|
| 49 | - $export['comment_form_location_profile'] = $strongarm; |
|
| 50 | - |
|
| 51 | - $strongarm = new stdClass; |
|
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | - $strongarm->api_version = 1; |
|
| 54 | - $strongarm->name = 'comment_preview_profile'; |
|
| 55 | - $strongarm->value = '1'; |
|
| 56 | - $export['comment_preview_profile'] = $strongarm; |
|
| 57 | - |
|
| 58 | - $strongarm = new stdClass; |
|
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | - $strongarm->api_version = 1; |
|
| 61 | - $strongarm->name = 'comment_profile'; |
|
| 62 | - $strongarm->value = '2'; |
|
| 63 | - $export['comment_profile'] = $strongarm; |
|
| 64 | - |
|
| 65 | - $strongarm = new stdClass; |
|
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | - $strongarm->api_version = 1; |
|
| 68 | - $strongarm->name = 'comment_subject_field_profile'; |
|
| 69 | - $strongarm->value = '1'; |
|
| 70 | - $export['comment_subject_field_profile'] = $strongarm; |
|
| 71 | - |
|
| 72 | - $strongarm = new stdClass; |
|
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | - $strongarm->api_version = 1; |
|
| 75 | - $strongarm->name = 'content_extra_weights_profile'; |
|
| 76 | - $strongarm->value = array( |
|
| 7 | + $export = array(); |
|
| 8 | + |
|
| 9 | + $strongarm = new stdClass; |
|
| 10 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | + $strongarm->api_version = 1; |
|
| 12 | + $strongarm->name = 'comment_anonymous_profile'; |
|
| 13 | + $strongarm->value = 0; |
|
| 14 | + $export['comment_anonymous_profile'] = $strongarm; |
|
| 15 | + |
|
| 16 | + $strongarm = new stdClass; |
|
| 17 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | + $strongarm->api_version = 1; |
|
| 19 | + $strongarm->name = 'comment_controls_profile'; |
|
| 20 | + $strongarm->value = '3'; |
|
| 21 | + $export['comment_controls_profile'] = $strongarm; |
|
| 22 | + |
|
| 23 | + $strongarm = new stdClass; |
|
| 24 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | + $strongarm->api_version = 1; |
|
| 26 | + $strongarm->name = 'comment_default_mode_profile'; |
|
| 27 | + $strongarm->value = '4'; |
|
| 28 | + $export['comment_default_mode_profile'] = $strongarm; |
|
| 29 | + |
|
| 30 | + $strongarm = new stdClass; |
|
| 31 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | + $strongarm->api_version = 1; |
|
| 33 | + $strongarm->name = 'comment_default_order_profile'; |
|
| 34 | + $strongarm->value = '1'; |
|
| 35 | + $export['comment_default_order_profile'] = $strongarm; |
|
| 36 | + |
|
| 37 | + $strongarm = new stdClass; |
|
| 38 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | + $strongarm->api_version = 1; |
|
| 40 | + $strongarm->name = 'comment_default_per_page_profile'; |
|
| 41 | + $strongarm->value = '50'; |
|
| 42 | + $export['comment_default_per_page_profile'] = $strongarm; |
|
| 43 | + |
|
| 44 | + $strongarm = new stdClass; |
|
| 45 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | + $strongarm->api_version = 1; |
|
| 47 | + $strongarm->name = 'comment_form_location_profile'; |
|
| 48 | + $strongarm->value = '0'; |
|
| 49 | + $export['comment_form_location_profile'] = $strongarm; |
|
| 50 | + |
|
| 51 | + $strongarm = new stdClass; |
|
| 52 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | + $strongarm->api_version = 1; |
|
| 54 | + $strongarm->name = 'comment_preview_profile'; |
|
| 55 | + $strongarm->value = '1'; |
|
| 56 | + $export['comment_preview_profile'] = $strongarm; |
|
| 57 | + |
|
| 58 | + $strongarm = new stdClass; |
|
| 59 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | + $strongarm->api_version = 1; |
|
| 61 | + $strongarm->name = 'comment_profile'; |
|
| 62 | + $strongarm->value = '2'; |
|
| 63 | + $export['comment_profile'] = $strongarm; |
|
| 64 | + |
|
| 65 | + $strongarm = new stdClass; |
|
| 66 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | + $strongarm->api_version = 1; |
|
| 68 | + $strongarm->name = 'comment_subject_field_profile'; |
|
| 69 | + $strongarm->value = '1'; |
|
| 70 | + $export['comment_subject_field_profile'] = $strongarm; |
|
| 71 | + |
|
| 72 | + $strongarm = new stdClass; |
|
| 73 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | + $strongarm->api_version = 1; |
|
| 75 | + $strongarm->name = 'content_extra_weights_profile'; |
|
| 76 | + $strongarm->value = array( |
|
| 77 | 77 | 'title' => '-5', |
| 78 | 78 | 'body_field' => '-3', |
| 79 | 79 | 'revision_information' => '-1', |
@@ -82,46 +82,46 @@ discard block |
||
| 82 | 82 | 'comment_settings' => '1', |
| 83 | 83 | 'menu' => '-4', |
| 84 | 84 | 'path' => '2', |
| 85 | - ); |
|
| 86 | - $export['content_extra_weights_profile'] = $strongarm; |
|
| 87 | - |
|
| 88 | - $strongarm = new stdClass; |
|
| 89 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | - $strongarm->api_version = 1; |
|
| 91 | - $strongarm->name = 'content_profile_use_profile'; |
|
| 92 | - $strongarm->value = 1; |
|
| 93 | - $export['content_profile_use_profile'] = $strongarm; |
|
| 94 | - |
|
| 95 | - $strongarm = new stdClass; |
|
| 96 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 97 | - $strongarm->api_version = 1; |
|
| 98 | - $strongarm->name = 'language_content_type_profile'; |
|
| 99 | - $strongarm->value = '0'; |
|
| 100 | - $export['language_content_type_profile'] = $strongarm; |
|
| 101 | - |
|
| 102 | - $strongarm = new stdClass; |
|
| 103 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 104 | - $strongarm->api_version = 1; |
|
| 105 | - $strongarm->name = 'node_options_profile'; |
|
| 106 | - $strongarm->value = array( |
|
| 85 | + ); |
|
| 86 | + $export['content_extra_weights_profile'] = $strongarm; |
|
| 87 | + |
|
| 88 | + $strongarm = new stdClass; |
|
| 89 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | + $strongarm->api_version = 1; |
|
| 91 | + $strongarm->name = 'content_profile_use_profile'; |
|
| 92 | + $strongarm->value = 1; |
|
| 93 | + $export['content_profile_use_profile'] = $strongarm; |
|
| 94 | + |
|
| 95 | + $strongarm = new stdClass; |
|
| 96 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 97 | + $strongarm->api_version = 1; |
|
| 98 | + $strongarm->name = 'language_content_type_profile'; |
|
| 99 | + $strongarm->value = '0'; |
|
| 100 | + $export['language_content_type_profile'] = $strongarm; |
|
| 101 | + |
|
| 102 | + $strongarm = new stdClass; |
|
| 103 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 104 | + $strongarm->api_version = 1; |
|
| 105 | + $strongarm->name = 'node_options_profile'; |
|
| 106 | + $strongarm->value = array( |
|
| 107 | 107 | 0 => 'status', |
| 108 | 108 | 1 => 'promote', |
| 109 | - ); |
|
| 110 | - $export['node_options_profile'] = $strongarm; |
|
| 111 | - |
|
| 112 | - $strongarm = new stdClass; |
|
| 113 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 114 | - $strongarm->api_version = 1; |
|
| 115 | - $strongarm->name = 'show_preview_changes_profile'; |
|
| 116 | - $strongarm->value = 0; |
|
| 117 | - $export['show_preview_changes_profile'] = $strongarm; |
|
| 118 | - |
|
| 119 | - $strongarm = new stdClass; |
|
| 120 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 121 | - $strongarm->api_version = 1; |
|
| 122 | - $strongarm->name = 'upload_profile'; |
|
| 123 | - $strongarm->value = '0'; |
|
| 124 | - $export['upload_profile'] = $strongarm; |
|
| 125 | - |
|
| 126 | - return $export; |
|
| 109 | + ); |
|
| 110 | + $export['node_options_profile'] = $strongarm; |
|
| 111 | + |
|
| 112 | + $strongarm = new stdClass; |
|
| 113 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 114 | + $strongarm->api_version = 1; |
|
| 115 | + $strongarm->name = 'show_preview_changes_profile'; |
|
| 116 | + $strongarm->value = 0; |
|
| 117 | + $export['show_preview_changes_profile'] = $strongarm; |
|
| 118 | + |
|
| 119 | + $strongarm = new stdClass; |
|
| 120 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 121 | + $strongarm->api_version = 1; |
|
| 122 | + $strongarm->name = 'upload_profile'; |
|
| 123 | + $strongarm->value = '0'; |
|
| 124 | + $export['upload_profile'] = $strongarm; |
|
| 125 | + |
|
| 126 | + return $export; |
|
| 127 | 127 | } |
@@ -15,15 +15,15 @@ discard block |
||
| 15 | 15 | * the admin interface. |
| 16 | 16 | */ |
| 17 | 17 | function boinctranslate_filter_settings_form($format = -1) { |
| 18 | - // Form |
|
| 19 | - $form = array(); |
|
| 20 | - $form['boinctranslate_filter'] = array( |
|
| 18 | + // Form |
|
| 19 | + $form = array(); |
|
| 20 | + $form['boinctranslate_filter'] = array( |
|
| 21 | 21 | '#type' => 'fieldset', |
| 22 | 22 | '#title' => bts('BOINC translate filter', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
| 23 | 23 | '#collapsible' => TRUE, |
| 24 | 24 | '#collapsed' => FALSE, |
| 25 | - ); |
|
| 26 | - $form['boinctranslate_filter']['boinctranslate_filter_help'] = array( |
|
| 25 | + ); |
|
| 26 | + $form['boinctranslate_filter']['boinctranslate_filter_help'] = array( |
|
| 27 | 27 | '#type' => 'item', |
| 28 | 28 | '#title' => t('BOINC translate filter'), |
| 29 | 29 | '#value' => t('When a node is created or edited, the content is split into chunks |
@@ -48,12 +48,12 @@ discard block |
||
| 48 | 48 | only one chunk changes, then only that one translation needs to be |
| 49 | 49 | updated.'), |
| 50 | 50 | ); |
| 51 | - $form['boinctranslate_filter']["boinctranslate_filter_debug_$format"] = array( |
|
| 51 | + $form['boinctranslate_filter']["boinctranslate_filter_debug_$format"] = array( |
|
| 52 | 52 | '#type' => 'select', |
| 53 | 53 | '#title' => bts('Print debugging info', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
| 54 | 54 | '#default_value' => variable_get("boinctranslate_filter_debug_$format", 0), |
| 55 | 55 | '#options' => array(t('Disabled'), t('Enabled')), |
| 56 | 56 | '#description' => bts('Prints additional debugging information. This option should be disabled on production sites.', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
| 57 | - ); |
|
| 58 | - return $form; |
|
| 57 | + ); |
|
| 58 | + return $form; |
|
| 59 | 59 | } |
| 60 | 60 | \ No newline at end of file |