function statistics_node_delete

statistics_node_delete($node)

Implements hook_node_delete().

File

modules/statistics/statistics.module, line 430
Logs and displays access statistics for a site.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!statistics!statistics.module/function/statistics_node_delete/7.x