message MDL-24548 changed message processor defaults

This commit is contained in:
Andrew Davis 2010-10-15 08:03:01 +00:00
parent e41da832de
commit 4bc735cee9

View File

@ -282,7 +282,9 @@ function message_set_default_message_preferences($user) {
$providers = $DB->get_records('message_providers'); $providers = $DB->get_records('message_providers');
$preferences = array(); $preferences = array();
foreach ($providers as $providerid => $provider) { 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'; $preferences['message_provider_'.$provider->component.'_'.$provider->name.'_loggedoff'] = 'email';
} }
return set_user_preferences($preferences, $user->id); return set_user_preferences($preferences, $user->id);