You are here

public function CourseObjectBook::overrideOutlineListItem in Course 6

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

Overrides a course outline list item.

Overrides CourseObject::overrideOutlineListItem

File

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

Class

CourseObjectBook

Code

public function overrideOutlineListItem(&$item) {

  // Check that course list outline handler is selected.
  if ($this
    ->getCourse()
    ->getNode()->course['outline'] == 'course') {
    $type = $this
      ->getOption('outline_list_item_type');

    // Override the list item by reference.
    course_book_override_outline_list_item($item, $this, $type);
  }
}