find('ChamiloPluginBundle:ImsLti\ImsLtiTool', intval($_GET['id'])) : 0; if (!$tool) { api_not_allowed(true); } $em->remove($tool); $em->flush(); Display::addFlash( Display::return_message($plugin->get_lang('ToolDeleted'), 'success') ); header('Location: '.api_get_path(WEB_PLUGIN_PATH).'ims_lti/admin.php'); exit;