You are here

function finder::build_elements in Finder 7.2

Finder build elements.

Does stuff after elements are loaded or when a new element is created.

2 calls to finder::build_elements()
finder::build in includes/finder.inc
Finder build.
finder::create_element in includes/finder.inc
Finder create element.

File

includes/finder.inc, line 138
finder.inc

Class

finder
An object to contain all of the data to generate a finder, plus the member functions to build the finder, and render the output.

Code

function build_elements() {
  if (!empty($this->elements)) {
    foreach ($this->elements as $key => &$element) {
      if (empty($element->id)) {
        unset($this->elements[$key]);
        continue;
      }
      $element->finder = $this;
    }
  }
  $this
    ->load_element_handlers();
}