function ajax_example_add_more_add_one
Submit handler for the "add-one-more" button.
Increments the max counter and causes a rebuild.
Related topics
1 string reference to 'ajax_example_add_more_add_one'
- ajax_example_add_more in ajax_example/
ajax_example_graceful_degradation.inc - Form with 'add more' and 'remove' buttons.
File
-
ajax_example/
ajax_example_graceful_degradation.inc, line 636
Code
function ajax_example_add_more_add_one($form, &$form_state) {
$form_state['num_names']++;
$form_state['rebuild'] = TRUE;
}