You are here

function gss_page_build in Google Site Search 7

Implements hook_page_build().

File

./gss.module, line 222
GSS module file.

Code

function gss_page_build(&$page) {
  $autocomplete = variable_get('gss_autocomplete', FALSE);
  if ($autocomplete) {
    $settings['gss']['key'] = variable_get('gss_api_key', '');
    drupal_add_js($settings, 'setting');
    drupal_add_library('system', 'ui.autocomplete');
    drupal_add_js(drupal_get_path('module', 'gss') . '/scripts/autocomplete.js');
  }
}