You are here

function _course_block_outline_view in Course 7.2

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

Course block callback: define outline view block.

File

includes/course.block.inc, line 10
course blocks

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,
      );
    }
  }
}