MDL-4188 enrol_self: Send course welcome message on enrolment
commit097a6d46e0976fea7f1db4fcb868d6257bb41c45
authorHuong Nguyen <huongnv13@gmail.com>
Thu, 4 Apr 2024 09:07:25 +0000 (4 16:07 +0700)
committerHuong Nguyen <huongnv13@gmail.com>
Thu, 4 Apr 2024 13:13:46 +0000 (4 20:13 +0700)
treece8c3a7600b95e74c7553d9831a374a7c9693ec7
parentb6af21bec08b355aa8b4277977e951d048574ff4
MDL-4188 enrol_self: Send course welcome message on enrolment

Including in this commit:
 - Use language strings from core_enrol to match with enrol_manual
 - Minor update for UI so Custom welcome message text area
   will not be shown if the Send course welcome message is
   set to No
 - enrol_self now using Hook API to send the welcome message
 - enrol_self_plugin::email_welcome_message() has been deprecated
 - Added Behat test to test the welcome message
enrol/self/classes/user_enrolment_callbacks.php [new file with mode: 0644]
enrol/self/db/hooks.php [new file with mode: 0644]
enrol/self/lang/en/deprecated.txt [new file with mode: 0644]
enrol/self/lang/en/enrol_self.php
enrol/self/lib.php
enrol/self/tests/behat/welcomemessage.feature [new file with mode: 0644]
enrol/upgrade.txt