You are here

function fasttoggle_comment_option_confirm in Fasttoggle 5

Same name and namespace in other branches
  1. 6 fasttoggle.toggle.inc \fasttoggle_comment_option_confirm()

Confirmation form for the option change of a comment.

1 string reference to 'fasttoggle_comment_option_confirm'
fasttoggle_comment_option in ./fasttoggle.module
Menu callback. Toggle options for a comment if the action is confirmed via POST. Otherwise, display a confirmation form.

File

./fasttoggle.module, line 551
Enables fast toggling of binary or not so binary settings

Code

function fasttoggle_comment_option_confirm($comment, $option) {
  return confirm_form(array(), t('Are you sure you want to set the comment %title to %option?', array(
    '%title' => $comment->subject,
    '%option' => $option,
  )), $_GET['destination'] ? $_GET['destination'] : 'comment/' . $comment->cid, '', t('Change'), t('Cancel'));
}