You are here

function template_preprocess_gss_results in Google Site Search 7

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

Process variables for gss-results.tpl.php.

See also

gss-results.tpl.php

File

./gss.theme.inc, line 68
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']);
  $variables['search_results'] = '';
  foreach ($results as $entry) {
    $variables['search_results'] .= theme('gss_result', array(
      'result' => $entry,
    ));
  }
}