Display User Relationship request dialog on content profile page
I've created Add as friend likes in a project once doing this:

l(t('Add as friend'), 'relationship/' . $account-&gt;uid . '/request');


It served me fine, but I'm not sure if you want something different.