You are here

function clone_node_confirm_submit in Node clone 6

Same name and namespace in other branches
  1. 5 clone.module \clone_node_confirm_submit()
  2. 7 clone.pages.inc \clone_node_confirm_submit()

Handle confirm form submission

File

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

Code

function clone_node_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    $new_nid = clone_node_save($form_state['values']['nid']);
  }
  $form_state['redirect'] = 'node/' . $new_nid . '/edit';
}