diff options
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/book.module b/modules/book.module index 746b8e5fe..1a9d9022c 100644 --- a/modules/book.module +++ b/modules/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)); |