]> git.mjollnir.org Git - moodle.git/commitdiff
Changed the get_array_of_activities function to return the visible property too
authorstronk7 <stronk7>
Wed, 23 Apr 2003 16:37:37 +0000 (16:37 +0000)
committerstronk7 <stronk7>
Wed, 23 Apr 2003 16:37:37 +0000 (16:37 +0000)
course/lib.php

index 4a549a0860ee9a492037976773b83b8dcaeecdb2..2fd0b6f1218a3fae09cc2ff227931074d8f71071 100644 (file)
@@ -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;
                }
             }
         }