You are here

function finder_form_submit in Finder 6

Same name and namespace in other branches
  1. 7.2 includes/form.inc \finder_form_submit()
  2. 7 includes/finder.form.inc \finder_form_submit()

Submit function for finder form.

Adds some needed data to $form_state and calls finder_form_state().

See also

finder_form()

1 string reference to 'finder_form_submit'
finder_form in includes/finder.form.inc
FAPI definition for the finder form.

File

includes/finder.form.inc, line 181
The finder form.

Code

function finder_form_submit($form, &$form_state) {
  $finder_id = $form_state['values']['finder_id'];
  $finder = finder_load($finder_id);
  $form_state['storage']['finder'] = $finder;
  $form_state['storage']['values'] = $form_state['values'];
  $form_state['storage']['finished'] = TRUE;
  finder_form_state($finder->finder_id, $form_state);
}