From 61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 23 Sep 2005 08:47:13 +0000 Subject: - Patch #10056: allow the node title forms to be customized. --- modules/blog/blog.module | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/blog/blog.module') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index a773a566e..954dc9906 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -182,6 +182,13 @@ function blog_page_last() { return $output; } +/** + * Implementation of hook_validate(). + */ +function blog_validate(&$node) { + node_validate_title($node); +} + /** * Implementation of hook_form(). */ @@ -189,6 +196,8 @@ function blog_form(&$node) { global $nid; $iid = $_GET['iid']; + $output = form_textfield(t('Title'), 'title', $node->title, 60, 128, NULL, NULL, TRUE); + if (empty($node->body)) { /* ** If the user clicked a "blog it" link, we load the data from the -- cgit v1.2.3