function biblio_delete in Bibliography Module 7
Same name and namespace in other branches
- 5 biblio.module \biblio_delete()
- 6.2 biblio.module \biblio_delete()
- 6 biblio.module \biblio_delete()
- 7.2 biblio.module \biblio_delete()
Implements hook_delete().
When a node is deleted, we need to clean up related tables.
1 string reference to 'biblio_delete'
File
- ./
biblio.module, line 1822 - Bibliography Module for Drupal.
Code
function biblio_delete($node) {
module_load_include('inc', 'biblio', 'includes/biblio.contributors');
module_load_include('inc', 'biblio', 'includes/biblio.keywords');
// First remove data from the biblio table.
db_delete('biblio')
->condition('nid', $node->nid)
->execute();
// Now remove the entries from the contributor linking table.
biblio_delete_contributors($node);
biblio_delete_keywords($node);
}