/
Form.php
46 lines (44 loc) · 1.38 KB
/
Form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Hasla_Inspiration extension
*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/mit-license.php
*
* @category Hasla
* @package Hasla_Inspiration
* @copyright Copyright (c) 2014
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
/**
* Inspiration edit form
*
* @category Hasla
* @package Hasla_Inspiration
* @author Ultimate Module Creator
*/
class Hasla_Inspiration_Block_Adminhtml_Inspiration_Edit_Form
extends Mage_Adminhtml_Block_Widget_Form {
/**
* prepare form
* @access protected
* @return Hasla_Inspiration_Block_Adminhtml_Inspiration_Edit_Form
* @author Ultimate Module Creator
*/
protected function _prepareForm() {
$form = new Varien_Data_Form(array(
'id' => 'edit_form',
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
'method' => 'post',
'enctype' => 'multipart/form-data'
)
);
$form->setUseContainer(true);
$this->setForm($form);
return parent::_prepareForm();
}
}