summaryrefslogtreecommitdiff
path: root/modules/story.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-23 08:47:13 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-23 08:47:13 +0000
commit61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0 (patch)
tree814cc9a6da1ec51a6e3eca921dc001ae6b5dee6a /modules/story.module
parente3a4085a07647878142d1c51a6977a5b98f707ea (diff)
downloadbrdo-61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0.tar.gz
brdo-61740bd8ee133c3d0ea2543bccc4d00a62c9e3a0.tar.bz2
- Patch #10056: allow the node title forms to be customized.
Diffstat (limited to 'modules/story.module')
-rw-r--r--modules/story.module9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/story.module b/modules/story.module
index 2d98f4f66..517d53b9e 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -64,10 +64,17 @@ function story_menu($may_cache) {
}
/**
+ * 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));