]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14712 Remove function hotpot_get_report_users()
authormudrd8mz <mudrd8mz>
Tue, 6 May 2008 18:25:47 +0000 (18:25 +0000)
committermudrd8mz <mudrd8mz>
Tue, 6 May 2008 18:25:47 +0000 (18:25 +0000)
mod/hotpot/report.php

index 4e4296567343ead8d979833720a0568479b5c8f1..61b2a597af2bc97e65d651802dcccdc1597816b7 100644 (file)
@@ -604,34 +604,7 @@ function hotpot_get_report_names($names='') {
 
     return $reports;
 }
-function hotpot_get_report_users($course, $formdata) {
-    $users = array();
-
-    /// Check to see if groups are being used in this module
-    $groupmode = groupmode($course, $cm); //TODO: there is no $cm defined!
-    $currentgroup = setup_and_print_groups($course, $groupmode, "report.php?id=$cm->id&mode=simple");
-
-    $sort = "u.lastname ASC";
 
-    switch ($formdata['reportusers']) {
-        case 'students':
-            if ($currentgroup) {
-                $users = get_group_students($currentgroup, $sort);
-            } else {
-                $users = get_course_students($course->id, $sort);
-            }
-            break;
-        case 'all':
-            if ($currentgroup) {
-                $users = get_group_users($currentgroup, $sort);
-            } else {
-                $users = get_course_users($course->id, $sort);
-            }
-            break;
-    }
-
-    return $users;
-}
 function hotpot_get_records_groupby($function, $fieldnames, $table, $select, $groupby) {
     // $function is an SQL aggregate function (MAX or MIN)