You are here

function heartbeat_example_heartbeat_messages_alter in Heartbeat 6.4

Implementation of hook_heartbeat_messages_alter().

Parameters

$messages Array of raw heartbeat activity messages:

$stream HeartbeatAccess as the object that holds the current stream scope:

File

modules/heartbeat_example/heartbeat_example.module, line 147

Code

function heartbeat_example_heartbeat_messages_alter(&$messages, HeartbeatAccess $stream) {

  // Here you can loop through messages to delete (unset) activity messages
  // rather than changing them. Changes to messages are most of the time
  // theme issues and should be done in "hook_heartbeat_theme_alter".
}