diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-02-12 19:37:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-02-12 19:37:04 +0000 |
commit | b5c18e8a17024d4af8b2ea508d5ded2570893f07 (patch) | |
tree | 305a4b33d3a3130d7589d70dc5166caa25f488b2 /modules/node/node.module | |
parent | 14b84fa2997b5e27046a70ac307a4241d724e466 (diff) | |
download | brdo-b5c18e8a17024d4af8b2ea508d5ded2570893f07.tar.gz brdo-b5c18e8a17024d4af8b2ea508d5ded2570893f07.tar.bz2 |
- Patch 5592 by Goba: introduced a new function, drupal_map_assoc().
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 9d513fe95..7a0632ccf 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -573,7 +573,7 @@ function node_search($keys) { } function node_settings() { - $output .= form_select(t('Number of posts on main page'), 'default_nodes_main', variable_get('default_nodes_main', 10), array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30), t('The default maximum number of posts to display per page on overview pages such as the main page.')); + $output .= form_select(t('Number of posts on main page'), 'default_nodes_main', variable_get('default_nodes_main', 10), drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30)), t('The default maximum number of posts to display per page on overview pages such as the main page.')); $output .= form_select(t('Length of trimmed posts'), 'teaser_length', variable_get('teaser_length', 600), array(0 => t('Unlimited'), 200 => t('200 characters'), 400 => t('400 characters'), 600 => t('600 characters'), 800 => t('800 characters'), 1000 => t('1000 characters'), 1200 => t('1200 characters'), 1400 => t('1400 characters'), 1600 => t('1600 characters'), 1800 => t('1800 characters'), 2000 => t('2000 characters')), 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'.")); $output .= form_radios(t('Preview post'), 'node_preview', variable_get('node_preview', 0), array(t('Optional'), t('Required')), t('Must users preview posts before submitting?')); |