From 42e118badc6e2ab442bcb4f3a32580a9bd7a7d09 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 6 Feb 2006 05:31:49 +0000 Subject: [PATCH] templates and fields do not require group support --- mod/data/fields.php | 15 --------------- mod/data/templates.php | 15 --------------- 2 files changed, 30 deletions(-) diff --git a/mod/data/fields.php b/mod/data/fields.php index 612525c0c4c..cce6a6e04aa 100755 --- a/mod/data/fields.php +++ b/mod/data/fields.php @@ -164,21 +164,6 @@ break; } -/// Check to see if groups are being used here - if ($groupmode = groupmode($course, $cm)) { // Groups are being used - $currentgroup = setup_and_print_groups($course, $groupmode, "view.php?id=$cm->id"); - } else { - $currentgroup = 0; - } - - if ($currentgroup) { - $groupselect = " AND groupid = '$currentgroup'"; - $groupparam = "&groupid=$currentgroup"; - } else { - $groupselect = ""; - $groupparam = ""; - } - /// Print the tabs $currenttab = 'fields'; diff --git a/mod/data/templates.php b/mod/data/templates.php index 5752938ff1f..48bf21220b3 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -108,21 +108,6 @@ } } -/// Check to see if groups are being used here - if ($groupmode = groupmode($course, $cm)) { // Groups are being used - $currentgroup = setup_and_print_groups($course, $groupmode, "view.php?id=$cm->id"); - } else { - $currentgroup = 0; - } - - if ($currentgroup) { - $groupselect = " AND groupid = '$currentgroup'"; - $groupparam = "&groupid=$currentgroup"; - } else { - $groupselect = ""; - $groupparam = ""; - } - /// Print the tabs $currenttab = 'templates'; include('tabs.php');