You are here

public function QuizfileuploadResponse::getReportFormSubmit in Quiz File Upload 7.4

Same name and namespace in other branches
  1. 7.5 quizfileupload.classes.inc \QuizfileuploadResponse::getReportFormSubmit()

Implements getReportFormSubmit().

See also

QuizQuestionResponse#getReportFormSubmit($showfeedback, $showpoints, $allow_scoring)

File

./quizfileupload.classes.inc, line 424
The main classes for the quizfileupload question type.

Class

QuizfileuploadResponse
Extension of QuizQuestionResponse

Code

public function getReportFormSubmit($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_submit' : FALSE;
    }
  }
  return FALSE;
}