You are here

function biblio_insert in Bibliography Module 6

Same name and namespace in other branches
  1. 5 biblio.module \biblio_insert()
  2. 6.2 biblio.module \biblio_insert()
  3. 7 biblio.module \biblio_insert()

Implementation of hook_insert().

As a new node is being inserted into the database, we need to do our own database inserts.

File

./biblio.module, line 1695

Code

function biblio_insert($node) {
  require_once drupal_get_path('module', 'biblio') . '/biblio.keywords.inc';
  _biblio_prepare_submit($node);
  drupal_write_record('biblio', $node);
  biblio_insert_contributors($node);
  biblio_insert_keywords($node);
}