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
-
modules/
search/ tests/ search_extra_type.module, line 56
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.