QuickForm: add helper for shorter display group...

...definitions
This commit is contained in:
Thomas Gelf 2016-03-22 23:43:47 +01:00
parent 2f723ccde7
commit 324e15e2b5

View File

@ -156,6 +156,19 @@ abstract class QuickForm extends Zend_Form
));
}
protected function addSimpleDisplayGroup($elements, $name, $options)
{
if (! array_key_exists('decorators', $options)) {
$options['decorators'] = array(
'FormElements',
array('HtmlTag', array('tag' => 'dl')),
'Fieldset',
);
}
return $this->addDisplayGroup($elements, $name, $options);
}
protected function createIdElement()
{
$this->detectName();