You are here

function ds_search_apachesolr_search_page_alter in Display Suite 7.2

Implements hook_apachesolr_search_page_alter(&$build, $search_page).

File

modules/ds_search/ds_search.module, line 758
Display Suite search.

Code

function ds_search_apachesolr_search_page_alter(&$build, $search_page) {
  if (!empty($build['search_results']['#results'])) {
    $results = ds_search_process_results($build['search_results']['#results']);
    $build['search_results'] = ds_search_search_page($results);
  }
}