function node_deploy_operations_add_form_submit in Deploy - Content Staging 6
Submit handler for node_deploy_operations_add_form().
File
- modules/
node_deploy/ node_deploy.pages.inc, line 107 - Page handlers for node deployment pages.
Code
function node_deploy_operations_add_form_submit($form, &$form_state) {
$result = db_query("SELECT nid, title, type FROM {node} WHERE nid IN (%s)", $form_state['values']['nids']);
$pid = $form_state['values']['pid'];
while ($row = db_fetch_array($result)) {
if (!deploy_item_is_in_plan($pid, 'node', $row['nid'])) {
deploy_add_to_plan($pid, 'node', $row['type'] . ': ' . $row['title'], $row['nid'], 0, DEPLOY_NODE_GROUP_WEIGHT);
}
}
$form_state['redirect'] = "admin/build/deploy/list/{$pid}";
}