You are here

public function NodeActivity::modifyActivityMessage in Heartbeat 7

modifyActivityMessage(). This will make sure the nid is saved when a message is logged. E.g. ActivityStatus plugin with a shout in node context.

Overrides HeartbeatStream::modifyActivityMessage

File

modules/heartbeat_defaults/streams/nodeactivity.inc, line 55

Class

NodeActivity
Class NodeActivity Stream with all activity related to nodes.

Code

public function modifyActivityMessage(HeartbeatActivity $heartbeatActivity) {

  // Add the content node context.
  $heartbeatActivity->nid = $this->nid;
}