I use this theme function to show the username of user:
theme('username', array('account' => user_load($record->uid)))),
It works fine but the username is also a link to the user page. I just need to the username with no link at all.
I read the doc at:
http://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_username/7
and I see that there is the argument link_options
to handle this, then I guessed it was a bolean value and tried with (but not working):
theme('username', array('account' => user_load($record->uid), 'link_options' => 0))),