-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoa_sheetnode.context.inc
49 lines (46 loc) · 1.21 KB
/
oa_sheetnode.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
<?php
/**
* Implementation of hook_context_default_contexts().
*/
function oa_sheetnode_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 = 'sheetnode_on_book_listing';
$context->description = 'Adding the "Add Sheetnode" button to the Notebook';
$context->tag = 'Book, Sheetnode';
$context->conditions = array(
'bookroot' => array(
'values' => array(
'book' => 'book',
),
'options' => array(
'node_form' => '1',
),
),
'node' => array(
'values' => array(
'sheetnode' => 'sheetnode',
),
'options' => array(
'node_form' => '1',
),
),
'views' => array(
'values' => array(
'book_listing' => 'book_listing',
),
),
);
$context->reactions = array(
'menu' => 'notebook',
);
$context->condition_mode = 0;
// Translatables
// Included for use with string extractors like potx.
t('Adding the "Add Sheetnode" button to the Notebook');
t('Book, Sheetnode');
$export['sheetnode_on_book_listing'] = $context;
return $export;
}