diff --git a/mod/resource/index.php b/mod/resource/index.php index 1fc59cc6a57..f235040fd6f 100644 --- a/mod/resource/index.php +++ b/mod/resource/index.php @@ -58,8 +58,15 @@ } else { $tt = "".userdate($resource->timemodified); } - $table->data[] = array ($tt, "coursemodule\">$resource->name", - text_to_html($resource->summary) ); + if (!$resource->visible) { + //Show dimmed if the mod is hidden + $table->data[] = array ($tt, "coursemodule\">$resource->name", + text_to_html($resource->summary) ); + } else { + //Show normal if the mod is visible + $table->data[] = array ($tt, "coursemodule\">$resource->name", + text_to_html($resource->summary) ); + } } echo "
";