You are here

function hook_heartbeat_activity_presave in Heartbeat 7

Take action before activity is saved.

Parameters

HeartbeatActivity $heartbeatActivity: The heartbeat activity object.

2 invocations of hook_heartbeat_activity_presave()
heartbeat_activity_form_submit in ./heartbeat.entity.inc
Submit handler to save an heartbeat activity entity.
heartbeat_log in ./heartbeat.module
User activity logger function

File

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

Code

function hook_heartbeat_activity_presave($heartbeatActivity) {

  // Do your stuff...
}