You are here

function finder_row_element in Finder 7.2

Element callback.

1 string reference to 'finder_row_element'
row.inc in plugins/element_handler/row.inc
The finder row element handler plugin.

File

plugins/element_handler/row.inc, line 34
The finder row element handler plugin.

Code

function finder_row_element($element, &$form_element, $form_state) {
  $open = '<div class="container-inline">';
  $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;
  }
}