-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathideograph_wysiwyg_config.context.inc
93 lines (87 loc) · 2.32 KB
/
ideograph_wysiwyg_config.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
<?php
/**
* @file
* ideograph_wysiwyg_config.context.inc
*/
/**
* Implements hook_context_default_contexts().
*/
function ideograph_wysiwyg_config_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 = 'wysiwyw_admin';
$context->description = 'blocks for site admins';
$context->tag = 'blocks';
$context->conditions = array(
'sitewide' => array(
'values' => array(
1 => 1,
),
),
'user' => array(
'values' => array(
'administrator' => 'administrator',
'contributor' => 'contributor',
'editor' => 'editor',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'masquerade-masquerade' => array(
'module' => 'masquerade',
'delta' => 'masquerade',
'region' => 'sidebar_first',
'weight' => '3',
),
),
),
);
$context->condition_mode = 1;
// Translatables
// Included for use with string extractors like potx.
t('blocks');
t('blocks for site admins');
$export['wysiwyw_admin'] = $context;
$context = new stdClass();
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'wysiwyw_sitewide';
$context->description = 'display blocks site-wide for the wysiwyw profile';
$context->tag = 'blocks';
$context->conditions = array(
'sitewide' => array(
'values' => array(
1 => 1,
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'system-navigation' => array(
'module' => 'system',
'delta' => 'navigation',
'region' => 'sidebar_first',
'weight' => '-10',
),
'user-login' => array(
'module' => 'user',
'delta' => 'login',
'region' => 'sidebar_first',
'weight' => '-9',
),
),
),
);
$context->condition_mode = 1;
// Translatables
// Included for use with string extractors like potx.
t('blocks');
t('display blocks site-wide for the wysiwyw profile');
$export['wysiwyw_sitewide'] = $context;
return $export;
}