You are here

public function CourseObject::optionsDefinition in Course 7

Same name and namespace in other branches
  1. 6 includes/course_object.core.inc \CourseObject::optionsDefinition()
  2. 7.2 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

4 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/CourseObjectNode.inc
Define configuration elements and their defaults.
CourseObjectTest::optionsDefinition in tests/course_test/course_test.classes.inc
Define configuration elements and their defaults.
4 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/CourseObjectNode.inc
Define configuration elements and their defaults.
CourseObjectTest::optionsDefinition in tests/course_test/course_test.classes.inc
Define configuration elements and their defaults.

File

includes/CourseObject.inc, line 184

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,
    'skippable' => 0,
    'delete' => 0,
    'delete_instance' => 0,
    'grade_include' => 0,
    'instance' => NULL,
    'data' => '',
    'plugins' => array(),
  );
  return $defaults;
}