You are here

public function HeartbeatStream::modifyActivityMessage in Heartbeat 7

modifyActivityMessage()

4 methods override HeartbeatStream::modifyActivityMessage()
GroupActivity::modifyActivityMessage in modules/heartbeat_og/streams/groupactivity.inc
modifyActivityMessage().
GroupsActivity::modifyActivityMessage in modules/heartbeat_og/streams/groupsactivity.inc
modifyActivityMessage().
MembersActivity::modifyActivityMessage in modules/heartbeat_og/streams/membersactivity.inc
modifyActivityMessage().
NodeActivity::modifyActivityMessage in modules/heartbeat_defaults/streams/nodeactivity.inc
modifyActivityMessage(). This will make sure the nid is saved when a message is logged. E.g. ActivityStatus plugin with a shout in node context.

File

includes/heartbeatstream.inc, line 970
HeartbeatStream object is the object that takes stream configuration to create a stream of activity objects. It is the controlling organ at the pre-query, query and post-query phases.

Class

HeartbeatStream
Abstract class HeartbeatStream This base class has final template methods which are used by the derived concretes. The HeartbeatStream is a state object that is given to the HeartbeatStreamBuilder to set the access to the current request.

Code

public function modifyActivityMessage(HeartbeatActivity $heartbeatActivity) {
  if (!empty($this->contextual_arguments['uid_target'])) {
    $heartbeatActivity->uid_target = $this->contextual_arguments['uid_target'];
  }
}