Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SCORM MDL-27366 add attempt status to My home

  • Loading branch information...
commit 6257f66455245c93b07c8099204f38f4971065c6 1 parent c3f85e2
@danmarsden danmarsden authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/scorm/lib.php
View
5 mod/scorm/lib.php
@@ -1059,7 +1059,10 @@ function scorm_print_overview($courses, &$htmlarray) {
if ($scorm->timeclose) {
$str .= '<div class="info">'.$strduedate.': '.userdate($scorm->timeclose).'</div>';
}
-
+ if ($scorm->displayattemptstatus == 1) {
+ require_once($CFG->dirroot.'/mod/scorm/locallib.php');
+ $str .= '<div class="details">'.scorm_get_attempt_status($USER, $scorm).'</div>';
+ }
$str .= '</div>';
if (empty($htmlarray[$scorm->course]['scorm'])) {
$htmlarray[$scorm->course]['scorm'] = $str;
Please sign in to comment.
Something went wrong with that request. Please try again.