mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
message MDL-24548 changed message processor defaults
This commit is contained in:
parent
e41da832de
commit
4bc735cee9
@ -282,7 +282,9 @@ function message_set_default_message_preferences($user) {
|
||||
$providers = $DB->get_records('message_providers');
|
||||
$preferences = array();
|
||||
foreach ($providers as $providerid => $provider) {
|
||||
$preferences['message_provider_'.$provider->component.'_'.$provider->name.'_loggedin'] = 'popup';
|
||||
//use both email and popup when online
|
||||
$preferences['message_provider_'.$provider->component.'_'.$provider->name.'_loggedin'] = 'email,popup';
|
||||
//just email when offline
|
||||
$preferences['message_provider_'.$provider->component.'_'.$provider->name.'_loggedoff'] = 'email';
|
||||
}
|
||||
return set_user_preferences($preferences, $user->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user