function statistics_node_delete

Implements hook_node_delete().

File

modules/statistics/statistics.module, line 428

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.