You are here

function heartbeat_get_uaids in Heartbeat 6.4

Function to retrieve the user activity ids for each language.

4 calls to heartbeat_get_uaids()
heartbeat_comments_form_submit in modules/heartbeat_comments/heartbeat_comments.module
User submitted a heartbeat comment.
heartbeat_promote_message_instance in ./heartbeat.module
Promote a message to the list again.
_heartbeat_activity_delete in ./heartbeat.module
Deletes a heartbeat activity messages.
_heartbeat_comments_delete in modules/heartbeat_comments/heartbeat_comments.module
Deletes a heartbeat comment.

File

./heartbeat.common.inc, line 242
Commonly functions used in heartbeat

Code

function heartbeat_get_uaids($tuaid) {
  $uaids = array(
    $tuaid,
  );
  if (module_exists('locale')) {
    $result = db_query("SELECT uaid FROM {heartbeat_translations} WHERE tuaid = %d", $tuaid);
    while ($row = db_fetch_object($result)) {
      $uaids[] = $row->uaid;
    }
  }
  return array_unique($uaids);
}