From 199dc7cc9d18378d4a3ca19551984381b6094744 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 1 Jul 2009 12:10:32 +0000 Subject: - Patch #504564 by tic2000: fixed teaser length setting and added tests. --- modules/node/node.admin.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node/node.admin.inc') diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc index 62f49382b..9a8d81261 100644 --- a/modules/node/node.admin.inc +++ b/modules/node/node.admin.inc @@ -31,9 +31,9 @@ function node_configure() { ); $form['teaser_length'] = array( '#type' => 'select', '#title' => t('Length of trimmed posts'), - '#default_value' => 600, + '#default_value' => variable_get('teaser_length', 600), '#options' => drupal_map_assoc(array(0, 200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000), '_node_characters'), - '#description' => t("The maximum number of characters used in the trimmed version of a post. Drupal will use this setting to determine at which offset long posts should be trimmed. The trimmed version of a post is typically used as a teaser when displaying the post on the main page, in XML feeds, etc. To disable teasers, set to 'Unlimited' . Note that this setting will only affect new or updated content and will not affect existing teasers.") + '#description' => t("The maximum number of characters used in the trimmed version of a post. Drupal will use this setting to determine at which offset long posts should be trimmed. The trimmed version of a post is typically used as a teaser when displaying the post on the main page, in XML feeds, etc. To disable teasers, set to 'Unlimited'.") ); $form['node_preview'] = array( -- cgit v1.2.3