function book_submit in Drupal 4
Same name and namespace in other branches
- 5 modules/book/book.module \book_submit()
Implementation of hook_submit().
File
- modules/
book.module, line 208 - Allows users to collaboratively author a book.
Code
function book_submit(&$node) {
global $user;
// Set default values for non-administrators.
if (!user_access('administer nodes')) {
$node->weight = 0;
$node->revision = 1;
$node->uid = $user->uid;
}
}