You are here

public function CourseObject::optionsDefinition in Course 6

Same name and namespace in other branches
  1. 7.2 includes/CourseObject.inc \CourseObject::optionsDefinition()
  2. 7 includes/CourseObject.inc \CourseObject::optionsDefinition()

Define configuration elements and their defaults.

Extended classes should call parent::optionsDefinition first to get the parent's configuration.

Overrides CourseHandler::optionsDefinition

3 calls to CourseObject::optionsDefinition()
CourseObjectCertificate::optionsDefinition in modules/course_certificate/course_certificate.classes.inc
Define configuration elements and their defaults.
CourseObjectManual::optionsDefinition in modules/course_object_manual/course_object_manual.classes.inc
Define configuration elements and their defaults.
CourseObjectNode::optionsDefinition in includes/course_object.core.inc
Define configuration elements and their defaults.
3 methods override CourseObject::optionsDefinition()
CourseObjectCertificate::optionsDefinition in modules/course_certificate/course_certificate.classes.inc
Define configuration elements and their defaults.
CourseObjectManual::optionsDefinition in modules/course_object_manual/course_object_manual.classes.inc
Define configuration elements and their defaults.
CourseObjectNode::optionsDefinition in includes/course_object.core.inc
Define configuration elements and their defaults.

File

includes/course_object.core.inc, line 213

Class

CourseObject
Parent abstract base class of all course objects.

Code

public function optionsDefinition() {
  $defaults = parent::optionsDefinition();
  $defaults += array(
    'uniqid' => NULL,
    'nid' => NULL,
    'title' => NULL,
    'enabled' => 1,
    'hidden' => 0,
    'required' => 1,
    'delete' => 0,
    'delete_instance' => 0,
    'grade_include' => 0,
    'instance' => NULL,
  );
  return $defaults;
}