[turba] Radio buttons in Turba, how?

Chuck Hagenbuch chuck at horde.org
Tue Dec 5 11:06:13 PST 2006


Quoting Eric <spamsink at scoot.netis.com>:

> I need to add some mutually-exclusive radio buttons to my Turba  
> address book using a MySQL backend.
>
> In the mailing list archives I have found one example that the  
> article writer said resulted in an error message:
>
> $attributes['primaryLocation'] = array(
> 	'label' => _("Primary Location"),
> 	'type' => 'radio',
> 	'required' => false,
> 	'params' => array('Home', 'Work')
> );
>
> The error that he cited was "Warning: Invalid argument supplied for  
> foreach() in /usr/home2/hordexp/lib/Form/Renderer.php on line 747.".

Try 'params' => array(array('Home', 'Work'))

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the turba mailing list