[Tickets #6192] Re: attributes added through the hooks don't work

bugs at horde.org bugs at horde.org
Fri Feb 1 20:58:07 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6192
-----------------------------------------------------------------------
 Ticket             | 6192
 Updated By         | a-dinc at hotmail.de
 Summary            | attributes added through the hooks don't work
 Queue              | Whups
 Type               | Bug
 State              | Accepted
 Priority           | 1. Low
 Milestone          | 
 Patch              | 
 Owners             | 
-----------------------------------------------------------------------


a-dinc at hotmail.de (2008-02-01 15:58) wrote:

> And what type are you supplying? You're going to have to post the 
> hook I think.

sorry I forgot the add the types

 if (!function_exists('_whups_hook_get_attributes')) {
     function _whups_hook_get_attributes(&$type = null)
     {
         $attributes = array( array() );
         $attributes = array(
                              array('human_name' => 'Customer Nr.',
                                                         'id' =>
'customernr_id',
                                                     'type' => 'text',
                                               'required' => 'true',
                                               'readonly' =>  false,
                                                     'desc' => 'Customer
Number',
                                                 'params' => '' ),

                              array('human_name' => 'Separator',
                                                          'id' =>
'separator_id',
                                                      'type' => 'header',
                                                'required' =>  true,
                                               'readonly' =>  true,
                                                     'desc'  => '',
                                                  'params' => '' ),
                               array('human_name' => 'Customer',
                                                           'id' =>
'customer_id',
                                                       'type' => 'enum',
                                                 'required' => true,
                                                'readonly' => false,
                                                  'desc'     => null,
                                                'params'   =>
array(array('1' => 'ABC Inc.',
                                                                          
              '2' => 'XYZ Co.'))) );
         return $attributes;
     }
 }




More information about the bugs mailing list