Change the arguments of a function

Change the arguments of a function

by Elie Reformed -
Number of replies: 0

Hi, so the function is  " core_enrol_get_users_courses" which gets the list of courses where a user is enrolled in. This function needs one parameter (userid).

I want to know how can I change that parameter into a new one, which is the email address of the user. Thanks smile

Average of ratings: -