- Patch #46690 by Zen: 'user comments' -> 'comment settings'.
parent
f63bb3a3f1
commit
3489651659
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue