function CourseObjectQuiz::thaw in Course 6
Same name and namespace in other branches
- 7 modules/course_quiz/course_quiz.classes.inc \CourseObjectQuiz::thaw()
Exception for quiz: we need to set auto_created.
Overrides CourseObjectNode::thaw
File
- modules/
course_quiz/ course_quiz.classes.inc, line 138
Class
Code
function thaw($ice) {
$this->node = $ice->node;
unset($this->node->nid);
$this->node->auto_created = TRUE;
node_save($this->node);
return $this->node->nid;
}