You are here

function template_preprocess_gss_results in Google Site Search 6

Same name and namespace in other branches
  1. 7 gss.theme.inc \template_preprocess_gss_results()

Process variables for gss-results.tpl.php.

The $variables array contains the following arguments:

See also

gss-results.tpl.php

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);
  }
}