You are here

function deploy_ui_empty_plan_form_submit in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 modules/deploy_ui/deploy_ui.pages.inc \deploy_ui_empty_plan_form_submit()

Submit handler for empty plan form.

File

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

Code

function deploy_ui_empty_plan_form_submit($form, &$form_state) {
  $plan = $form_state['values']['deploy_plan'];
  $plan
    ->emptyPlan();
  drupal_set_message(t('All items were removed from the @plan plan.', array(
    '@plan' => $plan->title,
  )));
  $form_state['redirect'] = 'admin/structure/deploy/plans/list/' . $plan->name;
}