You are here

public function CourseObjectBook::create in Course 7

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

Make the book.

Overrides CourseObjectNode::create

File

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

Class

CourseObjectBook

Code

public function create($node = NULL) {
  $node = new stdClass();
  $node->type = $this
    ->getOption('node_type');
  $node->book['bid'] = 'new';
  $node->book['mlid'] = NULL;
  parent::create($node);
}