Skip to content

Instantly share code, notes, and snippets.

@andrewnicols andrewnicols/test.php
Last active Dec 22, 2015

Embed
What would you like to do?
<?php
define("CLI_SCRIPT", true);
require_once('config.php');
$user = $DB->get_record('user', ['id' => 2634]);
$enabled = enrol_get_plugins(true);
foreach($enabled as $enrol) {
$enrol->sync_user_enrolments($user);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.