You are here

private function MenuTree::selectedFilterInChildrenLeafs in Taxonomy Facets 7.3

Check if selected filer is somewhere in the children leafs.

1 call to MenuTree::selectedFilterInChildrenLeafs()
MenuTree::buildMenuTreeRecursively in classes/MenuTree.php

File

classes/MenuTree.php, line 152

Class

MenuTree

Namespace

taxonomyFacets

Code

private function selectedFilterInChildrenLeafs($tid) {
  $all_children = taxonomy_get_tree($this->vid, $tid);
  foreach ($all_children as $child) {
    if ($this->tidSelected == $child->tid) {
      return true;
    }
  }
  return false;
}