Same name and namespace in other branches
- 4.6.x modules/book.module \book_insert()
- 5.x 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);
}