load(); if ($course && $course->getType() == 'course') { $group = new Coursegroup($group_id); $removed = $group->delete(); if ($removed) { $Dippler->add_system_message(_("Group removed.")); // TODO send email } else { $Dippler->add_system_message(_("Group could not be removed."), 'error'); } forward($course->getURL('groups')); } forward(); ?>