You are here

function heartbeat_comments_heartbeat_activity_delete in Heartbeat 7

Same name and namespace in other branches
  1. 6.4 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 160
Heartbeat comments for activity.

Code

function heartbeat_comments_heartbeat_activity_delete($uaids) {
  if (!empty($uaids)) {
    db_delete('heartbeat_comments')
      ->condition('uaid', $uaids, 'IN')
      ->execute();
  }
}