Skip to content
Browse files

MDL-30211 imsenterprise enrolment - set up default enrolment methods …

…in new courses
  • Loading branch information...
1 parent 264ca6c commit 7e4c833c5aa6aa6c779ad6c4102cfbc2b5f8a67a @danmarsden danmarsden committed with Sam Hemelryk Dec 2, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 enrol/imsenterprise/lib.php
View
4 enrol/imsenterprise/lib.php
@@ -403,6 +403,10 @@ function process_group_tag($tagcontents) {
$courseid = $DB->insert_record('course', $course);
+ // Setup default enrolment plugins
+ $course->id = $courseid;
+ enrol_course_updated(true, $course, null);
+
// Setup the blocks
$course = $DB->get_record('course', array('id' => $courseid));
blocks_add_default_course_blocks($course);

0 comments on commit 7e4c833

Please sign in to comment.
Something went wrong with that request. Please try again.