[dev] [Turba] Search API

Marc Jauvin marc at register4less.com
Thu Mar 4 11:24:30 PST 2004


I added an extra attribute to my turba configuration to allow my users to have
an extra email address in their contatcs. I added the following:

(in turba/config/attributes.php):
  $attributes['altEmail'] = array(
      'label' => _("Alternate Email"),
      'type' => 'email',
      'required' => false
  );

(in turba/config/sources.php under the 'map' hash):
  'altEmail' => 'object_altemail'

Could anyone suggest a good way to modify the _turba_search() function in
'turba/lib/api.php' to return both email address in an elegant way?

I am trying to emulate the behavior of other mail client (ex. Netscape
Messenger).

Thanks.

--
Marc Jauvin
http://register4less.com
450-441-5458


More information about the dev mailing list