I have a website where I have comments on certain content but I am not allowing any replies to these comments. When deleting a comment the confirm delete message shows as
'Any replies to this comment will be lost. This action cannot be undone.'
This is not ideal because obviously there will never be any replies.
I have found the function which creates the text for the message on line 257 of comment.admin.inc
function comment_confirm_delete($form, &$form_state, $comment) { $form['#comment'] = $comment; // Always provide entity id in the same form key as in the entity edit form. $form['cid'] = array('#type' => 'value', '#value' => $comment->cid); return confirm_form( $form, t('Are you sure you want to delete the comment %title?', array('%title' => $comment->subject)), 'node/' . $comment->nid, t('Any replies to this comment will be lost. This action cannot be undone.'), t('Delete'), t('Cancel'), 'comment_confirm_delete'); } How would I go about changing this text. Could I use template.php? If so how would I find the correct preprocess function. And then what is the way in which I could best find the variable in its current state in order to change it?