You are here

function heartbeat_comments_heartbeat_activity_delete in Heartbeat 6.4

Same name and namespace in other branches
  1. 7 modules/heartbeat_comments/heartbeat_comments.module \heartbeat_comments_heartbeat_activity_delete()

Implementation of hook_heartbeat_activity_delete(). Delete the attached comments to a heartbeat activity object.

Parameters

$message: HeartbeatActivity ID

See also

module_invoke_all('heartbeat_activity_delete', $activity);

File

modules/heartbeat_comments/heartbeat_comments.module, line 285
heartbeat_comments.module Heartbeat comments can come with two possible

Code

function heartbeat_comments_heartbeat_activity_delete($activity) {
  db_query("DELETE FROM {heartbeat_comments} WHERE uaid = %d", $activity->uaid);
}