You are here

function finder_wizard_finder_results in Finder 7.2

Implements hook_finder_results().

File

modules/finder_wizard/finder_wizard.module, line 204
The Finder page module.

Code

function finder_wizard_finder_results($finder) {
  if (empty($finder->finder_wizard)) {
    return;
  }

  // Figure out which page this is, if it hasn't been done already.
  if (!isset($finder->finder_wizard_page_num) || !isset($finder->finder_wizard_page_id)) {
    finder_wizard_establish_page($finder);
  }

  // Decide whether the form is finished.
  $finder->form_state['finished'] = TRUE;
  if ($finder->finder_wizard_page_num < count($finder->finder_wizard) - 1) {
    $finder->form_state['finished'] = FALSE;
  }
}