You are here

public function CourseObjectBook::freeze in Course 7

Same name and namespace in other branches
  1. 7.2 modules/course_book/course_book.classes.inc \CourseObjectBook::freeze()

Override of CourseObjectNode::freeze().

Do not freeze the parent book ID.

course_book_node_insert() stumbles if this is set and we are cloning a book.

Overrides CourseObjectNode::freeze

File

modules/course_book/course_book.classes.inc, line 173

Class

CourseObjectBook

Code

public function freeze() {
  $ice = parent::freeze();
  unset($ice->node->book['bid']);
  return $ice;
}