_controller = 'adminhtml_gallery'; $this->_blockGroup = 'gallery'; if(Mage::helper('gallery')->getCurrentGalleryType() == "gallery") { $this->_headerText = Mage::helper('gallery')->__('Gallery Manager'); $this->_addButtonLabel = Mage::helper('gallery')->__('Add Photo'); }else{ $this->_headerText = Mage::helper('gallery')->__('Album Manager'); $this->_addButtonLabel = Mage::helper('gallery')->__('Add Album'); } parent::__construct(); } public function getCreateUrl() { if(Mage::helper('gallery')->getCurrentGalleryType() == "gallery") return $this->getUrl('*/*/new/'); else return $this->getUrl('*/*/newalbum/'); } }