[dev] Form Field Type question
Hamid Sadeghi
horde at sadeghi.co.uk
Wed Sep 28 06:06:37 PDT 2005
I have been trying to add a Form Field Type that has an enum as its
extra parameteres, but it is not working.
Here is an extract in the about function
$about['params'] = array(
'values' => array('label' => _("Questions"),
'type' => 'enum',
'params'=>array(array('1'=>'1','2'=>'2'))
),
On display it gives warning and select box appears to be empty.
Warning: Missing argument 1 for init() in
/usr/share/pear/Horde/Form.php on line 2067
and Warning: Invalid argument supplied for foreach() in
/usr/share/pear/Horde/UI/VarRenderer/html.php on line 1296
Thanks
Hamid
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the dev
mailing list