Issues (1834)

private_messages.panels_default.inc (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * Implementation of hook_default_panels_mini().
5
 */
6
function private_messages_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 = 'user_mail_summary';
13
  $mini->category = 'BOINC';
14
  $mini->admin_title = 'User mail summary';
15
  $mini->admin_description = 'Mail widget for user dashboard';
16
  $mini->requiredcontexts = array();
17
  $mini->contexts = array();
18
  $mini->relationships = array();
19
  $display = new panels_display;
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 = 'Messages';
30
  $display->storage_type = 'panels_mini';
31
  $display->storage_id = 'user_mail_summary';
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' => 'Mail summary',
43
      'title' => 'Messages',
44
      'body' => '<?php
45
  $l1 = url(\'messages\');
46
  $l2 = url(\'messages/new\');
47
?>
48
<ul class="tab-list">
49
  <li class="first tab"><div>
50
    <a href="<?php echo $l1;?>"><?php print bts(\'Inbox\', array(), NULL, \'boinc:account-dashboard\'); ?></a><div class="item-count-wrapper"><span class="item-count"><?php echo privatemsg_unread_count(); ?></span></div></div>
51
  </li>
52
  <li class="last tab"><a href="<?php echo $l2?>"><?php print bts(\'Compose new\', array(), NULL, \'boinc:account-dashboard\'); ?></a></li>
53
</ul>',
54
      'format' => '3',
55
      'substitute' => TRUE,
56
    );
57
    $pane->cache = array();
58
    $pane->style = array(
59
      'settings' => NULL,
60
    );
61
    $pane->css = array();
62
    $pane->extras = array();
63
    $pane->position = 0;
64
    $display->content['new-1'] = $pane;
65
    $display->panels['middle'][0] = 'new-1';
66
  $display->hide_title = PANELS_TITLE_NONE;
67
  $display->title_pane = 'new-1';
68
  $mini->display = $display;
69
  $export['user_mail_summary'] = $mini;
70
71
  return $export;
72
}
73