protected function _beforeToHtml() { $this->addTab('my_tab', array( 'label' => 'My Tab', 'title' => 'My Custom Tab', 'content' => $this->getLayout()->createBlock('my_module/adminhtml_my_block')->toHtml(), )); return parent::_beforeToHtml(); }
protected function _beforeToHtml() { $this->removeTab('my_tab'); return parent::_beforeToHtml(); }In this example, the tab with the ID “my_tab” is removed from the tabs rendered by this class. These examples were taken from a Magento 1.x library.