You are here

function google_cse_init in Google Custom Search Engine 6

Same name and namespace in other branches
  1. 7.3 google_cse.module \google_cse_init()
  2. 7 google_cse.module \google_cse_init()
  3. 7.2 google_cse.module \google_cse_init()

Implementation of hook_init().

File

./google_cse.module, line 194
Display a Google Custom Search Engine on your site.

Code

function google_cse_init() {
  global $language;
  drupal_add_css(drupal_get_path('module', 'google_cse') . '/google_cse.css');
  drupal_add_js(array(
    'googleCSE' => array(
      'language' => $language->language,
    ),
  ), 'setting', 'footer');
  drupal_add_js(drupal_get_path('module', 'google_cse') . '/google_cse.js', 'module', 'footer');
}