comment_confirm_delete

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/comment/comment.module, строка 1088

Версии
5
comment_confirm_delete($comment)
6
comment_confirm_delete(&$form_state, $comment)

Код

<?php
function comment_confirm_delete($comment) {

  $form = array();
  $form['comment'] = array(
    '#type' => 'value',
    '#value' => $comment,
  );

  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'));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему