function hook_heartbeat_activity_insert in Heartbeat 7
Take action when activity is being inserted.
Parameters
HeartbeatActivity $heartbeatActivity: The heartbeat activity object.
2 invocations of hook_heartbeat_activity_insert()
- 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 168 - Hooks provided by the Heartbeat API.
Code
function hook_heartbeat_activity_insert($heartbeatActivity) {
// Do your stuff...
}