function clone_node_confirm_submit in Node clone 7
Same name and namespace in other branches
- 5 clone.module \clone_node_confirm_submit()
- 6 clone.pages.inc \clone_node_confirm_submit()
Handle confirm form submission
File
- ./
clone.pages.inc, line 122 - 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';
}