--- search.module-47b4 2006-03-23 15:56:26.000000000 +0100 +++ search.module 2006-03-27 14:14:03.000000000 +0200 @@ -1011,6 +1011,7 @@ function search_form($action = '', $keys */ function search_data($keys = NULL, $type = 'node') { $output = ''; + global $pager_page_array, $pager_total, $pager_total_items; if (isset($keys)) { if (module_hook($type, 'search')) { @@ -1021,6 +1022,11 @@ function search_data($keys = NULL, $type $output .= theme('search_item', $entry, $type); } $output .= ''; + $searchsummary = t('%total results found for %keys', array('%total' => $pager_total_items[0], '%keys' => $keys)); + if ($pager_total[0] > 1) { + $searchsummary .= t(', showing page %page of %totalpages', array('%page' => $pager_page_array[0] + 1, '%totalpages' => $pager_total[0])); + } + $output = $searchsummary . $output; $output .= theme('pager', NULL, 15, 0); } }