You are here

function classified_node_revision_delete in Classified Ads 6.3

Same name and namespace in other branches
  1. 7.3 classified.module \classified_node_revision_delete()

Implements the D7 hook_node_revision_delete().

1 call to classified_node_revision_delete()
classified_nodeapi in ./classified.module
Implements hook_nodeapi().

File

./classified.module, line 1281
A pure D6 classified ads module inspired by the ed_classified module.

Code

function classified_node_revision_delete($node) {
  $sq = 'DELETE FROM {classified_node} WHERE vid = %d';
  $ret = db_query($sq, $node->vid);
  if ($ret === FALSE) {
    watchdog('classified', 'Error deleting revision @vid of node @nid', array(
      '@vid' => $node->vid,
      '@nid' => $node->nid,
    ), WATCHDOG_WARNING, 'node/' . $node->nid);
  }
}