You are here

function node_clone_node_confirm in Node clone 8

form builder: prompt the user to confirm the operation

1 string reference to 'node_clone_node_confirm'
node_clone_node_check in ./node_clone.pages.inc
Menu callback: prompt the user to confirm the operation

File

./node_clone.pages.inc, line 124
Additional functions for Node_Clone module.

Code

function node_clone_node_confirm($form, &$form_state, $node) {
  $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'));
}