You are here

function answers_answer_question in Answers 7.4

Return the question to which an answer responds.

Parameters

object $answer: Either an answer node or an answer nid.

5 calls to answers_answer_question()
answers_best_answer_flag in answers_best_answer/answers_best_answer.module
Implements hook_flag().
answers_best_answer_flag_access in answers_best_answer/answers_best_answer.module
Implements hook_flag_access().
answers_best_answer_flag_flag in answers_best_answer/answers_best_answer.module
Implements hook_flag_flag().
answers_best_answer_flag_unflag in answers_best_answer/answers_best_answer.module
Implements hook_flag_unflag().
answers_notifications_new_answer_notify in answers_notifications/answers_notifications.module
Notifies all question subscribers if new answer is posted.

File

./answers.module, line 466
The Answers module.

Code

function answers_answer_question($answer) {
  return entity_metadata_wrapper('node', $answer)->answers_related_question
    ->value();
}