function search_extra_type_search_page

Implements hook_search_page().

Adds some text to the search page so we can verify that it runs.

File

drupal/modules/search/tests/search_extra_type.module, line 56
Dummy module implementing a search type for search module testing.

Code

function search_extra_type_search_page($results) {
  $output['prefix']['#markup'] = '<h2>Test page text is here</h2> <ol class="search-results">';
  foreach ($results as $entry) {
    $output[] = array(
      '#theme' => 'search_result',
      '#result' => $entry,
      '#module' => 'search_extra_type',
    );
  }
  $output['suffix']['#markup'] = '</ol>' . theme('pager');
  return $output;
}