You are here

function answers_get_poster in Answers 5.2

File

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

Code

function answers_get_poster($node) {

  // print_r($node);
  if ($node->answeranon) {
    return theme('username', 0);

    //apply a thin veil to hide poster
  }
  else {
    return theme('username', user_load(array(
      'uid' => $node->uid,
    )));
  }
}