This repository has been archived by the owner on Feb 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
caw_search_api_settings.context.inc
executable file
·77 lines (73 loc) · 2.28 KB
/
caw_search_api_settings.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
<?php
/**
* @file
* caw_search_api_settings.context.inc
*/
/**
* Implements hook_context_default_contexts().
*/
function caw_search_api_settings_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 = 'caw_search_api_facets';
$context->description = 'Places facets on the search api views pages';
$context->tag = 'Search';
$context->conditions = array(
'path' => array(
'values' => array(
'search/content*' => 'search/content*',
),
),
);
$context->reactions = array(
'block' => array(
'blocks' => array(
'bean-search-page-title' => array(
'module' => 'bean',
'delta' => 'search-page-title',
'region' => 'main_upper',
'weight' => '-10',
),
'views--exp-gotosolr_nodes-page' => array(
'module' => 'views',
'delta' => '-exp-gotosolr_nodes-page',
'region' => 'main_upper',
'weight' => '-9',
),
'stanford_search_api-search_api_reset_facets_block' => array(
'module' => 'stanford_search_api',
'delta' => 'search_api_reset_facets_block',
'region' => 'sidebar_first',
'weight' => '-10',
),
'facetapi-f7rOKrqvTeKMW42ERkYqIEKDdovo0pvH' => array(
'module' => 'facetapi',
'delta' => 'f7rOKrqvTeKMW42ERkYqIEKDdovo0pvH',
'region' => 'sidebar_first',
'weight' => '-9',
),
'facetapi-DcmaYZHSG0i1RJfKqK00HaWsm7s7yFsw' => array(
'module' => 'facetapi',
'delta' => 'DcmaYZHSG0i1RJfKqK00HaWsm7s7yFsw',
'region' => 'sidebar_first',
'weight' => '-8',
),
'facetapi-WWIx05pCImpa8Doygcwuhr8NW0iRRbRT' => array(
'module' => 'facetapi',
'delta' => 'WWIx05pCImpa8Doygcwuhr8NW0iRRbRT',
'region' => 'sidebar_first',
'weight' => '-7',
),
),
),
);
$context->condition_mode = 0;
// Translatables
// Included for use with string extractors like potx.
t('Places facets on the search api views pages');
t('Search');
$export['caw_search_api_facets'] = $context;
return $export;
}