Process variables for search-results.tpl.php.
The $variables array contains the following arguments:
function template_preprocess_search_results(&$variables) {
$variables['search_results'] = '';
if (!empty($variables['module'])) {
$variables['module'] = check_plain($variables['module']);
}
foreach ($variables['results'] as $result) {
$variables['search_results'] .= theme('search_result', array(
'result' => $result,
'module' => $variables['module'],
));
}
$variables['pager'] = theme('pager', array(
'tags' => NULL,
));
$variables['theme_hook_suggestions'][] = 'search_results__' . $variables['module'];
}