Skip to content

Commit

Permalink
message MDL-24548 changed message processor defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Davis committed Oct 15, 2010
1 parent e41da83 commit 4bc735c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/messagelib.php
Expand Up @@ -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);
Expand Down

0 comments on commit 4bc735c

Please sign in to comment.