You are here

function CourseObjectContent::optionsDefinition in Course 7

Same name and namespace in other branches
  1. 6 modules/course_content/course_content.classes.inc \CourseObjectContent::optionsDefinition()
  2. 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

CourseObjectContent

Code

function optionsDefinition() {
  $options = parent::optionsDefinition();
  $options['node_type'] = $this->object_type;
  return $options;
}