You are here

function finder::element_children in Finder 7.2

Get an array of the element's direct child element ids.

2 calls to finder::element_children()
finder::validate in includes/finder.inc
Make sure the finder is valid.
finder::_element_weights in includes/finder.inc
Recursively order elements in respect to parent-child relationships.

File

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