Permalink
Browse files

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

…in new courses
  • Loading branch information...
danmarsden committed Dec 2, 2011
1 parent 464d605 commit fd03c32c535213064de976d143c990fdbb665f8d
Showing with 4 additions and 0 deletions.
  1. +4 −0 enrol/imsenterprise/lib.php
@@ -394,6 +394,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 fd03c32

Please sign in to comment.