public function TrueFalseQuestion::load in Quiz 6.6
Same name and namespace in other branches
- 6.3 question_types/quiz_question/quiz_question.truefalse.inc \TrueFalseQuestion::load()
- 6.5 question_types/quiz_question/quiz_question.truefalse.inc \TrueFalseQuestion::load()
Retrieve information about the question and add it to the node.
Overrides QuizQuestion::load
File
- question_types/
truefalse/ truefalse.classes.inc, line 60 - Defines the classes necessary for a True/False quiz.
Class
- TrueFalseQuestion
- Implementation of QuizQuestion.
Code
public function load() {
$sql = 'SELECT correct_answer, feedback FROM {quiz_truefalse_node} WHERE nid = %d AND vid = %d';
$result = db_fetch_object(db_query($sql, $this->node->nid, $this->node->vid));
return $result;
}