summaryrefslogtreecommitdiff
path: root/modules/story/story.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/story/story.module')
-rw-r--r--modules/story/story.module19
1 files changed, 14 insertions, 5 deletions
diff --git a/modules/story/story.module b/modules/story/story.module
index 517d53b9e..df70e9fdd 100644
--- a/modules/story/story.module
+++ b/modules/story/story.module
@@ -74,16 +74,25 @@ function story_validate(&$node) {
* Implementation of hook_form().
*/
function story_form(&$node) {
- $output = form_textfield(t('Title'), 'title', $node->title, 60, 128, NULL, NULL, TRUE);
+
+ $form['title'] = array(type => 'textfield', title => t('Title'), size => 60, maxlength => 128, required => TRUE, default_value => $node->title);
if (function_exists('taxonomy_node_form')) {
- $output .= implode('', taxonomy_node_form('story', $node));
+ $form['taxonomy'] = taxonomy_node_form('story', $node);
}
- $output .= form_textarea(t('Body'), 'body', $node->body, 60, 20, '', NULL, TRUE);
- $output .= filter_form('format', $node->format);
+ $form['body'] = array(
+ type => 'textarea', title => t('Body'), default_value => $node->body, required => TRUE
+ );
+ $form = array_merge($form, filter_form($node->format));
+
+
+ $form['log'] = array(
+ type => 'textarea', title => t('Log message'), default_value => $node->log, rows => 5,
+ description => t('An explanation of the additions or updates being made to help other authors understand your motivations.')
+ );
- return $output;
+ return $form;
}