Customising display of of manual enrolment search

Re: Customising display of of manual enrolment search

by Stuart Anderson -
Number of replies: 0
Thanks Gareth. That is a very helpful reply. Your suggestion just needed a small change plus a caveat.

Firstly, the space after the comma must be removed otherwise php parses this as " email" and the email address doesn't get rendered. So you actually must have:
$CFG->showuseridentity = 'auth,email';
Secondly, this doesn't work for older versions of moodle.  I started out working on my own solution for moodle 3.4.2 and changing the $CFG does not work for this older moodle (my solution does).  However, with luck we will be upgrading to moodle 3.9.1 next week where changing the $CFG in config.php does work (and very well).

Your solution is obviously much more sensible and sustainable so thanks!

Best wishes,

Stuart