You are here

function print_ui_node_delete in Printer, email and PDF versions 7.2

Implements hook_node_delete().

File

print_ui/print_ui.module, line 375
Printer-friendly pages User Interface module.

Code

function print_ui_node_delete($node) {
  foreach (module_implements('print_link') as $module) {
    $function = $module . '_print_link';
    if (function_exists($function)) {
      call_user_func_array($function, array());
      db_delete($module . '_node_conf')
        ->condition('nid', $node->nid)
        ->execute();
    }
  }
}