[Solar-talk] Another form question

Rodrigo Moraes rodrigo.moraes at gmail.com
Wed Nov 21 01:50:16 CST 2007


On Nov 21, 2007 1:56 AM, Oscar wrote:
> Elements can have a 'descr' attribute which is "A longer description of
> the element, such as a tooltip or help text."
>
> Is this attribute displayed when the form is rendered?

Actually, no. 'descr' is just a placeholder for a future feature. I
hacked Solar_View_Helper_Form to include a description right after the
form field. Around line 593:

                    // add the form element
                    $form[] = "            <dt$require><label$require
for=\"$id\">$label</label></dt>";
                    $form[] = "            <dd$require>$element";

                    // A haaack!
                    if (! empty($info['descr'])) {
                        $form[] = "            <p>{$info['descr']}</p>";
                    }

-- rodrigo


More information about the Solar-talk mailing list