You are here

private function MenuTree::buildMenyTreeHeader in Taxonomy Facets 7.3

1 call to MenuTree::buildMenyTreeHeader()
MenuTree::__construct in classes/MenuTree.php

File

classes/MenuTree.php, line 72

Class

MenuTree

Namespace

taxonomyFacets

Code

private function buildMenyTreeHeader() {
  if ($this->termSelected) {
    $headItem = new MenuLeaf($this->termSelected);

    // remove curent filter from the url
    $headItem->linkUrl = str_replace('/' . $headItem->urlAlias, "", $headItem->linkUrl);
    $this->menuTree[] = theme('taxonomy_facets_removefilter_template', array(
      'menuHed' => $headItem,
    ));
  }
}