You are here

function finder::root_elements in Finder 7.2

Get an array of root level element ids.

1 call to finder::root_elements()
finder::element_weights in includes/finder.inc
Order elements by weight.

File

includes/finder.inc, line 200
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 root_elements() {
  $roots = array();
  foreach ($this->elements as $finder_element) {
    if (empty($finder_element->parent)) {
      $roots[] = $finder_element->id;
    }
  }
  return $roots;
}