General developer forum

How to display extra information in the "Messages" conversation

 
Picture of Fan Gao
How to display extra information in the "Messages" conversation
 
Moodle version: 3.3.2

I want to display the same enrolled courses between two users in the Messages area.

The function enrol_get_shared_courses() in ../lib/enrollib.php returns all the courses. Is that possible to display all of the courses under user2's name (please view attached img)?


thank you very much for anyone's help in advance.


 
Average of ratings: -