load(); if ($course && $course->getType() == 'course' && $course->canEdit()) { $facilitator = new Facilitator($facilitator_id); $facilitator->load(); $removed = $facilitator->remove(); if ($removed) { $Dippler->add_system_message(_("Facilitator removed.")); } else { $Dippler->add_system_message(_("Facilitator could not be removed."), 'error'); } forward($course->getSettingsURL('facilitators')); } forward(); ?>