public function QuizfileuploadResponse::getReportFormValidate in Quiz File Upload 7.4
Implements getReportFormValidate().
See also
QuizQuestionResponse#getReportFormValidate($showfeedback, $showpoints, $allow_scoring)
File
- ./
quizfileupload.classes.inc, line 439 - The main classes for the quizfileupload question type.
Class
- QuizfileuploadResponse
- Extension of QuizQuestionResponse
Code
public function getReportFormValidate($showfeedback = TRUE, $showpoints = TRUE, $allow_scoring = FALSE) {
$node = node_load($this->question->nid);
if (isset($node->correct_answer_evaluation)) {
if (quiz_access_to_score() && $allow_scoring && $node->correct_answer_evaluation == 1) {
return $allow_scoring ? 'quizfileupload_report_validate' : FALSE;
}
}
return FALSE;
}