You are here

function template_preprocess_search_results_location in Location 7.4

Same name and namespace in other branches
  1. 5.3 contrib/location_search/location_search.module \template_preprocess_search_results_location()
  2. 6.3 contrib/location_search/location_search.module \template_preprocess_search_results_location()

File

contrib/location_search/location_search.module, line 361
Location search interface.

Code

function template_preprocess_search_results_location(&$variables) {
  $variables['search_results'] = '';
  foreach ($variables['results'] as $result) {
    $variables['search_results'] .= theme('search_result_location', $result, $variables['type']);
  }
  $variables['pager'] = theme('pager', NULL, 10, 0);

  // Provide alternate search results template.
  $variables['template_files'][] = 'search-results-' . $variables['type'];
}