You are here

public function ScaleResponse::delete in Quiz 7

Same name and namespace in other branches
  1. 8.6 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::delete()
  2. 8.5 question_types/quiz_scale/src/Plugin/quiz/QuizQuestion/ScaleResponse.php \ScaleResponse::delete()
  3. 6.6 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  4. 6.4 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  5. 7.6 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  6. 7.4 question_types/scale/scale.classes.inc \ScaleResponse::delete()
  7. 7.5 question_types/scale/scale.classes.inc \ScaleResponse::delete()

Implementation of delete

Overrides QuizQuestionResponse::delete

See also

QuizQuestionResponse#delete()

File

question_types/scale/scale.classes.inc, line 595
The main classes for the scale question type.

Class

ScaleResponse
Extension of QuizQuestionResponse

Code

public function delete() {
  db_delete('quiz_scale_user_answers')
    ->condition('result_id', $this->rid)
    ->condition('question_nid', $this->question->nid)
    ->condition('question_vid', $this->question->vid)
    ->execute();
}