function book_submit in Drupal 5
Same name and namespace in other branches
- 4 modules/book.module \book_submit()
Implementation of hook_submit().
File
- modules/
book/ book.module, line 192 - 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->revision = 1;
$node->uid = $user->uid;
}
}