function node_deploy_add_form_submit in Deploy - Content Staging 6
Submit handler for node_deploy_add_form().
File
- modules/
node_deploy/ node_deploy.pages.inc, line 53 - Page handlers for node deployment pages.
Code
function node_deploy_add_form_submit($form, &$form_state) {
$pid = $form_state['values']['pid'];
$nid = $form_state['values']['nid'];
$title = $form_state['values']['title'];
if (!deploy_item_is_in_plan($pid, 'node', $nid)) {
deploy_add_to_plan($pid, 'node', 'Node: ' . $title, $nid, 0, DEPLOY_NODE_GROUP_WEIGHT);
}
$form_state['redirect'] = "admin/build/deploy/list/{$pid}";
}