function content_copy_deploy_add_form_submit in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 content_copy_deploy/content_copy_deploy.module \content_copy_deploy_add_form_submit()
Deploy content type form submit callback.
File
- modules/
content_copy_deploy/ content_copy_deploy.pages.inc, line 46 - Page handlers for content type deployment pages.
Code
function content_copy_deploy_add_form_submit($form, &$form_state) {
$pid = $form_state['values']['pid'];
$module = 'content_copy';
foreach ($form_state['values']['content_type'] as $content_type) {
$description = "Content Type: {$content_type}";
deploy_add_to_plan($pid, $module, $description, $content_type, 0, DEPLOY_CONTENT_TYPE_GROUP_WEIGHT);
}
$form_state['redirect'] = "admin/build/deploy/list/{$pid}";
}