You are here

function statistics_node_delete in Drupal 7

Implements hook_node_delete().

File

modules/statistics/statistics.module, line 428
Logs and displays access statistics for a site.

Code

function statistics_node_delete($node) {

  // clean up statistics table when node is deleted
  db_delete('node_counter')
    ->condition('nid', $node->nid)
    ->execute();
}