Add "username" to "Enrol users" box?

Add "username" to "Enrol users" box?

by Pat Soileau -
Number of replies: 0

Greetings!

We are running Moodle v2.7.2.

Our University is in the process of going to a new ERP which has necessitated a change in the assignment of user IDs.

For now, most of our users will have two (2) accounts in our Moodle, one with the old ID and one with the new ID.

This causes some confusion, especially when we need to do a manual enrolment.

What I'd like to do is add the username field to the display in the "Enrol users" box which pops up during a manual enrolment.

I've attached a screenshot showing my proposed idea. 

The "Enrol users" box can be accessed by following this path:

     <course>  -->  Course administration  -->  Users  -->  Enrolled users  -->  Enrol users

What I need help with is finding the code which generates this box.  I've found a number of functions which are called, but I'm not sure.  There's something "user selector" which appears to be related, but I can't seem to determine what actually populates the list of users in the popup box.

Any help would be most appreciated!  Thanks!





Attachment Screenshot_Enrol_users_box_2016-08-02_080233.jpg
Average of ratings: -