Added some docs

This commit is contained in:
moodler 2006-09-19 16:38:53 +00:00
parent 6051c68d4b
commit 946cbe7029
2 changed files with 3 additions and 2 deletions

View File

@ -95,6 +95,9 @@ function setup_enrolments(&$user) {
/// sync enrolments with database, create courses if required.
///
/// NOTE: we are currently ignoring $type, as enrol/database only deasl with student enrolment
///
/// This function still needs to be converted to Roles! XXX TODO
///
function sync_enrolments($type='student') {
global $CFG;
global $db;

View File

@ -9,8 +9,6 @@
require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); // global moodle config file.
require_once($CFG->dirroot . '/course/lib.php');
require_once($CFG->dirroot . '/lib/moodlelib.php');
require_once($CFG->dirroot . '/lib/datalib.php');
require_once($CFG->dirroot . "/enrol/" . $CFG->enrol . "/enrol.php");
// ensure errors are well explained