Returns the list of steps and their associated forms.

This has been separated to clarify and easy the understanding of this example. You should edit this function to include the steps your wizard/multistep form requires.

Return value

array List of steps and their forms.

Related topics

1 call to _form_example_steps()
form_example_wizard in form_example/form_example_wizard.inc
The primary formbuilder function for the wizard form.

File

form_example/form_example_wizard.inc, line 47
Extensible wizard form example.

Code

function _form_example_steps() {
  return array(
    1 => array(
      'form' => 'form_example_wizard_personal_info',
    ),
    2 => array(
      'form' => 'form_example_wizard_location_info',
    ),
    3 => array(
      'form' => 'form_example_wizard_other_info',
    ),
  );
}