Skip to content

Commit 62de637

Browse files
authored
Changed event name adminhtml_block_widget_tabs_html_before, add 'block' 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.
1 parent 04a9584 commit 62de637

File tree

1 file changed

+1
-0
lines changed
  • app/code/core/Mage/Adminhtml/Block/Widget

1 file changed

+1
-0
lines changed

app/code/core/Mage/Adminhtml/Block/Widget/Tabs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ protected function _setActiveTab($tabId)
189189

190190
protected function _beforeToHtml()
191191
{
192+
Mage::dispatchEvent('adminhtml_block_widget_tabs_html_before', array('block' => $this));
192193
if ($activeTab = $this->getRequest()->getParam('active_tab')) {
193194
$this->setActiveTab($activeTab);
194195
} elseif ($activeTabId = Mage::getSingleton('admin/session')->getActiveTabId()) {

0 commit comments

Comments
 (0)