You are here

function hook_heartbeat_load in Heartbeat 7

Hook to load extra stuff to heartbeat messages.

Additions and variables could easily be changed here. Typical example would be to load the output string or array of attachments. HeartbeatStream will be by address by default, however changes made at this point will not enforced as it is too late in the process. Changes made to the configurated stream are done in hook_heartbeat_stream_load().

Parameters

array $messages_raw: Array of messages resulting from the stream query.

HeartbeatStream $heartbeatStream: The heartbeat stream object.

File

./heartbeat.api.php, line 206
Hooks provided by the Heartbeat API.

Code

function hook_heartbeat_load(&$messages_raw, HeartbeatStream $heartbeatStream) {

  // Load extra data in the attachments section.
}