/** * Prepare layout, create upload button * * @return Mage_Uploader_Block_Multiple */ protected function _prepareLayout() { parent::_prepareLayout(); $this->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; }
/** * Prepare layout, change button and set front-end element ids mapping * * @return Mage_Core_Block_Abstract */ protected function _prepareLayout() { parent::_prepareLayout(); $this->getChild('browse_button')->setLabel(Mage::helper('uploader')->__('...')); return $this; }