Added event handling to new assignment. Whopos!

This commit is contained in:
moodler 2005-05-31 23:00:20 +00:00
parent a5893b087c
commit 736f191c1d
4 changed files with 60 additions and 4 deletions

View file

@ -154,6 +154,11 @@ function assignment_upgrade($oldversion) {
table_column('assignment', '', 'preventlate', 'integer', '2', 'unsigned', '0', 'not null', 'resubmit');
}
if ($oldversion < 2005060100) {
include_once("$CFG->dirroot/mod/assignment/lib.php");
assignment_refresh_events();
}
/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-)
include_once("$CFG->dirroot/mod/assignment/lib.php");

View file

@ -152,6 +152,11 @@ function assignment_upgrade($oldversion) {
table_column('assignment', '', 'preventlate', 'integer', '2', 'unsigned', '0', 'not null', 'resubmit');
}
if ($oldversion < 2005060100) {
include_once("$CFG->dirroot/mod/assignment/lib.php");
assignment_refresh_events();
}
/// These lines ALWAYS need to be here at the end of this file. Don't mess with them. :-)
include_once("$CFG->dirroot/mod/assignment/lib.php");