Skip to content

Instantly share code, notes, and snippets.

@pvhee
Created June 11, 2015 14:15
Show Gist options
  • Save pvhee/51be4014729e8f312082 to your computer and use it in GitHub Desktop.
Save pvhee/51be4014729e8f312082 to your computer and use it in GitHub Desktop.
ds_search_core_search_isbe.patch
diff --git a/modules/ds_search/ds_search.module b/modules/ds_search/ds_search.module
index 7eb1731..f58e6a0 100644
--- a/modules/ds_search/ds_search.module
+++ b/modules/ds_search/ds_search.module
@@ -760,7 +760,7 @@ function ds_search_process_results($results) {
* Implements hook_apachesolr_search_page_alter(&$build, $search_page).
*/
function ds_search_apachesolr_search_page_alter(&$build, $search_page) {
- if (!empty($build['search_results']['#results'])) {
+ if ($search_page['page_id'] == 'core_search' && !empty($build['search_results']['#results'])) {
$results = ds_search_process_results($build['search_results']['#results']);
$build['search_results'] = ds_search_search_page($results);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment