function template_preprocess_google_cse_results in Google Custom Search Engine 7.2
Same name and namespace in other branches
- 8.3 google_cse.theme.inc \template_preprocess_google_cse_results()
- 8.2 google_cse.theme.inc \template_preprocess_google_cse_results()
- 6 google_cse.theme.inc \template_preprocess_google_cse_results()
- 7.3 google_cse.theme.inc \template_preprocess_google_cse_results()
- 7 google_cse.theme.inc \template_preprocess_google_cse_results()
The search results page can be themed/customized.
File
- ./
google_cse.theme.inc, line 41 - Themeable functions for Google Custom Search Engine.
Code
function template_preprocess_google_cse_results(&$variables) {
$variables['results_searchbox_form'] = $variables['form'] ? drupal_get_form('google_cse_results_searchbox_form') : '';
$variables['cse_tag'] = google_cse_get_cse_tag();
$variables['noscript'] = t('You must enable JavaScript to view the search results.');
$variables['prefix'] = filter_xss_admin(variable_get('google_cse_results_prefix', ''));
$variables['suffix'] = filter_xss_admin(variable_get('google_cse_results_suffix', ''));
if (google_cse_validate_request()) {
drupal_add_js(drupal_get_path('module', 'google_cse') . '/google_cse_results.js', array(
'scope' => 'footer',
));
drupal_add_css('' . variable_get('google_cse_custom_css', '') . '', 'external');
}
}