I have a search in my drupal website which searches for users registered in my website (finder module). Upon clicking any user from the user search result, it takes to that user's profile page. At the top of that page, a text 'Relationship' is displayed. Under it, a link saying 'become X's friend' (X is the drupal generated name of a user). Now 'X' is the default name generated by drupal when the user registers to the site. Users have their own real name. So i want to display the link as 'become XYZ's friend' (X's real name). Where should i edit the code??
Example: For a user John Smith, the link will be "become john225de's friend", while I want it to be like "become John Smith's friend".