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

4.7.x
Dries Buytaert 2006-02-26 19:47:55 +00:00
parent f63bb3a3f1
commit 3489651659
2 changed files with 8 additions and 8 deletions

View File

@ -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,
);

View File

@ -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,
);