function realname_comment in Real Name 6
Same name and namespace in other branches
- 5 realname.module \realname_comment()
Implements hook_comment().
File
- ./
realname.module, line 490
Code
function realname_comment(&$comment, $op) {
static $users = array();
switch ($op) {
case 'view':
if (!$comment->homepage) {
if (isset($users[$comment->uid])) {
$account = $users[$comment->uid];
}
else {
$users[$comment->uid] = $account = realname_get_user($comment->uid);
}
$comment->homepage = isset($account->homepage) ? $account->homepage : NULL;
}
break;
}
return;
}