You are here

function finder_wizard_element in Finder 7.2

Element callback.

1 string reference to 'finder_wizard_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 35
The finder page element handler plugin.

Code

function finder_wizard_element($element, &$form_element, $form_state) {
  $page_num = $element->finder->finder_wizard_page_num;
  $open = '<div class="finder-page-num-' . $page_num . ' finder-page-' . $element->id . '">';
  $close = '</div>';
  if (!empty($form_element['#prefix'])) {
    $form_element['#prefix'] = $open . $form_element['#prefix'];
  }
  else {
    $form_element['#prefix'] = $open;
  }
  if (!empty($form_element['#suffix'])) {
    $form_element['#suffix'] = $form_element['#suffix'] . $close;
  }
  else {
    $form_element['#suffix'] = $close;
  }
}