function activity_comment_delete in Activity 7
Same name and namespace in other branches
- 6 activity.module \activity_comment_delete()
Implements hook_comment_delete().
File
- ./
activity.module, line 702 - Records Activity across the site and surfaces that to Views.
Code
function activity_comment_delete($comment) {
$aids = db_query("SELECT aid FROM {activity} WHERE type IN (:types) AND eid = :eid", array(
":types" => array(
'comment_insert',
),
":eid" => $comment->cid,
))
->fetchCol();
activity_delete($aids);
}