You are here

public function HeartbeatMessagePool::addMessage in Heartbeat 7

addMessage().

1 call to HeartbeatMessagePool::addMessage()
HeartbeatMessagePool::getMessage in ./heartbeat.module
getMessage().

File

./heartbeat.module, line 1007
Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.

Class

HeartbeatMessagePool
Class to keep HeartbeatActivity messages in a pool so plugins and such can get the message instead of reloading them.

Code

public function addMessage($heartbeatActivity) {
  if (isset($heartbeatActivity)) {
    if (!isset($this->activity[$heartbeatActivity->uaid])) {
      $this->activity[$heartbeatActivity->uaid] = $heartbeatActivity;
    }
  }
}