MDL-27171 messages: implement new syntax in messages.php and update processing
[moodle.git] / user / editadvanced.php
index 4a1f4ec..b547dbb 100644 (file)
@@ -200,10 +200,6 @@ if ($usernew = $userform->get_data()) {
 
     // trigger events
     if ($usercreated) {
-        //set default message preferences
-        if (!message_set_default_message_preferences( $usernew )){
-            print_error('cannotsavemessageprefs', 'message');
-        }
         events_trigger('user_created', $usernew);
     } else {
         events_trigger('user_updated', $usernew);