statistics_nodeapi

Versions
4.6 – 6
statistics_nodeapi(&$node, $op, $arg = 0)

Implementation of hook_nodeapi().

Code

modules/statistics.module, line 484

<?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);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.