function commons_activity_streams_comment_delete in Drupal Commons 7.3
Implements hook_comment_delete().
File
- modules/
commons/ commons_activity_streams/ commons_activity_streams.module, line 82
Code
function commons_activity_streams_comment_delete($comment) {
// Delete the activity stream message created when this comment
// was posted.
if ($mids = commons_activity_streams_existing_messages($comment->uid, array(
$comment->cid,
), 'field_target_comments', 'commons_activity_streams_comment_created')) {
message_delete_multiple($mids);
}
}