diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-11-12 02:54:13 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-11-12 02:54:13 +0000 |
commit | 85492ae9a548f0bfb58b673ac555f73d4b7977ed (patch) | |
tree | e980f521b5a0d66f7eac6020902de1628dba6633 /modules/book/book.module | |
parent | 76226df8672409b23856b8ade20d1d884d934af8 (diff) | |
download | brdo-85492ae9a548f0bfb58b673ac555f73d4b7977ed.tar.gz brdo-85492ae9a548f0bfb58b673ac555f73d4b7977ed.tar.bz2 |
#36791: node_validate was called twice
Diffstat (limited to 'modules/book/book.module')
-rw-r--r-- | modules/book/book.module | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index f190c57d2..ceeeff80d 100644 --- a/modules/book/book.module +++ b/modules/book/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); } |