Heartbeat streams
In the heartbeat api module, there are three default streams available. Each of them have a block and a page view. The pages you can visit immediately after install:
There is also a stream page available when installing friendlist_activity and choosing your User relations API:
You can register you own heartbeat access types with the hook hook_heartbeat_register_access_types.For drupal 7 this hook is called hook_heartbeat_register_streams but it works the same way. Test
Implemented
This page displays a custom heartbeat stream on the right - SiteActivity - defined in heartbeat example module, which is located in the heartbeat project. This submodule shows the basic implementation possibilities (hooks) within heartbeat. The rest of this sites overrides and features is also available. You will find the code in the downloads section.
Technical
Every heartbeat stream is an instance of HeartbeatAccess. A HeartbeatAccess subclass is nothing more than a query builder that builds a stream of heartbeat messages. Custom modules can extend HeartbeatAccess or an already extended class to add a new stream to their site.
Underneath is the most basic example of a custom stream. So basically all you need to do is register your class and in your class you describe a sql part that will be executed when quering the heartbeat_activity table.



