function template_preprocess_google_appliance_search_stats in Google Search Appliance 7
Preprocess google-appliance-search-stats.tpl.php.
File
- theme/
google_appliance.theme.inc, line 580 - theme registry and preprocess functions for the default templates
Code
function template_preprocess_google_appliance_search_stats(&$vars) {
$vars['stat_entries'] = array(
'@first' => $vars['response_data']['last_result'] - count($vars['response_data']['entry']) + 1,
'@last' => $vars['response_data']['last_result'],
'%query' => urldecode($vars['search_query_data']['gsa_query_params']['urlencoded_q']),
'@total' => $vars['response_data']['total_results'],
);
// render
}