You are here

function book_insert in Drupal 5

Same name and namespace in other branches
  1. 4 modules/book.module \book_insert()

Implementation of hook_insert().

File

modules/book/book.module, line 185
Allows users to collaboratively author a book.

Code

function book_insert($node) {
  db_query("INSERT INTO {book} (nid, vid, parent, weight) VALUES (%d, %d, %d, %d)", $node->nid, $node->vid, $node->parent, $node->weight);
}