<?php
class My_ModuleBlock_Customer_Account_Navigation extends Mage_Customer_Block_Account_Navigation
{
/**
* Is there a specific active link?
*
* @var
*/
protected $_activeLink;
/**
* Set active link to this navigation
*
* @param string $linkName
*/
public function setActiveLink($linkName)
{
$this->_activeLink = $linkName;
}
/**
* Overloaded in order to force link active display
* when there is an active link explicity set
*
* @param string $link
* @return bool
*/
public function isActive($link)
{
$isActive = parent::isActive($link);
if(!$isActive && $link->getName() == $this->_activeLink) {
$isActive = true;
}
return $isActive;
}
}
?>