From fec5a6a63fa23cf446fd96c7e8caca58d3125097 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 23 Apr 2003 16:37:37 +0000 Subject: [PATCH] Changed the get_array_of_activities function to return the visible property too --- course/lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/course/lib.php b/course/lib.php index 4a549a0860..2fd0b6f121 100644 --- a/course/lib.php +++ b/course/lib.php @@ -417,6 +417,7 @@ function get_array_of_activities($courseid) { // mod - name of the module (eg forum) // section - the number of the section (eg week or topic) // name - the name of the instance +// visible - when the instance is visible or no $mod = array(); @@ -436,6 +437,7 @@ function get_array_of_activities($courseid) { $mod[$seq]->mod = $rawmods[$seq]->modname; $mod[$seq]->section = $section->section; $mod[$seq]->name = urlencode(get_field($rawmods[$seq]->modname, "name", "id", $rawmods[$seq]->instance)); + $mod[$seq]->visible = $rawmods[$seq]->visible; } } } -- 2.39.5