- Patch #504074 by Bojhan, tic2000, royroy, catch, keith.smith et al: improved form description of teaser length setting.

merge-requests/26/head
Dries Buytaert 2009-07-14 10:42:11 +00:00
parent 2ea8bd9801
commit 3269eb2e08
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ function aggregator_form_aggregator_admin_form_alter(&$form, $form_state) {
'#title' => t('Length of trimmed description'),
'#default_value' => 600,
'#options' => drupal_map_assoc(array(0, 200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000), '_aggregator_characters'),
'#description' => t("The maximum number of characters used in the trimmed version of a description. Drupal will use this setting to determine at which offset long descriptions should be trimmed. 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 content.")
);
}

View File

@ -187,7 +187,7 @@ function node_type_form(&$form_state, $type = NULL) {
'#title' => t('Length of trimmed posts'),
'#default_value' => variable_get('teaser_length_' . $type->type, 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'.")
'#description' => t("The maximum number of characters used in the trimmed version of content.")
);
$form['old_type'] = array(
'#type' => 'value',