function heartbeat_log in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 heartbeat.module \heartbeat_log()
- 7 heartbeat.module \heartbeat_log()
User activity logger function
Parameters
The data to add one row:
3 calls to heartbeat_log()
- heartbeat_api_log in ./
heartbeat.module - API function to log a message from custom code
- heartbeat_rules_default_action in ./
heartbeat.rules.inc - Action Implementation: Log an activity Default action for most common heartbeat message activities
- heartbeat_rules_users_action in ./
heartbeat.rules.inc - Action Implementation: Log an activity between two users
File
- ./
heartbeat.module, line 629
Code
function heartbeat_log($data, $args = array()) {
$heartbeat_activity = new HeartbeatActivity($data);
return $heartbeat_activity
->save($args);
}