You are here

function fasttoggle_node_option_confirm in Fasttoggle 5

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

Confirmation form for the option change of a node.

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

File

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

Code

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