You are here

function CourseObjectNode::thaw in Course 7

Same name and namespace in other branches
  1. 6 includes/course_object.core.inc \CourseObjectNode::thaw()
  2. 7.2 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/CourseObjectNode.inc, line 380

Class

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

Code

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