function clone_node_confirm in Node clone 5
Same name and namespace in other branches
- 6 clone.pages.inc \clone_node_confirm()
- 7 clone.pages.inc \clone_node_confirm()
form builder: prompt the user to confirm the operation
1 string reference to 'clone_node_confirm'
- clone_node_check in ./
clone.module - Menu callback: prompt the user to confirm the operation
File
- ./
clone.module, line 160
Code
function clone_node_confirm() {
$node = node_load(arg(1));
$form['nid'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
return confirm_form($form, t('Are you sure you want to clone %title?', array(
'%title' => $node->title,
)), 'node/' . $node->nid, '<p>' . t('This action will create a new node. You will then be redirected to the edit page for the new node.') . '</p>', t('Clone'), t('Cancel'));
}