/
*/
class P4Cms_Form_Decorator_HtmlTag extends Zend_Form_Decorator_HtmlTag
{
/**
* Extend render to exclude hidden and hash elements.
*
* @param string $content The content to render.
* @return string
*/
public function render($content)
{
if ($this->getElement() instanceof Zend_Form_Element_Hidden
|| $this->getElement() instanceof Zend_Form_Element_Hash
) {
return $content;
}
return parent::render($content);
}
}