You are here

public function CourseObjectSignup::create in Course 7

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

Create a node and set it as this course object's node.

Parameters

stdClass $node: A node to be processed for creation, or none to create a generic node. If a node is provided, it must have at least a type.

Overrides CourseObjectNode::create

File

modules/course_signup/course_signup.classes.inc, line 12

Class

CourseObjectSignup

Code

public function create($node = NULL) {
  if (!$this
    ->getOption('instance')) {
    $this
      ->setOption('instance', $this
      ->getCourseNid());
  }
}