Issues (1839)

user_profiles/user_profiles.panels_default.inc (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * Implementation of hook_default_panels_mini().
5
 */
6
function user_profiles_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_profile';
13
  $mini->category = 'BOINC';
14
  $mini->admin_title = 'User profile';
15
  $mini->admin_description = 'A user\'s profile information, including background and opinions';
16
  $mini->requiredcontexts = array(
17
    0 => array(
18
      'name' => 'user',
19
      'id' => 1,
20
      'identifier' => 'User',
21
      'keyword' => 'user',
22
    ),
23
  );
24
  $mini->contexts = array();
25
  $mini->relationships = array();
26
  $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...
27
  $display->layout = 'onecol';
28
  $display->layout_settings = array();
29
  $display->panel_settings = array(
30
    'style_settings' => array(
31
      'default' => NULL,
32
      'middle' => NULL,
33
    ),
34
  );
35
  $display->cache = array();
36
  $display->title = '';
37
  $display->storage_type = 'panels_mini';
38
  $display->storage_id = 'user_profile';
39
  $display->content = array();
40
  $display->panels = array();
41
    $pane = new stdClass;
42
    $pane->pid = 'new-1';
43
    $pane->panel = 'middle';
44
    $pane->type = 'user_profile';
45
    $pane->subtype = 'user_profile';
46
    $pane->shown = TRUE;
47
    $pane->access = array();
48
    $pane->configuration = array(
49
      'context' => 'requiredcontext_user_1',
50
      'override_title' => 1,
51
      'override_title_text' => '',
52
    );
53
    $pane->cache = array();
54
    $pane->style = array(
55
      'settings' => NULL,
56
    );
57
    $pane->css = array();
58
    $pane->extras = array();
59
    $pane->position = 0;
60
    $display->content['new-1'] = $pane;
61
    $display->panels['middle'][0] = 'new-1';
62
    $pane = new stdClass;
63
    $pane->pid = 'new-2';
64
    $pane->panel = 'middle';
65
    $pane->type = 'custom';
66
    $pane->subtype = 'custom';
67
    $pane->shown = TRUE;
68
    $pane->access = array();
69
    $pane->configuration = array(
70
      'admin_title' => 'Flag user',
71
      'title' => '',
72
      'body' => '<?php print boincuser_get_profile_links(%user:uid); ?>',
73
      'format' => '3',
74
      'substitute' => 1,
75
    );
76
    $pane->cache = array();
77
    $pane->style = array(
78
      'settings' => NULL,
79
    );
80
    $pane->css = array();
81
    $pane->extras = array();
82
    $pane->position = 1;
83
    $display->content['new-2'] = $pane;
84
    $display->panels['middle'][1] = 'new-2';
85
  $display->hide_title = PANELS_TITLE_NONE;
86
  $display->title_pane = 'new-1';
87
  $mini->display = $display;
88
  $export['user_profile'] = $mini;
89
90
  return $export;
91
}
92