Where is $CFG->enroll set at? I can't seem to find it. I've browsed though, moodlelib.php, weblib.php, setup.php, defaults.php and so on... I'm working on modifying the paypal module to connect to the Bluepay gateway as well as a few other modifications...
Thanks
It's stored in the config table of the Moodle database. If it's not there, then it gets set to 'internal' in setup.php.
It gets into the database when you click on "Save Changes" in admin/enrol.php
It gets into the database when you click on "Save Changes" in admin/enrol.php
Duh. I found it....
//setup.php line 74 - 82
if ($configs = get_records('config')) {
$CFG = (array)$CFG;
foreach ($configs as $config) {
$CFG[$config->name] = $config->value;
}
$CFG = (object)$CFG;
unset($configs);
unset($config);
}
Thanks!
//setup.php line 74 - 82
if ($configs = get_records('config')) {
$CFG = (array)$CFG;
foreach ($configs as $config) {
$CFG[$config->name] = $config->value;
}
$CFG = (object)$CFG;
unset($configs);
unset($config);
}
Thanks!