function notifications_content_comment_action in Notifications 7
Trigger comment notifications.
2 string references to 'notifications_content_comment_action'
- notifications_content_install in notifications_content/
notifications_content.install - Implementation of hook_install().
- notifications_content_notifications in notifications_content/
notifications_content.module - Implementation of hook_notifications()
File
- notifications_content/
notifications_content.module, line 584 - Subscriptions to content events
Code
function notifications_content_comment_action($node, $context = array()) {
$comment = $context['comment'];
// Just for new comments that are published and updated comments that change status.
if (!empty($comment->status) && empty($comment->notifications_content_disable)) {
$node = node_load($comment->nid);
notifications_content_node_event('comment', $node)
->add_object('comment', $comment)
->trigger();
}
}