General developer forum

how moodle checks the course duration of a manually enrolled user.

 
Picture of Darko Miletić
Re: how moodle checks the course duration of a manually enrolled user.
Core developersParticularly helpful Moodlers


require_once($CFG->libdir.'/enrollib.php');

$end = enrol_get_enrolment_end($courseid, $userid);


 
Average of ratings: -