You are here

function _user_relationships_get_create_relationship_links in User Relationships 5.2

Render links to create relationship(s) with a user.

Parameters

$viewed user account to create links to.:

Return value

array of one or more links to create relationships with the user

1 call to _user_relationships_get_create_relationship_links()
_user_relationships_actions_between in ./user_relationships.module
List of pending relationships with between two users

File

./user_relationships.module, line 187

Code

function _user_relationships_get_create_relationship_links($viewed) {

  //this is a kludge to allow drawing links to each relationship when using user_relationships_direct.module
  if (module_exists('user_relationship_direct')) {
    return user_relationships_direct_create_relationship_links($viewed);
  }
  else {
    return array(
      theme('user_relationships_request_relationship_link', $viewed),
    );
  }
}