1 path.admin.inc path_bulk_update_form_rebuild_submit($form, &$form_state)

Form submit handler for URL alias bulk update form.

See also

path_bulk_update_form()

path_admin_bulk_delete_confirm()

File

core/modules/path/path.admin.inc, line 770
Admin page callbacks for the Path module.

Code

function path_bulk_update_form_rebuild_submit($form, &$form_state) {
  // If aliases are being deleted, rebuild the form to show the confirm form.
  // Otherwise aliases are being generated or updated, call the
  // path_bulk_update_form_generate_submit() form.
  if ($form_state['values']['operations']['operation'] == 'delete') {
    $form_state['storage']['delete'] = TRUE;
    $form_state['rebuild'] = TRUE;
  }
  elseif ($form_state['values']['operations']['operation'] == 'generate') {
    path_bulk_update_form_generate_submit($form, $form_state, 'generate');
  }
  elseif ($form_state['values']['operations']['operation'] == 'update') {
    path_bulk_update_form_generate_submit($form, $form_state, 'update');
  }
}