You are here

public function LongAnswerResponse::isValid in OG Quiz 7

Implementation of isValid

Overrides QuizQuestionResponse::isValid

See also

QuizQuestionResponse#isValid()

File

includes/og_long_answer.php, line 281
Long answer classes.

Class

LongAnswerResponse
Extension of QuizQuestionResponse

Code

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