public function CourseObjectSignup::create in Course 6
Same name and namespace in other branches
- 7.2 modules/course_signup/course_signup.classes.inc \CourseObjectSignup::create()
- 7 modules/course_signup/course_signup.classes.inc \CourseObjectSignup::create()
Creates a course object.
For example, this would create the new node and return the node ID if this was a CourseObjectNode.
Do not confuse this with save(), which saves the course outline record for tracking.
Course objects should call setInstanceId() if this is a course object that creates external resources.
Overrides CourseObjectNode::create
File
- modules/
course_signup/ course_signup.classes.inc, line 12
Class
Code
public function create() {
if (!$this
->getOption('instance')) {
$this
->setOption('instance', $this
->getCourseNid());
}
}