You are here

function heartbeat_get_related_uids in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 heartbeat.module \heartbeat_get_related_uids()

Function calculates all related uids The result depends highly on the settings for each private relation

2 calls to heartbeat_get_related_uids()
HeartbeatAccess::__construct in includes/heartbeataccess.inc
views_handler_filter_heartbeat_access::query in views/handlers/views_handler_filter_heartbeat_access.inc
Adding things to query object

File

./heartbeat.module, line 735

Code

function heartbeat_get_related_uids($uid) {
  $uids = $related_uids = array();
  $uids[$uid] = $uid;

  // all the messages where the current uid is in the friendlist
  // if function exists use it
  $related_uids = module_invoke_all('heartbeat_related_uid_info', $uid);
  if (count($related_uids) > 0) {
    foreach ($related_uids as $rel_uid) {
      $uids[$rel_uid] = $rel_uid;
    }
  }
  return $uids;

  // array_unique($uids);
}