You are here

function theme_answers_content in Answers 5.2

1 theme call to theme_answers_content()
answers_view in ./answers.module

File

./answers.module, line 514
Enables the creation of question nodes that can be answered by posting answer nodes.

Code

function theme_answers_content($node, $teaser = FALSE) {
  if (!$teaser) {
    foreach ($node->answerlist as $type => $data) {
      $answers .= implode(' ', $data);
    }
    if ($answers) {
      $output = '<h3 class="title">Posted Answers</h3>';
      $output .= '<div class="answers" style="margin: 18px;margin-top: 8px;">' . $answers . '</div>';
    }
    else {
      $output .= '<span class="title">No answers posted yet</span>';
    }
  }
  $output .= $node->answer_buttons;
  return $output;
}