1 form_example_states.inc form_example_states_form_submit($form, &$form_state)

Submit handler for form_example_states_form().

File

modules/examples/form_example/form_example_states.inc, line 294
An example of how to use the new #states Form API element, allowing dynamic form behavior with very simple setup.

Code

function form_example_states_form_submit($form, &$form_state) {
  backdrop_set_message(t('Submitting values: @values', array('@values' => var_export($form_state['values'], TRUE))));
}