[dev] add attribute in turba

Nuno Loureiro nuno at co.sapo.pt
Tue Jul 1 04:48:13 PDT 2003


Marko,

Here's how I have it:

$attributes['quickAddrBook'] = array(
    'label' => _("Add to Quick Address Book"),
    'type' => 'set',
    'required' => false,
    'params' => array(
        'values' => array('yes' => 'yes'))
);

Here's the error when I try to add an entry:

Notice: Array to string conversion in /usr/share/pear/DB/mysql.php on
line 667

Warning: Cannot add header information - headers already sent by (output
started at /usr/share/pear/DB/mysql.php:667) in
/var/www/horde.dev/turba/templates/common-header.inc on line 3

Warning: Cannot add header information - headers already sent by (output
started at /usr/share/pear/DB/mysql.php:667) in
/var/www/horde.dev/turba/templates/common-header.inc on line 4

Any ideas of what's going on?

Thank you.

Nuno



On Mon, 2003-06-30 at 23:46, Marko Djukic wrote:
> Quoting Nuno Loureiro <nuno at co.sapo.pt>:
> 
> >
> > Hi!
> >
> > I would like to add an attribute to Turba of the type 'set' (I presume
> > this is a checkbox).
> yes, it's the checkbox.
> 
> 
> > My question is how can I do that or if I need to implement this, where's
> > the proper location to do that.
> in your turba/config/attributes.php
> 
> something like this:
> $attributes['myChkBxField'] = array(
>     'required' => false,
>     'type' => 'set',
>     'label' => 'These are my checkboxes',
>     'params' => array(
>         'values' => array(
>             'value1' => 'My first choice',
>             'value2' => 'My second choice',
>             'value3' => 'My third choice'))
> );
> 
> 
> marko
-- 
Nuno Loureiro <nuno at co.sapo.pt>
PTM.com - http://www.sapo.pt/
PGP fingerprint = 8A32 5174 E80C 2D40 9075 405E C107 6592 054A 4D05



More information about the dev mailing list