You are here

function print_pdf_node_delete in Printer, email and PDF versions 7.2

Same name and namespace in other branches
  1. 7 print_pdf/print_pdf.module \print_pdf_node_delete()

Implements hook_node_delete().

File

print_pdf/print_pdf.module, line 258
Displays Printer-friendly versions of Drupal pages.

Code

function print_pdf_node_delete($node) {
  db_delete('print_pdf_page_counter')
    ->condition('path', 'node/' . $node->nid)
    ->execute();
  print_pdf_cache_delete($node->nid);
}