I need to create an 'add friend' link programatically.
$content .= '<li>' . l('<span class="icon"></span>Add to your friends', 'relationship/' . $tid . '/request/1?destination=user/' . $tid, array('html' => true, 'attributes' => array('class' => 'add`-friend')));
It leads me to another page with confirmation form for the invitation.
Could anybody tell me how (if possible) I can display this confirmation form in dialog?