From 98cde919dcf34f59032b9c1db13e0d9801c00d1e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Nov 2006 08:04:27 +0000 Subject: - Patch #98383 by ysched: UI improvements for content type configuration. --- modules/node/content_types.inc | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'modules') diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 9ce85e4fa..93aeda4d5 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -104,6 +104,13 @@ function node_type_form($type = NULL) { ); } + $form['identity']['description'] = array( + '#title' => t('Description'), + '#type' => 'textarea', + '#default_value' => $type->description, + '#description' => t('A brief description of this content type. This text will be displayed as part of the list on the create content page.'), + ); + $form['submission'] = array( '#type' => 'fieldset', '#title' =>t('Submission form'), @@ -129,18 +136,6 @@ function node_type_form($type = NULL) { '#default_value' => $type->body_label, '#description' => t('To omit the body field for this content type, remove any text and leave this field blank.'), ); - $form['submission']['description'] = array( - '#title' => t('Description'), - '#type' => 'textarea', - '#default_value' => $type->description, - '#description' => t('A brief description of this content type. This text will be displayed as part of the list on the create content page.'), - ); - $form['submission']['help'] = array( - '#type' => 'textarea', - '#title' => t('Explanation or submission guidelines'), - '#default_value' => $type->help, - '#description' => t('This text will be displayed at the top of the submission form for this content type. It is useful for helping or instructing your users.') - ); $form['submission']['min_word_count'] = array( '#type' => 'select', '#title' => t('Minimum number of words'), @@ -148,6 +143,12 @@ function node_type_form($type = NULL) { '#options' => drupal_map_assoc(array(0, 10, 25, 50, 75, 100, 125, 150, 175, 200)), '#description' => t('The minimum number of words for the body field to be considered valid for this content type. This can be useful to rule out submissions that do not meet the site\'s standards, such as short test posts.') ); + $form['submission']['help'] = array( + '#type' => 'textarea', + '#title' => t('Explanation or submission guidelines'), + '#default_value' => $type->help, + '#description' => t('This text will be displayed at the top of the submission form for this content type. It is useful for helping or instructing your users.') + ); $form['workflow'] = array( '#type' => 'fieldset', '#title' =>t('Workflow'), -- cgit v1.2.3