You are here

public function FormBuilderFormBase::getElement in Form Builder 7

2 calls to FormBuilderFormBase::getElement()
FormBuilderFormBase::getElementsInPreOrder in ./form_builder.classes.inc
Get element objects in depth-first pre-order.
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 541

Class

FormBuilderFormBase

Code

public function getElement($element_id) {
  if (!isset($this->elementArrays[$element_id])) {
    return NULL;
  }
  $element =& $this->elementArrays[$element_id];
  return FormBuilderLoader::instance()
    ->getElement($this->formType, $this->formId, $element['#form_builder']['element_type'], $this, $element);
}