*/ class Mage_Connect_Block_Adminhtml_Extension_Custom_Edit extends Mage_Adminhtml_Block_Widget_Form_Container { /** * Constructor * * Initializes edit form container, adds necessary buttons */ public function __construct() { $this->_objectId = 'id'; $this->_blockGroup = 'connect'; $this->_controller = 'adminhtml_extension_custom'; parent::__construct(); $this->_removeButton('back'); $this->_updateButton('reset', 'onclick', "resetPackage()"); $this->_addButton('create', array( 'label' => Mage::helper('connect')->__('Save Data and Create Package'), 'class' => 'save', 'onclick' => "createPackage()", )); $this->_addButton('save_as', array( 'label' => Mage::helper('connect')->__('Save As...'), 'title' => Mage::helper('connect')->__('Save package with custom package file name'), 'onclick' => 'saveAsPackage()' )); } /** * Get header of page * * @return string */ public function getHeaderText() { return Mage::helper('connect')->__('New Extension'); } /* * Get form submit URL * * @return string */ public function getFormActionUrl() { return $this->getUrl('*/*/save'); } }