yellow_search_page($results, $type = 'yellow')
yellow/yellow.module, line 178
Implemetation of hook_search_page
function yellow_search_page($results, $type = 'yellow') {
$count = array_shift($results);
$start = array_shift($results);
$stop = array_shift($results);
if ($stop > $count) {
$stop = $count;
}
$data = $results;
foreach ($data as $item) {
$listings .= yellow_search_item($item);
}
$output = t('<p>Showing matches %start to %stop of %count.</p>', array('%start' => $start, '%stop' => $stop, '%count' => $count));
$output .= '<ol start="' . $start . '">';
$output .= $listings;
$output .= '</ol>';
$output .= yellow_get_pager($count, $element);
return $output;
}