]> git.mjollnir.org Git - moodle.git/commitdiff
Removed useless function
authormoodler <moodler>
Tue, 26 Aug 2003 12:54:50 +0000 (12:54 +0000)
committermoodler <moodler>
Tue, 26 Aug 2003 12:54:50 +0000 (12:54 +0000)
lib/weblib.php

index b8bb95dbc337c2854b7aefd95c03acfcdb53331f..ad5282d0482362bdfd31ae776bd1c7538bd61d0e 100644 (file)
@@ -1180,19 +1180,6 @@ function make_table($table) {
     return $output;
 }
 
-
-function print_editing_switch($courseid) {
-    global $CFG, $USER;
-
-    if (isteacheredit($courseid)) {
-        if ($USER->editing) {
-            echo "<a href=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=off\">turn editing off</a>";
-        } else {
-            echo "<a href=\"$CFG->wwwroot/course/view.php?id=$courseid&edit=on\">turn editing on</a>";
-        }
-    }
-}
-
 function print_textarea($richedit, $rows, $cols, $width, $height, $name, $value="") {
 /// Prints a richtext field or a normal textarea
     global $CFG, $THEME;