You are here

private function FormBuilderFormBase::_recursiveElementIds in Form Builder 7

1 call to FormBuilderFormBase::_recursiveElementIds()
FormBuilderFormBase::getElementIdsInPreOrder in ./form_builder.classes.inc
Get list of element ids in depth-first pre-order.

File

./form_builder.classes.inc, line 667

Class

FormBuilderFormBase

Code

private function _recursiveElementIds(&$ids, $e) {
  foreach (element_children($e, TRUE) as $key) {
    if (isset($e[$key]['#form_builder'])) {
      $ids[] = $e[$key]['#form_builder']['element_id'];
      $this
        ->_recursiveElementIds($ids, $e[$key]);
    }
  }
}