protected function OpignoTincanQuestionTypeResponse::deleteRegistration in Opigno TinCan Question Type 7
This method deletes the registration from the database.
Parameters
int $result_id: The result ID linked to the registration to delete.
1 call to OpignoTincanQuestionTypeResponse::deleteRegistration()
- OpignoTincanQuestionTypeResponse::delete in includes/
opigno_tincan_question_type.response.inc - Delete the response.
File
- includes/
opigno_tincan_question_type.response.inc, line 191 - This file contains the class OpignoTincanQuestionTypeResponse.
Class
- OpignoTincanQuestionTypeResponse
- This class goal is to manage the user's answer(s).
Code
protected function deleteRegistration($result_id) {
db_delete(OpignoTincanQuestionTypeAnswersDatabase::NAME)
->condition('rid', $result_id)
->execute();
}