diff --git a/drupal/sites/all/features/boinc_standard/boinc_standard.features.inc b/drupal/sites/all/features/boinc_standard/boinc_standard.features.inc index d8355f21b2..299c11d5b1 100644 --- a/drupal/sites/all/features/boinc_standard/boinc_standard.features.inc +++ b/drupal/sites/all/features/boinc_standard/boinc_standard.features.inc @@ -31,7 +31,7 @@ function boinc_standard_flag_default_flags() { $flags['abuse_comment'] = array( 'content_type' => 'comment', 'title' => 'Comment Abuse', - 'global' => FALSE, + 'global' => '0', 'types' => array( '0' => 'news', '1' => 'forum', @@ -65,7 +65,7 @@ function boinc_standard_flag_default_flags() { $flags['abuse_node'] = array( 'content_type' => 'node', 'title' => 'Node Abuse', - 'global' => FALSE, + 'global' => '0', 'types' => array( '0' => 'profile', '1' => 'forum', diff --git a/drupal/sites/all/features/boinc_standard/boinc_standard.info b/drupal/sites/all/features/boinc_standard/boinc_standard.info index 7f2483993f..2ac90821f5 100644 --- a/drupal/sites/all/features/boinc_standard/boinc_standard.info +++ b/drupal/sites/all/features/boinc_standard/boinc_standard.info @@ -203,4 +203,3 @@ features[variable][] = "user_pictures" features[variable][] = "user_register" features[variable][] = "user_registration_help" features[variable][] = "user_signatures" -features[wysiwyg][] = "rich_text" diff --git a/drupal/sites/all/features/boinc_standard/boinc_standard.input_formats.inc b/drupal/sites/all/features/boinc_standard/boinc_standard.input_formats.inc index a4bf398912..8664a91d25 100644 --- a/drupal/sites/all/features/boinc_standard/boinc_standard.input_formats.inc +++ b/drupal/sites/all/features/boinc_standard/boinc_standard.input_formats.inc @@ -15,6 +15,7 @@ function boinc_standard_input_formats() { ); $input_format->filters = array( 'php' => array( + // Delta => Weight for: PHP evaluator '0' => '0', ), ); diff --git a/drupal/sites/all/features/boinc_standard/boinc_standard.pages_default.inc b/drupal/sites/all/features/boinc_standard/boinc_standard.pages_default.inc index 05ef517d04..e22ba6ac8f 100644 --- a/drupal/sites/all/features/boinc_standard/boinc_standard.pages_default.inc +++ b/drupal/sites/all/features/boinc_standard/boinc_standard.pages_default.inc @@ -12,7 +12,10 @@ function boinc_standard_default_page_manager_pages() { $page->admin_title = 'About Us'; $page->admin_description = ''; $page->path = 'about.fail'; - $page->access = array(); + $page->access = array( + 'type' => 'none', + 'settings' => NULL, + ); $page->menu = array(); $page->arguments = array(); $page->conf = array(); @@ -41,6 +44,8 @@ function boinc_standard_default_page_manager_pages() { ), ), 'logic' => 'and', + 'type' => 'none', + 'settings' => NULL, ); $page->menu = array( 'type' => 'none', @@ -309,16 +314,13 @@ function boinc_standard_default_page_manager_pages() { $pane = new stdClass; $pane->pid = 'new-2'; $pane->panel = 'sidebar_first'; - $pane->type = 'custom'; - $pane->subtype = 'custom'; + $pane->type = 'views_panes'; + $pane->subtype = 'boinc_account_stats-panel_pane_2'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( - 'admin_title' => 'User stats overview', - 'title' => '%user:display-name\'s stats', - 'body' => '', - 'format' => '3', - 'substitute' => 1, + 'override_title' => 1, + 'override_title_text' => '%user:display-name\'s stats', ); $pane->cache = array(); $pane->style = array( @@ -371,7 +373,7 @@ function boinc_standard_default_page_manager_pages() { $display->content['new-3'] = $pane; $display->panels['sidebar_first'][1] = 'new-3'; $display->hide_title = PANELS_TITLE_NONE; - $display->title_pane = 'new-2'; + $display->title_pane = '0'; $handler->conf['display'] = $display; $page->default_handlers[$handler->name] = $handler; $pages['boinc_user'] = $page; @@ -384,7 +386,10 @@ function boinc_standard_default_page_manager_pages() { $page->admin_title = 'Home page'; $page->admin_description = ''; $page->path = 'home'; - $page->access = array(); + $page->access = array( + 'type' => 'none', + 'settings' => NULL, + ); $page->menu = array( 'type' => 'normal', 'title' => 'Home', diff --git a/drupal/sites/all/features/stats_charts/stats_charts.views_default.inc b/drupal/sites/all/features/stats_charts/stats_charts.views_default.inc index b722e2d523..50007c0cd1 100644 --- a/drupal/sites/all/features/stats_charts/stats_charts.views_default.inc +++ b/drupal/sites/all/features/stats_charts/stats_charts.views_default.inc @@ -324,6 +324,7 @@ function stats_charts_views_default_views() { $handler->override_option('cache', array( 'type' => 'none', )); + $handler->override_option('css_class', 'stats'); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 0); $handler->override_option('style_options', array( @@ -683,9 +684,8 @@ else return FALSE;', 'relationship' => 'none', ), )); - $handler->override_option('css_class', 'stats'); $handler->override_option('style_options', array()); - $handler->override_option('pane_title', ''); + $handler->override_option('pane_title', 'BOINC account stats detail'); $handler->override_option('pane_description', ''); $handler->override_option('pane_category', array( 'name' => 'View panes', @@ -705,6 +705,323 @@ else return FALSE;', $handler->override_option('argument_input', array()); $handler->override_option('link_to_view', 0); $handler->override_option('inherit_panels_path', 0); + $handler = $view->new_display('panel_pane', 'User overview', 'panel_pane_2'); + $handler->override_option('fields', array( + 'id' => array( + 'label' => 'User ID', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'set_precision' => FALSE, + 'precision' => 0, + 'decimal' => '.', + 'separator' => '', + 'format_plural' => 0, + 'format_plural_singular' => '1', + 'format_plural_plural' => '@count', + 'prefix' => '', + 'suffix' => '', + 'exclude' => 1, + 'id' => 'id', + 'table' => 'user', + 'field' => 'id', + 'relationship' => 'none', + 'override' => array( + 'button' => 'Use default', + ), + ), + 'total_credit' => array( + 'label' => 'Total credit', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'link_class' => '', + 'alt' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'set_precision' => 1, + 'precision' => '0', + 'decimal' => '.', + 'separator' => ',', + 'prefix' => '', + 'suffix' => '', + 'exclude' => 0, + 'id' => 'total_credit', + 'table' => 'user', + 'field' => 'total_credit', + 'relationship' => 'none', + ), + 'expavg_credit' => array( + 'label' => 'Avg credit', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'set_precision' => 1, + 'precision' => '2', + 'decimal' => '.', + 'separator' => ',', + 'format_plural' => 0, + 'format_plural_singular' => '1', + 'format_plural_plural' => '@count', + 'prefix' => '', + 'suffix' => '', + 'exclude' => 0, + 'id' => 'expavg_credit', + 'table' => 'user', + 'field' => 'expavg_credit', + 'relationship' => 'none', + 'override' => array( + 'button' => 'Use default', + ), + ), + 'cross_project_id' => array( + 'label' => 'Cross-project statistics', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'link_class' => '', + 'alt' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'exclude' => 1, + 'id' => 'cross_project_id', + 'table' => 'user', + 'field' => 'cross_project_id', + 'relationship' => 'none', + 'override' => array( + 'button' => 'Override', + ), + ), + 'phpcode' => array( + 'label' => '', + 'alter' => array( + 'alter_text' => 0, + 'text' => '', + 'make_link' => 0, + 'path' => '', + 'absolute' => 0, + 'link_class' => '', + 'alt' => '', + 'rel' => '', + 'prefix' => '', + 'suffix' => '', + 'target' => '', + 'help' => '', + 'trim' => 0, + 'max_length' => '', + 'word_boundary' => 1, + 'ellipsis' => 1, + 'html' => 0, + 'strip_tags' => 0, + ), + 'empty' => '', + 'hide_empty' => 0, + 'empty_zero' => 0, + 'hide_alter_empty' => 1, + 'value' => ' +id)); ?> +