2 if (!empty($_GET['askDelete'])) { $content .= '
'; } elseif (isset($_GET['delete']) && $_GET['delete']) { /* * Process hiding a tools from available tools. */ Database::query("DELETE FROM $tool_table WHERE c_id = $course_id AND id='$id' AND added_tool=1"); } } // Course legal $enabled = api_get_plugin_setting('courselegal', 'tool_enable'); $pluginExtra = null; if ($enabled === 'true') { require_once api_get_path(SYS_PLUGIN_PATH).'courselegal/config.php'; $plugin = CourseLegalPlugin::create(); $pluginExtra = $plugin->getTeacherLink(); } // Start of tools for CourseAdmins (teachers/tutors) if ($session_id === 0 && api_is_course_admin() && api_is_allowed_to_edit(null, true)) { $content .= '