diff --git a/app/code/core/Mage/Customer/Block/Account/Navigation.php b/app/code/core/Mage/Customer/Block/Account/Navigation.php index 2a5e403a31ee3..1a602034cf71b 100644 --- a/app/code/core/Mage/Customer/Block/Account/Navigation.php +++ b/app/code/core/Mage/Customer/Block/Account/Navigation.php @@ -50,6 +50,16 @@ public function addLink($name, $path, $label, $urlParams=array()) return $this; } + /** + * Removes a link from the navigation + * + * @param $name Internal name of the link + */ + public function removeLink($name) + { + unset($this->_links[$name]); + return $this; + } public function setActive($path) { $this->_activeLink = $this->_completePath($path);