Skip to content

Commit

Permalink
Added capability for Moodle to upgrade activity submodules automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jul 15, 2005
1 parent 7827589 commit 1ef5fb3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/adminlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,19 @@ function upgrade_activity_modules($return) {
error($module->name .' tables could NOT be set up successfully!');
}
}


/// Check submodules of this module if necessary

include_once($fullmod.'/lib.php'); // defines upgrading function

$submoduleupgrade = $module->name.'_upgrade_submodules';
if (function_exists($submoduleupgrade)) {
$submoduleupgrade();
}


/// Run any defaults or final code that is necessary for this module

if ( is_readable($fullmod .'/defaults.php')) {
// Insert default values for any important configuration variables
unset($defaults);
Expand Down

0 comments on commit 1ef5fb3

Please sign in to comment.