You are here

public function TrueFalseResponse::isValid in Quiz 7.4

Same name and namespace in other branches
  1. 6.4 question_types/truefalse/truefalse.classes.inc \TrueFalseResponse::isValid()
  2. 7 question_types/truefalse/truefalse.classes.inc \TrueFalseResponse::isValid()

Implementation of isValid

Overrides QuizQuestionResponse::isValid

See also

QuizQuestionResponse#isValid()

File

question_types/truefalse/truefalse.classes.inc, line 241
Defines the classes necessary for a True/False quiz.

Class

TrueFalseResponse
Extension of QuizQuestionResponse

Code

public function isValid() {
  return $this->answer === NULL ? t('You must provide an answer') : TRUE;
}