You are here

function comment_notify_comment_insert in Comment Notify 8

Same name and namespace in other branches
  1. 7 comment_notify.module \comment_notify_comment_insert()

Implements hook_comment_insert().

File

./comment_notify.module, line 195
This module provides comment follow-up e-mail notifications.

Code

function comment_notify_comment_insert(CommentInterface $comment) {
  module_load_include('inc', 'comment_notify', 'comment_notify');

  // And send notifications - the real purpose of the module.
  if ($comment
    ->isPublished()) {
    _comment_notify_mailalert($comment);
  }
}