Skip to content

Commit

Permalink
Add a new event 'adminhtml_widget_tabs_html_before' for adding custom…
Browse files Browse the repository at this point in the history
… tab.
  • Loading branch information
kiatng committed Jan 17, 2020
1 parent 9a18e17 commit 96079c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/core/Mage/Adminhtml/Block/Widget/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ protected function _setActiveTab($tabId)

protected function _beforeToHtml()
{
Mage::dispatchEvent('adminhtml_widget_tabs_html_before', array('block' => $this));
if ($activeTab = $this->getRequest()->getParam('active_tab')) {
$this->setActiveTab($activeTab);
} elseif ($activeTabId = Mage::getSingleton('admin/session')->getActiveTabId()) {
Expand Down

0 comments on commit 96079c8

Please sign in to comment.