1<?php
2
3/**
4 * Implementation of hook_views_default_views().
5 */
6function stats_charts_views_default_views() {
7  $views = array();
8
9  // Exported view: boinc_account_stats
10  $view = new view;
11  $view->name = 'boinc_account_stats';
12  $view->description = 'BOINC user stats information';
13  $view->tag = '';
14  $view->base_table = 'user';
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('fields', array(
20    'id' => array(
21      'label' => 'User ID',
22      'alter' => array(
23        'alter_text' => 0,
24        'text' => '',
25        'make_link' => 0,
26        'path' => '',
27        'link_class' => '',
28        'alt' => '',
29        'prefix' => '',
30        'suffix' => '',
31        'target' => '',
32        'help' => '',
33        'trim' => 0,
34        'max_length' => '',
35        'word_boundary' => 1,
36        'ellipsis' => 1,
37        'html' => 0,
38        'strip_tags' => 0,
39      ),
40      'empty' => '',
41      'hide_empty' => 0,
42      'empty_zero' => 0,
43      'set_precision' => FALSE,
44      'precision' => 0,
45      'decimal' => '.',
46      'separator' => '',
47      'prefix' => '',
48      'suffix' => '',
49      'exclude' => 0,
50      'id' => 'id',
51      'table' => 'user',
52      'field' => 'id',
53      'relationship' => 'none',
54    ),
55    'total_credit' => array(
56      'label' => 'Total credit',
57      'alter' => array(
58        'alter_text' => 0,
59        'text' => '',
60        'make_link' => 0,
61        'path' => '',
62        'link_class' => '',
63        'alt' => '',
64        'prefix' => '',
65        'suffix' => '',
66        'target' => '',
67        'help' => '',
68        'trim' => 0,
69        'max_length' => '',
70        'word_boundary' => 1,
71        'ellipsis' => 1,
72        'html' => 0,
73        'strip_tags' => 0,
74      ),
75      'empty' => '',
76      'hide_empty' => 0,
77      'empty_zero' => 0,
78      'set_precision' => 1,
79      'precision' => '0',
80      'decimal' => '.',
81      'separator' => ',',
82      'prefix' => '',
83      'suffix' => '',
84      'exclude' => 0,
85      'id' => 'total_credit',
86      'table' => 'user',
87      'field' => 'total_credit',
88      'relationship' => 'none',
89    ),
90    'expavg_credit' => array(
91      'label' => 'Recent average credit',
92      'alter' => array(
93        'alter_text' => 0,
94        'text' => '',
95        'make_link' => 0,
96        'path' => '',
97        'link_class' => '',
98        'alt' => '',
99        'prefix' => '',
100        'suffix' => '',
101        'target' => '',
102        'help' => '',
103        'trim' => 0,
104        'max_length' => '',
105        'word_boundary' => 1,
106        'ellipsis' => 1,
107        'html' => 0,
108        'strip_tags' => 0,
109      ),
110      'empty' => '',
111      'hide_empty' => 0,
112      'empty_zero' => 0,
113      'set_precision' => 1,
114      'precision' => '2',
115      'decimal' => '.',
116      'separator' => ',',
117      'prefix' => '',
118      'suffix' => '',
119      'exclude' => 0,
120      'id' => 'expavg_credit',
121      'table' => 'user',
122      'field' => 'expavg_credit',
123      'relationship' => 'none',
124    ),
125    'nothing_4' => array(
126      'label' => 'Pending credit',
127      'alter' => array(
128        'text' => 'View',
129        'make_link' => 1,
130        'path' => 'account/credit/pending',
131        'absolute' => 0,
132        'link_class' => '',
133        'alt' => '',
134        'rel' => '',
135        'prefix' => '',
136        'suffix' => '',
137        'target' => '',
138        'help' => '',
139        'trim' => 0,
140        'max_length' => '',
141        'word_boundary' => 1,
142        'ellipsis' => 1,
143        'html' => 0,
144        'strip_tags' => 0,
145      ),
146      'empty' => '',
147      'hide_empty' => 0,
148      'empty_zero' => 0,
149      'hide_alter_empty' => 1,
150      'exclude' => 1,
151      'id' => 'nothing_4',
152      'table' => 'views',
153      'field' => 'nothing',
154      'relationship' => 'none',
155    ),
156    'nothing_5' => array(
157      'label' => 'Computers on this account',
158      'alter' => array(
159        'text' => 'View',
160        'make_link' => 1,
161        'path' => 'account/computers',
162        'link_class' => '',
163        'alt' => '',
164        'prefix' => '',
165        'suffix' => '',
166        'target' => '',
167        'help' => '',
168        'trim' => 0,
169        'max_length' => '',
170        'word_boundary' => 1,
171        'ellipsis' => 1,
172        'html' => 0,
173        'strip_tags' => 0,
174      ),
175      'empty' => '',
176      'hide_empty' => 0,
177      'empty_zero' => 0,
178      'exclude' => 0,
179      'id' => 'nothing_5',
180      'table' => 'views',
181      'field' => 'nothing',
182      'relationship' => 'none',
183    ),
184    'nothing_6' => array(
185      'label' => 'Tasks',
186      'alter' => array(
187        'text' => 'View',
188        'make_link' => 1,
189        'path' => 'account/tasks',
190        'link_class' => '',
191        'alt' => '',
192        'prefix' => '',
193        'suffix' => '',
194        'target' => '',
195        'help' => '',
196        'trim' => 0,
197        'max_length' => '',
198        'word_boundary' => 1,
199        'ellipsis' => 1,
200        'html' => 0,
201        'strip_tags' => 0,
202      ),
203      'empty' => '',
204      'hide_empty' => 0,
205      'empty_zero' => 0,
206      'exclude' => 0,
207      'id' => 'nothing_6',
208      'table' => 'views',
209      'field' => 'nothing',
210      'relationship' => 'none',
211    ),
212    'cross_project_id' => array(
213      'label' => 'Cross-project statistics',
214      'alter' => array(
215        'alter_text' => 0,
216        'text' => '',
217        'make_link' => 0,
218        'path' => '',
219        'link_class' => '',
220        'alt' => '',
221        'prefix' => '',
222        'suffix' => '',
223        'target' => '',
224        'help' => '',
225        'trim' => 0,
226        'max_length' => '',
227        'word_boundary' => 1,
228        'ellipsis' => 1,
229        'html' => 0,
230        'strip_tags' => 0,
231      ),
232      'empty' => '',
233      'hide_empty' => 0,
234      'empty_zero' => 0,
235      'exclude' => 1,
236      'id' => 'cross_project_id',
237      'table' => 'user',
238      'field' => 'cross_project_id',
239      'relationship' => 'none',
240      'override' => array(
241        'button' => 'Override',
242      ),
243    ),
244    'nothing_8' => array(
245      'label' => 'Certificate',
246      'alter' => array(
247        'text' => '<a href="account/certs">Account</a> | <a href="account/certs/all">Cross-project</a>',
248        'make_link' => 0,
249        'path' => '',
250        'link_class' => '',
251        'alt' => '',
252        'prefix' => '',
253        'suffix' => '',
254        'target' => '',
255        'help' => '',
256        'trim' => 0,
257        'max_length' => '',
258        'word_boundary' => 1,
259        'ellipsis' => 1,
260        'html' => 0,
261        'strip_tags' => 0,
262      ),
263      'empty' => '',
264      'hide_empty' => 0,
265      'empty_zero' => 0,
266      'exclude' => 0,
267      'id' => 'nothing_8',
268      'table' => 'views',
269      'field' => 'nothing',
270      'relationship' => 'none',
271    ),
272  ));
273  $handler->override_option('arguments', array(
274    'id' => array(
275      'default_action' => 'default',
276      'style_plugin' => 'default_summary',
277      'style_options' => array(),
278      'wildcard' => 'all',
279      'wildcard_substitution' => 'All',
280      'title' => '',
281      'breadcrumb' => '',
282      'default_argument_type' => 'current_user',
283      'default_argument' => '',
284      'validate_type' => 'numeric',
285      'validate_fail' => 'not found',
286      'break_phrase' => 0,
287      'not' => 0,
288      'id' => 'id',
289      'table' => 'user',
290      'field' => 'id',
291      'validate_user_argument_type' => 'uid',
292      'validate_user_roles' => array(
293        2 => 0,
294        4 => 0,
295        7 => 0,
296        5 => 0,
297        3 => 0,
298        6 => 0,
299      ),
300      'relationship' => 'none',
301      'default_options_div_prefix' => '',
302      'default_argument_fixed' => '',
303      'default_argument_user' => 0,
304      'default_argument_php' => '',
305      'validate_argument_node_type' => array(
306        'page' => 0,
307        'news' => 0,
308        'profile' => 0,
309        'forum' => 0,
310        'panel' => 0,
311        'story' => 0,
312      ),
313      'validate_argument_node_access' => 0,
314      'validate_argument_nid_type' => 'nid',
315      'validate_argument_vocabulary' => array(
316        1 => 0,
317        2 => 0,
318      ),
319      'validate_argument_type' => 'tid',
320      'validate_argument_transform' => 0,
321      'validate_user_restrict_roles' => 0,
322      'validate_argument_php' => '',
323      'override' => array(
324        'button' => 'Override',
325      ),
326      'me_redirect' => 0,
327      'me_validate_user_argument_type' => 'uid',
328      'me_validate_user_roles' => array(
329        2 => 0,
330        4 => 0,
331        7 => 0,
332        5 => 0,
333        3 => 0,
334        6 => 0,
335      ),
336      'default_taxonomy_tid_term_page' => 0,
337      'default_taxonomy_tid_node' => 0,
338      'default_taxonomy_tid_limit' => 0,
339      'default_taxonomy_tid_vids' => array(
340        1 => 0,
341        2 => 0,
342      ),
343      'validate_argument_node_flag_name' => '*relationship*',
344      'validate_argument_node_flag_test' => 'flaggable',
345      'validate_argument_node_flag_id_type' => 'id',
346      'validate_argument_user_flag_name' => '*relationship*',
347      'validate_argument_user_flag_test' => 'flaggable',
348      'validate_argument_user_flag_id_type' => 'id',
349      'me_validate_user_restrict_roles' => 0,
350    ),
351  ));
352  $handler->override_option('access', array(
353    'type' => 'none',
354  ));
355  $handler->override_option('cache', array(
356    'type' => 'none',
357  ));
358  $handler->override_option('css_class', 'stats');
359  $handler->override_option('header_format', '1');
360  $handler->override_option('header_empty', 0);
361  $handler->override_option('style_options', array(
362    'grouping' => '',
363  ));
364  $handler = $view->new_display('page', 'Page', 'page_1');
365  $handler->override_option('path', 'account/obsolete');
366  $handler->override_option('menu', array(
367    'type' => 'tab',
368    'title' => 'Obsolete',
369    'description' => '',
370    'weight' => '0',
371    'name' => 'navigation',
372  ));
373  $handler->override_option('tab_options', array(
374    'type' => 'none',
375    'title' => '',
376    'description' => '',
377    'weight' => 0,
378    'name' => 'navigation',
379  ));
380  $handler = $view->new_display('panel_pane', 'Credit status', 'panel_pane_1');
381  $handler->override_option('fields', array(
382    'id' => array(
383      'label' => 'User ID',
384      'alter' => array(
385        'alter_text' => 0,
386        'text' => '',
387        'make_link' => 0,
388        'path' => '',
389        'link_class' => '',
390        'alt' => '',
391        'prefix' => '',
392        'suffix' => '',
393        'target' => '',
394        'help' => '',
395        'trim' => 0,
396        'max_length' => '',
397        'word_boundary' => 1,
398        'ellipsis' => 1,
399        'html' => 0,
400        'strip_tags' => 0,
401      ),
402      'empty' => '',
403      'hide_empty' => 0,
404      'empty_zero' => 0,
405      'set_precision' => FALSE,
406      'precision' => 0,
407      'decimal' => '.',
408      'separator' => '',
409      'prefix' => '',
410      'suffix' => '',
411      'exclude' => 1,
412      'id' => 'id',
413      'table' => 'user',
414      'field' => 'id',
415      'relationship' => 'none',
416      'override' => array(
417        'button' => 'Use default',
418      ),
419    ),
420    'total_credit' => array(
421      'label' => 'Total credit',
422      'alter' => array(
423        'alter_text' => 0,
424        'text' => '',
425        'make_link' => 0,
426        'path' => '',
427        'link_class' => '',
428        'alt' => '',
429        'prefix' => '',
430        'suffix' => '',
431        'target' => '',
432        'help' => '',
433        'trim' => 0,
434        'max_length' => '',
435        'word_boundary' => 1,
436        'ellipsis' => 1,
437        'html' => 0,
438        'strip_tags' => 0,
439      ),
440      'empty' => '',
441      'hide_empty' => 0,
442      'empty_zero' => 0,
443      'set_precision' => 1,
444      'precision' => '0',
445      'decimal' => '.',
446      'separator' => ',',
447      'prefix' => '',
448      'suffix' => '',
449      'exclude' => 0,
450      'id' => 'total_credit',
451      'table' => 'user',
452      'field' => 'total_credit',
453      'relationship' => 'none',
454    ),
455    'expavg_credit' => array(
456      'label' => 'Recent avg',
457      'alter' => array(
458        'alter_text' => 0,
459        'text' => '',
460        'make_link' => 0,
461        'path' => '',
462        'link_class' => '',
463        'alt' => '',
464        'prefix' => '',
465        'suffix' => '',
466        'target' => '',
467        'help' => '',
468        'trim' => 0,
469        'max_length' => '',
470        'word_boundary' => 1,
471        'ellipsis' => 1,
472        'html' => 0,
473        'strip_tags' => 0,
474      ),
475      'empty' => '',
476      'hide_empty' => 0,
477      'empty_zero' => 0,
478      'set_precision' => 1,
479      'precision' => '2',
480      'decimal' => '.',
481      'separator' => ',',
482      'prefix' => '',
483      'suffix' => '',
484      'exclude' => 0,
485      'id' => 'expavg_credit',
486      'table' => 'user',
487      'field' => 'expavg_credit',
488      'relationship' => 'none',
489      'override' => array(
490        'button' => 'Use default',
491      ),
492    ),
493    'nothing_4' => array(
494      'label' => '',
495      'alter' => array(
496        'text' => 'Pending',
497        'make_link' => 1,
498        'path' => 'account/tasks/pending',
499        'absolute' => 0,
500        'link_class' => '',
501        'alt' => '',
502        'rel' => '',
503        'prefix' => '',
504        'suffix' => '',
505        'target' => '',
506        'help' => '',
507        'trim' => 0,
508        'max_length' => '',
509        'word_boundary' => 1,
510        'ellipsis' => 1,
511        'html' => 0,
512        'strip_tags' => 0,
513      ),
514      'empty' => '',
515      'hide_empty' => 0,
516      'empty_zero' => 0,
517      'hide_alter_empty' => 1,
518      'exclude' => 1,
519      'id' => 'nothing_4',
520      'table' => 'views',
521      'field' => 'nothing',
522      'relationship' => 'none',
523      'override' => array(
524        'button' => 'Use default',
525      ),
526    ),
527    'nothing' => array(
528      'label' => '',
529      'alter' => array(
530        'text' => bts('Certificates', array(), NULL, 'boinc:account-dashboard'),
531        'make_link' => 1,
532        'path' => 'account/certs',
533        'absolute' => 0,
534        'link_class' => '',
535        'alt' => '',
536        'rel' => '',
537        'prefix' => '',
538        'suffix' => '',
539        'target' => '',
540        'help' => '',
541        'trim' => 0,
542        'max_length' => '',
543        'word_boundary' => 1,
544        'ellipsis' => 1,
545        'html' => 0,
546        'strip_tags' => 0,
547      ),
548      'empty' => '',
549      'hide_empty' => 0,
550      'empty_zero' => 0,
551      'hide_alter_empty' => 1,
552      'exclude' => 0,
553      'id' => 'nothing',
554      'table' => 'views',
555      'field' => 'nothing',
556      'override' => array(
557        'button' => 'Use default',
558      ),
559      'relationship' => 'none',
560    ),
561    'nothing_1' => array(
562      'label' => '',
563      'alter' => array(
564        'text' => 'Cross-project',
565        'make_link' => 1,
566        'path' => 'account/certs/all',
567        'link_class' => '',
568        'alt' => '',
569        'prefix' => '',
570        'suffix' => '',
571        'target' => '',
572        'help' => '',
573        'trim' => 0,
574        'max_length' => '',
575        'word_boundary' => 1,
576        'ellipsis' => 1,
577        'html' => 0,
578        'strip_tags' => 0,
579      ),
580      'empty' => '',
581      'hide_empty' => 0,
582      'empty_zero' => 0,
583      'exclude' => 1,
584      'id' => 'nothing_1',
585      'table' => 'views',
586      'field' => 'nothing',
587      'override' => array(
588        'button' => 'Use default',
589      ),
590      'relationship' => 'none',
591    ),
592    'cross_project_id' => array(
593      'label' => '',
594      'alter' => array(
595        'alter_text' => 0,
596        'text' => '<div class="chart"><img src="charts/user/[cross_project_id]" /></div>',
597        'make_link' => 0,
598        'path' => '',
599        'link_class' => '',
600        'alt' => '',
601        'prefix' => '',
602        'suffix' => '',
603        'target' => '',
604        'help' => '',
605        'trim' => 0,
606        'max_length' => '',
607        'word_boundary' => 1,
608        'ellipsis' => 1,
609        'html' => 0,
610        'strip_tags' => 0,
611      ),
612      'empty' => '',
613      'hide_empty' => 0,
614      'empty_zero' => 0,
615      'exclude' => 1,
616      'id' => 'cross_project_id',
617      'table' => 'user',
618      'field' => 'cross_project_id',
619      'relationship' => 'none',
620      'override' => array(
621        'button' => 'Use default',
622      ),
623    ),
624    'phpcode' => array(
625      'label' => '',
626      'alter' => array(
627        'alter_text' => 0,
628        'text' => '',
629        'make_link' => 0,
630        'path' => '',
631        'absolute' => 0,
632        'link_class' => '',
633        'alt' => '',
634        'rel' => '',
635        'prefix' => '',
636        'suffix' => '',
637        'target' => '',
638        'help' => '',
639        'trim' => 0,
640        'max_length' => '',
641        'word_boundary' => 1,
642        'ellipsis' => 1,
643        'html' => 0,
644        'strip_tags' => 0,
645      ),
646      'empty' => '',
647      'hide_empty' => 0,
648      'empty_zero' => 0,
649      'hide_alter_empty' => 1,
650      'value' => '<?php global $base_path; ?>
651<?php $account = user_load(get_drupal_id($data->id)); ?>
652<div class="chart"><img src="<?php echo "{$base_path}charts/user/{$account->boincuser_cpid}"; ?>" /></div>',
653      'exclude' => 0,
654      'id' => 'phpcode',
655      'table' => 'customfield',
656      'field' => 'phpcode',
657      'override' => array(
658        'button' => 'Use default',
659      ),
660      'relationship' => 'none',
661    ),
662  ));
663  $handler->override_option('style_options', array());
664  $handler->override_option('pane_title', 'BOINC account stats detail');
665  $handler->override_option('pane_description', '');
666  $handler->override_option('pane_category', array(
667    'name' => 'View panes',
668    'weight' => 0,
669  ));
670  $handler->override_option('allow', array(
671    'use_pager' => FALSE,
672    'items_per_page' => FALSE,
673    'offset' => FALSE,
674    'link_to_view' => FALSE,
675    'more_link' => FALSE,
676    'path_override' => FALSE,
677    'title_override' => FALSE,
678    'exposed_form' => FALSE,
679    'fields_override' => FALSE,
680  ));
681  $handler->override_option('argument_input', array());
682  $handler->override_option('link_to_view', 0);
683  $handler->override_option('inherit_panels_path', 0);
684  $handler = $view->new_display('panel_pane', 'User overview', 'panel_pane_2');
685  $handler->override_option('fields', array(
686    'id' => array(
687      'label' => 'User ID',
688      'alter' => array(
689        'alter_text' => 0,
690        'text' => '',
691        'make_link' => 0,
692        'path' => '',
693        'absolute' => 0,
694        'link_class' => '',
695        'alt' => '',
696        'rel' => '',
697        'prefix' => '',
698        'suffix' => '',
699        'target' => '',
700        'help' => '',
701        'trim' => 0,
702        'max_length' => '',
703        'word_boundary' => 1,
704        'ellipsis' => 1,
705        'html' => 0,
706        'strip_tags' => 0,
707      ),
708      'empty' => '',
709      'hide_empty' => 0,
710      'empty_zero' => 0,
711      'hide_alter_empty' => 1,
712      'set_precision' => FALSE,
713      'precision' => 0,
714      'decimal' => '.',
715      'separator' => '',
716      'format_plural' => 0,
717      'format_plural_singular' => '1',
718      'format_plural_plural' => '@count',
719      'prefix' => '',
720      'suffix' => '',
721      'exclude' => 1,
722      'id' => 'id',
723      'table' => 'user',
724      'field' => 'id',
725      'relationship' => 'none',
726      'override' => array(
727        'button' => 'Use default',
728      ),
729    ),
730    'total_credit' => array(
731      'label' => 'Total credit',
732      'alter' => array(
733        'alter_text' => 0,
734        'text' => '',
735        'make_link' => 0,
736        'path' => '',
737        'link_class' => '',
738        'alt' => '',
739        'prefix' => '',
740        'suffix' => '',
741        'target' => '',
742        'help' => '',
743        'trim' => 0,
744        'max_length' => '',
745        'word_boundary' => 1,
746        'ellipsis' => 1,
747        'html' => 0,
748        'strip_tags' => 0,
749      ),
750      'empty' => '',
751      'hide_empty' => 0,
752      'empty_zero' => 0,
753      'set_precision' => 1,
754      'precision' => '0',
755      'decimal' => '.',
756      'separator' => ',',
757      'prefix' => '',
758      'suffix' => '',
759      'exclude' => 0,
760      'id' => 'total_credit',
761      'table' => 'user',
762      'field' => 'total_credit',
763      'relationship' => 'none',
764    ),
765    'expavg_credit' => array(
766      'label' => 'Avg credit',
767      'alter' => array(
768        'alter_text' => 0,
769        'text' => '',
770        'make_link' => 0,
771        'path' => '',
772        'absolute' => 0,
773        'link_class' => '',
774        'alt' => '',
775        'rel' => '',
776        'prefix' => '',
777        'suffix' => '',
778        'target' => '',
779        'help' => '',
780        'trim' => 0,
781        'max_length' => '',
782        'word_boundary' => 1,
783        'ellipsis' => 1,
784        'html' => 0,
785        'strip_tags' => 0,
786      ),
787      'empty' => '',
788      'hide_empty' => 0,
789      'empty_zero' => 0,
790      'hide_alter_empty' => 1,
791      'set_precision' => 1,
792      'precision' => '2',
793      'decimal' => '.',
794      'separator' => ',',
795      'format_plural' => 0,
796      'format_plural_singular' => '1',
797      'format_plural_plural' => '@count',
798      'prefix' => '',
799      'suffix' => '',
800      'exclude' => 0,
801      'id' => 'expavg_credit',
802      'table' => 'user',
803      'field' => 'expavg_credit',
804      'relationship' => 'none',
805      'override' => array(
806        'button' => 'Use default',
807      ),
808    ),
809    'phpcode_1' => array(
810      'label' => '',
811      'alter' => array(
812        'alter_text' => 0,
813        'text' => '',
814        'make_link' => 0,
815        'path' => '',
816        'absolute' => 0,
817        'link_class' => '',
818        'alt' => '',
819        'rel' => '',
820        'prefix' => '',
821        'suffix' => '',
822        'target' => '',
823        'help' => '',
824        'trim' => 0,
825        'max_length' => '',
826        'word_boundary' => 1,
827        'ellipsis' => 1,
828        'html' => 0,
829        'strip_tags' => 0,
830      ),
831      'empty' => '',
832      'hide_empty' => 0,
833      'empty_zero' => 0,
834      'hide_alter_empty' => 1,
835      'value' => '<?php
836
837echo l(bts(\'Show computers\', array(), NULL, \'boinc:accountpage\'), \'account/\' . get_drupal_id($data->id) . \'/computers\');
838
839?>',
840      'exclude' => 0,
841      'id' => 'phpcode_1',
842      'table' => 'customfield',
843      'field' => 'phpcode',
844      'override' => array(
845        'button' => 'Use default',
846      ),
847      'relationship' => 'none',
848    ),
849    'cross_project_id' => array(
850      'label' => 'Cross-project statistics',
851      'alter' => array(
852        'alter_text' => 0,
853        'text' => '',
854        'make_link' => 0,
855        'path' => '',
856        'link_class' => '',
857        'alt' => '',
858        'prefix' => '',
859        'suffix' => '',
860        'target' => '',
861        'help' => '',
862        'trim' => 0,
863        'max_length' => '',
864        'word_boundary' => 1,
865        'ellipsis' => 1,
866        'html' => 0,
867        'strip_tags' => 0,
868      ),
869      'empty' => '',
870      'hide_empty' => 0,
871      'empty_zero' => 0,
872      'exclude' => 1,
873      'id' => 'cross_project_id',
874      'table' => 'user',
875      'field' => 'cross_project_id',
876      'relationship' => 'none',
877      'override' => array(
878        'button' => 'Override',
879      ),
880    ),
881    'phpcode' => array(
882      'label' => '',
883      'alter' => array(
884        'alter_text' => 0,
885        'text' => '',
886        'make_link' => 0,
887        'path' => '',
888        'absolute' => 0,
889        'link_class' => '',
890        'alt' => '',
891        'rel' => '',
892        'prefix' => '',
893        'suffix' => '',
894        'target' => '',
895        'help' => '',
896        'trim' => 0,
897        'max_length' => '',
898        'word_boundary' => 1,
899        'ellipsis' => 1,
900        'html' => 0,
901        'strip_tags' => 0,
902      ),
903      'empty' => '',
904      'hide_empty' => 0,
905      'empty_zero' => 0,
906      'hide_alter_empty' => 1,
907      'value' => '<?php global $base_path; ?>
908<?php $account = user_load(get_drupal_id($data->id)); ?>
909<div class="chart"><img src="<?php echo "{$base_path}charts/user/{$account->boincuser_cpid}/small"; ?>" /></div>',
910      'exclude' => 0,
911      'id' => 'phpcode',
912      'table' => 'customfield',
913      'field' => 'phpcode',
914      'override' => array(
915        'button' => 'Use default',
916      ),
917      'relationship' => 'none',
918    ),
919  ));
920  $handler->override_option('title', 'Statistics');
921  $handler->override_option('empty', 'empty...');
922  $handler->override_option('empty_format', '5');
923  $handler->override_option('row_options', array(
924    'inline' => array(),
925    'separator' => '',
926    'hide_empty' => 0,
927  ));
928  $handler->override_option('pane_title', 'BOINC account stats overview');
929  $handler->override_option('pane_description', '');
930  $handler->override_option('pane_category', array(
931    'name' => 'View panes',
932    'weight' => 0,
933  ));
934  $handler->override_option('allow', array(
935    'use_pager' => 0,
936    'items_per_page' => 0,
937    'offset' => 0,
938    'link_to_view' => 0,
939    'more_link' => 0,
940    'path_override' => 0,
941    'title_override' => 'title_override',
942    'exposed_form' => 0,
943    'fields_override' => 0,
944  ));
945  $handler->override_option('argument_input', array(
946    'id' => array(
947      'type' => 'panel',
948      'context' => 'node_edit_form.author-mail-raw',
949      'context_optional' => 0,
950      'panel' => '0',
951      'fixed' => '',
952      'label' => 'BOINC: Id',
953    ),
954  ));
955  $handler->override_option('link_to_view', 0);
956  $handler->override_option('inherit_panels_path', 0);
957
958  $views[$view->name] = $view;
959
960  return $views;
961}
962