How to get all courses, including the "not current" ones in which a user is enrolled in?

How to get all courses, including the "not current" ones in which a user is enrolled in?

by Carles Franquesa -
Number of replies: 0
Hi all,

The core_enrol_get_users_courses API function only gives me back the courses whose status is "active". Does any know the way to get all courses (i.e. all enrollments) including the "not current" status ones, of a certain user?

Thanks!

Carles
Average of ratings: -