function google_cse_init in Google Custom Search Engine 6
Same name and namespace in other branches
- 7.3 google_cse.module \google_cse_init()
 - 7 google_cse.module \google_cse_init()
 - 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');
}