public function MigrateUIWizard::gotoNextStep in Migrate 7.2
Move the wizard to the next step in line (if any), first squirreling away the current step's form values.
File
- migrate_ui/
migrate_ui.wizard.inc, line 337 - Migration wizard framework.
Class
- MigrateUIWizard
- The base class for migration wizards. Extend this class to implement a wizard UI for importing into Drupal from a given source format (Drupal, WordPress, etc.).
Code
public function gotoNextStep(&$form_state) {
if ($this->currentStep && $this->currentStep->nextStep) {
$this->currentStep
->setFormValues($form_state['values']);
$form_state['rebuild'] = TRUE;
$this->currentStep = $this->currentStep->nextStep;
$this->stepNumber++;
// Ensure a page reload remains on the current step.
$current_step_form_values = $this->currentStep
->getFormValues();
if (!empty($current_step_form_values)) {
$form_state['values'] = $current_step_form_values;
}
else {
$form_state['values'] = array();
}
}
}