You are here

public function CourseObjectUbercart::create in Course 8.3

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

Don't create new products.

File

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

Class

CourseObjectUbercart

Code

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