You are here

function views_deploy_add_form_submit in Deploy - Content Staging 6

Same name and namespace in other branches
  1. 5 views_deploy/views_deploy.module \views_deploy_add_form_submit()

Submit form callback for views_deploy_add_form().

File

modules/views_deploy/views_deploy.pages.inc, line 56
Page handlers for content type deployment pages.

Code

function views_deploy_add_form_submit($form, &$form_state) {
  $pid = $form_state['values']['pid'];
  foreach ($form_state['values']['view_name'] as $view_name) {
    $description = "View: {$view_name}";
    deploy_add_to_plan($pid, 'views', $description, $view_name, 0, DEPLOY_VIEW_GROUP_WEIGHT);
  }
  $form_state['redirect'] = "admin/build/deploy/list/{$pid}";
}