diff options
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module index f190c57d2..ceeeff80d 100644 --- a/modules/book.module +++ b/modules/book.module @@ -221,15 +221,20 @@ function book_delete(&$node) { } /** - * Implementation of hook_validate(). + * Implementation of hook_execute(). */ -function book_validate(&$node) { +function book_execute(&$node) { // Set default values for non-administrators. if (!user_access('administer nodes')) { $node->weight = 0; $node->revision = 1; } +} +/** + * Implementation of hook_validate(). + */ +function book_validate($node) { node_validate_title($node); } |