Privatemsg with user_relationships - views link → send a private message to use Trying to output Views link - send a private message to a user. But its displaying nothing. Using privatemsg 6.x - 2.x Dev version and user_relationships 6.x - 1.x
solved problem with the code below:

&lt;?php
$profile = content_profile_load('profile', $data-&gt;users_user_relationships_uid);
$url = privatemsg_get_link(array(user_load($profile-&gt;uid)));
print '&lt;div class="pm"&gt;'. l(t('Send a private message to the author'), $url, array('attributes' =&gt; array('class' =&gt; 'lichnoe'))) .'&lt;/div&gt;'; 
?&gt;