Issues (1834)

stats_charts/stats_charts.panels_default.inc (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * Implementation of hook_default_panels_mini().
5
 */
6
function stats_charts_default_panels_mini() {
7
  $export = array();
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;
0 ignored issues
show
The type panels_display was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
20
  $display->layout = 'onecol';
21
  $display->layout_settings = array();
22
  $display->panel_settings = array(
23
    'style_settings' => array(
24
      'default' => NULL,
25
      'middle' => NULL,
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();
34
    $pane = new stdClass;
35
    $pane->pid = 'new-1';
36
    $pane->panel = 'middle';
37
    $pane->type = 'custom';
38
    $pane->subtype = 'custom';
39
    $pane->shown = TRUE;
40
    $pane->access = array();
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,
47
    );
48
    $pane->cache = array();
49
    $pane->style = array(
50
      'settings' => NULL,
51
    );
52
    $pane->css = array();
53
    $pane->extras = array();
54
    $pane->position = 0;
55
    $display->content['new-1'] = $pane;
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;
61
62
  return $export;
63
}
64