-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatapublic_datasets.context.inc
56 lines (52 loc) · 1.28 KB
/
datapublic_datasets.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
<?php
/**
* @file
* datapublic_datasets.context.inc
*/
/**
* Implements hook_context_default_contexts().
*/
function datapublic_datasets_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 = 'datasets_main_page';
$context->description = 'Datasets main page';
$context->tag = 'Datasets';
$context->conditions = array(
'node' => array(
'values' => array(
'page' => 'page',
),
'options' => array(
'node_form' => '0',
),
),
'path' => array(
'values' => array(
'datasets' => 'datasets',
'resources/datasets' => 'resources/datasets',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'views-datasets-block_1' => array(
'module' => 'views',
'delta' => 'datasets-block_1',
'region' => 'content',
'weight' => '-10',
),
),
),
);
$context->condition_mode = 1;
// Translatables
// Included for use with string extractors like potx.
t('Datasets');
t('Datasets main page');
$export['datasets_main_page'] = $context;
return $export;
}