function CourseObjectBook::optionsDefinition in Course 7.2
Same name and namespace in other branches
- 6 modules/course_book/course_book.classes.inc \CourseObjectBook::optionsDefinition()
- 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
File
- modules/
course_book/ course_book.classes.inc, line 34
Class
Code
function optionsDefinition() {
$defaults = parent::optionsDefinition();
$defaults['node_type'] = variable_get('course_book_default_node_type', 'book');
$defaults['book_tracking'] = 'all';
$defaults['outline_list_item_type'] = 'active_tree';
return $defaults;
}