Index: realname_content_profile.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/realname/Attic/realname_content_profile.inc,v retrieving revision 1.1.2.8 diff -u -r1.1.2.8 realname_content_profile.inc --- realname_content_profile.inc 26 May 2010 20:34:45 -0000 1.1.2.8 +++ realname_content_profile.inc 31 Dec 2010 22:20:54 -0000 @@ -14,7 +14,7 @@ return; } $fields = content_fields(NULL, $type); - + foreach ($fields as $field_name => $field_attributes) { if (isset($profile->$field_name)) { $values = array(); @@ -41,8 +41,11 @@ } } } - -// $account->title = $profile->title; // http://drupal.org/node/606364 + + // account is a user object, so add the content profile title to its properties. + if (empty($account->nid)) { + $account->title = $profile->title; + } } function realname_content_profile_get_types() {