[horde] addVariable of type 'link' on Horde_Form

Marko Djukic marko at oblo.com
Mon Dec 15 16:51:59 PST 2003


Quoting Tom Hodder <tom at scriptsupport.co.uk>:

> Hello,
>
> I'm trying to add a 'link' variable to a form with the addVariable method of
> Horde_Form, but I can't references to it in the docs. well I can, but its not
> helping much with the required parameters;
>
> void &addVariable( mixed $humanName, mixed $varName, mixed $type, mixed
> $required, [mixed $readonly = false], [mixed $description = null], [mixed
> $params = array()])

the required params are the same as basic params for any horde_form var. put in
a human name (ie label), the name of the var itself, the type (link) and
whether it is required or not.

it's exactly the same as a text input field, only difference is that its display
gets formatted to be a link.

m.



More information about the horde mailing list