summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.admin.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc
index 95eb7cbc6..090dd5cad 100644
--- a/modules/node/node.admin.inc
+++ b/modules/node/node.admin.inc
@@ -30,12 +30,14 @@ function node_configure() {
}
$form['default_nodes_main'] = array(
- '#type' => 'select', '#title' => t('Number of posts on main page'), '#default_value' => variable_get('default_nodes_main', 10),
+ '#type' => 'select', '#title' => t('Number of posts on main page'),
+ '#default_value' => 10,
'#options' => drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30)),
'#description' => t('The default maximum number of posts to display per page on overview pages such as the main page.')
);
$form['teaser_length'] = array(
- '#type' => 'select', '#title' => t('Length of trimmed posts'), '#default_value' => variable_get('teaser_length', 600),
+ '#type' => 'select', '#title' => t('Length of trimmed posts'),
+ '#default_value' => 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.")
);
@@ -43,12 +45,12 @@ function node_configure() {
$form['node_preview'] = array(
'#type' => 'radios',
'#title' => t('Preview post'),
- '#default_value' => variable_get('node_preview', 0),
+ '#default_value' => 0,
'#options' => array(t('Optional'), t('Required')),
'#description' => t('Must users preview posts before submitting?'),
);
- return system_settings_form($form);
+ return system_settings_form($form, TRUE);
}
/**