MDL-15846 add option to prevent course welcome emails + support for searching in enrolment page

This commit is contained in:
skodak 2008-07-26 16:50:33 +00:00
parent 8eb1d25ffe
commit fb8634e50c
5 changed files with 98 additions and 3 deletions

View file

@ -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;