diff --git a/mod/assignment/index.php b/mod/assignment/index.php index 39ac4bc4ecc..df277d87ebf 100644 --- a/mod/assignment/index.php +++ b/mod/assignment/index.php @@ -96,6 +96,13 @@ $type = $types[$cm->assignmenttype]; + // if type has an 'all.php' defined, make this a link + $pathtoall = "{$CFG->dirroot}/mod/assignment/type/{$cm->assignmenttype}/all.php"; + if (file_exists($pathtoall)) { + $type = "wwwroot}/mod/assignment/type/{$cm->assignmenttype}/". + "all.php?id={$course->id}\">$type"; + } + $due = $cm->timedue ? userdate($cm->timedue) : '-'; if ($course->format == "weeks" or $course->format == "topics") {