You are here

function theme_user_relationship_user_link in User Relationships 5

Link to user page (use usernode if it's available)

1 theme call to theme_user_relationship_user_link()
user_relationship_mailer_replacements in plugins/user_relationship_mailer/user_relationship_mailer_defaults.inc
Replacements for mail messages

File

./user_relationships_theme.inc, line 203

Code

function theme_user_relationship_user_link($uid) {
  if (module_exists('usernode')) {
    $nid = usernode_get_node_id($uid);
    $url = "node/{$nid}";
  }
  else {
    $url = "user/{$uid}";
  }
  return url($url, NULL, NULL, TRUE);
}