plugin->test_constructor_gatekeeper(); $ids = get_input('assessment'); if (!is_array($ids) && $ids != "") $ids = array($ids); $forward_to = "assessments/view"; $input_values = get_inputs(); $_SESSION['input_values'] = $input_values; if (get_input('delete_button', false)) { if (!is_array($ids)) { $TeKe->add_system_message(_("Delete failed"), 'error'); forward($forward_to); } else { $delete_failed = false; foreach ($ids as $id) { if (!$TeKe->plugin->deleteType("assessment", $id)) { $delete_failed = true; } } if ($delete_failed) { $TeKe->add_system_message(_("At least one of the deletions failed."), 'error'); forward($forward_to); } } $TeKe->add_system_message(_("Deleted")); } else { $TeKe->add_system_message(_("No action")); } forward($forward_to); ?>