You are here

function popup_init in Popup 6.x

Same name and namespace in other branches
  1. 7 popup.module \popup_init()
  2. 7.x popup.module \popup_init()

Implementation of hook_init

Adds popup Script, settings and Style

File

./popup.module, line 11

Code

function popup_init() {
  $path = drupal_get_path('module', 'popup');
  drupal_add_css($path . '/popup.css');
  drupal_add_js($path . '/popup.js');
  $effects = module_invoke_all('popup_effects');
  drupal_add_js(array(
    'popup' => array(
      'effects' => $effects,
      'linger' => variable_get('popup-hover-linger', 250),
    ),
  ), 'setting');
}