You are here

public function OgHeartbeat::dressUpMessages in Heartbeat 6.4

dressUpMessages

Parameters

HeartbeatParser $heartbeat: The parser for the messages in this stream.

Overrides HeartbeatAccess::dressUpMessages

File

modules/og_activity/ogheartbeat.inc, line 133

Class

OgHeartbeat
Class OgHeartbeat Concrete class to prepare messages for the current user and all of his/her relations.

Code

public function dressUpMessages(HeartbeatParser $heartbeat) {
  $sql = " AND ua.nid <> 0 AND (ua.nid = %d OR ua.nid_target = %d) ";
  $heartbeat->raw_messages = $this
    ->resultSql($sql, array(
    $this->_gid,
    $this->_gid,
  ));
  return $heartbeat;
}