diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-01 12:10:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-01 12:10:32 +0000 |
commit | 199dc7cc9d18378d4a3ca19551984381b6094744 (patch) | |
tree | 75aae493cd1247a70e71194c0f27552f007378da /modules/node/node.admin.inc | |
parent | 75d449d1eb5b87a8b94e22622102905b1ac58612 (diff) | |
download | brdo-199dc7cc9d18378d4a3ca19551984381b6094744.tar.gz brdo-199dc7cc9d18378d4a3ca19551984381b6094744.tar.bz2 |
- Patch #504564 by tic2000: fixed teaser length setting and added tests.
Diffstat (limited to 'modules/node/node.admin.inc')
-rw-r--r-- | modules/node/node.admin.inc | 4 |
1 files changed, 2 insertions, 2 deletions
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( |