private function ChoiceQuestion::saveUserSettings in Quiz 6.6
1 call to ChoiceQuestion::saveUserSettings()
- ChoiceQuestion::save in question_types/
choice/ choice.classes.inc - Implementation of save
File
- question_types/
choice/ choice.classes.inc, line 537 - The main classes for the choice question type.
Class
- ChoiceQuestion
- Implementation of QuizQuestion.
Code
private function saveUserSettings() {
global $user;
$sql = 'REPLACE INTO {quiz_choice_user_settings}
(uid, last_nid, last_vid)
VALUES (%d, %d, %d)';
db_query($sql, $user->uid, $this->node->nid, $this->node->vid);
}