function form_test_form_rebuild_preserve_values_form_add_more
Button submit handler for form_test_form_rebuild_preserve_values_form().
1 string reference to 'form_test_form_rebuild_preserve_values_form_add_more'
- form_test_form_rebuild_preserve_values_form in modules/
simpletest/ tests/ form_test.module - Form builder for testing preservation of values during a rebuild.
File
-
modules/
simpletest/ tests/ form_test.module, line 1636
Code
function form_test_form_rebuild_preserve_values_form_add_more($form, &$form_state) {
// Rebuild, to test preservation of input values.
$form_state['storage']['add_more'] = TRUE;
$form_state['rebuild'] = TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.