You are here

function finder::element_depth in Finder 7.2

Get the element's depth.

File

includes/finder.inc, line 240
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_depth($element) {
  $parents = $this
    ->element_parents($element);
  return count($parents);
}