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