You are here

function CourseObjectBook::optionsDefinition in Course 6

Same name and namespace in other branches
  1. 7.2 modules/course_book/course_book.classes.inc \CourseObjectBook::optionsDefinition()
  2. 7 modules/course_book/course_book.classes.inc \CourseObjectBook::optionsDefinition()

Define configuration elements and their defaults.

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

Overrides CourseObjectNode::optionsDefinition

1 call to CourseObjectBook::optionsDefinition()
CourseObjectBook::optionsForm in modules/course_book/course_book.classes.inc
Default options form for all course objects.

File

modules/course_book/course_book.classes.inc, line 22

Class

CourseObjectBook

Code

function optionsDefinition() {
  $defaults = parent::optionsDefinition();
  $defaults['book_tracking'] = 'all';
  $defaults['outline_list_item_type'] = 'active_tree';
  return $defaults;
}