You are here

function location_search_search_page in Location 7.5

Same name and namespace in other branches
  1. 7.3 contrib/location_search/location_search.module \location_search_search_page()

Implements hook_search_page().

File

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

Code

function location_search_search_page($results) {
  $output['prefix']['#markup'] = '<ol class="search-results">';
  foreach ($results as $entry) {
    $output[] = array(
      '#theme' => 'search_result_location',
      '#result' => $entry,
      '#module' => 'location',
    );
  }
  $output['suffix']['#markup'] = '</ol>' . theme('pager');
  return $output;
}