mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-15846 add option to prevent course welcome emails + support for searching in enrolment page
This commit is contained in:
parent
8eb1d25ffe
commit
fb8634e50c
5 changed files with 98 additions and 3 deletions
|
@ -4390,6 +4390,10 @@ function email_is_not_allowed($email) {
|
|||
function email_welcome_message_to_user($course, $user=NULL) {
|
||||
global $CFG, $USER;
|
||||
|
||||
if (isset($CFG->sendcoursewelcomemessage) and !$CFG->sendcoursewelcomemessage) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($user)) {
|
||||
if (!isloggedin()) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue