From 5cf70c0a204dd06aa8e6a722363a0b8a937cc775 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 9 Aug 2009 01:15:33 +0000 Subject: #523256 by arianek and Bojhan: Cleanup add content type text. --- modules/node/content_types.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'modules/node') diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 597576021..0a0e0e692 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -108,7 +108,6 @@ function node_type_form(&$form_state, $type = NULL) { '#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 add new content page.'), ); $form['submission'] = array( @@ -133,24 +132,23 @@ function node_type_form(&$form_state, $type = NULL) { '#title' => t('Body field label'), '#type' => 'textfield', '#default_value' => isset($type->body_label) ? $type->body_label : '', - '#description' => t('To omit the body field for this content type, remove any text and leave this field blank.'), + '#description' => t('To remove the body field, remove text and leave blank.'), ); $form['submission']['node_preview'] = array( '#type' => 'radios', - '#title' => t('Preview post'), + '#title' => t('Preview before submitting'), '#default_value' => variable_get('node_preview_' . $type->type, DRUPAL_OPTIONAL), '#options' => array( DRUPAL_DISABLED => t('Disabled'), DRUPAL_OPTIONAL => t('Optional'), DRUPAL_REQUIRED => t('Required'), ), - '#description' => t('Should users preview posts before submitting?'), ); $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.') + '#description' => t('This text will be displayed at the top of the submission form for this content type.') ); $form['workflow'] = array( '#type' => 'fieldset', @@ -396,7 +394,7 @@ function node_type_delete_confirm(&$form_state, $type) { $num_nodes = db_query("SELECT COUNT(*) FROM {node} WHERE type = :type", array(':type' => $type->type))->fetchField(); if ($num_nodes) { - $caption .= '

' . format_plural($num_nodes, 'Warning: there is currently 1 %type post on your site. It may not be able to be displayed or edited correctly, once you have removed this content type.', 'Warning: there are currently @count %type posts on your site. They may not be able to be displayed or edited correctly, once you have removed this content type.', array('%type' => $type->name)) . '

'; + $caption .= '

' . format_plural($num_nodes, 'Warning: there is currently 1 %type post on your site. It may not be able to be displayed or edited correctly once you have removed this content type.', 'Warning: there are currently @count %type posts on your site. They may not be able to be displayed or edited correctly once you have removed this content type.', array('%type' => $type->name)) . '

'; } $caption .= '

' . t('This action cannot be undone.') . '

'; -- cgit v1.2.3