Activity message (15967) is filtered from display, because this message is blocked by node access or profile access.

Groups

This is the groups page. In the subnavigation you will find all available groups in the demosite. Every group has a heartbeat stream that comes within og_activity module. It shows the activity within that requested group.

This page however is the entry point for ALL groups, so here the heartbeat activity stream will show the activity from all groups. This is a nice example on how you can override the whole query. This code is taken from the submodule og_activity in is located in files og_activity.module and groupsactivity.inc.

How to create a custom activity stream

First, we register the stream as a stream (An object that extends the HeartbeatAccess object). Make sure the path is correct, the class name is unique and that hook is correctly implemented what so ever.

 

After that, we can create the class at that location. As you can see beneath, i did not override the dressupMessages method because i actually want control over the SELECT part of the query. I don't want implementation on the where, but rather let the INNER JOIN control the limitation.

So in the code following, you can see how simple it is too have control over the whole thing.

In the code following that, i show that it's possible to have your own heartbeatActivity object as well. The instantantiation of MyHeartbeatActivity gives you the opportunity to add member properties to an activity object.

Have fun!