public function CourseObjectBook::freeze in Course 7.2
Same name and namespace in other branches
- 7 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
Code
public function freeze() {
$ice = parent::freeze();
unset($ice->node->book['bid']);
return $ice;
}