- Patch #810176 by Jeff Burnz: updated documentation.
parent
cad09751c8
commit
8a491f2dda
|
@ -218,7 +218,7 @@ function hook_search_execute($keys = NULL) {
|
|||
* its search results, which is otherwise themed using theme('search_results').
|
||||
*
|
||||
* Note that by default, theme('search_results') and theme('search_result')
|
||||
* work together to create a definition list (DL). So your hook_search_page()
|
||||
* work together to create an ordered list (OL). So your hook_search_page()
|
||||
* implementation should probably do this as well.
|
||||
*
|
||||
* @see search-result.tpl.php, search-results.tpl.php
|
||||
|
@ -231,12 +231,12 @@ function hook_search_execute($keys = NULL) {
|
|||
* a pager included.
|
||||
*/
|
||||
function hook_search_page($results) {
|
||||
$output = '<dl class="search-results">';
|
||||
$output = '<ol class="search-results">';
|
||||
|
||||
foreach ($results as $entry) {
|
||||
$output .= theme('search_result', $entry, $type);
|
||||
}
|
||||
$output .= '</dl>';
|
||||
$output .= '</ol>';
|
||||
$output .= theme('pager', NULL);
|
||||
|
||||
return $output;
|
||||
|
|
Loading…
Reference in New Issue