function batch_test_multistep_form
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
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.