You are here

function content_copy_deploy_add_form_submit in Deploy - Content Staging 5

Same name and namespace in other branches
  1. 6 modules/content_copy_deploy/content_copy_deploy.pages.inc \content_copy_deploy_add_form_submit()

deploy content type form submit callback

File

content_copy_deploy/content_copy_deploy.module, line 79

Code

function content_copy_deploy_add_form_submit($form_id, $form_values) {
  $pid = $form_values['pid'];
  $module = 'content_copy';
  foreach ($form_values['content_type'] as $content_type) {
    $description = "Content Type: {$content_type}";
    deploy_add_to_plan($pid, $module, $description, $content_type);
  }
  return "admin/build/deploy/list/{$pid}";
}