You are here

function CourseObjectNode::freeze in Course 7

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

1 call to CourseObjectNode::freeze()
CourseObjectBook::freeze in modules/course_book/course_book.classes.inc
Override of CourseObjectNode::freeze().
3 methods override CourseObjectNode::freeze()
CourseObjectBook::freeze in modules/course_book/course_book.classes.inc
Override of CourseObjectNode::freeze().
CourseObjectSignup::freeze in modules/course_signup/course_signup.classes.inc
Freeze data to persist over cloning/exporting.
CourseObjectUbercart::freeze in modules/course_uc/course_uc.classes.inc
Freeze data to persist over cloning/exporting.

File

includes/CourseObjectNode.inc, line 362

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;
  }
}