You are here

function views_deploy_add_form_submit in Deploy - Content Staging 5

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

deploy view form submit callback

File

views_deploy/views_deploy.module, line 79

Code

function views_deploy_add_form_submit($form_id, $form_values) {
  $pid = $form_values['pid'];
  $module = 'views';
  foreach ($form_values['view_name'] as $view_name) {
    $description = "View: {$view_name}";
    deploy_add_to_plan($pid, $module, $description, $view_name);
  }
  return "admin/build/deploy/list/{$pid}";
}