You are here

function user_relationships_load_relationships_by_relatee in User Relationships 5

Public API for loading relationships that match specified criteria, indexed by relatee

Parameters

$criteria: An associative array of attributes to search for. Keys in the array should match See the comments for user_relationships_count_relationships() above for a description of the criteria.

$relater: The uid of the user whose relatees you want to identify

Return value

An array indexed by $relatee, where $relatee is whichever of (requester_id, requestee_id) doesn't match $relater. Each element of the returned array is an array of relationships between $relater and $relatee which match the criteria. If some relationships match the criteria, but don't involve $relater, they're returned in the array indexed by $relatee = -1.

File

./user_relationships_api.inc, line 336

Code

function user_relationships_load_relationships_by_relatee($criteria = array(), $relater = -1) {
  return _user_relationships_select_relationships($criteria, FALSE, $relater);
}