function fasttoggle_comment_option_confirm in Fasttoggle 6
Same name and namespace in other branches
- 5 fasttoggle.module \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.toggle.inc - Menu callback. Toggle options for a comment if the action is confirmed via POST. Otherwise, display a confirmation form.
File
- ./
fasttoggle.toggle.inc, line 228 - Handles toggling of options.
Code
function fasttoggle_comment_option_confirm($form_state, $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'));
}