You are here

function patron_delete in Library 6

Same name and namespace in other branches
  1. 5.2 patron/patron.module \patron_delete()

Implemenation of hook_delete().

File

patron/patron.module, line 145

Code

function patron_delete($node) {
  if (module_exists('library')) {
    db_query("DELETE FROM {library_transactions} WHERE patron_id = %d", $node->nid);
  }
  db_query("DELETE FROM {library_patrons} WHERE nid = %d", $node->nid);
}