function answers_comment in Answers 5.2
File
- ./
answers.module, line 238 - Enables the creation of question nodes that can be answered by posting answer nodes.
Code
function answers_comment($comment, $op) {
if ($op == 'insert' || $op == 'update' && $comment->status == 1) {
$nid = $comment['nid'];
$cid = $comment['cid'];
$questnode = node_load($nid);
if ($questnode->notifyme) {
answers_notify($node->questid, $questnode->title, 'comment');
}
}
}