diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-09-23 08:47:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-09-23 08:47:13 +0000 |
commit | 61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0 (patch) | |
tree | 814cc9a6da1ec51a6e3eca921dc001ae6b5dee6a /modules/book/book.module | |
parent | e3a4085a07647878142d1c51a6977a5b98f707ea (diff) | |
download | brdo-61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0.tar.gz brdo-61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0.tar.bz2 |
- Patch #10056: allow the node title forms to be customized.
Diffstat (limited to 'modules/book/book.module')
-rw-r--r-- | modules/book/book.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/book/book.module b/modules/book/book.module index 746b8e5fe..1a9d9022c 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -225,13 +225,16 @@ function book_validate(&$node) { $node->weight = 0; $node->revision = 1; } + + node_validate_title($node); } /** * Implementation of hook_form(). */ function book_form(&$node) { - $output = form_select(t('Parent'), 'parent', ($node->parent ? $node->parent : arg(4)), book_toc($node->nid), t('The parent that this page belongs in. Note that pages whose parent is <top-level> are regarded as independent, top-level books.')); + $output = form_textfield(t('Title'), 'title', $node->title, 60, 128, NULL, NULL, TRUE); + $output .= form_select(t('Parent'), 'parent', ($node->parent ? $node->parent : arg(4)), book_toc($node->nid), t('The parent that this page belongs in. Note that pages whose parent is <top-level> are regarded as independent, top-level books.')); if (function_exists('taxonomy_node_form')) { $output .= implode('', taxonomy_node_form('book', $node)); |