diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-30 02:50:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-30 02:50:37 +0000 |
commit | a63facc8c6b8289f7d456226206c92ee491ecaeb (patch) | |
tree | 2f42cba111bbbd8836c3700133603b84d50784c3 /modules/comment | |
parent | 37c3c7ec7aff7fad84b3839ac3fa5437b7b256b2 (diff) | |
download | brdo-a63facc8c6b8289f7d456226206c92ee491ecaeb.tar.gz brdo-a63facc8c6b8289f7d456226206c92ee491ecaeb.tar.bz2 |
- Patch #867956 by jbrown: location/description of 'hide comments' settings seems sub-optimal.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 13 |
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'), |