-
Notifications
You must be signed in to change notification settings - Fork 0
/
ogmk_shops.context.inc
57 lines (52 loc) · 1.27 KB
/
ogmk_shops.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
<?php
/**
* @file
* ogmk_shops.context.inc
*/
/**
* Implements hook_context_default_contexts().
*/
function ogmk_shops_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 = 'ogmk_shop_manage';
$context->description = '';
$context->tag = 'ogmk-shop';
$context->conditions = array(
'node' => array(
'values' => array(
'ogmk_product' => 'ogmk_product',
'ogmk_shop' => 'ogmk_shop',
),
'options' => array(
'node_form' => '2',
),
),
'path' => array(
'values' => array(
'node/*/manage' => 'node/*/manage',
'node/*/manage/*' => 'node/*/manage/*',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'menu-ogmk-shop-manage' => array(
'module' => 'menu',
'delta' => 'ogmk-shop-manage',
'region' => 'navigation',
'weight' => '-9',
),
),
),
);
$context->condition_mode = 0;
// Translatables
// Included for use with string extractors like potx.
t('ogmk-shop');
$export['ogmk_shop_manage'] = $context;
return $export;
}