Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…in new courses
  • Loading branch information...
commit fd03c32c535213064de976d143c990fdbb665f8d 1 parent 464d605
Dan Marsden authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  enrol/imsenterprise/lib.php
4  enrol/imsenterprise/lib.php
@@ -394,6 +394,10 @@ function process_group_tag($tagcontents){
394 394
 
395 395
                 $courseid = $DB->insert_record('course', $course);
396 396
 
  397
+                // Setup default enrolment plugins
  398
+                $course->id = $courseid;
  399
+                enrol_course_updated(true, $course, null);
  400
+
397 401
                 // Setup the blocks
398 402
                 $course = $DB->get_record('course', array('id' => $courseid));
399 403
                 blocks_add_default_course_blocks($course);

0 notes on commit fd03c32

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