@@ -4,33 +4,33 @@ |
||
4 | 4 | * Implementation of hook_user_default_permissions(). |
5 | 5 | */ |
6 | 6 | function global_search_solr_user_default_permissions() { |
7 | - $permissions = array(); |
|
7 | + $permissions = array(); |
|
8 | 8 | |
9 | - // Exported permission: administer search |
|
10 | - $permissions['administer search'] = array( |
|
9 | + // Exported permission: administer search |
|
10 | + $permissions['administer search'] = array( |
|
11 | 11 | 'name' => 'administer search', |
12 | 12 | 'roles' => array( |
13 | - '0' => 'administrator', |
|
13 | + '0' => 'administrator', |
|
14 | 14 | ), |
15 | - ); |
|
15 | + ); |
|
16 | 16 | |
17 | - // Exported permission: search content |
|
18 | - $permissions['search content'] = array( |
|
17 | + // Exported permission: search content |
|
18 | + $permissions['search content'] = array( |
|
19 | 19 | 'name' => 'search content', |
20 | 20 | 'roles' => array( |
21 | - '0' => 'anonymous user', |
|
22 | - '1' => 'authenticated user', |
|
21 | + '0' => 'anonymous user', |
|
22 | + '1' => 'authenticated user', |
|
23 | 23 | ), |
24 | - ); |
|
24 | + ); |
|
25 | 25 | |
26 | - // Exported permission: use advanced search |
|
27 | - $permissions['use advanced search'] = array( |
|
26 | + // Exported permission: use advanced search |
|
27 | + $permissions['use advanced search'] = array( |
|
28 | 28 | 'name' => 'use advanced search', |
29 | 29 | 'roles' => array( |
30 | - '0' => 'anonymous user', |
|
31 | - '1' => 'authenticated user', |
|
30 | + '0' => 'anonymous user', |
|
31 | + '1' => 'authenticated user', |
|
32 | 32 | ), |
33 | - ); |
|
33 | + ); |
|
34 | 34 | |
35 | - return $permissions; |
|
35 | + return $permissions; |
|
36 | 36 | } |
@@ -5,8 +5,8 @@ |
||
5 | 5 | // Hackish... but there doesn't seem to be a non-hackish way to change the |
6 | 6 | // label on the search form!? Need a custom module to call hook_form_alter()... |
7 | 7 | function global_search_solr_form_alter(&$form, &$form_state, $form_id) { |
8 | - if ($form_id == 'apachesolr_search_custom_page_search_form') { |
|
8 | + if ($form_id == 'apachesolr_search_custom_page_search_form') { |
|
9 | 9 | $form['basic']['keys']['#title'] = t('Search'); |
10 | 10 | $form['basic']['keys']['#size'] = 40; |
11 | - } |
|
11 | + } |
|
12 | 12 | } |
@@ -4,14 +4,14 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function global_search_solr_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "apachesolr" && $api == "apachesolr_environments") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "apachesolr" && $api == "apachesolr_environments") { |
|
9 | 9 | return array("version" => 1); |
10 | - } |
|
11 | - elseif ($module == "apachesolr_search" && $api == "apachesolr_search_defaults") { |
|
10 | + } |
|
11 | + elseif ($module == "apachesolr_search" && $api == "apachesolr_search_defaults") { |
|
12 | 12 | return array("version" => 3); |
13 | - } |
|
14 | - elseif ($module == "facetapi" && $api == "facetapi_defaults") { |
|
13 | + } |
|
14 | + elseif ($module == "facetapi" && $api == "facetapi_defaults") { |
|
15 | 15 | return array("version" => 1); |
16 | - } |
|
16 | + } |
|
17 | 17 | } |
@@ -4,140 +4,140 @@ |
||
4 | 4 | * Implementation of hook_facetapi_default_facet_settings(). |
5 | 5 | */ |
6 | 6 | function global_search_solr_facetapi_default_facet_settings() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $facet = new stdClass; |
|
10 | - $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
11 | - $facet->api_version = 1; |
|
12 | - $facet->name = 'apachesolr@solr:block:author'; |
|
13 | - $facet->searcher = 'apachesolr@solr'; |
|
14 | - $facet->realm = 'block'; |
|
15 | - $facet->facet = 'author'; |
|
16 | - $facet->enabled = TRUE; |
|
17 | - $facet->settings = array( |
|
9 | + $facet = new stdClass; |
|
10 | + $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
11 | + $facet->api_version = 1; |
|
12 | + $facet->name = 'apachesolr@solr:block:author'; |
|
13 | + $facet->searcher = 'apachesolr@solr'; |
|
14 | + $facet->realm = 'block'; |
|
15 | + $facet->facet = 'author'; |
|
16 | + $facet->enabled = TRUE; |
|
17 | + $facet->settings = array( |
|
18 | 18 | 'weight' => 0, |
19 | 19 | 'widget' => 'facetapi_links', |
20 | 20 | 'filters' => array(), |
21 | 21 | 'active_sorts' => array( |
22 | - 'active' => 'active', |
|
23 | - 'count' => 'count', |
|
24 | - 'display' => 'display', |
|
22 | + 'active' => 'active', |
|
23 | + 'count' => 'count', |
|
24 | + 'display' => 'display', |
|
25 | 25 | ), |
26 | 26 | 'sort_weight' => array( |
27 | - 'active' => -50, |
|
28 | - 'count' => -49, |
|
29 | - 'display' => -48, |
|
27 | + 'active' => -50, |
|
28 | + 'count' => -49, |
|
29 | + 'display' => -48, |
|
30 | 30 | ), |
31 | 31 | 'sort_order' => array( |
32 | - 'active' => 3, |
|
33 | - 'count' => 3, |
|
34 | - 'display' => 4, |
|
32 | + 'active' => 3, |
|
33 | + 'count' => 3, |
|
34 | + 'display' => 4, |
|
35 | 35 | ), |
36 | 36 | 'empty_behavior' => 'none', |
37 | 37 | 'soft_limit' => 20, |
38 | 38 | 'nofollow' => 1, |
39 | 39 | 'show_expanded' => 0, |
40 | - ); |
|
41 | - $export['apachesolr@solr:block:author'] = $facet; |
|
40 | + ); |
|
41 | + $export['apachesolr@solr:block:author'] = $facet; |
|
42 | 42 | |
43 | - $facet = new stdClass; |
|
44 | - $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
45 | - $facet->api_version = 1; |
|
46 | - $facet->name = 'apachesolr@solr:block:bundle'; |
|
47 | - $facet->searcher = 'apachesolr@solr'; |
|
48 | - $facet->realm = 'block'; |
|
49 | - $facet->facet = 'bundle'; |
|
50 | - $facet->enabled = TRUE; |
|
51 | - $facet->settings = array( |
|
43 | + $facet = new stdClass; |
|
44 | + $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
45 | + $facet->api_version = 1; |
|
46 | + $facet->name = 'apachesolr@solr:block:bundle'; |
|
47 | + $facet->searcher = 'apachesolr@solr'; |
|
48 | + $facet->realm = 'block'; |
|
49 | + $facet->facet = 'bundle'; |
|
50 | + $facet->enabled = TRUE; |
|
51 | + $facet->settings = array( |
|
52 | 52 | 'weight' => 0, |
53 | 53 | 'widget' => 'facetapi_links', |
54 | 54 | 'filters' => array(), |
55 | 55 | 'active_sorts' => array( |
56 | - 'active' => 'active', |
|
57 | - 'count' => 'count', |
|
58 | - 'display' => 'display', |
|
56 | + 'active' => 'active', |
|
57 | + 'count' => 'count', |
|
58 | + 'display' => 'display', |
|
59 | 59 | ), |
60 | 60 | 'sort_weight' => array( |
61 | - 'active' => -50, |
|
62 | - 'count' => -49, |
|
63 | - 'display' => -48, |
|
61 | + 'active' => -50, |
|
62 | + 'count' => -49, |
|
63 | + 'display' => -48, |
|
64 | 64 | ), |
65 | 65 | 'sort_order' => array( |
66 | - 'active' => 3, |
|
67 | - 'count' => 3, |
|
68 | - 'display' => 4, |
|
66 | + 'active' => 3, |
|
67 | + 'count' => 3, |
|
68 | + 'display' => 4, |
|
69 | 69 | ), |
70 | 70 | 'empty_behavior' => 'none', |
71 | 71 | 'soft_limit' => 20, |
72 | 72 | 'nofollow' => 1, |
73 | 73 | 'show_expanded' => 0, |
74 | - ); |
|
75 | - $export['apachesolr@solr:block:bundle'] = $facet; |
|
74 | + ); |
|
75 | + $export['apachesolr@solr:block:bundle'] = $facet; |
|
76 | 76 | |
77 | - $facet = new stdClass; |
|
78 | - $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
79 | - $facet->api_version = 1; |
|
80 | - $facet->name = 'apachesolr@solr:block:changed'; |
|
81 | - $facet->searcher = 'apachesolr@solr'; |
|
82 | - $facet->realm = 'block'; |
|
83 | - $facet->facet = 'changed'; |
|
84 | - $facet->enabled = TRUE; |
|
85 | - $facet->settings = array( |
|
77 | + $facet = new stdClass; |
|
78 | + $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
79 | + $facet->api_version = 1; |
|
80 | + $facet->name = 'apachesolr@solr:block:changed'; |
|
81 | + $facet->searcher = 'apachesolr@solr'; |
|
82 | + $facet->realm = 'block'; |
|
83 | + $facet->facet = 'changed'; |
|
84 | + $facet->enabled = TRUE; |
|
85 | + $facet->settings = array( |
|
86 | 86 | 'weight' => 0, |
87 | 87 | 'widget' => 'facetapi_links', |
88 | 88 | 'filters' => array(), |
89 | 89 | 'active_sorts' => array( |
90 | - 'active' => 'active', |
|
91 | - 'indexed' => 'indexed', |
|
90 | + 'active' => 'active', |
|
91 | + 'indexed' => 'indexed', |
|
92 | 92 | ), |
93 | 93 | 'sort_weight' => array( |
94 | - 'active' => -50, |
|
95 | - 'indexed' => -49, |
|
94 | + 'active' => -50, |
|
95 | + 'indexed' => -49, |
|
96 | 96 | ), |
97 | 97 | 'sort_order' => array( |
98 | - 'active' => 3, |
|
99 | - 'indexed' => 4, |
|
98 | + 'active' => 3, |
|
99 | + 'indexed' => 4, |
|
100 | 100 | ), |
101 | 101 | 'empty_behavior' => 'none', |
102 | 102 | 'soft_limit' => 20, |
103 | 103 | 'nofollow' => 1, |
104 | 104 | 'show_expanded' => 0, |
105 | - ); |
|
106 | - $export['apachesolr@solr:block:changed'] = $facet; |
|
105 | + ); |
|
106 | + $export['apachesolr@solr:block:changed'] = $facet; |
|
107 | 107 | |
108 | - $facet = new stdClass; |
|
109 | - $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
110 | - $facet->api_version = 1; |
|
111 | - $facet->name = 'apachesolr@solr:block:im_taxonomy_vid_1'; |
|
112 | - $facet->searcher = 'apachesolr@solr'; |
|
113 | - $facet->realm = 'block'; |
|
114 | - $facet->facet = 'im_taxonomy_vid_1'; |
|
115 | - $facet->enabled = TRUE; |
|
116 | - $facet->settings = array( |
|
108 | + $facet = new stdClass; |
|
109 | + $facet->disabled = FALSE; /* Edit this to true to make a default facet disabled initially */ |
|
110 | + $facet->api_version = 1; |
|
111 | + $facet->name = 'apachesolr@solr:block:im_taxonomy_vid_1'; |
|
112 | + $facet->searcher = 'apachesolr@solr'; |
|
113 | + $facet->realm = 'block'; |
|
114 | + $facet->facet = 'im_taxonomy_vid_1'; |
|
115 | + $facet->enabled = TRUE; |
|
116 | + $facet->settings = array( |
|
117 | 117 | 'weight' => 0, |
118 | 118 | 'widget' => 'facetapi_links', |
119 | 119 | 'filters' => array(), |
120 | 120 | 'active_sorts' => array( |
121 | - 'active' => 'active', |
|
122 | - 'count' => 'count', |
|
123 | - 'display' => 'display', |
|
121 | + 'active' => 'active', |
|
122 | + 'count' => 'count', |
|
123 | + 'display' => 'display', |
|
124 | 124 | ), |
125 | 125 | 'sort_weight' => array( |
126 | - 'active' => -50, |
|
127 | - 'count' => -49, |
|
128 | - 'display' => -48, |
|
126 | + 'active' => -50, |
|
127 | + 'count' => -49, |
|
128 | + 'display' => -48, |
|
129 | 129 | ), |
130 | 130 | 'sort_order' => array( |
131 | - 'active' => 3, |
|
132 | - 'count' => 3, |
|
133 | - 'display' => 4, |
|
131 | + 'active' => 3, |
|
132 | + 'count' => 3, |
|
133 | + 'display' => 4, |
|
134 | 134 | ), |
135 | 135 | 'empty_behavior' => 'none', |
136 | 136 | 'soft_limit' => 20, |
137 | 137 | 'nofollow' => 1, |
138 | 138 | 'show_expanded' => 0, |
139 | - ); |
|
140 | - $export['apachesolr@solr:block:im_taxonomy_vid_1'] = $facet; |
|
139 | + ); |
|
140 | + $export['apachesolr@solr:block:im_taxonomy_vid_1'] = $facet; |
|
141 | 141 | |
142 | - return $export; |
|
142 | + return $export; |
|
143 | 143 | } |
@@ -4,12 +4,12 @@ discard block |
||
4 | 4 | * Implementation of hook_default_fe_block_settings(). |
5 | 5 | */ |
6 | 6 | function global_search_solr_default_fe_block_settings() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - // boinc |
|
10 | - $theme = array(); |
|
9 | + // boinc |
|
10 | + $theme = array(); |
|
11 | 11 | |
12 | - $theme['apachesolr_search-sort'] = array( |
|
12 | + $theme['apachesolr_search-sort'] = array( |
|
13 | 13 | 'module' => 'apachesolr_search', |
14 | 14 | 'delta' => 'sort', |
15 | 15 | 'theme' => 'boinc', |
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | 'pages' => 'search/team/*', |
23 | 23 | 'title' => '', |
24 | 24 | 'cache' => '-1', |
25 | - ); |
|
25 | + ); |
|
26 | 26 | |
27 | - $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
27 | + $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
28 | 28 | 'module' => 'facetapi', |
29 | 29 | 'delta' => '7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J', |
30 | 30 | 'theme' => 'boinc', |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | 'pages' => '', |
38 | 38 | 'title' => '', |
39 | 39 | 'cache' => '-1', |
40 | - ); |
|
40 | + ); |
|
41 | 41 | |
42 | - $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
42 | + $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
43 | 43 | 'module' => 'facetapi', |
44 | 44 | 'delta' => 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', |
45 | 45 | 'theme' => 'boinc', |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | 'pages' => 'search/team/*', |
53 | 53 | 'title' => '', |
54 | 54 | 'cache' => '-1', |
55 | - ); |
|
55 | + ); |
|
56 | 56 | |
57 | - $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
57 | + $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
58 | 58 | 'module' => 'facetapi', |
59 | 59 | 'delta' => 'WtseAVugB1EhxGslwR3XIwoa0sVTttYt', |
60 | 60 | 'theme' => 'boinc', |
@@ -67,9 +67,9 @@ discard block |
||
67 | 67 | 'pages' => 'search/team/*', |
68 | 68 | 'title' => '', |
69 | 69 | 'cache' => '-1', |
70 | - ); |
|
70 | + ); |
|
71 | 71 | |
72 | - $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
72 | + $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
73 | 73 | 'module' => 'facetapi', |
74 | 74 | 'delta' => 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', |
75 | 75 | 'theme' => 'boinc', |
@@ -82,14 +82,14 @@ discard block |
||
82 | 82 | 'pages' => '', |
83 | 83 | 'title' => '', |
84 | 84 | 'cache' => '-1', |
85 | - ); |
|
85 | + ); |
|
86 | 86 | |
87 | - $export['boinc'] = $theme; |
|
87 | + $export['boinc'] = $theme; |
|
88 | 88 | |
89 | - // einstein |
|
90 | - $theme = array(); |
|
89 | + // einstein |
|
90 | + $theme = array(); |
|
91 | 91 | |
92 | - $theme['apachesolr_search-sort'] = array( |
|
92 | + $theme['apachesolr_search-sort'] = array( |
|
93 | 93 | 'module' => 'apachesolr_search', |
94 | 94 | 'delta' => 'sort', |
95 | 95 | 'theme' => 'einstein', |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | 'pages' => 'search/team/*', |
103 | 103 | 'title' => '', |
104 | 104 | 'cache' => '-1', |
105 | - ); |
|
105 | + ); |
|
106 | 106 | |
107 | - $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
107 | + $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
108 | 108 | 'module' => 'facetapi', |
109 | 109 | 'delta' => '7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J', |
110 | 110 | 'theme' => 'einstein', |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | 'pages' => '', |
118 | 118 | 'title' => '', |
119 | 119 | 'cache' => '-1', |
120 | - ); |
|
120 | + ); |
|
121 | 121 | |
122 | - $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
122 | + $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
123 | 123 | 'module' => 'facetapi', |
124 | 124 | 'delta' => 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', |
125 | 125 | 'theme' => 'einstein', |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | 'pages' => 'search/team/*', |
133 | 133 | 'title' => '', |
134 | 134 | 'cache' => '-1', |
135 | - ); |
|
135 | + ); |
|
136 | 136 | |
137 | - $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
137 | + $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
138 | 138 | 'module' => 'facetapi', |
139 | 139 | 'delta' => 'WtseAVugB1EhxGslwR3XIwoa0sVTttYt', |
140 | 140 | 'theme' => 'einstein', |
@@ -147,9 +147,9 @@ discard block |
||
147 | 147 | 'pages' => 'search/team/*', |
148 | 148 | 'title' => '', |
149 | 149 | 'cache' => '-1', |
150 | - ); |
|
150 | + ); |
|
151 | 151 | |
152 | - $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
152 | + $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
153 | 153 | 'module' => 'facetapi', |
154 | 154 | 'delta' => 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', |
155 | 155 | 'theme' => 'einstein', |
@@ -162,14 +162,14 @@ discard block |
||
162 | 162 | 'pages' => '', |
163 | 163 | 'title' => '', |
164 | 164 | 'cache' => '-1', |
165 | - ); |
|
165 | + ); |
|
166 | 166 | |
167 | - $export['einstein'] = $theme; |
|
167 | + $export['einstein'] = $theme; |
|
168 | 168 | |
169 | - // garland |
|
170 | - $theme = array(); |
|
169 | + // garland |
|
170 | + $theme = array(); |
|
171 | 171 | |
172 | - $theme['apachesolr_search-sort'] = array( |
|
172 | + $theme['apachesolr_search-sort'] = array( |
|
173 | 173 | 'module' => 'apachesolr_search', |
174 | 174 | 'delta' => 'sort', |
175 | 175 | 'theme' => 'garland', |
@@ -182,9 +182,9 @@ discard block |
||
182 | 182 | 'pages' => 'search/team/*', |
183 | 183 | 'title' => '', |
184 | 184 | 'cache' => '-1', |
185 | - ); |
|
185 | + ); |
|
186 | 186 | |
187 | - $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
187 | + $theme['facetapi-7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J'] = array( |
|
188 | 188 | 'module' => 'facetapi', |
189 | 189 | 'delta' => '7ML0OK3vgYXeSgMyfPmmpnz2TBw9jZ7J', |
190 | 190 | 'theme' => 'garland', |
@@ -197,9 +197,9 @@ discard block |
||
197 | 197 | 'pages' => '', |
198 | 198 | 'title' => '', |
199 | 199 | 'cache' => '-1', |
200 | - ); |
|
200 | + ); |
|
201 | 201 | |
202 | - $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
202 | + $theme['facetapi-GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu'] = array( |
|
203 | 203 | 'module' => 'facetapi', |
204 | 204 | 'delta' => 'GiIy4zr9Gu0ZSa0bumw1Y9qIIpIDf1wu', |
205 | 205 | 'theme' => 'garland', |
@@ -212,9 +212,9 @@ discard block |
||
212 | 212 | 'pages' => 'search/team/*', |
213 | 213 | 'title' => '', |
214 | 214 | 'cache' => '-1', |
215 | - ); |
|
215 | + ); |
|
216 | 216 | |
217 | - $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
217 | + $theme['facetapi-WtseAVugB1EhxGslwR3XIwoa0sVTttYt'] = array( |
|
218 | 218 | 'module' => 'facetapi', |
219 | 219 | 'delta' => 'WtseAVugB1EhxGslwR3XIwoa0sVTttYt', |
220 | 220 | 'theme' => 'garland', |
@@ -227,9 +227,9 @@ discard block |
||
227 | 227 | 'pages' => 'search/team/*', |
228 | 228 | 'title' => '', |
229 | 229 | 'cache' => '-1', |
230 | - ); |
|
230 | + ); |
|
231 | 231 | |
232 | - $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
232 | + $theme['facetapi-wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j'] = array( |
|
233 | 233 | 'module' => 'facetapi', |
234 | 234 | 'delta' => 'wWWinJ0eOefOtAMbjo2yl86Mnf1rO12j', |
235 | 235 | 'theme' => 'garland', |
@@ -242,16 +242,16 @@ discard block |
||
242 | 242 | 'pages' => '', |
243 | 243 | 'title' => '', |
244 | 244 | 'cache' => '-1', |
245 | - ); |
|
245 | + ); |
|
246 | 246 | |
247 | - $export['garland'] = $theme; |
|
247 | + $export['garland'] = $theme; |
|
248 | 248 | |
249 | - $theme_default = variable_get('theme_default', 'garland'); |
|
250 | - $themes = list_themes(); |
|
251 | - foreach ($export as $theme_key => $settings) { |
|
249 | + $theme_default = variable_get('theme_default', 'garland'); |
|
250 | + $themes = list_themes(); |
|
251 | + foreach ($export as $theme_key => $settings) { |
|
252 | 252 | if ($theme_key != $theme_default && empty($themes[$theme_key]->status)) { |
253 | - unset($export[$theme_key]); |
|
253 | + unset($export[$theme_key]); |
|
254 | 254 | } |
255 | - } |
|
256 | - return $export; |
|
255 | + } |
|
256 | + return $export; |
|
257 | 257 | } |
@@ -4,15 +4,15 @@ discard block |
||
4 | 4 | * Implementation of hook_apachesolr_environments(). |
5 | 5 | */ |
6 | 6 | function global_search_solr_apachesolr_environments() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $environment = new stdClass; |
|
10 | - $environment->api_version = 1; |
|
11 | - $environment->env_id = 'solr'; |
|
12 | - $environment->name = 'localhost server'; |
|
13 | - $environment->url = 'http://localhost:8983/solr'; |
|
14 | - $environment->service_class = ''; |
|
15 | - $environment->conf = array( |
|
9 | + $environment = new stdClass; |
|
10 | + $environment->api_version = 1; |
|
11 | + $environment->env_id = 'solr'; |
|
12 | + $environment->name = 'localhost server'; |
|
13 | + $environment->url = 'http://localhost:8983/solr'; |
|
14 | + $environment->service_class = ''; |
|
15 | + $environment->conf = array( |
|
16 | 16 | 'apachesolr_read_only' => '0', |
17 | 17 | 'apachesolr_search_changed_boost' => '0:0', |
18 | 18 | 'apachesolr_search_comment_boost' => '0:0', |
@@ -21,73 +21,73 @@ discard block |
||
21 | 21 | 'apachesolr_search_promote_boost' => '0', |
22 | 22 | 'apachesolr_search_sticky_boost' => '0', |
23 | 23 | 'apachesolr_search_type_boosts' => array( |
24 | - 'page' => '0', |
|
25 | - 'news' => '0', |
|
26 | - 'profile' => '0', |
|
27 | - 'forum' => '0', |
|
28 | - 'panel' => '0', |
|
29 | - 'story' => '0', |
|
24 | + 'page' => '0', |
|
25 | + 'news' => '0', |
|
26 | + 'profile' => '0', |
|
27 | + 'forum' => '0', |
|
28 | + 'panel' => '0', |
|
29 | + 'story' => '0', |
|
30 | 30 | ), |
31 | 31 | 'field_bias' => array( |
32 | - 'bs_promote' => '0', |
|
33 | - 'bs_status' => '0', |
|
34 | - 'bs_sticky' => '0', |
|
35 | - 'bs_translate' => '0', |
|
36 | - 'bundle' => '0', |
|
37 | - 'bundle_name' => '0', |
|
38 | - 'content' => '1.0', |
|
39 | - 'ds_changed' => '0', |
|
40 | - 'ds_created' => '0', |
|
41 | - 'ds_last_comment_or_change' => '0', |
|
42 | - 'entity_id' => '0', |
|
43 | - 'entity_type' => '0', |
|
44 | - 'hash' => '0', |
|
45 | - 'id' => '0', |
|
46 | - 'is_tnid' => '0', |
|
47 | - 'is_uid' => '0', |
|
48 | - 'label' => '5.0', |
|
49 | - 'path' => '0', |
|
50 | - 'path_alias' => '0', |
|
51 | - 'site' => '0', |
|
52 | - 'sm_field_background' => '0', |
|
53 | - 'sm_field_country' => '0', |
|
54 | - 'sm_field_opinions' => '0', |
|
55 | - 'sm_field_url' => '0', |
|
56 | - 'sm_field_zip' => '0', |
|
57 | - 'sort_label' => '0', |
|
58 | - 'sort_language' => '0', |
|
59 | - 'sort_name' => '0', |
|
60 | - 'sort_name_formatted' => '0', |
|
61 | - 'spell' => '0', |
|
62 | - 'ss_language' => '0', |
|
63 | - 'ss_name' => '0', |
|
64 | - 'ss_name_formatted' => '0', |
|
65 | - 'tags_a' => '0', |
|
66 | - 'tags_h1' => '5.0', |
|
67 | - 'tags_h2_h3' => '3.0', |
|
68 | - 'tags_h4_h5_h6' => '2.0', |
|
69 | - 'tags_inline' => '1.0', |
|
70 | - 'taxonomy_names' => '2.0', |
|
71 | - 'timestamp' => '0', |
|
72 | - 'tos_content_extra' => '0.1', |
|
73 | - 'tos_name' => '3.0', |
|
74 | - 'tos_name_formatted' => '0', |
|
75 | - 'ts_comments' => '0.5', |
|
76 | - 'url' => '0', |
|
32 | + 'bs_promote' => '0', |
|
33 | + 'bs_status' => '0', |
|
34 | + 'bs_sticky' => '0', |
|
35 | + 'bs_translate' => '0', |
|
36 | + 'bundle' => '0', |
|
37 | + 'bundle_name' => '0', |
|
38 | + 'content' => '1.0', |
|
39 | + 'ds_changed' => '0', |
|
40 | + 'ds_created' => '0', |
|
41 | + 'ds_last_comment_or_change' => '0', |
|
42 | + 'entity_id' => '0', |
|
43 | + 'entity_type' => '0', |
|
44 | + 'hash' => '0', |
|
45 | + 'id' => '0', |
|
46 | + 'is_tnid' => '0', |
|
47 | + 'is_uid' => '0', |
|
48 | + 'label' => '5.0', |
|
49 | + 'path' => '0', |
|
50 | + 'path_alias' => '0', |
|
51 | + 'site' => '0', |
|
52 | + 'sm_field_background' => '0', |
|
53 | + 'sm_field_country' => '0', |
|
54 | + 'sm_field_opinions' => '0', |
|
55 | + 'sm_field_url' => '0', |
|
56 | + 'sm_field_zip' => '0', |
|
57 | + 'sort_label' => '0', |
|
58 | + 'sort_language' => '0', |
|
59 | + 'sort_name' => '0', |
|
60 | + 'sort_name_formatted' => '0', |
|
61 | + 'spell' => '0', |
|
62 | + 'ss_language' => '0', |
|
63 | + 'ss_name' => '0', |
|
64 | + 'ss_name_formatted' => '0', |
|
65 | + 'tags_a' => '0', |
|
66 | + 'tags_h1' => '5.0', |
|
67 | + 'tags_h2_h3' => '3.0', |
|
68 | + 'tags_h4_h5_h6' => '2.0', |
|
69 | + 'tags_inline' => '1.0', |
|
70 | + 'taxonomy_names' => '2.0', |
|
71 | + 'timestamp' => '0', |
|
72 | + 'tos_content_extra' => '0.1', |
|
73 | + 'tos_name' => '3.0', |
|
74 | + 'tos_name_formatted' => '0', |
|
75 | + 'ts_comments' => '0.5', |
|
76 | + 'url' => '0', |
|
77 | 77 | ), |
78 | - ); |
|
79 | - $environment->index_bundles = array( |
|
78 | + ); |
|
79 | + $environment->index_bundles = array( |
|
80 | 80 | 'node' => array( |
81 | - 0 => 'forum', |
|
82 | - 1 => 'news', |
|
83 | - 2 => 'page', |
|
84 | - 3 => 'panel', |
|
85 | - 4 => 'profile', |
|
86 | - 5 => 'story', |
|
87 | - 6 => 'team', |
|
81 | + 0 => 'forum', |
|
82 | + 1 => 'news', |
|
83 | + 2 => 'page', |
|
84 | + 3 => 'panel', |
|
85 | + 4 => 'profile', |
|
86 | + 5 => 'story', |
|
87 | + 6 => 'team', |
|
88 | 88 | ), |
89 | - ); |
|
90 | - $export['solr'] = $environment; |
|
89 | + ); |
|
90 | + $export['solr'] = $environment; |
|
91 | 91 | |
92 | - return $export; |
|
92 | + return $export; |
|
93 | 93 | } |
@@ -4,20 +4,20 @@ |
||
4 | 4 | * Implementation of hook_strongarm(). |
5 | 5 | */ |
6 | 6 | function boinc_solr_search_strongarm() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $strongarm = new stdClass; |
|
10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
11 | - $strongarm->api_version = 1; |
|
12 | - $strongarm->name = 'boinc_solr_comments_nodetypes'; |
|
13 | - $strongarm->value = array( |
|
9 | + $strongarm = new stdClass; |
|
10 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
11 | + $strongarm->api_version = 1; |
|
12 | + $strongarm->name = 'boinc_solr_comments_nodetypes'; |
|
13 | + $strongarm->value = array( |
|
14 | 14 | 'forum' => 'forum', |
15 | 15 | 'news' => 'news', |
16 | 16 | 'page' => 'page', |
17 | 17 | 'story' => 'story', |
18 | 18 | 'team_forum' => 'team_forum', |
19 | - ); |
|
20 | - $export['boinc_solr_comments_nodetypes'] = $strongarm; |
|
19 | + ); |
|
20 | + $export['boinc_solr_comments_nodetypes'] = $strongarm; |
|
21 | 21 | |
22 | - return $export; |
|
22 | + return $export; |
|
23 | 23 | } |
@@ -4,8 +4,8 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function boinc_solr_search_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "strongarm" && $api == "strongarm") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "strongarm" && $api == "strongarm") { |
|
9 | 9 | return array("version" => 1); |
10 | - } |
|
10 | + } |
|
11 | 11 | } |
@@ -4,31 +4,31 @@ |
||
4 | 4 | * Implementation of hook_role_export_defaults(). |
5 | 5 | */ |
6 | 6 | function boinc_standard_role_export_defaults() { |
7 | - $roles = array(); |
|
7 | + $roles = array(); |
|
8 | 8 | |
9 | - $roles['administrator'] = array( |
|
9 | + $roles['administrator'] = array( |
|
10 | 10 | 'rid' => '3519698132', |
11 | 11 | 'name' => 'administrator', |
12 | 12 | 'machine_name' => 'administrator', |
13 | - ); |
|
13 | + ); |
|
14 | 14 | |
15 | - $roles['community_member'] = array( |
|
15 | + $roles['community_member'] = array( |
|
16 | 16 | 'rid' => '1110965548', |
17 | 17 | 'name' => 'community member', |
18 | 18 | 'machine_name' => 'community_member', |
19 | - ); |
|
19 | + ); |
|
20 | 20 | |
21 | - $roles['content_editor'] = array( |
|
21 | + $roles['content_editor'] = array( |
|
22 | 22 | 'rid' => '2938987599', |
23 | 23 | 'name' => 'content editor', |
24 | 24 | 'machine_name' => 'content_editor', |
25 | - ); |
|
25 | + ); |
|
26 | 26 | |
27 | - $roles['verified_contributor'] = array( |
|
27 | + $roles['verified_contributor'] = array( |
|
28 | 28 | 'rid' => '933038561', |
29 | 29 | 'name' => 'verified contributor', |
30 | 30 | 'machine_name' => 'verified_contributor', |
31 | - ); |
|
31 | + ); |
|
32 | 32 | |
33 | - return $roles; |
|
33 | + return $roles; |
|
34 | 34 | } |