? openid_profile-996732-1.patch
Index: openid_profile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openid_profile/openid_profile.module,v
retrieving revision 1.1
diff -u -p -r1.1 openid_profile.module
--- openid_profile.module	3 Nov 2010 03:09:34 -0000	1.1
+++ openid_profile.module	13 Dec 2010 10:37:35 -0000
@@ -331,6 +331,23 @@ function openid_profile_user_profile_sav
       // save user with possibly altered attributes and profile data per category
       user_save($account, $profile_values, $category);
     }
+    
+    // Drupal core profile fields that are not present in profile.module
+    $altered = FALSE;
+    $profile_values = array();
+    $core_profile_fields = array('name', 'mail', 'picture', 'timezone', 'language');
+    foreach ($attributes as $key => $value) {
+      if (array_key_exists($value, $mapping)) {
+        $value_key = str_replace('.type.', '.value.', $key);
+        if (isset($attributes[$value_key]) && !empty($attributes[$value_key])) {
+          $altered = TRUE;
+          $profile_values[$mapping[$value]] = $attributes[$value_key];
+        }
+      }
+    }
+    if ($altered && count($profile_values)) {
+      user_save($account, $profile_values);
+    }
   }
 }
 
