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 38 of file Form.php.
00039 { 00040 $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post')); 00041 00042 $customer = Mage::registry('current_customer'); 00043 00044 if ($customer->getId()) { 00045 $form->addField('entity_id', 'hidden', array( 00046 'name' => 'customer_id', 00047 )); 00048 $form->setValues($customer->getData()); 00049 } 00050 00051 $form->setUseContainer(true); 00052 $this->setForm($form); 00053 return parent::_prepareForm(); 00054 }