batch_example_multistep_form
Definition
batch_example_multistep_form($form_state = NULL)
developer/examples/batch_example.module, line 98
Description
Multistep form
Code
<?php
function batch_example_multistep_form($form_state = NULL) {
$step = isset($form_state['storage']['step']) ? $form_state['storage']['step'] : 1;
$form['step_display'] = array(
'#type' => 'item',
'#value' => 'step '. $step,
);
if ($step < 3) {
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Go',
);
}
return $form;
}
?> 