function statistics_nodeapi in Drupal 5
Same name and namespace in other branches
- 4 modules/statistics.module \statistics_nodeapi()
- 6 modules/statistics/statistics.module \statistics_nodeapi()
Implementation of hook_nodeapi().
File
- modules/
statistics/ statistics.module, line 528 - Logs access statistics for your site.
Code
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);
}
}