function batch_test_chained_form
Form with chained submit callbacks.
2 string references to 'batch_test_chained_form'
- batch_test_menu in modules/
simpletest/ tests/ batch_test.module - Implement hook_menu().
- batch_test_programmatic in modules/
simpletest/ tests/ batch_test.module - Menu callback: programmatically submits the 'Chained' form.
File
-
modules/
simpletest/ tests/ batch_test.module, line 177
Code
function batch_test_chained_form() {
// This value is used to test that $form_state persists through batched
// submit handlers.
$form['value'] = array(
'#type' => 'textfield',
'#title' => 'Value',
'#default_value' => 1,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
$form['#submit'] = array(
'batch_test_chained_form_submit_1',
'batch_test_chained_form_submit_2',
'batch_test_chained_form_submit_3',
'batch_test_chained_form_submit_4',
);
return $form;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.