Index: token_realname.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/realname/Attic/token_realname.inc,v retrieving revision 1.1.2.9 diff -u -p -r1.1.2.9 token_realname.inc --- token_realname.inc 6 Mar 2009 20:07:19 -0000 1.1.2.9 +++ token_realname.inc 11 Nov 2009 14:56:08 -0000 @@ -32,6 +32,13 @@ function realname_token_values($type, $o // case 'all': case 'global': case 'comment': + //If there's a cid, then create a token with the realname of + //author of the comment + if(!empty($object->cid)) { + $comment_user = user_load(array('uid' => $object->uid)); + $tokens['realname-comment-author'] = $comment_user->realname; + } + if (!isset($object->uid)) { return; }