You are here

function print_mail_node_delete in Printer, email and PDF versions 7

Same name and namespace in other branches
  1. 7.2 print_mail/print_mail.module \print_mail_node_delete()

Implements hook_node_delete().

File

print_mail/print_mail.module, line 300
Displays Printer-friendly versions of Drupal pages.

Code

function print_mail_node_delete($node) {
  db_delete('print_mail_node_conf')
    ->condition('nid', $node->nid)
    ->execute();
  db_delete('print_mail_page_counter')
    ->condition('path', 'node/' . $node->nid)
    ->execute();
}