You are here

function CourseObjectQuiz::thaw in Course 7

Same name and namespace in other branches
  1. 6 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 177

Class

CourseObjectQuiz

Code

function thaw($ice) {
  $this->node = $ice->node;
  unset($this->node->nid);
  unset($this->node->vid);
  $this->node->auto_created = TRUE;
  node_save($this->node);
  return $this->node->nid;
}