setDestElementId('edit_form'); $this->setId('slider'); if ($tab = $this->getRequest()->getParam('activeTab')){ $this->_activeTab = $tab; }else{ $this->_activeTab = 'info_section'; } $this->setTitle(Mage::helper('revslider')->__('Revolution Slider')); } public function _prepareLayout(){ $this->addTabAfter('custom_section', array( 'label' => ''.Mage::helper('revslider')->__('CSS / Javascript'), 'title' => Mage::helper('revslider')->__('CSS / Javascript'), 'url' => $this->getUrl('*/*/custom', array('_current' => true)), 'class' => 'ajax' ), 'trouble_section'); $this->addTabAfter('slide_section', array( 'label' => ''.Mage::helper('revslider')->__('Slides'), 'title' => Mage::helper('revslider')->__('Slides'), 'url' => $this->getUrl('*/*/slide', array('_current' => true)), 'class' => 'ajax' ), 'trouble_section'); return parent::_prepareLayout(); } /** * Add new tab after another * * @param string $tabId new tab Id * @param array|Varien_Object $tab * @param string $afterTabId * @return Mage_Adminhtml_Block_Widget_Tabs */ public function addTabAfter($tabId, $tab, $afterTabId){ $this->addTab($tabId, $tab); $this->_tabs[$tabId]->setAfter($afterTabId); } }