function CourseObjectContent::optionsDefinition in Course 7
Same name and namespace in other branches
- 6 modules/course_content/course_content.classes.inc \CourseObjectContent::optionsDefinition()
- 7.2 modules/course_content/course_content.classes.inc \CourseObjectContent::optionsDefinition()
If course object is saved without configuration, make sure we have a default node type.
Overrides CourseObjectNode::optionsDefinition
File
- modules/
course_content/ course_content.classes.inc, line 24
Class
Code
function optionsDefinition() {
$options = parent::optionsDefinition();
$options['node_type'] = $this->object_type;
return $options;
}