You are here

function _course_block_outline_view in Course 6

Same name and namespace in other branches
  1. 7.2 includes/course.block.inc \_course_block_outline_view()
  2. 7 includes/course.block.inc \_course_block_outline_view()

Course block callback: outline view.

File

includes/course.block.inc, line 11
course blocks @todo use context

Code

function _course_block_outline_view() {
  if ($node = course_get_context()) {
    if ($output = course_outline_list($node)) {
      return array(
        'subject' => t('Course outline'),
        'content' => $output,
      );
    }
  }
}