function template_preprocess_gss_results in Google Site Search 6
Same name and namespace in other branches
- 7 gss.theme.inc \template_preprocess_gss_results()
Process variables for gss-results.tpl.php.
The $variables array contains the following arguments:
See also
File
- ./
gss.theme.inc, line 36 - Themeable functions for Google Site Search.
Code
function template_preprocess_gss_results(&$variables) {
$results = $variables['results'];
$variables['head'] = $results['head'];
unset($results['head']);
$variables['pager'] = $results['pager'];
unset($results['pager']);
foreach ($results as $entry) {
$variables['search_results'] .= theme('gss_result', $entry);
}
}