]> git.mjollnir.org Git - moodle.git/commitdiff
Quick GUI to turn off/on hiding of group pictures
authormoodler <moodler>
Sun, 15 Feb 2004 09:59:16 +0000 (09:59 +0000)
committermoodler <moodler>
Sun, 15 Feb 2004 09:59:16 +0000 (09:59 +0000)
course/group-edit.html
course/group.php
lang/en/moodle.php

index 137f1b3275da7cbda795738f77058372099182bc..3fcac9fafb6982e8c73c507df56e40fcb945c409 100644 (file)
     </td>
 </tr>
 
+<tr valign=top>
+    <td align="right"><P><?php print_string("hidepicture") ?>:</td>
+    <td><?php 
+        $options = NULL;
+        $options[0] = get_string("no");
+        $options[1] = get_string("yes");
+        choose_from_menu ($options, "hidepicture", $group->hidepicture, "");
+    ?>
+    </td>
+</tr>
+
 <?php 
     $maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
     if (!empty($CFG->gdversion) and $maxbytes) {  
index 983353af9cb552cbe3a6c544716a6730ca52c198..e7a961c533f0be7b5731508dd2b6a9a3724d3ac6 100644 (file)
@@ -71,8 +71,9 @@
                     $group->picture = save_profile_image($group->id, $filename, 'groups');
                 }
             }
-            $group->name = $form->name;
+            $group->name        = $form->name;
             $group->description = $form->description;
+            $group->hidepicture = $form->hidepicture;
             if (!update_record("groups", $group)) {
                 notify("A strange error occurred while trying to save ");
             } else {
index 0b8f727fa99472333df617fec9b844c091383a12..708f07e89b1f252dc9607dc47b3d4362d5b30240 100644 (file)
@@ -427,6 +427,7 @@ $string['helptext'] = 'How to write text';
 $string['helpwiki'] = 'How to write Wiki text';
 $string['helpwriting'] = 'Write carefully';
 $string['hide'] = 'Hide';
+$string['hidepicture'] = 'Hide picture';
 $string['hits'] = 'Hits';
 $string['hitsoncourse'] = 'Hits on $a->coursename by $a->username';
 $string['hitsoncoursetoday'] = 'Today\'s hits on $a->coursename by $a->username';