_removeButton('add'); $this->_headerText = Mage::helper('meecomframe')->__('eKomiMeetsMage Configuration'); $ekomiData = Mage::helper('ekomimeetsmage'); if (strlen($ekomiData->getStoreType()) > 0) { $check = $this->getRequest()->getParam('store_id') > 0 && $ekomiData->getStoreType()=="multistore"; if ($check || $ekomiData->getStoreType()=="singlestore") { $this->_addButton( 'save', array( 'label' => $this->__("Save configuration"), 'onclick' => 'document.getElementById(\'ekomimeetsmage_configuration\').submit();', 'class' => 'save', 'id' => 'button_save', ) ); } } } protected function _prepareLayout() { } }