You are here

function finder_wizard_skip_element in Finder 7.2

Skip element callback.

1 string reference to 'finder_wizard_skip_element'
page.inc in modules/finder_wizard/plugins/element_handler/page.inc
The finder page element handler plugin.

File

modules/finder_wizard/plugins/element_handler/page.inc, line 59
The finder page element handler plugin.

Code

function finder_wizard_skip_element($element, $form_state) {
  $finder = $element->finder;

  // 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);
  }
  reset($finder->finder_wizard);
  $element_page = key($finder->finder_wizard);
  foreach ($finder->finder_wizard as $page_id => $page_elements) {
    if (in_array($element->id, $page_elements)) {
      $element_page = $page_id;
      break;
    }
  }

  // If the current page is the same page as this element, return FALSE.
  return $finder->finder_wizard_page_id != $element_page;
}