You are here

function deploy_ui_flatten_plan_form_submit in Deploy - Content Staging 7.3

Submit handler for flatten plan form.

File

modules/deploy_ui/deploy_ui.pages.inc, line 89
Deploy UI page functions.

Code

function deploy_ui_flatten_plan_form_submit($form, &$form_state) {
  $plan = $form_state['values']['deploy_plan'];
  $plan
    ->flatten();
  drupal_set_message(t('Duplicate content has been removed from the @plan plan.', array(
    '@plan' => $plan->title,
  )));
  $form_state['redirect'] = 'admin/structure/deploy/plans/list/' . $plan->name . '/view';
}