Protected Member Functions | |
_prepareForm () |
Definition at line 35 of file Form.php.
_prepareForm | ( | ) | [protected] |
Prepare form before rendering HTML
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 37 of file Form.php.
00038 { 00039 $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post', 'enctype' => 'multipart/form-data')); 00040 00041 $model = Mage::registry('current_convert_profile'); 00042 00043 if ($model->getId()) { 00044 $form->addField('profile_id', 'hidden', array( 00045 'name' => 'profile_id', 00046 )); 00047 $form->setValues($model->getData()); 00048 } 00049 00050 $form->setUseContainer(true); 00051 $this->setForm($form); 00052 return parent::_prepareForm(); 00053 }