function activity_node_delete in Activity 7
Implements hook_node_delete().
File
- ./
activity.module, line 680 - Records Activity across the site and surfaces that to Views.
Code
function activity_node_delete($node) {
$aids = db_query("SELECT aid FROM {activity} WHERE nid = :nid", array(
':nid' => $node->nid,
))
->fetchCol();
activity_delete($aids);
}