You are here

public function CourseObjectUbercart::create in Course 7

Same name and namespace in other branches
  1. 8.3 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()
  2. 8.2 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()
  3. 6 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()
  4. 7.2 modules/course_uc/course_uc.classes.inc \CourseObjectUbercart::create()

Don't create new products.

Overrides CourseObjectNode::create

File

modules/course_uc/course_uc.classes.inc, line 66

Class

CourseObjectUbercart

Code

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