/** * Prepare block children and data. * Set widget type and widget parameters if available * * @return Mage_Widget_Block_Adminhtml_Widget_Instance_Edit_Tab_Properties */ protected function _preparelayout() { $this->setWidgetType($this->getWidgetInstance()->getType())->setWidgetValues($this->getWidgetInstance()->getWidgetParameters()); return parent::_prepareLayout(); }