protected function _prepareForm()
 {
     $form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post', 'enctype' => 'multipart/form-data'));
     $customer = Mage::registry('current_customer');
     if ($customer->getId()) {
         $form->addField('entity_id', 'hidden', array('name' => 'customer_id'));
         $form->setValues($customer->getData());
     }
     $form->setUseContainer(true);
     $this->setForm($form);
     return parent::_prepareForm();
 }
Exemple #2
0
 protected function _prepareForm()
 {
     parent::_prepareForm();
     $this->getForm()->setData('enctype', 'multipart/form-data');
     return $this;
 }