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/story/story.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/story/story.module') diff --git a/modules/story/story.module b/modules/story/story.module index 2d98f4f66..517d53b9e 100644 --- a/modules/story/story.module +++ b/modules/story/story.module @@ -63,11 +63,18 @@ function story_menu($may_cache) { return $items; } +/** + * Implementation of hook_validate(). + */ +function story_validate(&$node) { + node_validate_title($node); +} + /** * Implementation of hook_form(). */ function story_form(&$node) { - $output = ''; + $output = form_textfield(t('Title'), 'title', $node->title, 60, 128, NULL, NULL, TRUE); if (function_exists('taxonomy_node_form')) { $output .= implode('', taxonomy_node_form('story', $node)); -- cgit v1.2.3