Commit 34896516 authored by Dries's avatar Dries

- Patch #46690 by Zen: 'user comments' -> 'comment settings'.

parent f63bb3a3
......@@ -244,14 +244,14 @@ function comment_form_alter($form_id, &$form) {
if ($form['type']['#value'] .'_node_form' == $form_id) {
$node = $form['#node'];
if (user_access('administer comments')) {
$form['user_comments'] = array(
$form['comment_settings'] = array(
'#type' => 'fieldset',
'#title' => t('User comments'),
'#title' => t('Comment settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 30,
);
$form['user_comments']['comment'] = array(
$form['comment_settings']['comment'] = array(
'#type' => 'radios',
'#parents' => array('comment'),
'#default_value' => $node->comment,
......@@ -259,7 +259,7 @@ function comment_form_alter($form_id, &$form) {
);
}
else {
$form['user_comments']['comment'] = array(
$form['comment_settings']['comment'] = array(
'#type' => 'value',
'#value' => $node->comment,
);
......
......@@ -244,14 +244,14 @@ function comment_form_alter($form_id, &$form) {
if ($form['type']['#value'] .'_node_form' == $form_id) {
$node = $form['#node'];
if (user_access('administer comments')) {
$form['user_comments'] = array(
$form['comment_settings'] = array(
'#type' => 'fieldset',
'#title' => t('User comments'),
'#title' => t('Comment settings'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 30,
);
$form['user_comments']['comment'] = array(
$form['comment_settings']['comment'] = array(
'#type' => 'radios',
'#parents' => array('comment'),
'#default_value' => $node->comment,
......@@ -259,7 +259,7 @@ function comment_form_alter($form_id, &$form) {
);
}
else {
$form['user_comments']['comment'] = array(
$form['comment_settings']['comment'] = array(
'#type' => 'value',
'#value' => $node->comment,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment