You are here

function CourseObjectNode::thaw in Course 6

Same name and namespace in other branches
  1. 7.2 includes/CourseObjectNode.inc \CourseObjectNode::thaw()
  2. 7 includes/CourseObjectNode.inc \CourseObjectNode::thaw()

Thaw data frozen from an earlier export/clone.

Parameters

array $data: Unfrozen data.

Return value

int The new instance ID.

Overrides CourseObject::thaw

3 methods override CourseObjectNode::thaw()
CourseObjectQuiz::thaw in modules/course_quiz/course_quiz.classes.inc
Exception for quiz: we need to set auto_created.
CourseObjectSignup::thaw in modules/course_signup/course_signup.classes.inc
Thaw data frozen from an earlier export/clone.
CourseObjectUbercart::thaw in modules/course_uc/course_uc.classes.inc
Thaw data frozen from an earlier export/clone.

File

includes/course_object.core.inc, line 1320

Class

CourseObjectNode
A course object that uses a node as a base.

Code

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