Skip to content

Commit

Permalink
Changed event name adminhtml_block_widget_tabs_html_before, add 'bl…
Browse files Browse the repository at this point in the history
…ock' for name consistency. (#1358)

* Add a new event 'adminhtml_widget_tabs_html_before' for adding custom tab.

* Chaanged event name, added block in event 'adminhtml_block_widget_tabs_html_before' for consistency.
  • Loading branch information
kiatng authored Mar 11, 2021
1 parent 04a9584 commit 62de637
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_block_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 62de637

Please sign in to comment.