New feature to manage installed code modules!

You can now hide/show individual activity modules and even delete them completely!

For example, if you hide the "choice" module, then all choice activities
will be hidden throughout the whole site, and "Choice" will not
appear on any "Add..." menu.

Deleting a module is a complete deletion of all data from the database.

If you want to try out the deletion on a real module, I suggest the
pgassignment module, since it will soon be deleted from CVS anyway
(because it's being replaced with workshop).

Look for "Manage modules" on the admin menu.
This commit is contained in:
moodler
2003-05-09 17:24:17 +00:00
parent cfb9c52577
commit 5867bfb50e
9 changed files with 324 additions and 80 deletions
+21 -20
View File
@@ -327,36 +327,37 @@
if (isadmin()) {
$table->head = array (get_string("site"), get_string("courses"), get_string("users"));
$table->align = array ("CENTER", "CENTER", "CENTER");
$table->data[0][0] = "<P><A HREF=\"config.php\">".get_string("configvariables")."</A></P>".
"<P><A HREF=\"site.php\">".get_string("sitesettings")."</A></P>".
"<P><A HREF=\"../course/log.php?id=$site->id\">".get_string("sitelogs")."</A></P>".
"<P><A HREF=\"../theme/index.php\">".get_string("choosetheme")."</A></P>".
"<P><A HREF=\"lang.php\">".get_string("checklanguage")."</A></P>";
$table->data[0][0] = "<p><a href=\"config.php\">".get_string("configvariables")."</a></p>".
"<p><a href=\"site.php\">".get_string("sitesettings")."</a></p>".
"<p><a href=\"../course/log.php?id=$site->id\">".get_string("sitelogs")."</a></p>".
"<p><a href=\"../theme/index.php\">".get_string("choosetheme")."</a></p>".
"<p><a href=\"lang.php\">".get_string("checklanguage")."</a></p>".
"<p><a href=\"modules.php\">".get_string("managemodules")."</a></p>";
if (file_exists("$CFG->dirroot/admin/$CFG->dbtype")) {
$table->data[0][0] .= "<P><A HREF=\"$CFG->dbtype/frame.php\">".get_string("managedatabase")."</A></P>";
$table->data[0][0] .= "<p><a href=\"$CFG->dbtype/frame.php\">".get_string("managedatabase")."</a></p>";
}
$table->data[0][1] = "<P><A HREF=\"../course/edit.php\">".get_string("addnewcourse")."</A></P>".
"<P><A HREF=\"../course/teacher.php\">".get_string("assignteachers")."</A></P>".
"<P><A HREF=\"../course/delete.php\">".get_string("deletecourse")."</A></P>".
"<P><A HREF=\"../course/categories.php\">".get_string("categories")."</A></P>";
if($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual"){
$table->data[0][2] = "<P><A HREF=\"user.php?newuser=true\">".get_string("addnewuser")."</A></P>";
$table->data[0][1] = "<p><a href=\"../course/edit.php\">".get_string("addnewcourse")."</a></p>".
"<p><a href=\"../course/teacher.php\">".get_string("assignteachers")."</a></p>".
"<p><a href=\"../course/delete.php\">".get_string("deletecourse")."</a></p>".
"<p><a href=\"../course/categories.php\">".get_string("categories")."</a></p>";
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual") {
$table->data[0][2] = "<p><a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a></p>";
}
$table->data[0][2] .= "<P><A HREF=\"user.php\">".get_string("edituser")."</A></P>".
"<P><A HREF=\"admin.php\">".get_string("assignadmins")."</A></P>".
"<P><A HREF=\"creators.php\">".get_string("assigncreators")."</A></P>".
"<P><A HREF=\"auth.php\">".get_string("authentication")."</A></P>";
$table->data[0][2] .= "<p><a href=\"user.php\">".get_string("edituser")."</a></p>".
"<p><a href=\"admin.php\">".get_string("assignadmins")."</a></p>".
"<p><a href=\"creators.php\">".get_string("assigncreators")."</a></p>".
"<p><a href=\"auth.php\">".get_string("authentication")."</a></p>";
} else { /// user is coursecreator
$table->head = array (get_string("courses"));
$table->align = array ("CENTER");
$table->data[0][1] = "<P><A HREF=\"../course/edit.php\">".get_string("addnewcourse")."</A></P>".
"<P><A HREF=\"../course/teacher.php\">".get_string("assignteachers")."</A></P>";
$table->data[0][1] = "<p><a href=\"../course/edit.php\">".get_string("addnewcourse")."</a></p>".
"<p><a href=\"../course/teacher.php\">".get_string("assignteachers")."</a></p>";
}
print_table($table);
echo "<BR><DIV align=center>";
echo "<br><div align=center>";
print_single_button("$CFG->wwwroot/doc", NULL, get_string("documentation"));
echo "</DIV>";
echo "</div>";
print_heading("Moodle $CFG->release ($CFG->version)", "CENTER", 1);