uid'") ->fetchField(); if($realname){ $output = t('Welcome ' . $realname . '!'); } else { $output = t('Welcome ' . $user->name . '!'); } $output .= t(''); echo $output; ?>