Permalink
Browse files

SCORM MDL-27366 add attempt status to My home

  • Loading branch information...
1 parent c3f85e2 commit 6257f66455245c93b07c8099204f38f4971065c6 @danmarsden danmarsden committed Jun 15, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mod/scorm/lib.php
View
@@ -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;

0 comments on commit 6257f66

Please sign in to comment.