Moodle Plugins directory: Enrol Notification | Moodle.org

Enrol Notification
Enrolment ::: enrol_notificationeabc
Maintained by
e-ABC Learning
Send notifications to users when any enrolment event is executed
Latest release:
1294 sites
234 downloads
50 fans
Current versions available: 2
Enrol Plugin Notificationeabc
Send notifications to users when any enrolment event is executed
Installation
1. Download Package
2. Unzip the package inside enrol directory
4. Go to Site administration-> notifications and press "Update database now"
Contributors
e-ABC Learning (Lead maintainer)
Please login to view contributors details and/or to contact them
$eventdata = new stdClass();
To:
$eventdata = new \core\message\message();
It is a great plugin. Is it possible to draw records of who the notifications was sent to? Logs or Records?
TIA
I am in the United States and language set to English Language, however with this plugin the Subject still uses "enrolment" . I've recently completed a very large course enrollment (>5K people) and some students thought the notice was spam due to the perceived spelling error. This plugin really needs an update to allow the Subject Line to be customized. Aside form that, it works great and thank you.
{COURSENAME} = course fullname
{USERNAME} = username
{NOMBRE} = firstname
{APELLIDO} = lastname
{URL} = course url
I found a way to add another user fields by adding some code. Below is example adding "myfield" from User profile fields
1. Find and open file ./moodle_data/enrol/notificationeabc/lib.php
2. Locate to public function "process_mensaje"
3. Replace "global $CFG"; to "global $CFG, $DB;" at the beginning
4. Add 2 strings before "return $m;" and dont forget "profile_field_" prefix if you add additional field from from User profile fields:
profile_load_data($user);
$m = str_replace('{MyField}', $user->profile_field_myfield, $m);
5. Save file
6. Add text with {MyField} to message body at plugin settings
7. That's all.
- Use HTML editor in messages
- Fixed: instance enable/disable message.
- Additional course fields, enrollment fields, and user profile fields have been added to the message template.
Tested in moodle 4.x
Saludos
I've tested the plugin on Moodle 4.4 and confirm, so far, that it works properly.