You are here

public function FormBuilderFormBase::getElementsInPreOrder in Form Builder 7

Get element objects in depth-first pre-order.

2 calls to FormBuilderFormBase::getElementsInPreOrder()
FormBuilderFormBase::preview in ./form_builder.classes.inc
Build form-tree from element objects.
FormBuilderWebformForm::getComponents in modules/webform/form_builder_webform.classes.inc
Get a list of component-arrays just like in $node->webform['components'].

File

./form_builder.classes.inc, line 679

Class

FormBuilderFormBase

Code

public function getElementsInPreOrder() {
  $elements = array();
  foreach ($this
    ->getElementIdsInPreOrder() as $id) {
    $elements[$id] = $this
      ->getElement($id);
  }
  return $elements;
}