From: stronk7 Date: Wed, 23 Apr 2003 16:37:37 +0000 (+0000) Subject: Changed the get_array_of_activities function to return the visible property too X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fec5a6a63fa23cf446fd96c7e8caca58d3125097;p=moodle.git Changed the get_array_of_activities function to return the visible property too --- 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; } } }