This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
context_flag_examples.box.inc
119 lines (110 loc) · 3.45 KB
/
context_flag_examples.box.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?php
/**
* @file
* context_flag_examples.box.inc
*/
/**
* Implements hook_default_box().
*/
function context_flag_examples_default_box() {
$export = array();
$box = new stdClass();
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'cf_profile_box';
$box->plugin_key = 'simple';
$box->title = 'This user is special';
$box->description = 'Context Flag Profile Box';
$box->options = array(
'body' => array(
'value' => 'This user has been flagged as special.',
'format' => 'filtered_html',
),
);
$export['cf_profile_box'] = $box;
$box = new stdClass();
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'left_box';
$box->plugin_key = 'simple';
$box->title = 'Right Sidebar Hidden';
$box->description = 'Right rail descriptor';
$box->options = array(
'body' => array(
'value' => 'You have chosen to hide the right sidebar.',
'format' => 'filtered_html',
),
);
$export['left_box'] = $box;
$box = new stdClass();
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'left_default';
$box->plugin_key = 'simple';
$box->title = 'Default Left Block';
$box->description = 'Left Default';
$box->options = array(
'body' => array(
'value' => 'This is a left side block so the left sidebar is visible.',
'format' => 'filtered_html',
),
);
$export['left_default'] = $box;
$box = new stdClass();
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'no_rails';
$box->plugin_key = 'simple';
$box->title = 'Both Sidebars Hidden';
$box->description = 'No rail descriptor';
$box->options = array(
'body' => array(
'value' => 'You have chosen to hide both sidebars.',
'format' => 'filtered_html',
),
);
$export['no_rails'] = $box;
$box = new stdClass();
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'right_box';
$box->plugin_key = 'simple';
$box->title = 'Left Sidebar Hidden';
$box->description = 'Left rail descriptor';
$box->options = array(
'body' => array(
'value' => 'You have hidden the left sidebar.',
'format' => 'filtered_html',
),
);
$export['right_box'] = $box;
$box = new stdClass();
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'right_default';
$box->plugin_key = 'simple';
$box->title = 'Default Right Block';
$box->description = 'Right Default';
$box->options = array(
'body' => array(
'value' => 'This is a default block so the right sidebar is visible.',
'format' => 'filtered_html',
),
);
$export['right_default'] = $box;
$box = new stdClass();
$box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
$box->api_version = 1;
$box->delta = 'special_user';
$box->plugin_key = 'simple';
$box->title = 'You\'re special';
$box->description = 'Special User Message';
$box->options = array(
'body' => array(
'value' => 'Someone likes you, you\'re a special user.',
'format' => 'filtered_html',
),
);
$export['special_user'] = $box;
return $export;
}