setTemplate('am/revslider/widget/form/search.phtml'); } public function getElement(){ return $this->_element; } public function setElement(Varien_Data_Form_Element_Abstract $element){ return $this->_element = $element; } public function render(Varien_Data_Form_Element_Abstract $element){ $this->setElement($element); return $this->toHtml(); } protected function _prepareLayout(){ $this->setElement($this->getData('element')); $this->setChild('btn', $this->getLayout()->createBlock('adminhtml/widget_button', '', array( 'label' => Mage::helper('revslider')->__('Search'), 'type' => 'button', 'id' => $this->getElement()->getHtmlId(), 'onclick' => 'revLayer.searchVideo()', ))); return parent::_prepareLayout(); } }