php - Magento method "removeTab" doesn't work -


i made observer triggers on event adminhtml_block_html_before, when try remove tab nothing happens. here's code:

public function altermenu($observer) {     $block = $observer->getblock();          if ($block instanceof mage_adminhtml_block_sales_order_view_tabs)         $block->removetab('order_rma');     } 

after, if use print_r($block->gettabsids()); there following situation:

array (     [0] => order_info     [1] => order_invoices     [2] => order_creditmemos     [3] => order_shipments     [4] => order_history     [5] => order_transactions ) 

but tab still visible. i'm using magento ee 1.12. suggestions?

thanks!

resolved event core_block_abstract_to_html_before instead of adminhtml_block_html_before, event tab removed before rendered.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -