Created
May 24, 2010 23:37
-
-
Save SupermanScott/412567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/html/sites/all/modules/contrib/notifications/notifications_content/notifications_content.module b/html/sites/all/modules/contrib/notifications/notifications_content | |
index de05eb9..e822396 100644 | |
--- a/html/sites/all/modules/contrib/notifications/notifications_content/notifications_content.module | |
+++ b/html/sites/all/modules/contrib/notifications/notifications_content/notifications_content.module | |
@@ -727,7 +727,7 @@ function notifications_content_comment($comment, $op) { | |
// $comment can be an object or an array. | |
$comment = (object)$comment; | |
- if ($op == 'publish' && empty($comment->notifications_content_disable) && notifications_event_enabled('node-comment') && | |
+ if ($op == 'insert' && empty($comment->notifications_content_disable) && notifications_event_enabled('node-comment') && | |
(!isset($comment->notifications_comment_status) || !empty($comment->notifications_comment_status)) ) { | |
// Check that the node is published and comment notifications are enabled for this node type | |
$node = node_load($comment->nid); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment