summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module13
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 62e2d3d4a..b98f9e5f2 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1089,6 +1089,12 @@ function comment_form_node_type_form_alter(&$form, $form_state) {
'js' => array(drupal_get_path('module', 'comment') . '/comment-node-form.js'),
),
);
+ $form['comment']['comment'] = array(
+ '#type' => 'select',
+ '#title' => t('Default comment setting for new content'),
+ '#default_value' => variable_get('comment_' . $form['#node_type']->type, COMMENT_NODE_OPEN),
+ '#options' => array(t('Hidden'), t('Closed'), t('Open')),
+ );
$form['comment']['comment_default_mode'] = array(
'#type' => 'checkbox',
'#title' => t('Threading'),
@@ -1101,13 +1107,6 @@ function comment_form_node_type_form_alter(&$form, $form_state) {
'#default_value' => variable_get('comment_default_per_page_' . $form['#node_type']->type, 50),
'#options' => _comment_per_page(),
);
-
- $form['comment']['comment'] = array(
- '#type' => 'select',
- '#title' => t('Default comment setting for new content'),
- '#default_value' => variable_get('comment_' . $form['#node_type']->type, COMMENT_NODE_OPEN),
- '#options' => array(t('Hidden'), t('Closed'), t('Open')),
- );
$form['comment']['comment_anonymous'] = array(
'#type' => 'select',
'#title' => t('Anonymous commenting'),