protected function _beforeToHtml() { parent::_beforeToHtml(); $swatch_attributes = Mage::helper('colorselectorplus')->getSwatchAttributes(); if (in_array(Mage::registry('entity_attribute')->getData('attribute_code'), $swatch_attributes)) { $this->addTab('swatches', array('label' => Mage::helper('colorselectorplus')->__('Manage Swatches'), 'title' => Mage::helper('colorselectorplus')->__('Manage Swatches'), 'content' => $this->getLayout()->createBlock('colorselectorplus/swatches')->toHtml())); return Mage_Adminhtml_Block_Widget_Tabs::_beforeToHtml(); } return $this; }
protected function _beforeToHtml() { parent::_beforeToHtml(); if (Mage::registry('entity_attribute')->getIsConfigurable() && Mage::registry('entity_attribute')->getIsGlobal()) { $imgBlock = $this->getLayout()->createBlock('amconf/adminhtml_catalog_product_attribute_edit_tab_images'); if ($imgBlock) { $this->addTab('images', array('label' => Mage::helper('amconf')->__('Attribute Images'), 'title' => Mage::helper('amconf')->__('Attribute Images'), 'content' => $imgBlock->toHtml())); return Mage_Adminhtml_Block_Widget_Tabs::_beforeToHtml(); } } return $this; }
protected function _beforeToHtml() { $this->addTab('attribute_sets', array('label' => Mage::helper('catalog')->__('Attribute Sets'), 'title' => Mage::helper('catalog')->__('Attribute Sets'), 'class' => 'ajax', 'url' => $this->getUrl('*/*/attributeSets', array('_current' => true)), 'after' => 'labels')); return parent::_beforeToHtml(); }