| 5 statistics.module | statistics_nodeapi(&$node, $op, $arg = 0) |
| 6 statistics.module | statistics_nodeapi(&$node, $op, $arg = 0) |
Implementation of hook_nodeapi().
File
- modules/
statistics.module, line 487 - 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);
}
}
Login or register to post comments