You are here

function CourseObjectNode::freeze in Course 6

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

Freeze data to persist over cloning/exporting.

Return value

array An array of data to be frozen.

Overrides CourseObject::freeze

File

includes/course_object.core.inc, line 1302

Class

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

Code

function freeze() {
  if ($this->node->nid != $this
    ->getCourse()
    ->getNode()->nid) {

    // Don't freeze the course, if this course is part of the objects.
    $ice = new stdClass();
    $ice->node = $this->node;
    return $ice;
  }
}