You are here

function ahah_example_dropdown_continue in Examples for Developers 6

Submit handler for 'continue_to_dependent_dropdown'.

1 string reference to 'ahah_example_dropdown_continue'
ahah_example_dropdown in ahah_example/ahah_example_dependent_dropdown.inc
Form builder function to create a form showing dependent dropdowns. The second dropdown has its values populated based on the first.

File

ahah_example/ahah_example_dependent_dropdown.inc, line 100
Show/hide textfields based on checkbox clicks.

Code

function ahah_example_dropdown_continue($form, &$form_state) {
  $values = $form_state['values'];
  unset($form_state['submit_handlers']);
  form_execute_handlers('submit', $form, $form_state);
  $form_state['my_values'] = $values;
  $form_state['rebuild'] = TRUE;
}