You are here

function nodejs_notify_init in Node.js integration 7

Same name and namespace in other branches
  1. 6 nodejs_notify/nodejs_notify.module \nodejs_notify_init()

Implements hook_init().

File

nodejs_notify/nodejs_notify.module, line 6

Code

function nodejs_notify_init() {
  drupal_add_css(drupal_get_path('module', 'nodejs_notify') . '/libraries/jgrowl/jquery.jgrowl.css');
  drupal_add_js(drupal_get_path('module', 'nodejs_notify') . '/libraries/jgrowl/jquery.jgrowl.js');
  drupal_add_js(array(
    'nodejs_notify' => array(
      'notification_time' => variable_get('nodejs_notify_notification_lifetime_seconds', 3),
    ),
  ), 'setting');
}