You are here

function _simpleads_delete_aggregated in SimpleAds 7

Helper procedure. Deletes aggregates stats.

Parameters

int $nid:

1 call to _simpleads_delete_aggregated()
simpleads_node_delete in ./simpleads.module
Implements hook_node_delete().

File

includes/simpleads.helper.inc, line 231
SimpleAds Helper functions.

Code

function _simpleads_delete_aggregated($node) {
  db_delete('simpleads_stats')
    ->condition('nid', $node->nid)
    ->execute();
}