You are here

function answers_notify_new_answer in Answers 7.3

Same name and namespace in other branches
  1. 6.2 includes/answers.notify.inc \answers_notify_new_answer()
  2. 7 includes/answers.notify.inc \answers_notify_new_answer()
  3. 7.2 includes/answers.notify.inc \answers_notify_new_answer()

If configured to, notify question author of an answer.

Parameters

object $question: Numeric node NID of question.

1 call to answers_notify_new_answer()
_answers_notify_node_insert in includes/answers.notify.inc
Pseudo implementation of hook_node_insert().

File

includes/answers.notify.inc, line 30

Code

function answers_notify_new_answer($question) {
  $notify_p = answers_field_get_value($question, 'field_notify_p');
  if ($notify_p) {
    answers_notify('answers', $question, 'new_answer');
  }
}