-
Notifications
You must be signed in to change notification settings - Fork 10
/
atrium_folders.context.inc
94 lines (89 loc) · 2.16 KB
/
atrium_folders.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
<?php
/**
* Implementation of hook_context_default_contexts().
*/
function atrium_folders_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 = 'folders_listing';
$context->description = '';
$context->tag = 'Folders';
$context->conditions = array(
'node' => array(
'values' => array(
'folder' => 'folder',
),
'options' => array(
'node_form' => '1',
),
),
'path' => array(
'values' => array(
'folders' => 'folders',
),
),
'views' => array(
'values' => array(
'folders_navigation' => 'folders_navigation',
),
),
);
$context->reactions = array(
'menu' => 'folders',
);
$context->condition_mode = 0;
// Translatables
// Included for use with string extractors like potx.
t('Folders');
$export['folders_listing'] = $context;
$context = new stdClass;
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
$context->api_version = 3;
$context->name = 'spaces-feature-folders';
$context->description = '';
$context->tag = 'Folders';
$context->conditions = array(
'bookroot' => array(
'values' => array(
'folder' => 'folder',
),
'options' => array(
'node_form' => '1',
),
),
'node' => array(
'values' => array(
'folder' => 'folder',
),
'options' => array(
'node_form' => '1',
),
),
'path' => array(
'values' => array(
'folders' => 'folders',
'node/*/folders/*' => 'node/*/folders/*',
),
),
'views' => array(
'values' => array(
'folders' => 'folders',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(),
'layout' => 'wide',
),
'menu' => 'folders',
);
$context->condition_mode = 0;
// Translatables
// Included for use with string extractors like potx.
t('Folders');
$export['spaces-feature-folders'] = $context;
return $export;
}