You are here

function clone_node_confirm in Node clone 7

Same name and namespace in other branches
  1. 5 clone.module \clone_node_confirm()
  2. 6 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.pages.inc
Menu callback: prompt the user to confirm the operation

File

./clone.pages.inc, line 110
Additional functions for Node_Clone module.

Code

function 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'));
}