1 ajax_example_graceful_degradation.inc ajax_example_add_more_submit($form, &$form_state)

Final submit handler.

Reports what values were finally set.

Related topics

File

modules/examples/ajax_example/ajax_example_graceful_degradation.inc, line 652
Demonstrations of AJAX with graceful degradation.

Code

function ajax_example_add_more_submit($form, &$form_state) {
  $output = t('These people are coming to the picnic: @names', 
  array(
    '@names' => implode(', ', $form_state['values']['names_fieldset']['name']),
  )
  );
  backdrop_set_message($output);
}