function template_preprocess_google_appliance_onebox_result in Google Search Appliance 7
Preprocess a single Onebox result.
File
- theme/
google_appliance.theme.inc, line 420 - theme registry and preprocess functions for the default templates
Code
function template_preprocess_google_appliance_onebox_result(&$vars) {
// Combine <U> and <Title> to build a linked title.
$title_linked = empty($vars['result']['title']) ? '' : $vars['result']['title'];
$title_linked = empty($vars['result']['abs_url']) ? $title_linked : l($title_linked, $vars['result']['abs_url']);
// Provide top-level variables for this onebox result.
$vars['abs_url'] = $vars['result']['abs_url'];
$vars['title'] = $vars['result']['title'];
$vars['title_linked'] = $title_linked;
$vars['fields'] = $vars['result']['fields'];
}