function batch_test_multistep_form in Drupal 7
Multistep form.
1 string reference to 'batch_test_multistep_form'
- batch_test_menu in modules/
simpletest/ tests/ batch_test.module - Implement hook_menu().
File
- modules/
simpletest/ tests/ batch_test.module, line 134 - Helper module for the Batch API tests.
Code
function batch_test_multistep_form($form, &$form_state) {
if (empty($form_state['storage']['step'])) {
$form_state['storage']['step'] = 1;
}
$form['step_display'] = array(
'#markup' => 'step ' . $form_state['storage']['step'] . '<br/>',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
return $form;
}