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:
+11
-1
@@ -18,8 +18,12 @@
|
||||
// This file is tailored to PostgreSQL 7
|
||||
|
||||
function main_upgrade($oldversion=0) {
|
||||
global $CFG;
|
||||
|
||||
global $CFG, $THEME;
|
||||
|
||||
$result = true;
|
||||
|
||||
|
||||
if ($oldversion < 2003010101) {
|
||||
delete_records("log_display", "module", "user");
|
||||
$new->module = "user";
|
||||
@@ -150,6 +154,12 @@ function main_upgrade($oldversion=0) {
|
||||
table_column("modules", "", "visible", "integer", "1", "unsigned", "1", "", "");
|
||||
}
|
||||
|
||||
if ($oldversion < 2003050902) {
|
||||
if (get_records("modules", "name", "pgassignment")) {
|
||||
print_simple_box("Note: the pgassignment module will soon be deleted from CVS! Go to the new 'Manage Modules' page and DELETE IT from your system", "center", "50%", "$THEME->cellheading", "20", "noticebox");
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user