-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgnl_schema.context.inc
139 lines (131 loc) · 3.43 KB
/
gnl_schema.context.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
/**
* @file
* gnl_schema.context.inc
*/
/**
* Implements hook_context_default_contexts().
*/
function gnl_schema_context_default_contexts() {
$export = array();
$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'front';
$context->description = '';
$context->tag = '';
$context->conditions = array(
'path' => array(
'values' => array(
'<front>' => '<front>',
),
),
);
$context->reactions = array();
$context->condition_mode = 0;
$export['front'] = $context;
$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'global';
$context->description = '';
$context->tag = '';
$context->conditions = array(
'sitewide' => array(
'values' => array(
1 => 1,
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'system-main-menu' => array(
'module' => 'system',
'delta' => 'main-menu',
'region' => 'navigation',
'weight' => '-10',
),
),
),
);
$context->condition_mode = 0;
$export['global'] = $context;
$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'not_front';
$context->description = 'not the front page';
$context->tag = '';
$context->conditions = array(
'path' => array(
'values' => array(
'~<front>' => '~<front>',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'boxes-gnl_about' => array(
'module' => 'boxes',
'delta' => 'gnl_about',
'region' => 'sidebar_first',
'weight' => '-10',
),
),
),
);
$context->condition_mode = 1;
// Translatables
// Included for use with string extractors like potx.
t('not the front page');
$export['not_front'] = $context;
$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'org_context';
$context->description = 'Show grants on Organization nodes';
$context->tag = 'org';
$context->conditions = array(
'node' => array(
'values' => array(
'org' => 'org',
),
'options' => array(
'node_form' => '0',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'system-main' => array(
'module' => 'system',
'delta' => 'main',
'region' => 'content',
'weight' => '-9',
),
'views-org_grants-funded' => array(
'module' => 'views',
'delta' => 'org_grants-funded',
'region' => 'content',
'weight' => '-8',
),
'views-org_grants-received' => array(
'module' => 'views',
'delta' => 'org_grants-received',
'region' => 'content',
'weight' => '-7',
),
),
),
);
$context->condition_mode = 1;
// Translatables
// Included for use with string extractors like potx.
t('Show grants on Organization nodes');
t('org');
$export['org_context'] = $context;
return $export;
}