You are here

function template_preprocess_google_appliance_synonym in Google Search Appliance 7

Preprocess a single synonym.

File

theme/google_appliance.theme.inc, line 391
theme registry and preprocess functions for the default templates

Code

function template_preprocess_google_appliance_synonym(&$vars) {
  $settings = _google_appliance_get_settings();
  $description = filter_xss($vars['description'], array(
    'b',
    'strong',
  ));
  $url = check_url($settings['drupal_path'] . '/' . $vars['url']);
  $vars['link'] = l($description, $url, array(
    'attributes' => array(
      'class' => array(
        'synonym-description',
      ),
    ),
  ));
}