- Patch #307422 by brianV: for usability's sake, use 'Add new comment' across the board.
parent
28b2f098be
commit
18428ae91f
|
@ -190,7 +190,7 @@ function comment_menu() {
|
||||||
'type' => MENU_CALLBACK,
|
'type' => MENU_CALLBACK,
|
||||||
);
|
);
|
||||||
$items['comment/reply/%node'] = array(
|
$items['comment/reply/%node'] = array(
|
||||||
'title' => 'Reply to comment',
|
'title' => 'Add new comment',
|
||||||
'page callback' => 'comment_reply',
|
'page callback' => 'comment_reply',
|
||||||
'page arguments' => array(2),
|
'page arguments' => array(2),
|
||||||
'access callback' => 'node_access',
|
'access callback' => 'node_access',
|
||||||
|
|
|
@ -102,7 +102,7 @@ function comment_reply($node, $pid = NULL) {
|
||||||
drupal_goto("node/$node->nid");
|
drupal_goto("node/$node->nid");
|
||||||
}
|
}
|
||||||
elseif (user_access('post comments')) {
|
elseif (user_access('post comments')) {
|
||||||
$output .= theme('comment_form_box', array('pid' => $pid, 'nid' => $node->nid), t('Reply'));
|
$output .= theme('comment_form_box', array('pid' => $pid, 'nid' => $node->nid), t('Add new comment'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
drupal_set_message(t('You are not authorized to post comments.'), 'error');
|
drupal_set_message(t('You are not authorized to post comments.'), 'error');
|
||||||
|
|
Loading…
Reference in New Issue