statistics_nodeapi(&$node, $op, $arg = 0)
statistics/statistics.module, line 528
Implementation of hook_nodeapi().
<?php
function statistics_nodeapi(&$node, $op, $arg = 0) {
switch ($op) {
case 'delete':
// clean up statistics table when node is deleted
db_query('DELETE FROM {node_counter} WHERE nid = %d', $node->nid);
}
}
?>