/** * Remove disabled account navigation links before HTML generation. * @return $this|Mage_Core_Block_Abstract */ protected function _beforeToHtml() { parent::_beforeToHtml(); $disabled = Praxigento_TuneUp_Config::cfgFrontendNavigationLinksDisabled(); foreach ($this->_links as $key => $one) { if (in_array($key, $disabled)) { unset($this->_links[$key]); } } return $this; }