function book_insert in Drupal 4
Same name and namespace in other branches
- 5 modules/book/book.module \book_insert()
Implementation of hook_insert().
File
- modules/
book.module, line 182 - 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);
}