forked from developmentseed/atrium_searchlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atrium_searchlight.context.inc
41 lines (38 loc) · 1001 Bytes
/
atrium_searchlight.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
<?php
/**
* Implementation of hook_context_default_contexts().
*/
function atrium_searchlight_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 = 'search_global';
$context->description = '';
$context->tag = 'Search';
$context->conditions = array(
'views' => array(
'values' => array(
'search_listing' => 'search_listing',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'searchlight-facets_search_global' => array(
'module' => 'searchlight',
'delta' => 'facets_search_global',
'region' => 'right',
'weight' => 0,
),
),
),
);
$context->condition_mode = 0;
$translatables['search_global'] = array(
t('Search'),
);
$export['search_global'] = $context;
return $export;
}