Index: realname.module
===================================================================
--- realname.module	(revisão 12709)
+++ realname.module	(cópia de trabalho)
@@ -217,6 +217,10 @@
  * Fix some core bugs.
  */
 function realname_user_view($account) {
+  // Set the page title.
+  if (isset($account->realname)) {
+    drupal_set_title($account->realname);
+  }
   realname_check_breadcrumbs($account);
   // Retrieve all profile fields and attach to $account->content.
   user_build_content($account);
@@ -384,6 +388,12 @@
       // Try to update, if fail - try to insert.
       db_query("DELETE FROM {realname} WHERE uid=%d", $account->uid);
       drupal_write_record('realname', $account);
+      break;
+    case 'view':
+      if (isset($account->realname)) {
+        drupal_set_title($account->realname);
+      }
+      break;
   }
 }
 
@@ -760,7 +770,7 @@
         drupal_set_message(t('The profile load function (!module) was not found.', array('!module' => $load_func)), 'error');
         return $account->name;
       }
-      module_invoke($module, 'load_profile', $account, $type);
+      $load_func($account, $type);
       if ($profile_privacy) {
         profile_privacy_user('load', $edit, $account);
       }
