QuickForm: allow for named hints
This is necessary as I want to refer to them in display groups
This commit is contained in:
parent
09bfcd3bff
commit
75f8872962
|
@ -245,7 +245,13 @@ abstract class QuickForm extends Zend_Form
|
||||||
|
|
||||||
public function addHtml($html, $options = array())
|
public function addHtml($html, $options = array())
|
||||||
{
|
{
|
||||||
$name = '_HINT' . ++$this->hintCount;
|
if (array_key_exists('name', $options)) {
|
||||||
|
$name = $options['name'];
|
||||||
|
unset($options['name']);
|
||||||
|
} else {
|
||||||
|
$name = '_HINT' . ++$this->hintCount;
|
||||||
|
}
|
||||||
|
|
||||||
$this->addElement('simpleNote', $name, $options);
|
$this->addElement('simpleNote', $name, $options);
|
||||||
$this->getElement($name)
|
$this->getElement($name)
|
||||||
->setValue($html)
|
->setValue($html)
|
||||||
|
|
Loading…
Reference in New Issue