setChild( 'upload_button', $this->getLayout()->createBlock('adminhtml/widget_button') ->addData(array( 'id' => $this->getElementId(self::DEFAULT_UPLOAD_BUTTON_ID_SUFFIX), 'label' => Mage::helper('uploader')->__('Upload Files'), 'type' => 'button', )) ); $this->_addElementIdsMapping(array( 'upload' => $this->_prepareElementsIds(array(self::DEFAULT_UPLOAD_BUTTON_ID_SUFFIX)) )); return $this; } /** * Get upload button html * * @return string */ public function getUploadButtonHtml() { return $this->getChildHtml('upload_button'); } }