function comment_notify_init in Comment Notify 7
Implements hook_init().
File
- ./
comment_notify.module, line 59 - This module provides comment follow-up e-mail notification for anonymous and registered users.
Code
function comment_notify_init() {
// Add on every page - they are both very small so it's better to add
// everywhere than force a second file on some pages.
$options = array(
'every_page' => TRUE,
);
$path = drupal_get_path('module', 'comment_notify');
drupal_add_css($path . '/comment_notify.css', $options);
// We only add the JS if more than one subscription mode is enabled.
$available_options = _comment_notify_options();
if (count($available_options) > 1) {
drupal_add_js($path . '/comment_notify.js', $options);
}
}