You are here

function theme_course_report in Course 6

Theme the course objects report page.

1 theme call to theme_course_report()
course_object_reports_page in includes/course.reports.inc
Page handler for course object reports.

File

includes/course.reports.inc, line 70
course.reports.inc Reporting framework for course objects.

Code

function theme_course_report($nav, $header, $body) {
  if (!$nav) {
    $body = t('None of the objects in your course have reports associated with them.');
  }
  $body = $header . $body;
  $row = array(
    array(
      'data' => $nav,
      'width' => 200,
      'id' => 'course-object-reports-nav',
      'valign' => 'top',
    ),
    array(
      'data' => $body,
      'id' => 'course-object-reports-content',
      'valign' => 'top',
    ),
  );
  $rows[] = $row;
  $out = theme('table', NULL, $rows, array(
    'id' => 'course-object-reports',
  ));
  return $out;
}