You are here

function biblio_delete in Bibliography Module 5

Same name and namespace in other branches
  1. 6.2 biblio.module \biblio_delete()
  2. 6 biblio.module \biblio_delete()
  3. 7 biblio.module \biblio_delete()
  4. 7.2 biblio.module \biblio_delete()

Implementation of hook_delete().

When a node is deleted, we need to clean up related tables.

File

./biblio.module, line 1830

Code

function biblio_delete($node) {
  db_query('DELETE FROM {biblio} WHERE nid = %d', $node->nid);
}