load(); $course = new Course($outcome->course); $course->load(); if ($outcome && $outcome->getType() == 'learningoutcome' && $course && $course->getType() == 'course' && $course->canEdit()) { if ($outcome->delete()) { $Dippler->add_system_message(_("Learning Outcome deleted.")); forward($course->getURL("outcomes")); } else { $Dippler->add_system_message(_("Learning Outcome could not be deleted."), "error"); forward($outcome->getURL()); } } forward("courses/my"); ?>