function node_clone_node_confirm_submit in Node clone 8
Handle confirm form submission
File
- ./
node_clone.pages.inc, line 136 - Additional functions for Node_Clone module.
Code
function node_clone_node_confirm_submit($form, &$form_state) {
if ($form_state['values']['confirm']) {
$new_nid = node_clone_node_save($form_state['values']['nid']);
}
$form_state['redirect'] = 'node/' . $new_nid . '/edit';
}