From c37053ea2f6ee885b1d917caf853dd84a6a6a941 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 24 Apr 2003 18:28:30 +0000 Subject: [PATCH] Changed to show the hidden surveys dimmed (bug #364) --- mod/survey/index.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/mod/survey/index.php b/mod/survey/index.php index 12bcfc56ce..237c85afdd 100644 --- a/mod/survey/index.php +++ b/mod/survey/index.php @@ -54,13 +54,19 @@ } else { $section = ""; } + //Calculate the href + if (!$survey->visible) { + //Show dimmed if the mod is hidden + $tt_href = "coursemodule\">$survey->name"; + } else { + //Show normal if the mod is visible + $tt_href = "coursemodule\">$survey->name"; + } + if ($course->format == "weeks" or $course->format == "topics") { - $table->data[] = array ($section, - "coursemodule\">$survey->name", - "coursemodule\">$ss"); + $table->data[] = array ($section, $tt_href, "coursemodule\">$ss"); } else { - $table->data[] = array ("coursemodule\">$survey->name", - "coursemodule\">$ss"); + $table->data[] = array ($tt_href, "coursemodule\">$ss"); } } -- 2.39.5