Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareForm () |
Definition at line 34 of file Meta.php.
__construct | ( | ) |
Class constructor
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 36 of file Meta.php.
00037 { 00038 parent::__construct(); 00039 }
_prepareForm | ( | ) | [protected] |
Prepare form before rendering HTML
Reimplemented from Mage_Adminhtml_Block_Widget_Form.
Definition at line 41 of file Meta.php.
00042 { 00043 $form = new Varien_Data_Form(); 00044 00045 $form->setHtmlIdPrefix('page_'); 00046 00047 $model = Mage::registry('cms_page'); 00048 00049 $fieldset = $form->addFieldset('meta_fieldset', array('legend' => Mage::helper('cms')->__('Meta Data'), 'class' => 'fieldset-wide')); 00050 00051 $fieldset->addField('meta_keywords', 'editor', array( 00052 'name' => 'meta_keywords', 00053 'label' => Mage::helper('cms')->__('Keywords'), 00054 'title' => Mage::helper('cms')->__('Meta Keywords'), 00055 )); 00056 00057 $fieldset->addField('meta_description', 'editor', array( 00058 'name' => 'meta_description', 00059 'label' => Mage::helper('cms')->__('Description'), 00060 'title' => Mage::helper('cms')->__('Meta Description'), 00061 )); 00062 00063 $form->setValues($model->getData()); 00064 00065 $this->setForm($form); 00066 00067 return parent::_prepareForm(); 00068 }