function finder_wizard_finder_form_state_alter in Finder 7.2
Implements hook_finder_form_state_alter().
File
- modules/
finder_wizard/ finder_wizard.module, line 162 - The Finder page module.
Code
function finder_wizard_finder_form_state_alter(&$form_state, $finder) {
if (empty($finder->finder_wizard)) {
return;
}
// Save new form values.
$form_state['values'] = $form_state['values'] + $form_state['input'];
// Decide whether the form is finished.
$form_state['finished'] = TRUE;
if ($finder->finder_wizard_page_num <= count($finder->finder_wizard) - 1) {
$form_state['finished'] = FALSE;
}
unset($finder->finder_wizard_page_num);
}