You are here

public function MigrateUIWizard::gotoPreviousStep in Migrate 7.2

Move the wizard to the previous step in line (if any), restoring its form values.

File

migrate_ui/migrate_ui.wizard.inc, line 359
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 gotoPreviousStep(&$form_state) {
  if ($this->currentStep && $this->currentStep->previousStep) {
    $this->currentStep = $this->currentStep->previousStep;
    $this->stepNumber--;
    $form_state['values'] = $this->currentStep
      ->getFormValues();
    $form_state['rebuild'] = TRUE;
  }
}